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

Method initialize_episode

dm_control/suite/base.py:62–71  ·  view source on GitHub ↗

Resets geom colors to their defaults after starting a new episode. Subclasses of `base.Task` must delegate to this method after performing their own initialization. Args: physics: An instance of `mujoco.Physics`.

(self, physics)

Source from the content-addressed store, hash-verified

60 return mujoco.action_spec(physics)
61
62 def initialize_episode(self, physics):
63 """Resets geom colors to their defaults after starting a new episode.
64
65 Subclasses of `base.Task` must delegate to this method after performing
66 their own initialization.
67
68 Args:
69 physics: An instance of `mujoco.Physics`.
70 """
71 self.after_step(physics)
72
73 def before_step(self, action, physics):
74 """Sets the control signal for the actuators to values in `action`."""

Callers

nothing calls this directly

Calls 1

after_stepMethod · 0.95

Tested by

no test coverage detected