Skip to main content

RVDLAB

Open-source infrastructure for spacecraft rendezvous and docking experiments.

Website Documentation PyPI Issues


RVDLAB connects research controllers to rail-based ground testbeds for spacecraft rendezvous and docking. It brings together a C++ experiment runtime, a Python hardware node, and a terminal interface for configuring the platform, running controllers, supervising motion, and recording experiments.

A physical experiment involves more than computing the next control input. Measurements arrive over a network, drives take time to respond, and several clients may need access to the same platform. RVDLAB gives these interactions explicit interfaces: physical units, timestamped feedback, exclusive control ownership, command deadlines, and defined stopping behavior.

The source is maintained in RVD-RailBench (rvd-railbench). The included PFCR controller provides a reference integration; the runtime and device interfaces are structured so that controller development and hardware adaptation can be carried out separately.

What you can do

  • Develop without a rig. Run local simulations with ideal, bounded-motion, or PLC-style plant models, configurable noise and delay, and fault injection.
  • Drive a run from Simulink. Stream position and velocity references through the external control mode, with the runtime handling rail mapping, motion supervision, and experiment records. See the Simulink guide and the v0.8.0 example.
  • Operate a shared testbed. Use an authenticated hardware node to manage device access, stream controller targets, and execute waypoint tasks.
  • Run experiments from the terminal. Configure rail geometry and coordinate mapping, position the platform, launch rendezvous runs, and inspect telemetry in RVDLAB. The rendezvous interface shows signed X/Y/Z components of the Hill model velocity, plus rail encoder and relative motion-capture velocities when sensor data is available.
  • Keep an inspectable experiment record. Save resolved settings, controller inputs, trajectories, events, model hashes, and build metadata; verify recorded controller behavior offline.
  • Adapt the integration to your laboratory. Describe axes, units, register maps, limits, and parking behavior in a hardware profile, extending the driver where device semantics differ.

Quick start

Use Python 3.10 or newer in a virtual environment. The release packages provide prebuilt wheels with the C++ runtime for Windows x86-64, Linux x86-64 (manylinux), and macOS 11+ on Apple Silicon (ARM64). For other platforms or architectures, see Build from source; build and runtime compatibility must be validated separately.

Install the combined package, check the installation, and open the terminal interface:

python -m pip install "rvd-railbench[node]"
rvdlab --check
rvdlab

rvdlab --check checks that the local simulator starts and that the policy and configuration are available. The package includes the C++ runtime binaries, the reference policy, default configurations, the terminal interface, and rail-node. The node extra supplies the cryptography dependency used for the node's TLS identity.

In the interface, configure a rail profile in Rail Setup, then choose a local simulation in Autonomous Rendezvous. A physical platform is optional for this workflow.

First experiment

Run the built-in approach in simulation and verify the recorded controller outputs:

rvdlab demo first-experiment

Choose a new directory. The command prints the result and record path. The zero-noise reference run reaches the simulator's DOCKED / CONTACT condition and passes controller replay. To try your own Simulink model, export the matching example to a new directory:

rvdlab example simulink my-simulink-example

Open that directory in MATLAB with Simulink and run [out, experimentDir] = run_rvdlab_simulink_demo;. The sample runs 17 steps and writes an experiment record. The v0.8.0 Windows and Linux release archives also include the example in examples/simulink.

For an X or XY stage, follow the axis-source guide. To reproduce tracking metrics from a physical run, download the 500 mm approach dataset and scoring script.

Run rvdlab update to upgrade a pip-installed release in its current Python environment.

The GitHub main branch can include changes not yet available on PyPI; use a source checkout for unreleased changes. Available installation and build options are documented in the development guide.

System architecture

The research computer runs the controller and operator interface. A separate node, connected to the PLC, owns hardware I/O. This keeps device-specific communication and motion supervision close to the equipment while allowing experiments to run from another machine.

RVDLAB system architecture

Figure 1. System architecture. The controller connects to a local Python bridge; the bridge communicates with rail-node over HTTPS, and rail-node accesses the PLC over Modbus TCP. Motion-capture data follows a separate VRPN path.

Component Responsibility
pfcr_core Reference-controller mathematics and policy inference.
rvd_runtime / rail_main Configuration, coordinate mapping, controller execution, runtime supervision, simulation, bridge I/O, and experiment records.
tui/rvdlab Rail profiles, manual motion, rendezvous runs, telemetry, and experiment management.
Python bridge / NodeClient Translate the runtime's READ, SEND, and HOLD operations into node requests.
node/rvd_railnode Exclusive device ownership, feedback polling, motion tasks, Modbus access, optional VRPN reception, and stopping.
rail_replay Integrity checks and offline verification of recorded controller inputs and outputs.

