Software
STX is a ROS 2 (Jazzy) stack for small learning robots on a Raspberry Pi or a Jetson. One backend serves many robots: the core never knows which robot it's talking to. Everything robot-specific lives in two places:
- an embodiment manifest: a YAML file listing the robot's joints, limits, sensors, servo models, safety settings and postures;
- an adapter: the code for that robot's hardware. For STX-Q1 that's a Dynamixel Protocol 1.0 driver.
flowchart LR
CAD["build123d / Blender<br/>parts, renders"] --> URDF["URDF<br/>(canonical)"]
URDF --> MJCF["MuJoCo model"]
MJCF --> TRAIN["RL training<br/>(PPO, randomised)"]
TRAIN --> ONNX["ONNX policy<br/>+ policy manifest"]
ONNX --> ROBOT["Jetson<br/>ROS 2 · ros2_control · safety"]
ROBOT --> SERVOS["Dynamixel servos"]
ROBOT -. system ID .-> MAN["embodiment manifest"]
MAN --> URDF
What's built
| Area | State |
|---|---|
| Embodiment and policy manifests, validator, CLI | done |
| URDF to MuJoCo conversion, asset checks | done |
| Controller config generated from the manifest | done |
| MuJoCo/MJX training environment | done |
| Policy export and sim-to-sim gate | done |
| Dynamixel Protocol 1.0 driver (limits with read-back, scan, benchmark, alarms) | done, tested against a simulated bus |
| Safety, arbiter, deadman and fall detection | logic and tests done; ROS nodes not run yet |
| ROS 2 runtime and ros2_control hardware plugin | in progress |
| RViz and Foxglove layouts from the manifest | done |
| Servo system identification | fitter done; needs bench logs |
| 3D printer pipeline (slice, phone approval, Klipper) | done |
Safety
A walking robot with twelve servos can hurt itself or a finger, so safety is layered:
- Arming needs a person to confirm by typing the joint name. It's refused until the owner has confirmed the servo directions.
- The arbiter decides which source may command the robot (policy, teleop, posture). It drops to a safe posture if that source goes quiet.
- A deadman stops motion when the operator lets go.
- Fall detection turns torque off when the trunk tips too far.
- Servo limits are written to every servo and read back; any mismatch refuses arming. The servos' own voltage and temperature alarms stay on.
- Ctrl-C, errors and dropped sessions all turn torque off.
Built spec-first
The project is built spec-first with OpenSpec: each feature starts as a written change with tasks, and each ticked task has tests behind it. Claude Code agents do much of the work: a CAD engineer writes the build123d parts, a Blender designer handles assembly and renders, and a print operator slices and queues prints for the owner to approve.
Updated 1 December 2026