Repository: Farama-Foundation/Metaworld
Issue: [Question] userwarning：WARN: A Box observation space maximum and minimum values are equal.
Root cause: Validation Gap

### Question

Every time I create an environment, I get a warning that the initial value is out of bounds. Why this?

def main():
    env = gym.make('Meta-World/MT1', env_name='reach-v3', seed=42)
    obs, info = env.reset()
    print("Initial observation:", obs)
    print("Info:", info)
    print("Observation space:", env.observation_space)
    print("Action space:", env.action_space.shape)

/home/pujiaming/miniconda3/envs/pujm-ace/lib/python3.11/site-packages/gymnasium/utils/passive_env_checker.py:35: UserWarning: WARN: A Box observation space maximum and minimum values are equal.
  logger.warn("A Box observation space maximum and minimum values are equal.")
/home/pujiaming/miniconda3/envs/pujm-ace/lib/python3.11/site-packages/gymnasium/utils/passive_env_checker.py:158: UserWarning: WARN: The obs returned by the `reset()` method is not within the observation space.
  logger.warn(f"{pre} is not within the observation space.")
Initial observation: [0.00456298 0.60146536 0.19518842 1.         0.00284689 0.73
 0.09       1.         0.         0.         0.         0.
 0.         0.         0.         0.         0.         0.
 0.00456298 0.60146536 0.19518842 1.         0.00284689 0.73
 0.09       1.         0.         0.         0.         0.
 0.         0.         0.         0.         0.         0.
 0.00284689 0.54       0.09      ]
Info: {}
Observation space: Box([-0.525   0.348  -0.0525 -1.        -inf    -inf    -inf    -inf    -inf
    -inf    -inf    -inf    -inf    -inf    -inf    -inf    -inf    -inf
 -0.525   0.348  -0.0525 -1.        -inf    -inf    -inf    -inf    -inf
    -inf    -inf    -inf    -inf    -inf    -inf    -inf    -inf    -inf
  0.      0.      0.    ], [0.525 1.025 0.7   1.      inf   inf   inf   inf   inf   inf   inf   inf
   inf   inf   inf   inf   inf   inf 0.525 1.025 0.7   1.      inf   inf
   inf   inf   inf   inf   inf   inf   inf   inf   inf   inf   inf   inf
 0.    0.    0.   ], (39,), float64)
Action space: (4,)

Why are the last three values of the observation space both 0 for low and high, yet the final initial value can exceed 0? And the obs obtained from env.step also has the same issue.

/home/pujiaming/miniconda3/envs/pujm-ace/lib/python3.11/site-packages/gymnasium/utils/passive_env_checker.py:158: UserWarning: WARN: The obs returned by the `step()` method is not within the observation space.
  logger.warn(f"{pre} is not within the observation space.")
{'success': 0.0, 'near_object': 0.22981567533146446, 'grasp_success': 1.0, 'grasp_reward': 0.22981567533146446, 'in_place_reward': 0.15781987043761977, 'obj_to_target': 0.22981567533146446, 'unscaled_reward': 1.5781987043761978}
 

When environments are initialized using the async/sync Gymnasium wrappers, the true observation space of the environments are not known. Thus, I think the goals in the observation violate the 'default' observation space (which is the one you pasted if I remember correctly). It's not a problematic issue in that it doesn't cause any issues with working with Meta-World, just annoyances when creating environments.