It enables computing a full, valid joint configuration from a subset of joint values while satisfying kinematic constraints.
Using the constraints in a URDF file makes the new description compatible with existing packages. This package provides a solution to solve the constraints during runtime using pinocchio to calculate the kinematics and the jacobians of the tree and use it to close the loop using a numerical solver.
- Support for closed-loop kinematics
- Constraint-based joint completion
- Integration with Pinocchio for tree kinematics and dynamics
- Direct XML string parsing (in-memory model creation without temporary files) alongside file-based loading
- Python API via pybind11
- Access to:
- joints (active, passive, end-effector)
- constraints
- limits
- kinematics & Jacobians
- Fixed (cut link)
- Revolute (using parent axis)
- Spherical (no axes)
- URDF (extended) -> parsed via custom
urdfdom - Pinocchio -> tree kinematics & dynamics
- RobotModel class -> constraint-aware abstraction layer
- levenbergMarquardt function -> calculate a state that satisfies the constraint based on a minimal set of joint values, e.g. Endeffector position or measured active joint values, using a Levenberg Marquardt Algorithm with a line-search to find a feasible step-size for each iteration
You must use the modified versions:
- urdfdom_headers: https://github.com/HIT-Robotics/urdfdom_headers
- urdfdom: https://github.com/HIT-Robotics/urdfdom
Pinocchio must be rebuilt against the modified urdfdom.
- pinocchio >3.9: https://github.com/stack-of-tasks/pinocchio/tree/v3.9.0
-
Add all required repositories to your workspace:
urdfdom_headersurdfdompinocchiorobot_model
-
Build:
colcon build source install/setup.bash
Use the package as a library in Python or C++. The main entry point is the RobotModel class.
from robot_model import RobotModel
# 1. Load from a file path:
model = RobotModel("/path/to/robot.urdf")
# 2. Load directly from an in-memory XML string (e.g., generated by xacro):
xml_string = "<robot name='my_robot'>...</robot>"
model = RobotModel(xml_string) # auto-detected as XML, or: RobotModel.fromXML(xml_string)
# Inspect model info
print(f"Degrees of freedom: {model.degrees_of_freedom}")
print(f"Joint names: {model.joint_names}")#include "robot_model/model/robot_model.hpp"
// 1. Load from a file path:
robot_model::RobotModel model("/path/to/robot.urdf");
// 2. Load directly from an in-memory XML string:
std::string xml_string = "<robot name='my_robot'>...</robot>";
robot_model::RobotModel model(xml_string); // or: robot_model::RobotModel::fromXML(xml_string);- Tree representation via Pinocchio
- Constraint handling
- Limit checking
- State handling between motion state of the URDF and Pinocchio states
- Closed-loop kinematics solving
- Upstream URDF extensions into official urdfdom
- Add support for additional constraint types
Fabian.Finkbeiner@hs-heilbronn.de
Developed by the Robotics Lab at Heilbronn University of Applied Sciences
Supported by autonox Robotics GmbH

