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.
Thanks for Tyler Toner to share the code base with us.
├── images
├── MPC
│ └── uncMPC.py
├── meshes/m0609_white
│ ├── MF0609_0_0.dae
│ ├── MF0609_1_0.dae
│ ....
├── urdf
│ └── m0609.urdf
└── MPC_trajectory_following.py
git clone https://github.com/kidpaul94/IK-MPC.git
cd IK-MPC/
pip3 install -r requirements.txt
Note You need to set absolute paths for each mesh file called by
m0609.urdf
. InMPC_trajectory_following.py
, you also need to provide a path to the urdf you just modified. Then,
python3 MPC_trajectory_following.py
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.
@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}
}
Documentation |
---|