cs.ROApr 5, 2026

frax: Fast Robot Kinematics and Dynamics in JAX

Authors: Daniel Morton, Marco Pavone

Organizations: Daniel Morton and Marco Pavone are with the Departments of Mechanical Engineering and Aeronautics & Astronautics, Stanford University, Stanford, CA 94305.

Abstract

In robot control, planning, and learning, there is a need for rigid-body dynamics libraries that are highly performant, easy to use, and compatible with CPUs and accelerators. While existing libraries often excel at either low-latency CPU execution or high-throughput GPU workloads, few provide a unified framework that targets multiple architectures without compromising performance or ease-of-use. To address this, we introduce frax, a JAX-based library for robot kinematics and dynamics, providing a high-performance, pure-Python interface across CPU, GPU, and TPU. Via a fully-vectorized approach to robot dynamics, frax enables efficient real-time control and parallelization, while supporting automatic differentiation for optimization-based methods. On CPU, frax achieves low-microsecond computation times suitable for kilohertz control rates, outperforming common libraries in Python and approaching optimized C++ implementations. On GPU, the same code scales to thousands of instances, reaching upwards of 100 million dynamics evaluations per second. We validate performance on a Franka Panda manipulator and a Unitree G1 humanoid, and release frax as an open-source library.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Batched Differentiable Rigid Body Dynamics in PyTorch for GPU-Accelerated Robot Learning

    May 29, 2026Yue Wang, Yanran Xu, Wenbo Wu +2Multibody DynamicsRobot Dynamics Learning

  2. Fast Asymptotically Optimal Kinodynamic Planning via Vectorization

    Jul 4, 2026Yitian Gao, Andrew Lu, Zachary KingstonConstrained Motion PlanningKinodynamic Motion Planning

  3. FlashNeRD: Performance-First Contact-Rich Neural Robot Dynamics

    Oct 6, 2026Mohammadmehdi Ataei, Mohammad Amin Nabian, Jie Xu +9Robot Dynamics LearningRobotics Simulation