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


asked 2012-06-28 22:46:41 -0500

sjigi123 gravatar image

updated 2012-07-01 10:44:10 -0500

Eric Perko gravatar image


I can't clearly understand how to set up a launch file with the base_frame or odom. I get the same error /map doesnt exist.

My purpose is to use the hector_slam (ie hector_mapping) in order to do for the time being the same process as we can see on the video in the hector_slam wiki page. I am only using a hokuyo no imu and no odom. Can someone help me to write the launch file ?


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-07-01 08:06:27 -0500

jodafo gravatar image

did you read ?

you have to follow the instructions under 2 (Use without odom frame). I.e. set both base_frame and odom_frame to your hokuyo/robot frame in the launch file. As a starting point maybe take a look at the given launch files in hector_mapping/launch (if i remember correctly).

maybe try that, and if it still does not work do "rosrun tf view_frames" and check if hector mapping publishes a transform from /map to /yourRobotFrame

edit flag offensive delete link more

answered 2012-07-01 03:10:57 -0500

sjigi123 gravatar image

Do I need a tf publisher ?

edit flag offensive delete link more


You might need to publish a transform from your robot to the hokoyu, im not completly sure on that one. Try a static transform from /base to /scan, then set base_frame and odom_frame parameter in launch file to /base.

jodafo gravatar image jodafo  ( 2012-07-01 12:52:13 -0500 )edit

Question Tools


Asked: 2012-06-28 22:46:41 -0500

Seen: 535 times

Last updated: Jul 01 '12