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

Method _physics_state_items

dm_control/mujoco/engine.py:567–585  ·  view source on GitHub ↗

Returns list of arrays making up internal physics simulation state. The physics state consists of the state variables, their derivatives and actuation activations. If the model contains plugins, then the state will also contain any plugin state. Returns: List of NumPy arrays

(self)

Source from the content-addressed store, hash-verified

565 return self._data
566
567 def _physics_state_items(self):
568 """Returns list of arrays making up internal physics simulation state.
569
570 The physics state consists of the state variables, their derivatives and
571 actuation activations. If the model contains plugins, then the state will
572 also contain any plugin state.
573
574 Returns:
575 List of NumPy arrays containing full physics simulation state.
576 """
577 if self.model.nplugin > 0:
578 return [
579 self.data.qpos,
580 self.data.qvel,
581 self.data.act,
582 self.data.plugin_state,
583 ]
584 else:
585 return [self.data.qpos, self.data.qvel, self.data.act]
586
587 # Named views of simulation data.
588

Callers 5

get_stateMethod · 0.95
set_stateMethod · 0.95
stateMethod · 0.95

Calls

no outgoing calls