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

robot_localization not receiving odometer data despite listening

asked 2019-12-16 22:38:29 -0500

xsol-taylor gravatar image

updated 2022-01-22 16:10:12 -0500

Evgeny gravatar image

I am trying to fuse odometry from navsat_transform and an IMU using an ekf_localization_node, the orientation is working, but it is constantly stuck at 0, 0, 0.

The output of the odometry is broadcasting sensible output (which I can confirm by mapping it independently in RVIZ too): /odometry/gps output

I've turned on the debugging output file and when I open it I observe the following:

Subscribed to /odometry/gps (odom0)
    odom0_differential is false
    odom0_pose_rejection_threshold is 1.7977e+308
    odom0_twist_rejection_threshold is 1.7977e+308
    odom0_queue_size is 10
    odom0 pose update vector is [t  t  t  f  f  f  f  f  f  f  f  f  f  f  f  ]
    odom0 twist update vector is [f  f  f  f  f  f  f  f  f  f  f  f  f  f  f  ]
Subscribed to /os1_cloud_node/imu/fixed (imu0)
    imu0_differential is false
    imu0_pose_rejection_threshold is 1.7977e+308
    imu0_twist_rejection_threshold is 1.7977e+308
    imu0_linear_acceleration_rejection_threshold is 1.7977e+308
    imu0_remove_gravitational_acceleration is true
    imu0_queue_size is 10

What is strange is that there are thousands of mentions of the imu0 callback being activated, but past these lines odom0 is never mentioned again, in relation to anything.

So the callback for odom0 is never being called. is base_link.However I leave this node running and echo /odometry/gps and plenty of data comes out as shown previously.

Any idea why this is? Using ROS Melodic and the frame_id for /odometry/gps.


edit retag flag offensive close merge delete


Do your TF transformations between the sensor frame in the messages and robot base frame exist?

Are you sure the topics are in the correct namespace, checking with rostopic list and info?

stevemacenski gravatar image stevemacenski  ( 2019-12-17 11:07:07 -0500 )edit

Please post sample input messages for every sensor input, as well as your EKF config.

Tom Moore gravatar image Tom Moore  ( 2020-01-06 04:40:22 -0500 )edit

Any update here?

Tom Moore gravatar image Tom Moore  ( 2020-01-28 03:31:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-02-02 22:46:34 -0500

xsol-taylor gravatar image

Thanks for following up - our bag file timestamps were severely inaccurate (LIDAR stamps were seconds from device bootup, not actual time), so we've fixed it with PTP and are going to revisit this soon.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-12-16 21:59:45 -0500

Seen: 210 times

Last updated: Dec 16 '19