Robotics.

Control real manipulators, humanoids, and mobile bases over one recorded protocol surface — then compare twin vs physical runs, diagnose faults, fine-tune policies, and promote versioned skills.

Real robot drivers (SUPPORTED_ROBOT_DRIVERS)

Physical machines connect over loopback USB/LAN drivers in the local host (packages/runtime/local-host/robot-ops.mjs) or WebSerial in the browser workbench, using explicit world.tsx unit bindings and standing grants:

driverrobotstransport & protocoldefault port
franka-fciFranka Research 3 (FR3), Pandalibfranka FCI TCP + 1 kHz UDP1337
unitree-sdk2-rosbridgeUnitree G1, H1, Go2, Z1Unitree SDK2 LowCmd/LowState9090
ur-rtdeUniversal Robots UR3e/5e/10e/16eRTDE (30004) + URScript (30002)30004
xarm-tcpUFACTORY xArm 5/6/7, Lite 6xArm TCP control502
ros2-rosbridgeROS 2 Humble/Jazzy, Jackal J100Rosbridge WebSocket9090
feetech-sts-serialSO-101, SO-100, LeRobot armsFeetech STS/SCS serial busserial path
centaur-link-serialCommandAGI Centaur-001, OpenArm 2.0Teensy 4.1 USB serial bridgeserial path

List registered robot drivers anytime from disk or CLI: commandagi robot drivers.

Importing URDF/MJCF and exporting industrial programs

  • Import descriptions cleanly: commandagi robot import <file.urdf|xacro|xml> [--into DIR] [--tip LINK] [--gripper J|--no-gripper] [--max-velocity RAD_S] [--decompose] converts existing URDF, xacro, or MJCF models into devices/<name>/definition.tsx files ready for 240 Hz simulation or physical unit placement.
  • KUKA KRL & ABB RAPID exchange: Plan trajectories on the digital twin, inspect joint clearances, and compile controller files offline:
shell
commandagi robot program export worlds/cell/world.tsx --unit arm-1 \
  --run runs/20261104t1000-plan --language krl --motion linear
commandagi robot program read worlds/cell/world.tsx --unit arm-1 programs/pick.mod

Twin vs real trajectory inspection and run diagnosis

Compare any executed run against a simulated twin trajectory (inspectRunTrajectory) or generate an automated failure diagnostic (diagnoseRobotRun):

shell
# Extract 3D trajectories, compute twin divergence, or project into camera space
commandagi robot trajectory runs/real-01 --compare runs/twin-01 --color error
commandagi robot trajectory runs/real-01 --camera '{"fx":610,"fy":610,"cx":320,"cy":240}'

# Diagnose stalls, missed grasps, joint/torque limit excursions, or twin drift
commandagi robot diagnose runs/real-01 --twin runs/twin-01 --bench-top 0.02 --write

Running with --write records diagnosis.json inside runs/real-01/ naming exact timestamps, offending joints, or twin-gap divergers without mutating past streams.

Policy fine-tuning (finetune) and Gym / LeRobot

Collect successful and failed pick-and-place episodes across runs and fit updated linear/ridge policy weights (policies/*.policy.json) directly on disk:

shell
commandagi robot finetune --runs runs/ --out policies/ --name pick-v2 --contrastive --holdout 0.2
  • --contrastive applies positive/negative outcome weighting so failed contacts penalize unsafe joint velocities.
  • When training external VLA or RL policies in Python, install commandagi[gym] (CommandAGIEnv) or commandagi[lerobot] (commandagi.lerobot) to stream live or simulated episodes with identical observation schemas.

Versioned skill libraries (robot skill)

Promote verified trajectories or policy checkpoints into composable, robot-compatible skill manifests stored under skills/robot/:

shell
commandagi robot skill promote --name pick-cube --runs runs/r1,runs/r2 --robots so-101,fr3 --tags grasp
commandagi robot skill list --robot so-101 --min-pass-rate 0.85
commandagi robot skill compose --name pick-and-place --steps pick-cube,place-bin --robots so-101
commandagi robot skill replay pick-cube --version 2 --time-scale 0.5

Physical vs twin honesty boundary

All 7 real-robot host drivers currently report verification level loopback (0 drivers hold bench or hardware commissioning sign-off today). A physical run sets reality: "physical", requires a unit standing grant, records every command before dispatch, and opens disarmed. Use commandagi calibrate show|rezero|camera, commandagi testplan check|run, and commandagi rollout start|advance|rollback to separate bench validation strictly from twin runs.