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

Method __init__

examples/aloha_sim/env.py:12–20  ·  view source on GitHub ↗
(self, task: str, obs_type: str = "pixels_agent_pos", seed: int = 0)

Source from the content-addressed store, hash-verified

10 """An environment for an Aloha robot in simulation."""
11
12 def __init__(self, task: str, obs_type: str = "pixels_agent_pos", seed: int = 0) -> None:
13 np.random.seed(seed)
14 self._rng = np.random.default_rng(seed)
15
16 self._gym = gymnasium.make(task, obs_type=obs_type)
17
18 self._last_obs = None
19 self._done = True
20 self._episode_reward = 0.0
21
22 @override
23 def reset(self) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected