Skip to content

Commit

Permalink
Rreplace any stray CarRacing-v2 with CarRacing-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
RedTachyon committed Jul 30, 2024
1 parent 9e06113 commit 6d106ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/introduction/basic_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ In order to wrap an environment, you must first initialize a base environment. T
```python
>>> import gymnasium as gym
>>> from gymnasium.wrappers import FlattenObservation
>>> env = gym.make("CarRacing-v2")
>>> env = gym.make("CarRacing-v3")
>>> env.observation_space.shape
(96, 96, 3)
>>> wrapped_env = FlattenObservation(env)
Expand Down Expand Up @@ -156,7 +156,7 @@ If you have a wrapped environment, and you want to get the unwrapped environment

```python
>>> wrapped_env
<FlattenObservation<TimeLimit<OrderEnforcing<PassiveEnvChecker<CarRacing<CarRacing-v2>>>>>>
<FlattenObservation<TimeLimit<OrderEnforcing<PassiveEnvChecker<CarRacing<CarRacing-v3>>>>>>
>>> wrapped_env.unwrapped
<gymnasium.envs.box2d.car_racing.CarRacing object at 0x7f04efcb8850>
```
Expand Down
6 changes: 3 additions & 3 deletions gymnasium/envs/box2d/car_racing.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ class CarRacing(gym.Env, EzPickle):
```python
>>> import gymnasium as gym
>>> env = gym.make("CarRacing-v2", render_mode="rgb_array", lap_complete_percent=0.95, domain_randomize=False, continuous=False)
>>> env = gym.make("CarRacing-v3", render_mode="rgb_array", lap_complete_percent=0.95, domain_randomize=False, continuous=False)
>>> env
<TimeLimit<OrderEnforcing<PassiveEnvChecker<CarRacing<CarRacing-v2>>>>>
<TimeLimit<OrderEnforcing<PassiveEnvChecker<CarRacing<CarRacing-v3>>>>>
```
Expand All @@ -176,7 +176,7 @@ class CarRacing(gym.Env, EzPickle):
```python
>>> import gymnasium as gym
>>> env = gym.make("CarRacing-v2", domain_randomize=True)
>>> env = gym.make("CarRacing-v3", domain_randomize=True)
# normal reset, this changes the colour scheme by default
>>> obs, _ = env.reset()
Expand Down
2 changes: 1 addition & 1 deletion tests/wrappers/test_normalize_observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_update_running_mean_property():

def test_normalize_obs_with_vector():
def thunk():
env = gym.make("CarRacing-v2")
env = gym.make("CarRacing-v3")
env = gym.wrappers.GrayscaleObservation(env)
env = gym.wrappers.NormalizeObservation(env)
return env
Expand Down

0 comments on commit 6d106ff

Please sign in to comment.