Skip to content

adarsh2798/Trajectory_optimization_LQR_for_cart-pole_GAZEBO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Trajectory_optimization_LQR_for_cart-pole_GAZEBO

In this project, I have attemped to swing up and balance the cart-pole system in ROS Gazebo. The swing up ws achieved by trajectory optimization, where trapezoidal collocation was used to discretize the continuous trajectories and convert the "optimization of functionals" to a discrete Non Linear Program, whicch was then numerically solved using python's scipy.minimze package. To capture the pole in up position and balance simple LQR was implemented. Here you can find the ROS package uploaded that contains the necesssary files for urdf model and .stl files for simulating cart-pole system in gazebo. It also contains the python scripts which i wrote to implement my control algorithm. They can be found in "cart_pole_LQR/src/commander/scripts" directory.

NOTE: I used the ROS package for necessary urdf files to simulate cart-pole in gazebo from these links: package link1 and package link2 in youtube video's decription

Below is a gif of the simulation in gazebo.

Alt Text

References Used for trajectory optimization:

Introduction to Trajectory Optimization by mathew kelly

An Introduction to TrajectoryOptimization: How to Do YourOwn Direct Collocation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published