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)
| 35 | |
| 36 | |
| 37 | def 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() |
no test coverage detected
searching dependent graphs…