Remote clients authenticate with a personal token and the node's CA certificate. One control thread owns hardware reads, writes, arming, and stopping; request handling, event logging, and motion-capture reception are handled separately.

The controller bridge maps three translation coordinates to physical, simulated, or fixed axes. For physical Modbus axes it uses PLC encoder positions. Hardware profiles can also describe pitch, yaw, and roll. Optional VRPN poses are available to the interface independently; they do not currently feed the PFCR control loop. See hardware integration for the exact interfaces.

Motion lifecycle

A control session begins with state checks and an exclusive lease. The lease identifies the client and the axes it may operate. The client maintains a heartbeat while the node checks feedback and commands locally.

RVDLAB motion lifecycle

Figure 2. Motion lifecycle. State checks and lease acquisition establish control; waypoint tasks or streamed setpoints drive motion; feedback and fault checks govern execution and stopping.

Waypoint tasks move through a sequence of targets. The node generates intermediate setpoints and confirms arrival using successive fresh feedback samples. This mode supports positioning and predefined moves.

Streaming control accepts continuously updated position and speed targets from a controller. Increasing sequence numbers, deadlines, travel limits, and target-horizon checks constrain what the node accepts.

An acknowledged command confirms completion of the node call; reaching a target requires feedback confirmation. Lease expiry, an expired stream deadline, or an operator stop revokes control. Feedback loss, stalls, drive dropouts, and interlock errors can latch a fault.

Stopping behavior accounts for the mechanics of the platform. Axes configured to hold a gravity-loaded structure remain enabled during ordinary stop and fault handling. Park moves enabled held axes to configured resting positions before releasing their drives. See safety and stop behavior before operating equipment.

Build and run from source

The preset workflow requires a C++17 compiler, CMake 3.21 or newer, and Ninja. Python 3.10 or newer is required for the interface and node. On Windows, use an x64 Visual Studio developer shell or a configured MinGW toolchain.

git clone https://github.com/Strtus/rvd-railbench.git
cd rvd-railbench
cmake --preset release
cmake --build --preset release
ctest --preset release
python -m pip install -e "./node[test]" -e "./tui[test]"
rvdlab --root . --check
rvdlab --root .

The standalone C++ simulator and replay tool do not require Python at runtime. ONNX Runtime is optional; its build instructions are in the development guide.

Record a short simulation

From the repository root:

build/release/rail_main --config configs/rail.ini --config configs/pfcr_dqp.ini --config configs/simulation.ini --fast --max-steps 12 --experiment-dir experiments/example

This example uses a virtual clock and stops after at most 12 controller steps. Reaching that limit is reported as LIMIT_REACHED with exit code 1; the resulting completed record can still be inspected and replayed. Use a new experiment directory for each run. On Windows, append .exe to the executable name.

build/release/rail_replay experiments/example

Configuration files are applied in order, and command-line arguments take precedence. Rail geometry and coordinate mapping, controller settings, and simulation settings are kept in separate files. See configuration and experiments.

Experiment records and replay

An experiment directory preserves the inputs needed to inspect what happened and check the controller's recorded behavior.

Record Contents
metadata.json, configuration.ini Resolved settings, model and artifact hashes, backend, build identity, seed, and clock information.
trajectory.csv Measured positions, references, encoder data, and trajectory telemetry.
initial_state.csv, controller.csv Full-precision initial state, controller inputs, expected outputs, and flags.
events.jsonl, summary.json State transitions, faults, outcome, step count, and intervention counts.
checksums.sha256 Completion-time integrity manifest for the runtime records.
commands.jsonl Per-step command intent, dispatch, acknowledgments and fault details.
rail_node.json, sensors.csv Per-axis sources, a public configuration snapshot when available, encoder samples and optional mocap observations.
run_manifest.json SHA-256 inventory covering runtime checksums, diagnostic records and available node files.

rail_replay verifies the record and feeds the saved inputs back through the controller without issuing hardware commands. It compares numerical outputs and status flags; exact replay requires the same backend and toolchain. It does not reconstruct the physical motion of the testbed.

Run rvdlab verify EXPERIMENT_DIR to check a local or external-controller record offline. It reports the more limited coverage of older records. On node runs, inspect each axis's execution and feedback source in rail_node.json before classifying a result as physically measured. The legacy hardware: true flag identifies a bridge connection, including connections to a node simulator.

Connect your laboratory

Start by exercising the node interface with its simulator. The following commands create a local node and start it in read-only mode:

rail-node init --directory rail-node-demo --address localhost --users researcher
rail-node serve --config rail-node-demo/node.json

