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

Method setUp

dm_control/mjcf/physics_test.py:39–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 """Tests for `mjcf.Physics`."""
38
39 def setUp(self):
40 super().setUp()
41 self.model = mjcf.from_path(ARM_MODEL)
42 self.physics = mjcf.Physics.from_xml_string(
43 self.model.to_xml_string(), assets=self.model.get_assets())
44 self.random = np.random.RandomState(0)
45
46 def sample_elements(self, namespace, single_element):
47 all_elements = self.model.find_all(namespace)

Callers

nothing calls this directly

Calls 3

get_assetsMethod · 0.80
from_xml_stringMethod · 0.45
to_xml_stringMethod · 0.45

Tested by

no test coverage detected