Problem

A lab pipeline that controls a KUKA robot's speed in real time ran as Windows scripts. To share it and reuse it on another robot, it needed a tested, documented code base.

What I did

Ported the pipeline to ROS 2 (Jazzy): an RSI bridge with a 4 ms reply loop in its own process, the control law, the camera width readout, an EthernetKRL bridge for a robot without RSI, session recording with rosbag2, and a replay of a real print that checks the port against the original logs. Safety rules (no path correction, override clamp, watchdog ramp) are enforced in code and tested in CI.

Result

In a lock-step replay of a real print, the ported controller reproduces the original pipeline's speed commands at all 1719 updates.

Role

Author. Implemented with Claude Code (AI coding assistant).

Credits

Repository author: Ye Ma.