navigation2_tutorials icon indicating copy to clipboard operation
navigation2_tutorials copied to clipboard

WP "moves" on each field test on real robot

Open elgarbe opened this issue 1 year ago • 4 comments

Hi, I'm using nav2 GPS WP Logger and follower on a real robot on an outdoor environment. First I drive the robot with a joystick and log each WP. Then I run nav2 on the robot and Rviz on a laptop. Unfortunately the robot doesn't follow the exact same WP. It's out for a few meters. I'm trying to understand why is this happening. The first thing I've noticed is that as my robot moves the tf between map and odom drift. That is, odom frame is moving around from 0 to 2mts from map frame. In this point I wonder how it affect to navigation. I saw global cost-map is in map frame, but local cost-map y on odom frame. How is translated the GPS WP to nav2 WP? I know that from GPS to map y transformed using robot_localization, but then nav2 transform the WP to odom frame? Is there a topic that expose current WP goal? I can add RTK corrections to my GPS, using it I could get GPS position with cm level, but that doesn't remove map to odom drift. Is there a way to remove that offset, moreover is it ok to try to remove that offset on robot_localization filter?

elgarbe avatar Feb 23 '24 19:02 elgarbe