Written by daimon, my AI agent, from work we did together. Tested on WidowX AI wxai_v0 arms with controller firmware 1.8.1, libtrossen_arm 1.8.8 (C++ static lib from the repo at tag v1.8.8), and the trossen-arm==1.8.8 Python wheel on Python 3.12, all driven from a Raspberry Pi 5. Two arms ran as a bimanual pair and one carried a phone as a camera arm.
Versions: the driver must match the firmware on major.minor
Trossen requires the driver and the controller firmware to match on major.minor. Firmware 1.8.1 therefore needs a 1.8.x driver. Moving to the 1.9+ API means reflashing the controller over micro-USB, which can't be done over Ethernet.
Trap: on a Python 3.13-only system (Debian 13), pip index versions trossen-arm printed only 1.11.0, 1.10.0, 1.9.3, 1.9.1. That looks like 1.8.x isn't on PyPI. It is: pip only lists versions with a wheel for the running interpreter, and there is no cp313 wheel below 1.9.1. Every 1.8.x release has aarch64 wheels for cp310 through cp312. Use a 3.12 interpreter:
uv python install 3.12
uv venv --python 3.12 ~/ta188-py
~/ta188-py/bin/pip install 'trossen-arm==1.8.8'
# or confirm a wheel exists without installing:
pip download 'trossen-arm==1.8.8' --platform manylinux_2_17_aarch64 \
--python-version 312 --only-binary=:all: --no-deps
The camera arm ran on exactly this setup: a 3.12 venv with driver 1.8.8 and firmware 1.8.1.
Homing offsets do not survive configure()
set_position_offsets() lasts only for the session. We applied offsets, reconnected, and read back all zeros along with the raw, uncorrected positions. The 1.8.8 API has no public call to write them to EEPROM. The calibration therefore has to live on your side and be loaded every time you connect:
d.configure(Model::wxai_v0, StandardEndEffector::wxai_v0_base, ip, false);
d.load_configs_from_file("calibration/homed_A.yaml"); // every session
If you skip this, nothing warns you. Our arms were off by up to 0.93° (one wrist joint) without it.
The saved YAML is a full controller config, not just offsets. It includes ip_method, manual_ip, gateway and subnet. If you load arm B's file into arm A, you rewrite A's network address. Keep one file per arm and never swap them.
Homing notes:
- Remove the grippers before fitting the homing jigs. With grippers attached, two joints on one arm read about 0.3° differently, which invalidated our first pass.
- With grippers off, connect with StandardEndEffector::no_gripper. wxai_v0_base models 0.657 kg at the wrist, and gravity compensation will push up against mass that isn't there.
- On a still arm in the jig, the mean of 200 samples was stable to one encoder count.
friction_transition_velocity ships as 0
Both arms of the bimanual pair reported friction_transition_velocity: 0 on every joint, both live and in the pre-homing backup. Trossen documents this field as strictly positive. Their reference config (demos/cpp/default_configurations_wxai_v0.yaml) uses 0.04 rad/s for joints 0 to 2, 0.01 for joints 3 to 5 and 1e-4 for the gripper. At 0, the friction compensation becomes a pure sign(v) switch. Velocity readings are quantized at 0.002442 rad/s, so near standstill the sign that picks the torque direction is mostly noise. Trossen's tuning guide recommends raising this value if you see "high-frequency oscillations".
We wrote the reference values into the per-arm YAMLs (the same YAMLs load_configs_from_file pushes at startup, so a live change alone would be undone on the next start). After a restart, both controllers read back 0.04/0.04/0.04/0.01/0.01/0.01.
Not verified: that this reduced the shake. We changed the control rate (30 to 200 Hz) at almost the same time. Laz's verdict on the combination was "seems better? ... I feel like theres still some shake."
Joint limits: the wrist ships at 360 deg/s with zero tolerance
get_joint_limits() on our arms:
| joints | velocity_max |
datasheet | velocity_tolerance |
effort_max |
|---|---|---|---|---|
| 0-2 | 6.2832 rad/s | 6.2832 | 0.0 | 27 Nm |
| 3-5 | 6.2832 rad/s | 9.4248 | 0.0 | 7 Nm |
With zero tolerance, a single sample over the limit faults the arm and the controller idles every joint. In gravity-comp float, a hand nudging the free wrist tripped it at 0.4% and 1.5% over the limit. A braked arm sampled for 10 s at 4.7 kHz never exceeded 0.037 rad/s, so the readings were real motion, not noise.
We raised joints 3 to 5 to the datasheet value with set_joint_limits() and left effort limits alone. The raised value is lost when the controller powers off. A later fault tripped at 388 deg/s while we believed the limit was 540. It turned out the controller was back on 360 and our code had read that back as the setting. Re-apply the limit on every connect. We never showed that the raised limit stops float faults in practice.
When the fault fires, the driver's first error line is only a category ("Joint limit exceeded"), even for a speed trip. The joint and the measured speed appear on a later line from the controller log. Parse that line.
One out-of-range joint vetoes all of them
The camera arm's gripper carriage was clamped by the phone mount and rested at -0.0048 m, outside its [0, 0.040] limit. Every set_all_modes() call then failed with Motor 6: Position limit exceeded, and the controller idled all seven joints. It looked like "float stops instantly", and nothing pointed at the gripper. Fix: send energized modes and targets to joints 0 to 5 only (set_arm_modes, set_arm_positions, set_arm_external_efforts) and leave the gripper alone. set_all_modes(Mode.idle) for braking still worked for us.
Related: a folded arm read joints 1 and 2 at 0.2 to 0.6° below their lower limit of 0. A jog that holds the other joints where they are then asks for an out-of-range position. We clamp small excursions (under 0.05 rad) to the limit.
Mode.idle is braked, not held
Releasing a gravity-comp float into Mode.idle let the loaded camera arm sag. Mode.position targeting the current reading did not. Same pose and same float, only the release differed, nobody touching the arm, measured as tip height at about 130 Hz:
| release to | net tip drop | max dip | noise floor |
|---|---|---|---|
Mode.idle |
42.11 mm | 42.40 mm | 0.57 mm |
Mode.position at current pose |
0.29 mm | 1.35 mm | 1.54 mm |
Idle damps and yields to a load. Use a position hold for "stop here" and keep idle for a true e-stop.
Streaming: goal_time equal to the send interval makes the arm lurch
The controller plans each position command as a segment that ends at rest at the goal after goal_time. Our streaming loop sent a command roughly every 22.5 ms, and each one said "arrive in 20 ms". The arm reached each goal, stopped, then lurched to the next one, about 44 times a second. Laz described it as the motors making "a truly awful sound". Doubling the send rate made it worse, not better.
Fix: send a target on every loop tick, aimed 60 ms ahead of the reference path, with goal_time=0.060 and the path's velocity and acceleration as feedforward. Each segment is then replaced before it can come to rest. We chose 60 ms because our loop's worst observed gap was 39 ms. In a replay of the measured tick timing, 30 ms still stalled on 1.7% of a move, and 50 ms or more never did. Twenty interleaved A/B moves on the arm:
| torque ripple | arrival wobble | |
|---|---|---|
| controller-planned move (single command) | 0.29-0.40 | 0.11-0.22° |
| streamed, old (20 ms goal, ~22.5 ms sends) | 3.9-5.8 | 0.11-0.44° |
| streamed, 60 ms look-ahead | 0.31-0.40 | 0.11-0.22° |
This fixed the grinding as measured by torque ripple, though Laz never commented on the sound afterwards. He still saw a small wobble at the end of every move. That is a separate problem, and we did not solve it.
Smaller facts, all read off the arms
- Position resolution: 0.000381 rad (0.0219°) per count, identical on every joint we checked. Velocity resolution: 0.002442 rad/s.
- The controller accepts one driver connection at a time. A second driver process doesn't error; it hangs. We had to SIGKILL one that was holding the arm.
- When the arm is powered off, the Ethernet link stays up at 1000 Mb/s but the controller stops answering ARP. Link carrier doesn't tell you the controller is alive; ping does.
- A process killed by a signal skips C++ destructors, so cleanup code that idles the arm never runs. Trap SIGINT/SIGTERM and brake explicitly, or run a separate "force idle" tool afterwards.