Skip to content

Commit

Permalink
Pole balancing documentation of observation matches code (openai#1914)
Browse files Browse the repository at this point in the history
* documentation matches code

The returned angle is returned in the unit of radians and not degrees.

* use tabs for indent
  • Loading branch information
BSVogler authored Jun 19, 2020
1 parent d7e60a1 commit 679f1a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gym/envs/classic_control/cartpole.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ class CartPoleEnv(gym.Env):
Observation:
Type: Box(4)
Num Observation Min Max
0 Cart Position -4.8 4.8
1 Cart Velocity -Inf Inf
2 Pole Angle -24 deg 24 deg
3 Pole Velocity At Tip -Inf Inf
Num Observation Min Max
0 Cart Position -4.8 4.8
1 Cart Velocity -Inf Inf
2 Pole Angle -0.418 rad (-24 deg) 0.418 rad (24 deg)
3 Pole Angular Velocity -Inf Inf
Actions:
Type: Discrete(2)
Expand Down

0 comments on commit 679f1a7

Please sign in to comment.