Dual-Rover Cooperative Vision Cruise
Autonomous Cruise event: within 3 minutes, read and announce the boards on four walls, dock at four task points in clue order and return to the finish; iterated from one rover to two cooperating rovers.
Developed independently (navigation, safety, board reading, voice, inter-rover link)Team entry
Same event, 2025 season: Merit Award (National Finals), Second Prize (Sichuan Division)
- ROS1 Melodic
- Ubuntu
- Hector SLAM
- move_base (omnidirectional DWA)
- robot_pose_ekf
- Vision LLM
- Vosk
- Python
- Bash
- TCP
Background
A run lasts 3 minutes. The rover has to read four walls in turn and announce each answer aloud, dock at four task points in the order given by the clues, and return to the finish. The score sheet has 11 items worth 10 points each; the rover must be stationary while it speaks and the answer must be correct. The field has randomly placed barriers, the task boxes leave almost no margin, and the lighting is unstable. The rules allow two vehicles, so the project grew from a single rover into two cooperating ones.
What the system does
Board reading and voice hang off the task state machine; the two rovers exchange state over TCP.
- Mapping and localisation: Hector SLAM maps in real time (1 cm resolution); the IMU passes through a Madgwick filter and joins wheel odometry in
robot_pose_ekf - Omnidirectional navigation:
move_basewith DWA, global and local costmaps tuned separately - Board reading: a vision LLM reads the expression on the wall; a deterministic local calculation re-checks it before anything is announced
- Voice: Vosk wake phrase in Chinese; the rover checks that it is stationary before speaking
- Safety: every velocity command has to pass through the safety node, which stops on timeout, latches the emergency stop and checks the swept area of the body
- Two-rover cooperation: the rovers hand tasks over through Wi-Fi TCP, and the lead rover recomputes the follower’s results
My work
- Safety node: wrote a standalone
safetynode as the only publisher of/cmd_vel. Outside navigation mode it stops the chassis if no command arrives for 0.25 s; in navigation mode the limit is relaxed to 0.6 s. The emergency stop is latched and cannot clear itself, and each command is checked against the swept area of the body before it goes out. Whatever fails upstream, the chassis stops first. - Mapping and navigation: configured Hector SLAM (1 cm map resolution) and
robot_pose_ekffusion;move_baseplans omnidirectionally with DWA at a 10 Hz control rate, with resolution and inflation radius set separately for the global and local costmaps. - Random barriers and task boxes: wrote rectangular route generation for the random barriers and relied on live mapping to go around them; because the task boxes leave almost no margin, designed a “partially inside the box” docking strategy.
- Answer re-check: the vision LLM reads the expression on the wall, then a local evaluator checks it. The evaluator parses with an AST whitelist and computes in rational arithmetic with
Fraction; it never executes code produced by the model, and nothing is announced when the results disagree. - Stale-data guard: the task layer checks whether odometry has gone stale and stops navigation from using data that is not fresh.
- Voice: Vosk (16 kHz) wake phrase in Chinese, ignored below 0.80 confidence; the rover confirms it is stationary before speaking, as the rules require.
- Inter-rover link: the rovers exchange roles and task state over Wi-Fi TCP, and the lead rover recomputes any answer sent by the follower.
- Operations scripts: wrapped prepare, match, practice, check and stop subcommands in Bash (
set -euo pipefail); locked camera exposure withv4l2-ctl; pinned the camera to its by-id device name; every task event is written to a JSON log for segment-by-segment review after a run.
Problems and fixes
The model can miscalculate. It may read the expression correctly and still get the result wrong. Only the expression it reads is kept; a deterministic local calculation checks it, and a mismatch means no announcement. A rule stops the model’s arithmetic hallucinations.
One failing module must not let the rover wander. Navigation, board reading and voice all sit in the upper layers, and if any of them hangs the chassis could keep executing an old command. The safety node sits at the bottom as the only outlet, with a timeout per mode and a latched emergency stop, so a fault always means stop first.
Review with data, not impressions. Each run writes its task events to JSON. Problems are located by docking unit and time span (for instance, during which seconds a docking drifted and by how many degrees) and then fixed specifically.
Results
- The lead rover finished the full course in a single practice run on the real vehicle: 171.4 s against a 180 s limit (2026-11-15, unofficial).
- Two-rover coordination and on-vehicle regression of the latest fixes are in progress.
Retrospective
- There is only one complete run on record so far; more rounds are needed to measure success rate and the spread of run times.
- Handover and cooperative docking between the two rovers need more testing on the real vehicles.