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

Function stack_2

dm_control/suite/stacker.py:56–67  ·  view source on GitHub ↗

Returns stacker task with 2 boxes.

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

Source from the content-addressed store, hash-verified

54
55@SUITE.add('hard')
56def stack_2(fully_observable=True, time_limit=_TIME_LIMIT, random=None,
57 environment_kwargs=None):
58 """Returns stacker task with 2 boxes."""
59 n_boxes = 2
60 physics = Physics.from_xml_string(*make_model(n_boxes=n_boxes))
61 task = Stack(n_boxes=n_boxes,
62 fully_observable=fully_observable,
63 random=random)
64 environment_kwargs = environment_kwargs or {}
65 return control.Environment(
66 physics, task, control_timestep=_CONTROL_TIMESTEP, time_limit=time_limit,
67 **environment_kwargs)
68
69
70@SUITE.add('hard')

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…