Skip to content

Commit

Permalink
Fix acrobot doc (openai#608)
Browse files Browse the repository at this point in the history
* [fix] acrobot documentation on state was wrong

* [fix] acrobot doc typos
  • Loading branch information
fhennecker authored and ngc92 committed Jun 23, 2017
1 parent 55fb97a commit afa0814
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions gym/envs/classic_control/acrobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ class AcrobotEnv(core.Env):
Both links can swing freely and can pass by each other, i.e., they don't
collide when they have the same angle.
**STATE:**
The state consists of the two rotational joint angles and their velocities
[theta1 theta2 thetaDot1 thetaDot2]. An angle of 0 corresponds to corresponds
to the respective link pointing downwards (angles are in world coordinates).
The state consists of the sin() and cos() of the two rotational joint
angles and the joint angular velocities :
[cos(theta1) sin(theta1) cos(theta2) sin(theta2) thetaDot1 thetaDot2].
For the first link, an angle of 0 corresponds to the link pointing downwards.
The angle of the second link is relative to the angle of the first link.
An angle of 0 corresponds to having the same angle between the two links.
A state of [1, 0, 1, 0, ..., ...] means that both links point downwards.
**ACTIONS:**
The action is either applying +1, 0 or -1 torque on the joint between
the two pendulum links.
Expand Down

0 comments on commit afa0814

Please sign in to comment.