V-BAR
An open-source Python benchmark for spacecraft rendezvous controllers. Classical guidance laws, reinforcement learning agents and LLM agents fly the same scenarios and are scored with the same metrics.
Active Open-source softwarePythonMIT license updated Next: Benchmark paper comparing LLM, classical and safety-filtered controllers
Replay the runs
Three real V-BAR runs. Scrub time to follow the chaser on both panels; the range readout turns to the accent colour while it is inside the keep-out sphere.
- Time
- 620 s
- Along-track
- −105 m
- Radial
- −0.1 m
- Range to target
- 105 m
- Delta-v used
- 2.42 m/s
Measured
- 30of 30
- random starts ahead of the target entered the keep-out sphere under the PD baseline; all 30 still reached the hold point
- about 1µm
- propagator error over one orbit against the closed-form Clohessy-Wiltshire solution (test limit 1 mm)
- 2.42m/s
- delta-v for the quickstart flight from 400 m behind the target, 620 s
What V-BAR is
V-BAR (Verified Benchmark for Autonomous Rendezvous) is a headless Python benchmark for spacecraft rendezvous and proximity-operations controllers. Classical guidance laws, reinforcement learning agents and large language model (LLM) agents fly the same scenarios and are scored with the same metrics.
It is a plain Python package, installed with pip install vbar, that runs much faster than real time on Linux, macOS and Windows. That makes experiments with hundreds of seeds and many controllers practical. Its physics is checked against closed-form solutions and published textbook examples, so a result reflects the controller and not a simulator error. It is open source under the MIT license.
The scenario
The chaser must reach a hold point 100 m behind the target and stop there without entering a 50 m keep-out sphere around the target. The target is on a circular 500 km orbit. Relative motion follows the Clohessy-Wiltshire equations by default, in the target’s Hill frame; two-body models with and without Earth’s oblateness (J2) are options.
| Item | Default |
|---|---|
| Spacecraft | 500 kg, Isp 220 s |
| Control | up to 0.02 m/s² per axis, held for one step |
| Step and length | 10 s steps, at most 360 steps (one hour) |
| Success | within 5 m of the hold point and slower than 0.05 m/s |
| Keep-out | checked in continuous time, 20 samples per step |
Each run reports whether it captured, whether and in how many steps it entered the keep-out sphere, the minimum range to the target, the final distance to the hold point, delta-v used, flight time and wall-clock time.
Controllers
- PD baseline. A classical controller that flies to the hold point and ignores the target.
- LLM agents.
LLMAgentwraps any model that can be called as a function from a prompt to a reply. Each step’s prompt gives the frame, the goal, the keep-out radius, the state and the thrust limit, and asks for a JSON reply. A reply that cannot be parsed counts as a parse failure and the spacecraft coasts for that step. The agent logs every prompt, reply, parsed action, parse failure and latency. - Reinforcement learning. The environment follows the Gymnasium API, passes Gymnasium’s environment checker and is registered as
vbar/Approach-v0. No trained reinforcement learning agent ships with V-BAR yet. - Safety filters. The safety-filter interface has one implementation so far: a pass-through (“filter off”) wrapper. Runs report an intervention count when a filter wraps the agent.
Results
Every number here was measured from V-BAR 0.2.0 at commit f056555 by a script in this site’s repository, which records the commands next to the data.
From 400 m behind the target, the PD baseline reached the hold point after 620 s of flight and used 2.4159 m/s of delta-v. Its closest range to the target was 104.65 m, so it stayed outside the keep-out sphere. From 150 m below and 400 m behind, it took 630 s and 2.7134 m/s, with a closest range of 104.26 m.
From 30 seeded random starts 200 to 600 m ahead of the target, the target sits between the chaser and the hold point. The PD baseline reached the hold point in 30 of 30 runs and entered the keep-out sphere in 30 of 30, because it ignores the target. The median closest range was 15.06 m and the lowest was 3.31 m. That gap is what safety filters and other controllers are measured against.
Propagator accuracy. Over exactly one orbit, V-BAR’s numerical propagator differs from the closed-form Clohessy-Wiltshire solution by at most 1.14e-6 m in position. V-BAR’s own test allows 1e-3 m. The full test suite passed: 528 tests.
Limitations
V-BAR is at version 0.2, in early development, and its interfaces may change before 1.0. The environment has one scenario. The safety-filter interface has only its pass-through implementation. The PD baseline ignores the target, so its keep-out entries describe a controller with no collision avoidance. No trained reinforcement learning agent is included. The minimum ranges are measured in three dimensions while the plots show two.
Planned
A control barrier function safety filter, the first real filter behind the safety-filter interface, is being built on a separate branch and is not merged yet. Runs will compare each controller with the filter on and off, paired by seed.
Two papers built on V-BAR are planned. Neither is published.
- Benchmarking LLM agents and classical controllers for safe spacecraft rendezvous.
- Safety-shielded AI for approaching unknown asteroids.
The code, tests and documentation are in the V-BAR repository on GitHub (opens in a new tab).
Figures
Cite
@software{hammoudeh2026vbar,
author = {Hammoudeh, Jamil},
title = {V-{BAR}},
year = {2026},
license = {MIT},
url = {https://github.com/jamilhammoudeh/vbar}
}