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

How to calculate /tf in hector_slam?

asked 2015-01-03 10:06:33 -0600

tn0432 gravatar image

Hello, I am studying mapping with hector_slam and hector_mapping.

I run $ roslaunch hector_slam_launch tutorial.launch, and $ rosbag play Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag --clock

Basing on the diagram of $rqt_graph, the mapping is performed on data from laser scan with respect to /tf data. Does anyone know how to produce /tf data in this case? It looks like they only use IMU data somehow to estimate the transformation?

Thanks! I very appreciate your help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-01-05 13:21:07 -0600

ajain gravatar image

Firstly, hector_slam is independent of /tf for laser (watch this video). You can simply have a laser attached to a computer and walk around to create a 2D map. I haven't used the bag file that you mentioned before, but usually the bag file should contain time stamped /tf data, or simply create a urdf.xacro config file for your system and load it using robot_state_publisher to publish transforms.

edit flag offensive delete link more

Comments

Thank you for your response! Regarding the case of having a laser attached to a computer, I am struggling to make it work. I can receive and draw the laser data in rviz. But still cannot make a map with hector_slam. I think the problem is in defining the /tf frames. Hope you can help! Thanks

tn0432 gravatar image tn0432  ( 2015-01-06 12:38:14 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-01-03 10:06:33 -0600

Seen: 192 times

Last updated: Jan 05 '15