ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Can the robot_localization package be used with GPS-only?

asked 2016-07-22 10:49:36 -0600

tbybee gravatar image

I have a project where I am using GPS data to localize a robot. Unfortunately, I do not have a reliable IMU/Magnetometer to get orientation. Can the robot_localization package be used with only GPS data? an I get the robot orientation from the differential measurements? I have been unsuccessful in getting it to work. I am only doing 2D mode, so yaw is what I really would like to get.

In other words, is there a way to decouple the navsat_transform node from using IMU to get orientation?


edit retag flag offensive close merge delete


AlexandreB is correct. If you don't want to use the datum parameter and instead want to differentiate GPS readings for your yaw value, then you'll have to write a node that does that.

Tom Moore gravatar image Tom Moore  ( 2016-07-25 03:50:17 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-24 10:27:18 -0600

AlexandreB gravatar image

updated 2016-07-24 10:27:35 -0600


From my understanding you should be able to do without IMU data.

In section 3.1.2 IMU Data under robot_localization / Tutorials / GPS Integration, the dev mention : This information is only relevant if the user is not manually specifying the origin via the datum parameter or the set_datum service.

Furthermore if you look in the code you will find:

if (!use_odometry_yaw_ && !use_manual_datum_)
  imu_sub = nh.subscribe("imu/data", 1, &NavSatTransform::imuCallback, this);

However from my experience with this package, supplying the correct YAW offset is very important. If you are unsuccessful with the datum option, it may be the yaw offset you supply.


edit flag offensive delete link more


Right. You can use the datum parameter, but then all your positions will be w.r.t. that pose. You can then turn on relative mode for that input in the EKF or UKF (if you're using them), which will make the output pose start at 0.

Tom Moore gravatar image Tom Moore  ( 2016-07-25 03:49:32 -0600 )edit

Question Tools

1 follower


Asked: 2016-07-22 10:49:36 -0600

Seen: 690 times

Last updated: Jul 24 '16