in gym_genesis/tasks/cube_pick.py [0:0]
def _make_obs_space(self):
if self.enable_pixels:
# we explicity remove the need of environment_state
return spaces.Dict({
"agent_pos": spaces.Box(low=-np.inf, high=np.inf, shape=(AGENT_DIM,), dtype=np.float32),
"pixels": spaces.Box(low=0, high=255, shape=(self.observation_height, self.observation_width, 3), dtype=np.uint8),
})
else:
return spaces.Dict({
"agent_pos": spaces.Box(low=-np.inf, high=np.inf, shape=(AGENT_DIM,), dtype=np.float32),
"environment_state": spaces.Box(low=-np.inf, high=np.inf, shape=(ENV_DIM,), dtype=np.float32),
})