Anchor Bench is an early-stage, configuration-driven toolkit for robot actuator workflows. It validates a YAML task, runs the corresponding implementation, and writes reproducible artifacts to a dedicated output directory.
The current task types are:
| Task type | Purpose |
|---|---|
trajectory_v1 |
Generate piecewise actuator command trajectories. |
actuator_sys_id |
Fit actuator parameters by replaying recorded data in replicated Newton worlds. |
training |
Prepare mapped trajectories and train recurrent actuator models. |
Anchor Bench also provides a Parquet dataset loader with revision-pinned Hugging Face sources, a Newton USD adapter, and optional run tracking through the bundled MLflow backend.
Anchor Bench requires Python 3.10 or newer and uses uv for its environment and dependencies:
uv syncRun the included trajectory example:
uv run anchor-bench \
--config examples/trajectory/so101_motion_pack.yaml \
--output outputs/so101_motion_packThe command validates the configuration and writes config.yaml,
trajectories.parquet, and a .completed marker under the selected output
directory. See Running tasks for output selection,
rerunning completed tasks, configuration behavior, and logging controls.
Task lifecycle and rate-limited progress logs are written to standard error.
Pass --verbose (-v) for debug output or --quiet (-q) for errors only.
Install contributor tools with:
uv sync --extra devThe documentation index links to the supported workflows and reference guides:
| Guide | Covers |
|---|---|
| Running tasks | CLI usage, output directories, completion markers, and logging. |
| Trajectory generation | Hold, transition, sine, and chirp command trajectories. |
| Actuator system identification | Newton replay and actuator parameter fitting. |
| Training actuator models | Recurrent model training and validation. |
| Dataset loading | Parquet input, resampling, and name mapping. |
| MLOps backends | MLflow tracking and custom tracking backends. |
Load and uniformly resample a long-form Parquet dataset:
from anchor_bench.data import DatasetLoader
dataset = DatasetLoader.load("recording.parquet", dt=0.02)Load a USD model and its initial state:
from anchor_bench.core import NewtonSimulationContext
context = NewtonSimulationContext("robot.usda")
model, state = context.load()
context.capture_step_graph(dt=0.01, substeps=2)
context.step(dt=0.01, substeps=2)capture_step_graph captures a reusable Warp graph for the requested interval
when the solver supports capture. step then advances every world with that
graph when its dt and substeps match, or executes the interval eagerly.
The state property is the canonical input and current-result buffer. The
state_next property is the stable output buffer used while computing a step;
after each complete interval, the current result is available through state.
NewtonSimulationContext.load() constructs the model and state; it does not
run a simulation.
Run the default unit suite and static checks from the repository root:
uv run pytest
uv run ruff check
uv run ruff format --check
uv run pyrightTests marked integration are excluded by default. Run them explicitly when
the required external data and runtime are available:
uv run pytest -m integration