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

Function run

dm_control/suite/humanoid.py:71–78  ·  view source on GitHub ↗

Returns the Run task.

(time_limit=_DEFAULT_TIME_LIMIT, random=None, environment_kwargs=None)

Source from the content-addressed store, hash-verified

69
70@SUITE.add('benchmarking')
71def run(time_limit=_DEFAULT_TIME_LIMIT, random=None, environment_kwargs=None):
72 """Returns the Run task."""
73 physics = Physics.from_xml_string(*get_model_and_assets())
74 task = Humanoid(move_speed=_RUN_SPEED, pure_state=False, random=random)
75 environment_kwargs = environment_kwargs or {}
76 return control.Environment(
77 physics, task, time_limit=time_limit, control_timestep=_CONTROL_TIMESTEP,
78 **environment_kwargs)
79
80
81@SUITE.add()

Callers

nothing calls this directly

Calls 3

get_model_and_assetsFunction · 0.70
HumanoidClass · 0.70
from_xml_stringMethod · 0.45

Tested by

no test coverage detected