Initializes a new `Physics` instance. Args: data: Instance of `wrapper.MjData`.
(self, data)
| 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): |
nothing calls this directly
no test coverage detected