Skip to content

Inverse Kinematics-based Model Predictive Control for Robot Motion Planning

Notifications You must be signed in to change notification settings

kidpaul94/IK-MPC

Repository files navigation

IK-MPC

Python CMake

Powered by the Robotics Toolbox

Inverse Kinematics-based Model Predictive Control for Robot Motion Planning. Using Numerical inverse kinematics of a URDF model and Linear Quadratic Model Predictive Control (LQ-MPC), this code computes desired joint commands to follow reference path(s) that a robot needs to follow. Original MATLAB version and detailed documentation are available at manipulator-mpc.

Acknowledgment

Thanks for Tyler Toner to share the code base with us.

Table of Contents


Repository Structure

├── images   
├── MPC 
│   └── uncMPC.py
├── meshes/m0609_white
│   ├── MF0609_0_0.dae
│   ├── MF0609_1_0.dae
│   ....
├── urdf
│   └── m0609.urdf
└── MPC_trajectory_following.py 

Download Process

git clone https://github.com/kidpaul94/IK-MPC.git
cd IK-MPC/
pip3 install -r requirements.txt

How to Run

Note You need to set absolute paths for each mesh file called by m0609.urdf. In MPC_trajectory_following.py, you also need to provide a path to the urdf you just modified. Then,

 python3 MPC_trajectory_following.py

How to Apply on Your Robot

Note To apply this code to your own robotic model, you need your custom urdf file. You can build the urdf using any CAD software such as SolidWorks or Fusion360. If you don't want to use a numerical IK, it is also possible to compute an analytical IK by using IKFast. For more details about how to get the IKFast analytical solution, check out ROS MoveIt.

Citation

@inproceedings{rtb,
title={Not your grandmother’s toolbox--the Robotics Toolbox reinvented for Python},
author={Corke, Peter and Haviland, Jesse},
booktitle={2021 IEEE International Conference on Robotics and Automation (ICRA)},
pages={11357--11363},
year={2021},
organization={IEEE}
}

ToDo Lists

Documentation Progress

About

Inverse Kinematics-based Model Predictive Control for Robot Motion Planning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published