Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Using two GPS for robot_localization

Hi

I am planning to use 2 GPS with robot_localization in my robotic project to improve its accuracy. Inside the .yaml file for ekf_global_node, my wheel encoder odometry will be odom0 and imu will be imu0. I let the outputs of the two navsat_transform node be odom1:odometry/gps0 and odom2:odometry/gps1. Do I have to change the _differential for either odom1 or odom2 to true?

my current config for the two gps:

odom1: odometry/gps0
odom1_config: [true,  true,  false,
                     false, false, false,
                     false, false, false,
                     false, false, false,
                     false, false, false]
odom1_queue_size: 10
odom1_nodelay: false
odom1_differential: false
odom1_relative: false

odom2: odometry/gps1
odom2_config: [true,  true,  false,
                     false, false, false,
                     false, false, false,
                     false, false, false,
                     false, false, false]
odom2_queue_size: 10
odom2_nodelay: false
odom2_differential: false
odom2_relative: false

When I show the results on rviz, the odometry/filtered_map seems to only follow one of the gps data and totally ignore the other. I thought it is supposed to find the best position of the robot based on the two gps signals?

Thanks in advance for the help!