rickstaa/stable-gym

Observation space for QuadXWaypointsCost is not consistent with observation shape

jjshoots opened this issue · 1 comments

Describe the bug

The observation space shape is not consistent with the observation returned by the environment under the default settings.

import gymnasium as gym

env = gym.make("stable_gym:QuadXWaypointsCost-v1")

print(env.observation_space)
obs, _ = env.reset()
print(obs.shape)
Box([-inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf
 -inf -inf -inf -inf -inf -inf -inf  -5.], [inf inf inf inf inf inf inf inf inf inf inf inf inf inf inf inf inf
 inf
 inf inf inf  5.], (22,), float64)
/home/jet/Sandboxes/E2SAC/venv/lib/python3.10/site-packages/gymnasium/utils/passive_env_checker.py:159: UserWar
ning: WARN: The obs returned by the `reset()` method is not within the observation space.
  logger.warn(f"{pre} is not within the observation space.")
(24,)

Reproduction steps

import gymnasium as gym

env = gym.make("stable_gym:QuadXWaypointsCost-v1")

print(env.observation_space)
obs, _ = env.reset()
print(obs.shape)

Expected behaviour

No response

Screenshots / Live demo link

No response

System information

No response

Additional context

No response

Your right. Thanks for the bug report! I misunderstood how the https://gymnasium.farama.org/api/spaces/composite/#sequence space worked. Fixed in #282.