01 — How it runs
The closed loop
The system runs as a closed feedback loop at the camera frame rate. The same six steps repeat at every control tick.
Perception
Estimates the ball position and velocity in the plate frame from the camera image.
- ArUco markers + homography
- HSV blob detection
- Kalman filter (position + velocity)
Control
Maps the tracking error to a joint trajectory consumable by the UR firmware.
- PID per axis (P · I · D)
- Jacobian inverse (least squares)
- Smoothing + safety
Actuation
Sends the joint increment to the arm and lets the manufacturer's controller close the inner torque loop.
- joint trajectory at 30 Hz
- gravity compensation built-in
- PD on each joint