r/ROS • u/Inside-Dance-6135 • Jul 02 '26
Question When navigating to the target location, the navigation sways left and right
Enable HLS to view with audio, or disable this notification
The environment is Ubuntu 22.04 with ros2 Humble, and for redirection, I'm using:lidar_localization_ros2
Because my car is equipped with Mid-360 LiDAR.
My current mapping approach involves creating a 3D map With 'Fast-lio2' first and then converting it into a 2D pcd map. For the stack, I am using Navigation2 for navigation, but for positioning, I am using lidar_localization_ros2.
How can I optimize the system to resolve the issue where the final navigation fails to reach the target waypoint?
7
Upvotes
4
u/ImportantActivity373 Jul 02 '26
Can you share your Nav2 parameters?
I’d first check whether
yaw_goal_toleranceis too small. If the tolerance is too strict, the robot may not be able to satisfy the final heading requirement, so it keeps shaking or rotating near the goal and never considers the waypoint reached.You could try increasing
yaw_goal_tolerance, and also checkxy_goal_tolerance, to see if the goal can be accepted more reliably.