Skip to content

Stuck Detection Node Documentation

Nukkel edited this page Dec 5, 2025 · 3 revisions

Related PRs: #91

The stuck detection node (src/autonomous_nav/autonomous_nav/stuck_detection_node.py) is responsible for determining if, and qualifying why, the rover is stuck (i.e. immobile). Currently there are two (independent) stuck conditions: the node reads the target and read motor data from the drivetrain and compares the target vs. actual velocities along with torque vs. rated to qualify if the wheels are stuck or free spinning. For these conditions to apply, at least three of the wheels must meet the requirements for some duration. Once local and global pathing is merged, path deviation may be another condition.

Integration tests are in src/autonomous_nav/autonomous_nav/tests/test_stuck_detection_node.py.

Publications

  • /stuck_detection/is_stuck [Bool]
  • /stuck_detection/reason [UInt8]
    • Encoded by a bitmask (see StuckReasons for decoding).
  • A few debug publishers may be enabled, see source.

Subscriptions

  • Interface and CAN topics for each of the drive motors.

Clone this wiki locally