RAPTOR: RAPid and Robust Trajectory Optimization for Robots
See the codeDynamic locomotion for humanoid robots presents significant analytical and computational challenges due to the extensive number of linkages and degrees of freedom. This complexity results in a vast search space for feasible gaits which translates into a time-consuming process when optimizing over trajectories. In addition, the process often involves numerous hyperparameters and requires a good initial guess or a warm-start strategy, further complicating the development process. Existing methods struggle to integrate the latest hardware designs, such as actuated ankles with closed-loop mechanisms, which offer increased stability, but introduce additional constraints into the dynamics that can be challenging to represent in a computationally tractable fashion. This work introduces a generalized gait optimization framework that directly generates smooth and physically feasible trajectories. The proposed method demonstrates faster and more robust convergence than existing techniques and explicitly incorporates closed-loop constraints. The method is implemented as an open-source C++ codebase that significantly reduces computation times, facilitating dynamic locomotion for full-size humanoids. Note that RAPTOR also works for other fully actuated systems such as robotic manipulators.
To be more specific, we parameterize the trajectories for the robot states as, for example, polynomials. The decision variable of the optimization is then the coefficients of the polynomial. We sample a certain number of discrete points on the trajectory and evaluate the constraints, such as joints limits, torque limits, or collision avoidance. We use Ipopt as our optimization solver. For some of the constraints, we implement the analytical hessian so that Ipopt can converge faster.
A more detailed instruction is provided here. We recommend users to install the requirements through docker.
A more detailed instruction on how to code your own optimization problem is provided here.
Run the following command to compile all the code.
mkdir build
cd build
cmake ..
make -j4
You can find a README file with more details in each example within the Example/ folder.
We provide the following examples:
Kinova-gen3
CollisionAvoidanceInverseKinematics/: Solves an inverse kinematics problem for a given desired end-effector transformation matrix while considering joint limits and collision avoidance.CollisionAvoidanceTrajectory/: The robot arm, without any payload, plans a trajectory to reach a target configuration while avoiding obstacles and satisfying torque limits.Armour: A better re-implementation that integrates our previous work ARMOUR and WAITR, which is a provably-safe receding-horizon trajectory optimization framework.SystemIdentification/: Contains multiple examples related to system identification of a robotic arm.Digit
Talos
Unitree-G1
To cite RAPTOR in your academic research, please use the following bibtex entry:
@article{zhang2024rapidrobusttrajectoryoptimization,
title={Rapid and Robust Trajectory Optimization for Humanoids},
author={Bohao Zhang and Ram Vasudevan},
journal={arXiv preprint arXiv:2409.00303},
year={2024}
}
RAPTOR also includes a better integrated implementation of our previous projects:
Autonomous Robust Manipulation via Optimization with Uncertainty-aware Reachability
Wrench Analysis for Inertial Transport using Reachability
Safe Planning for Articulated Robots Using Reachability-based Obstacle Avoidance With Spheres
Bohao Zhang (jimzhang@umich.edu): Project leader.
Zichang Zhou (zhouzichang1234@gmail.com): System identification.
Jiyang Wang (realwjy@umich.edu): Linearized reachability-based contact constraints.
This work is developed in RoahmLab, University of Michigan, Ann Arbor
585 followers · starred Sep 2024
117 followers · starred May 2025
69 followers · starred Sep 2024
RAPTOR: RAPid and Robust Trajectory Optimization for Robots
See the codeDynamic locomotion for humanoid robots presents significant analytical and computational challenges due to the extensive number of linkages and degrees of freedom. This complexity results in a vast search space for feasible gaits which translates into a time-consuming process when optimizing over trajectories. In addition, the process often involves numerous hyperparameters and requires a good initial guess or a warm-start strategy, further complicating the development process. Existing methods struggle to integrate the latest hardware designs, such as actuated ankles with closed-loop mechanisms, which offer increased stability, but introduce additional constraints into the dynamics that can be challenging to represent in a computationally tractable fashion. This work introduces a generalized gait optimization framework that directly generates smooth and physically feasible trajectories. The proposed method demonstrates faster and more robust convergence than existing techniques and explicitly incorporates closed-loop constraints. The method is implemented as an open-source C++ codebase that significantly reduces computation times, facilitating dynamic locomotion for full-size humanoids. Note that RAPTOR also works for other fully actuated systems such as robotic manipulators.
To be more specific, we parameterize the trajectories for the robot states as, for example, polynomials. The decision variable of the optimization is then the coefficients of the polynomial. We sample a certain number of discrete points on the trajectory and evaluate the constraints, such as joints limits, torque limits, or collision avoidance. We use Ipopt as our optimization solver. For some of the constraints, we implement the analytical hessian so that Ipopt can converge faster.
A more detailed instruction is provided here. We recommend users to install the requirements through docker.
A more detailed instruction on how to code your own optimization problem is provided here.
Run the following command to compile all the code.
mkdir build
cd build
cmake ..
make -j4
You can find a README file with more details in each example within the Example/ folder.
We provide the following examples:
Kinova-gen3
CollisionAvoidanceInverseKinematics/: Solves an inverse kinematics problem for a given desired end-effector transformation matrix while considering joint limits and collision avoidance.CollisionAvoidanceTrajectory/: The robot arm, without any payload, plans a trajectory to reach a target configuration while avoiding obstacles and satisfying torque limits.Armour: A better re-implementation that integrates our previous work ARMOUR and WAITR, which is a provably-safe receding-horizon trajectory optimization framework.SystemIdentification/: Contains multiple examples related to system identification of a robotic arm.Digit
Talos
Unitree-G1
To cite RAPTOR in your academic research, please use the following bibtex entry:
@article{zhang2024rapidrobusttrajectoryoptimization,
title={Rapid and Robust Trajectory Optimization for Humanoids},
author={Bohao Zhang and Ram Vasudevan},
journal={arXiv preprint arXiv:2409.00303},
year={2024}
}
RAPTOR also includes a better integrated implementation of our previous projects:
Autonomous Robust Manipulation via Optimization with Uncertainty-aware Reachability
Wrench Analysis for Inertial Transport using Reachability
Safe Planning for Articulated Robots Using Reachability-based Obstacle Avoidance With Spheres
Bohao Zhang (jimzhang@umich.edu): Project leader.
Zichang Zhou (zhouzichang1234@gmail.com): System identification.
Jiyang Wang (realwjy@umich.edu): Linearized reachability-based contact constraints.
This work is developed in RoahmLab, University of Michigan, Ann Arbor
585 followers · starred Sep 2024
117 followers · starred May 2025
69 followers · starred Sep 2024