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

Function upright

dm_control/suite/fish.py:47–55  ·  view source on GitHub ↗

Returns the Fish Upright task.

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

Source from the content-addressed store, hash-verified

45
46@SUITE.add('benchmarking')
47def upright(time_limit=_DEFAULT_TIME_LIMIT, random=None,
48 environment_kwargs=None):
49 """Returns the Fish Upright task."""
50 physics = Physics.from_xml_string(*get_model_and_assets())
51 task = Upright(random=random)
52 environment_kwargs = environment_kwargs or {}
53 return control.Environment(
54 physics, task, control_timestep=_CONTROL_TIMESTEP, time_limit=time_limit,
55 **environment_kwargs)
56
57
58@SUITE.add('benchmarking')

Callers

nothing calls this directly

Calls 3

UprightClass · 0.85
get_model_and_assetsFunction · 0.70
from_xml_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…