Ask Your Question
0

hector_slam_launch

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

sjigi123 gravatar image

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

Eric Perko gravatar image

Hello,

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 ?

Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

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

jodafo gravatar image

did you read http://www.ros.org/wiki/hector_slam/Tutorials/SettingUpForYourRobot ?

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
0

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

sjigi123 gravatar image

Do I need a tf publisher ?

edit flag offensive delete link more

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 371 times

Last updated: Jul 01 '12