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

Method _attach

dm_control/mjcf/element.py:1223–1228  ·  view source on GitHub ↗
(self, other, exclude_worldbody=False, dry_run=False)

Source from the content-addressed store, hash-verified

1221 spec=schema.MUJOCO, parent=None, attributes={'model': model})
1222
1223 def _attach(self, other, exclude_worldbody=False, dry_run=False):
1224 self._check_valid_attachment(other)
1225 if not dry_run:
1226 self._attachments[other.namescope] = other
1227 self._attach_children(other, exclude_worldbody, dry_run)
1228 self.namescope.increment_revision()
1229
1230 @property
1231 def namescope(self):

Callers 2

_attach_childrenMethod · 0.45
attachMethod · 0.45

Calls 3

_attach_childrenMethod · 0.80
increment_revisionMethod · 0.80

Tested by

no test coverage detected