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

Function get_model_and_assets

dm_control/suite/swimmer.py:35–45  ·  view source on GitHub ↗

Returns a tuple containing the model XML string and a dict of assets. Args: n_joints: An integer specifying the number of joints in the swimmer. Returns: A tuple `(model_xml_string, assets)`, where `assets` is a dict consisting of `{filename: contents_string}` pairs.

(n_joints)

Source from the content-addressed store, hash-verified

33
34
35def get_model_and_assets(n_joints):
36 """Returns a tuple containing the model XML string and a dict of assets.
37
38 Args:
39 n_joints: An integer specifying the number of joints in the swimmer.
40
41 Returns:
42 A tuple `(model_xml_string, assets)`, where `assets` is a dict consisting of
43 `{filename: contents_string}` pairs.
44 """
45 return _make_model(n_joints), common.ASSETS
46
47
48@SUITE.add('benchmarking')

Callers 1

_make_swimmerFunction · 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…