Skip to content

A pole is attached by an un-actuated joint to a cart, which moves along a frictionless track. The pendulum starts upright, and the goal is to prevent it from falling over by increasing and reducing the cart's velocity.

License

Notifications You must be signed in to change notification settings

ayushreal/Cart-Pole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cart-Pole

A pole is attached by an un-actuated joint to a cart, which moves along a frictionless track. The pendulum starts upright, and the goal is to prevent it from falling over by increasing and reducing the cart's velocity.

Before executing the program install the following dependencies-

1:)pip install gym 2:)pip install numpy

After installing open cmd and type python cartpole.py

initially it will try to reach the score of 200, but ofcourse you can change the amount of reward.

About

A pole is attached by an un-actuated joint to a cart, which moves along a frictionless track. The pendulum starts upright, and the goal is to prevent it from falling over by increasing and reducing the cart's velocity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages