[ROS2 Humble / Nav2] Robot spins continuously when goal requires rotation — only reaches straight-line goals
Setup:
- ROS2 Humble, real robot (4WD)
- Nav2 with AMCL localization
- SmacPlanner2D (global) + DWB local planner
- EKF odometry fusion (`/odometry/filtered`)
- Map present, AMCL working, teleop working fine
Issue:
Robot navigates perfectly to goals that are directly in front of it (straight line). As soon as the goal requires any rotation — curved path or goal behind the robot — it starts spinning in place endlessly. Looks like it enters recovery spin behavior and never exits.
Github Link (config files and terminal log can be found here):
https://github.com/Anandhu-Sudha/my-ros-bot.git
Has anyone faced this exact issue? What is the reason for this recovery behavior loop? Any fix suggestions appreciated.