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

Method __init__

dm_control/mujoco/engine.py:116–123  ·  view source on GitHub ↗

Initializes a new `Physics` instance. Args: data: Instance of `wrapper.MjData`.

(self, data)

Source from the content-addressed store, hash-verified

114 return obj
115
116 def __init__(self, data):
117 """Initializes a new `Physics` instance.
118
119 Args:
120 data: Instance of `wrapper.MjData`.
121 """
122 self._warnings_cause_exception = True
123 self._reload_from_data(data)
124
125 @contextlib.contextmanager
126 def suppress_physics_errors(self):

Callers

nothing calls this directly

Calls 1

_reload_from_dataMethod · 0.95

Tested by

no test coverage detected