MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / add

Method add

dm_control/mjcf/base.py:196–209  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 15

find_data_filesFunction · 0.45
add_bodies_and_actuatorsFunction · 0.45
add_free_entityMethod · 0.45
_buildMethod · 0.45
testSetPoseMethod · 0.45
testShiftPoseMethod · 0.45
_make_spheresFunction · 0.45

Calls

no outgoing calls