Add a new child element to this element. Args: element_name: The tag of the element to add. **kwargs: Attributes of the new element being created. Raises: ValueError: If the 'element_name' is not a valid child, or if an invalid attribute is specified in `kwargs`.
(self, element_name, **kwargs)
| 194 | |
| 195 | @abc.abstractmethod |
| 196 | def add(self, element_name, **kwargs): |
| 197 | """Add a new child element to this element. |
| 198 | |
| 199 | Args: |
| 200 | element_name: The tag of the element to add. |
| 201 | **kwargs: Attributes of the new element being created. |
| 202 | |
| 203 | Raises: |
| 204 | ValueError: If the 'element_name' is not a valid child, or if an invalid |
| 205 | attribute is specified in `kwargs`. |
| 206 | |
| 207 | Returns: |
| 208 | An `mjcf.Element` corresponding to the newly created child element. |
| 209 | """ |
| 210 | |
| 211 | @abc.abstractmethod |
| 212 | def remove(self, affect_attachments=False): |
no outgoing calls