feat(controls): Priority-based cmd_vel multiplexer (Issue #228) #230
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-controls/issue-228-cmd-vel-mux"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implement priority-based velocity command routing with timeout-based fallback.
Priority chain: Teleop (1) > Nav2 (2) > Docking (3)
Features
/saltybot/cmd_vel_mux_statusfor telemetryTest Coverage
✅ Enum and initialization tests
✅ All three subscription handlers (teleop, nav2, docking)
✅ Priority selection logic (teleop preemption, nav2 preemption)
✅ Timeout detection and source fallback
✅ Realistic scenario tests (teleop release, priority escalation chains, all-timeout safety)
✅ JSON status format validation
Configuration
frequency: 50Hz (20ms cycle)source_timeout: 0.5secondsCloses Issue #228.