MCPcopy Index your code
hub / github.com/google-deepmind/dm_control / stack_4

Function stack_4

dm_control/suite/stacker.py:71–82  ·  view source on GitHub ↗

Returns stacker task with 4 boxes.

(fully_observable=True, time_limit=_TIME_LIMIT, random=None,
            environment_kwargs=None)

Source from the content-addressed store, hash-verified

69
70@SUITE.add('hard')
71def stack_4(fully_observable=True, time_limit=_TIME_LIMIT, random=None,
72 environment_kwargs=None):
73 """Returns stacker task with 4 boxes."""
74 n_boxes = 4
75 physics = Physics.from_xml_string(*make_model(n_boxes=n_boxes))
76 task = Stack(n_boxes=n_boxes,
77 fully_observable=fully_observable,
78 random=random)
79 environment_kwargs = environment_kwargs or {}
80 return control.Environment(
81 physics, task, control_timestep=_CONTROL_TIMESTEP, time_limit=time_limit,
82 **environment_kwargs)
83
84
85class Physics(mujoco.Physics):

Callers

nothing calls this directly

Calls 3

make_modelFunction · 0.70
StackClass · 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…