MCPcopy Create free account
hub / github.com/Physical-Intelligence/openpi / reset

Method reset

examples/aloha_sim/env.py:23–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22 @override
23 def reset(self) -> None:
24 gym_obs, _ = self._gym.reset(seed=int(self._rng.integers(2**32 - 1)))
25 self._last_obs = self._convert_observation(gym_obs) # type: ignore
26 self._done = False
27 self._episode_reward = 0.0
28
29 @override
30 def is_episode_complete(self) -> bool:

Callers

nothing calls this directly

Calls 1

_convert_observationMethod · 0.95

Tested by

no test coverage detected