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

Function get_model_and_assets

dm_control/suite/lqr.py:37–50  ·  view source on GitHub ↗

Returns the model description as an XML string and a dict of assets. Args: n_bodies: An int, number of bodies of the LQR. n_actuators: An int, number of actuated bodies of the LQR. `n_actuators` should be less or equal than `n_bodies`. random: A `numpy.random.RandomState` instan

(n_bodies, n_actuators, random)

Source from the content-addressed store, hash-verified

35
36
37def get_model_and_assets(n_bodies, n_actuators, random):
38 """Returns the model description as an XML string and a dict of assets.
39
40 Args:
41 n_bodies: An int, number of bodies of the LQR.
42 n_actuators: An int, number of actuated bodies of the LQR. `n_actuators`
43 should be less or equal than `n_bodies`.
44 random: A `numpy.random.RandomState` instance.
45
46 Returns:
47 A tuple `(model_xml_string, assets)`, where `assets` is a dict consisting of
48 `{filename: contents_string}` pairs.
49 """
50 return _make_model(n_bodies, n_actuators, random), common.ASSETS
51
52
53@SUITE.add()

Callers 1

_make_lqrFunction · 0.70

Calls 1

_make_modelFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…