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

How to publish transform from odom to base_link?

asked 2013-11-29 12:07:13 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I have a Recorded rosbag file which contains Laserscan data (LMS100) linked to base_link. I trying to use amcl and localize the robot in the map, but amcl needs odom->baselink so that it can publish map->odom. But currently there is no link between odom and base_link.

I loaded the map in rviz, when set the global options to base_link -> I am getting scan data ; when set to odom -> I getting odometry data in rviz; when set map-> nothing is happening. I want to integrate in the way map->odom->base_link.

I could not able to figure out the way to link the odom -> base_link. Can anyone help me to solve above problem.

edit retag flag offensive close merge delete


Link to files as below: ""

Arunkumar gravatar image Arunkumar  ( 2013-11-29 12:15:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-07 13:48:14 -0500

McMurdo gravatar image

There is no way you can do that without actual/simulated data. But, since you already have the laser data, the odometry data should be from the same 'run' as the laser data. That is, both should be in phase (or in time).

So without the odometry data I don't think you can use amcl. If you have odometry data on the topic say /odom. Then the rest is simple: write a node that reads the /odom topic and publishes whatever it reads on the odom topic as a transform from odom - base_link.

Look at this:

The only difference is you don't have to compute x, y and theta. They are already available in the odom message.

edit flag offensive delete link more

Question Tools



Asked: 2013-11-29 12:07:13 -0500

Seen: 4,292 times

Last updated: Jul 07 '14