# mjorbit: A Simulation Framework for Space Robotics

Robotics.world

> Space robots must dock, grasp tumbling targets, and manipulate payloads while subject to orbital mechanics, gravity-gradient torques, drag, and solar radiation pressure over long time horizons.

**arXiv**: 2609.08010 · Preprint · not peer-reviewed

**Published**: 2026-09-07

**Authors**: John Z. Zhang, Joris Verhagen, Fausto Vega, Patrick McKeen, Zachary Manchester

## In plain words

Space robots must dock, grasp tumbling targets, and manipulate payloads while subject to orbital mechanics, gravity-gradient torques, drag, and solar radiation pressure over long time horizons.

## AI summary

## Overview

**Research area:** Space robotics simulation, sitting at the intersection of astrodynamics (orbit propagation, environmental perturbations) and robotics physics engines (articulated multibody dynamics, contact).

**Technical level:** Intermediate. The framework and API are approachable for anyone familiar with MuJoCo, but Section IV contains advanced numerical analysis (Encke's method, symplecticity, floating-point conditioning) aimed at specialists.

**Scope:** The paper presents *mjorbit*, an open-source simulation framework that extends the MuJoCo physics engine (and its GPU variant MJWarp) with orbital dynamics, spacecraft actuators and sensors, and environmental perturbations, validated on four on-orbit control and learning tasks.

## What This Paper Is About

Space robots must dock, grasp tumbling targets, and manipulate payloads while subject to orbital mechanics, gravity-gradient torques, drag, and solar radiation pressure over long time horizons. Existing tools split this problem: astrodynamics simulators model orbits and the space environment but lack contact and multibody dynamics, while robotics simulators handle contact and articulation but ignore orbital mechanics. The paper's goal is a single, efficient framework that couples both, remains accurate over hours of simulated time, and works in single precision on GPUs so it can generate training data at scale.

## Key Contributions

1. **A coupling framework** that places an existing robotics engine inside an orbit-following reference frame, with a cancellation-resistant differential-gravity formulation (Encke's method) and per-body wrench assembly for drag, solar radiation pressure, J2, gravity gradient, and magnetic torques.
2. **An empirical trade study** of three frame conventions (ECI, orbit-following, LVLH) and two integrator choices (first-order implicit and RK4) under double and single precision, concluding the orbit-following frame is strictly preferable.
3. **Two backends behind one MuJoCo-like Python API**: a low-latency C++ CPU implementation for real-time control and a high-throughput GPU implementation (*mjorbit-warp*) built on MJWarp for parallel data generation and policy learning.
4. **Four worked on-orbit examples** covering multibody attitude control, autonomous docking, capture with nadir pointing, and Astrobee grasping, using both model-predictive control (MPPI) and reinforcement learning.

## Main Findings

- **The orbit-following frame wins:** In double precision, RK4 stays accurate through 3 orbits in all three frames, but the implicit integrator reaches sub-millimeter maximum error only in the orbit-following frame. In single precision, ECI produces large errors even with RK4, while the orbit-following frame achieves millimeter-level accuracy with a first-order integrator. LVLH is penalized because its Coriolis term breaks the separable structure that makes semi-implicit Euler symplectic.
- **Zero-gravity simulation diverges quickly:** Two free-floating boxes collide and agree through the impact event, but trajectories visibly separate after about 0.2 hours. The zero-g baseline drifts without bound, whereas the orbit-coupled bodies oscillate boundedly and recross at T/2.
- **Floating-point conditioning is a real hazard:** In a 400 km LEO case with a reference radius of about 6.8×10^3 km and meter-scale body offsets, naively differencing two gravity vectors discards about 6.8 of the roughly 7.2 significant digits available in single precision, burying the ~10^-6 m/s^2 differential gravity in rounding noise. The Encke reformulation avoids this exactly, with no Taylor truncation.
- **Accuracy matches Basilisk:** On a bimanual free-flying manipulator with matched RK4, the CPU backend (double precision) reproduces the Basilisk MJScene trajectory to ~10^-7 m relative body-position error over a half orbit; the single-precision GPU path floors near ~10^-3 m. The first-order *implicitfast* integrator drifts to ~1 m regardless of precision, so RK4 is needed for high-fidelity attitude over orbital timescales.
- **Throughput gains of two to three orders of magnitude:** The native-threaded CPU rollout sustains ~0.55 (RK4) to ~1.6 (*implicitfast*) million steps per second at eight threads; *mjorbit-warp* reaches ~1.7 to ~6.5 million on an RTX 3080. Basilisk, whose independent scenes are launched through Python threads and serialized by the GIL, is limited to ~10^3 steps per second.
- **Attitude control without attitude actuators:** A 40 kg, 0.8 m bus with two three-degree-of-freedom arms (8 actuated joints total) slews 60° about the (1,1,1) axis in roughly 30–40 s using an MPPI planner (5 spline knots, 128 rollouts, 14 s horizon, replanned at ~3 Hz), then holds attitude against residual J2, drag, and SRP torques.
- **Docking succeeds with horizon-sensitive tuning:** A 7,000 kg chaser with ±400 N thrusters and ±150 N·m reaction wheels docks to a 420,000 kg target at 10 Hz replanning, latching below 0.2 m separation and 5° attitude error within a 120 s episode. Large slews require horizons long enough to brake with only ~0.005 rad/s^2 of wheel authority.
- **Orbital physics changes task outcomes:** For a 400 kg captured payload near 90° from local vertical, the mjorbit-based MPPI planner holds nadir over a two-hour episode with 2.2 ± 1.2° final-window error across five seeds; the zero-gravity planner fails on 4 of 5 runs at 30.2 ± 15.3°.
- **Contact-rich learning at scale:** An Astrobee (9 kg) trained with 1,024 parallel GPU simulators in 60 s (600-step, 10 Hz) episodes achieves an 88% grasp-and-hold success rate on a 5 kg cargo module drifting 1–2 m ahead.

## Methodology in Plain English

The core idea is to keep MuJoCo doing what it already does well—articulated bodies, constraints, and contact—while reinterpreting its world frame as a frame that follows a reference orbit rather than an inertial one. A separate propagator advances that reference orbit around a configurable central body. Each body then receives an external wrench consisting of the *difference* between gravity at the body and gravity at the reference point, plus drag, solar radiation pressure, thruster forces, gravity-gradient torque, magnetic torque, and gyroscopic reaction torques from wheels and CMGs. These wrenches are mapped into generalized forces through the Jacobian transpose, so free bodies, articulated spacecraft, and contact-coupled systems all use the same path.

The mass-weighted average of non-gravitational accelerations is fed back into the reference orbit so the origin tracks the system's center of mass; without this, sustained thrust or drag would erode the local-coordinate conditioning.

The team first compared frame and integrator options empirically, using Basilisk with its highest-order Runge-Kutta-Fehlberg 7(8) integrator as independent ground truth at a 0.1 s step. They then built the CPU backend as a MuJoCo engine plugin and the GPU backend as fused MJWarp kernels implementing the same four-stage step: assemble loads, solve multibody dynamics, advance actuators and orbit, refresh environment caches. Finally, they exercised the framework on four scenarios using a spline-knot MPPI planner on the CPU and GPU-parallel reinforcement learning.

## Why This Matters

The paper addresses a structural gap: robotics progress in contact-rich manipulation has not transferred to space missions because the simulators lack orbital mechanics, while astrodynamics tools lack contact. Providing both in one open-source, MuJoCo-compatible package lowers the barrier to using modern learning and MPC methods for space tasks, and the throughput numbers make large-scale policy training practical rather than aspirational.

Real-world applications:

- **On-orbit servicing:** autonomous rendezvous, docking, and repair of client spacecraft.
- **Active debris removal:** detumbling and grasping non-cooperative targets, including soft-net capture and adhesive grasping scenarios cited in the paper.
- **In-space assembly and manufacturing:** manipulating articulated payloads and stabilizing structures after capture.
- **Free-flyer operations:** attitude control and payload handling using arms instead of dedicated attitude actuators, as in the Astrobee and dual-arm examples.

Industry relevance: the framework is compatible with existing MuJoCo models and control stacks, runs on commodity GPUs, and offers an explicit accuracy–throughput trade-off between RK4 and *implicitfast*. That makes it usable for mission concept studies, controller validation, and reinforcement-learning data generation without maintaining separate astrodynamics and robotics toolchains.

## Future Directions

- **Perception sensors:** adding cameras and lidar as first-class sensors with sun- and eclipse-consistent lighting, plus hooks for external renderers, to enable perception-in-the-loop docking and capture. MuJoCo's native renderer already produces RGB, depth, and segmentation images of mjorbit states, but these are not yet exposed as sensors.
- **Better integrators:** investigating variational schemes that preserve accuracy without the cost of higher-order integration, since the paper only considers first-order implicit and explicit integrators.
- **Hardware and flight validation:** the current validation is sim-to-sim, so policies realized in mjorbit need hardware tests and on-orbit demonstration.
- **Beyond proximity operations:** each world carries a single reference orbit, so the local-coordinate assumption holds only at proximity-operations scale; the GPU backend's single-precision clock also loses timing accuracy for time-keyed environment models (sun, eclipse, magnetic field) over multi-hour device-resident rollouts.

## Target Audience

Robotics researchers working on contact-rich manipulation, locomotion, or reinforcement learning who want to extend their pipelines to space; spacecraft guidance, navigation, and control engineers who need multibody and contact dynamics that traditional astrodynamics tools do not provide; and students or engineers building sim-to-real workflows for servicing, assembly, or debris-removal missions. The numerical analysis in Section IV will be most valuable to practitioners implementing their own coupled simulators, while the examples and Python API make the framework accessible to those who mainly want to run experiments.

## Authors’ abstract

This paper presents a general framework for simulating multi-body space robots with contact. We bring efficient, large-scale robot simulation to in-space servicing, assembly, and manufacturing applications. First, we perform an empirical trade study of methods for coupling orbit propagation with existing robotics simulation frameworks. Next, we present mjorbit, a general, flexible, and performant framework built on the MuJoCo engine widely used in robotics, to which we add…

[The full abstract on arXiv](https://arxiv.org/abs/2609.08010)

[Read the original paper](https://arxiv.org/abs/2609.08010)

## Related papers

- [Fast and Robust Temporal Logic Planning via ADMM-based Trajectory Optimization](https://robotics.world/paper/fast-and-robust-temporal-logic-planning-via-admm-based-trajectory-2609.23037) 2026-09-19 · cs.RO · Also by Joris Verhagen, Zachary Manchester
- [Resilient Motion Planning for Free-Flying Space Robots under Actuator Failures](https://robotics.world/paper/resilient-motion-planning-for-free-flying-space-robots-under-actuator-2609.20407) 2026-09-17 · cs.RO · Also by Joris Verhagen
- [LLA-MPPI: Rapidly Adaptive Whole-body Control of Legged Robots with GPU-Accelerated Parallel Simulations](https://robotics.world/paper/lla-mppi-rapidly-adaptive-whole-body-control-of-legged-robots-with-gpu-2610.10465) 2026-10-07 · cs.RO · Also by Zachary Manchester
- [ElastiQP: An Always-Feasible QP Solver for Constrained Robot Control](https://robotics.world/paper/elastiqp-an-always-feasible-qp-solver-for-constrained-robot-control-2609.19080) 2026-09-16 · cs.RO · Also by Zachary Manchester
- [RoboCousin: Build Your Own Simulation Playground for Robust Bimanual Robotic Manipulation](https://robotics.world/paper/robocousin-build-your-own-simulation-playground-for-robust-bimanual-2609.08339) 2026-09-08 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/mjorbit-a-simulation-framework-for-space-robotics-2609.08010
