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

How to set tf topic when take LRF on hand to build a map?

asked 2012-02-01 20:28:31 -0500

sam gravatar image

I'm tring to use gmapping to build a map.

Before that,I try to record /scan and /tf.

If I want to just take the laser range finder on hand to build a map.

How do I set /tf topic correctly?

Thank you~

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-02-01 20:48:12 -0500

updated 2012-02-01 21:30:26 -0500

As mentioned in my answer here, there are two approaches available for scenarios where you do not have viable odometry data (which is the case for handheld mapping).

In case you want to try hector_mapping and you don't have a IMU, you can try these parameters:

<param name="pub_map_odom_transform" value="true"/>
<param name="map_frame" value="map" />
<param name="base_frame" value="laser_frame" />
<param name="odom_frame" value="laser_frame" />

with laser_frame being the frame your scan data has in it's header. Provided you hold the scanner steady (no roll and pitch motion, please ;) ) and the environment is largely rectangular, the system should work.

/edit: To make it more clear: The problem with the scenario you describe is not so much the tf setup itself (see the tf tutorial for that), but the fact that you cannot provide odometry, which gmapping requires.

edit flag offensive delete link more

Question Tools


Asked: 2012-02-01 20:28:31 -0500

Seen: 411 times

Last updated: Feb 01 '12