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

Function swim

dm_control/suite/fish.py:59–66  ·  view source on GitHub ↗

Returns the Fish Swim task.

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

Source from the content-addressed store, hash-verified

57
58@SUITE.add('benchmarking')
59def swim(time_limit=_DEFAULT_TIME_LIMIT, random=None, environment_kwargs=None):
60 """Returns the Fish Swim task."""
61 physics = Physics.from_xml_string(*get_model_and_assets())
62 task = Swim(random=random)
63 environment_kwargs = environment_kwargs or {}
64 return control.Environment(
65 physics, task, control_timestep=_CONTROL_TIMESTEP, time_limit=time_limit,
66 **environment_kwargs)
67
68
69class Physics(mujoco.Physics):

Callers

nothing calls this directly

Calls 3

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