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

how does the odometry (imu+encoder) publish its data to gmapping?

asked 2013-07-15 21:41:51 -0500

Andrick gravatar image

updated 2013-11-18 18:52:06 -0500

tfoote gravatar image

I am able to get my odometry working (with IMU and encoders readings). But how do i actually publish the relevant data to gmapping? Is the gmapping file actually subscribing any data from the odometry?

edit retag flag offensive close merge delete

Comments

Hı, Mr. @Andrick . Coul you please help me how to merge ımu andencoder data?

Mekateng gravatar image Mekateng  ( 2018-06-07 03:42:13 -0500 )edit

how did you get odometry working can you share

kallivalli gravatar image kallivalli  ( 2019-09-17 02:10:17 -0500 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2013-07-15 21:53:58 -0500

weiin gravatar image

To answer questions of this nature, it is always good to refer to the package itself: gmapping subscribed topics

edit flag offensive delete link more
2

answered 2013-07-16 14:42:21 -0500

HenryW gravatar image

Hey,

Basically as Weiin said the Gmapping link shows that Gmapping is subscribed to tf/tfMessage to get its odometer information.

You need to publish the odometer information as both a nav_msgs/Odometry and a tf/tfMessage. A good tutorial explaining this can be found here

http://www.ros.org/wiki/navigation/Tutorials/RobotSetup/Odom

edit flag offensive delete link more

Comments

3

You do not need the odometry message for gmapping. It gets that data through the tf. (You do however, need the odometry message for the navigation stack.)

weiin gravatar image weiin  ( 2013-07-16 17:32:09 -0500 )edit

Yes sorry Weiin is correct, Gmapping does not need it itself :D

HenryW gravatar image HenryW  ( 2013-07-17 18:20:14 -0500 )edit

Alright thanks! I'll have to read more about the tf then! :)

Andrick gravatar image Andrick  ( 2013-07-17 21:48:46 -0500 )edit

Question Tools

Stats

Asked: 2013-07-15 21:41:51 -0500

Seen: 2,080 times

Last updated: Jul 16 '13