Software
Modern Robotics code library
By NxRLab, United States (checked on github.com/NxRLab (opens in a new tab)), from github.com/NxRLab/ModernRobotics (opens in a new tab)
- Robot arms and industry
- Library
- MIT
A code library accompanying the book Modern Robotics, offering educational functions for robot mechanics, planning, and control in Python, MATLAB, and Mathematica.
Facts
- GitHub stars
- 3,091read on 28 Nov 2026
- Last update
- 18 Feb 2026Newest commit on master
- Maintenance
- Maintaineda commit in the last 12 months
- Difficulty
- Beginner
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- MIT (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit cbd41fd (opens in a new tab), on 16 Oct 2026.
- Commercial use
- Yes
At a glance
- What it is
- Provides functions for robot kinematics, dynamics, motion planning, and control, organized by the chapter of the book where each is introduced.
- Each function includes comments explaining its inputs and an example with the expected output.
- A user manual in the doc directory gives an overview of the functions using MATLAB syntax.
- Designed to be easy to read and to reinforce the book's concepts, not optimized for efficiency or robustness.
- Unofficial ports exist in C++, Julia, Nim, PyTorch, and Rust, plus several libraries built on it, which the maintainers do not vouch for.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- MIT. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Maintained, last commit on 18 Feb 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/NxRLab/ModernRobotics (opens in a new tab)
- The version Robotheca readcbd41fd (opens in a new tab)
- Latest releaseModern Robotics Code Library, Version 1.1.1 (3 Feb 2023)
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by NxRLab, at commit cbd41fd, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
Modern Robotics: Mechanics, Planning, and Control
Code Library
This repository contains the code library accompanying Modern Robotics: Mechanics, Planning, and Control (opens in a new tab) (Kevin Lynch and Frank Park, Cambridge University Press 2017). The user manual (opens in a new tab) is in the doc directory.
The functions are available in:
- Python
- MATLAB
- Mathematica
Each function has a commented section above it explaining the inputs required for its use as well as an example of how it can be used and what the output will be. This repository also contains a pdf document that provides an overview of the available functions using MATLAB syntax. Functions are organized according to the chapter in which they are introduced in the book. Basic functions, such as functions to calculate the magnitude of a vector, normalize a vector, test if the value is near zero, and perform matrix operations such as multiplication and inverses, are not documented here.
The primary purpose of the provided software is to be easy to read and educational, reinforcing the concepts in the book. The code is optimized neither for efficiency nor robustness.
Some unofficial versions in other languages are being developed:
- C++ version (opens in a new tab)
- Julia version (opens in a new tab)
- Nim version (opens in a new tab)
- Python version using PyTorch (opens in a new tab)
- Rust version (opens in a new tab)
Some libraries built on ours:
- KinematicsFromDescriptionTool (opens in a new tab), which calculates the kinematics input parameters from a robot's URDF or robot_description parameter using ROS and Python3.
- mr_urdf_loader (opens in a new tab), which generates
M,Slist,Blist,MlistandGlistparameters for kinematics and dynamics. It also provides UR5 simulation usingPyBullet. - tf_rbdl (opens in a new tab), which refactors the Python version using the package
tensorflow.
Any contribution is welcomed but the maintenance team for this library here doesn't vouch for the reliability of those projects.
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.