Change end-of-episode in CarRacing to termination as opposed to truncation (#813)

This commit is contained in:
Ariel Kwiatkowski
2024-08-09 11:30:38 +02:00
committed by GitHub
parent 1a92702f17
commit c9e2957435
12 changed files with 32 additions and 30 deletions

View File

@@ -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)
@@ -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>
```