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

Function insert_peg

dm_control/suite/manipulator.py:116–127  ·  view source on GitHub ↗

Returns manipulator insert task with the peg prop.

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

Source from the content-addressed store, hash-verified

114
115@SUITE.add('hard')
116def insert_peg(fully_observable=True, time_limit=_TIME_LIMIT, random=None,
117 environment_kwargs=None):
118 """Returns manipulator insert task with the peg prop."""
119 use_peg = True
120 insert = True
121 physics = Physics.from_xml_string(*make_model(use_peg, insert))
122 task = Bring(use_peg=use_peg, insert=insert,
123 fully_observable=fully_observable, random=random)
124 environment_kwargs = environment_kwargs or {}
125 return control.Environment(
126 physics, task, control_timestep=_CONTROL_TIMESTEP, time_limit=time_limit,
127 **environment_kwargs)
128
129
130class Physics(mujoco.Physics):

Callers

nothing calls this directly

Calls 3

BringClass · 0.85
make_modelFunction · 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…