MCPcopy Index your code
hub / github.com/google-deepmind/dm_control / TestEntity

Class TestEntity

dm_control/composer/entity_test.py:54–66  ·  view source on GitHub ↗

Simple test entity that does nothing but declare some observables.

Source from the content-addressed store, hash-verified

52
53
54class TestEntity(entity.Entity):
55 """Simple test entity that does nothing but declare some observables."""
56
57 def _build(self, name='test_entity'):
58 self._mjcf_root = mjcf.element.RootElement(model=name)
59 self._mjcf_root.worldbody.add('geom', type='sphere', size=(0.1,))
60
61 def _build_observables(self):
62 return TestEntityObservables(self)
63
64 @property
65 def mjcf_model(self):
66 return self._mjcf_root
67
68
69class TestEntityObservables(entity.Observables):

Callers 11

setUpMethod · 0.85
testObservableNamesMethod · 0.85
testAttachMethod · 0.85
testDetachMethod · 0.85
testSetPoseMethod · 0.85
testShiftPoseMethod · 0.85

Calls

no outgoing calls

Tested by 11

setUpMethod · 0.68
testObservableNamesMethod · 0.68
testAttachMethod · 0.68
testDetachMethod · 0.68
testSetPoseMethod · 0.68
testShiftPoseMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…