In another terminal, inspect the node or connect RVDLAB:

rail-node status --config rail-node-demo/node.json --diagnostics
rvdlab --node rail-node-demo/access/researcher/connection.json

Without --profile, initialization creates simulated axes. Motion remains disabled until explicitly enabled in the node configuration or service arguments.

For a physical platform, provide a validated hardware profile describing axis directions, encoder scales and zero points, travel and speed limits, register addresses, readiness checks, and holding or parking behavior. Translation uses metres; rotation uses radians. Keep site-specific addresses, credentials, and TLS keys outside the repository, and give each user only their own access folder.

The supplied hardware backend targets Modbus TCP devices. Equipment with different command or stop semantics may require driver changes alongside configuration. Follow the hardware integration guide for read-only probing, node setup, commissioning, and remote access.

Extend and contribute

Controllers implement IController. The included PFCR adapter operates on Hill-frame state, while the runtime handles the mapping into rail coordinates. New controllers should define their state, output, timing, and configuration requirements explicitly and include tests for their integration.

Contributions from other laboratories are particularly useful: device adapters, sanitized example profiles, reproducible fault reports, controller integrations, and documentation of commissioning procedures. Open an issue with the relevant software version, platform description, configuration, and a minimal reproduction. Remove credentials and private network details from shared records.

Run the node and interface test suites separately:

python -m pytest -c node/pyproject.toml node/tests -q
python -m pytest -c tui/pyproject.toml tui/tests -q

CTest covers numerical regression, runtime behavior, simulation, bridge integration, and replay. The Python suites use simulated devices and local test services. The development guide documents the checks; the baseline notes record the original numerical results and their limitations.

Hardware safety

RVDLAB is research software for supervised ground experiments. Configure and verify units, travel, speeds, feedback timing, drive behavior, interlocks, and resting positions for the actual rig before enabling motion. Simulation tests provide software evidence; physical validation requires measurements on the deployed system.

Keep physical emergency stops, drive protections, and PLC watchdogs independent of the host process. Software holding depends on drive power. Review the safety guide, including fault recovery and held-axis behavior, as part of commissioning.

License

Licensed under the Apache License 2.0.

Metadata

Release files for rvd-railbench 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rvd-railbench 0.8.0
File Size Uploaded Provenance Actions
rvd_railbench-0.8.0.tar.gz 2.2 MB With provenance Details for rvd_railbench-0.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rvd-railbench 0.8.0
File Interpreter ABI Platform Actions
rvd_railbench-0.8.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for rvd_railbench-0.8.0-py3-none-win_amd64.whl
rvd_railbench-0.8.0-py3-none-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.26+ x86-64 Details for rvd_railbench-0.8.0-py3-none-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
rvd_railbench-0.8.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for rvd_railbench-0.8.0-py3-none-macosx_11_0_arm64.whl

Total release size: 8.0 MB

Release files / rvd_railbench-0.8.0.tar.gz

Download URL rvd_railbench-0.8.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
af282bfba81c01b0100f6819264f221b511f25e607199e34ebc925c37cda5f06
BLAKE2b-256 checksum
How to use checksums
50f1e93f3e0ac5e90f54c013d6202a489aa661d91fb9e918cf9f2fc4b6138892
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / rvd_railbench-0.8.0-py3-none-win_amd64.whl

Download URL rvd_railbench-0.8.0-py3-none-win_amd64.whl
Size 1.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
8058eebcd92d8681e8aa64ae2deeafb79d496d8fdf0591b2ae45bac43351c42c
BLAKE2b-256 checksum
How to use checksums
44493e6652d727ffefc838de84fe0b0a120c9d48d89c46e63d8f23d01cb32b7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / rvd_railbench-0.8.0-py3-none-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl

Download URL rvd_railbench-0.8.0-py3-none-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags Linux glibc 2.26+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6814a86e5bbd1271093985a95df041c1ac59341ea22b3e8e20c8a8c8c5dcf16a
BLAKE2b-256 checksum
How to use checksums
bbc5c60e58a028909b6a65325f06e50df555385fd3b466807ab673c0712afe49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / rvd_railbench-0.8.0-py3-none-macosx_11_0_arm64.whl

Download URL rvd_railbench-0.8.0-py3-none-macosx_11_0_arm64.whl
Size 1.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a6ff08fd7307dea6eda2237ba36f756fbf421ed10ebf21d9bf02d50c94764822
BLAKE2b-256 checksum
How to use checksums
3491507263c941c19f38d6eba9a2d2cb1dfc1138439737eb32afbcde20cafb11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for rvd-railbench 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for rvd_railbench-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page