Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pendulum updates #2423

Merged
merged 5 commits into from
Sep 25, 2021
Merged

Pendulum updates #2423

merged 5 commits into from
Sep 25, 2021

Conversation

RedTachyon
Copy link
Contributor

See Issue #2156

First change is using the identity that -sin(x + pi) = sin(x)

Second change is the fact that the angular velocity is clipped to the predefined range before being applied to the state of the environment. This way, we are guaranteed that the actual change of the angle between two consecutive timesteps will be constrained in the (-max_speed, max_speed) range. The change in the actual dynamics of the environment is minimal, but technically can be non-zero, so I bumped the version to Pendulum-v1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants