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

How to modify slam start location?

asked 2016-10-17 21:56:03 -0600

YingHua gravatar image

updated 2016-10-18 06:16:13 -0600

Hi ,

I am studying ROS navigation these days. Including AMCL and SLAM.

The algorithm what I am using is Hector SLAM.

And I wonder whether SLAM can change inital pose (also mean start location) just like AMCL?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-10-18 00:09:27 -0600

asimay_y gravatar image

I think you missed the concept of slam and amcl. slam is for map generating, where it starts from is map start point. amcl is for you localization, which you need the start point or initial pose to localize in the map.

edit flag offensive delete link more


Thanks for your response :) What I am thinking is maybe I have already know the location where to start and I want the map's pose start from just the place lidar is but not start from ( 0 , 0 ).

YingHua gravatar image YingHua  ( 2016-10-18 01:12:41 -0600 )edit

you can go to your amcl.launch file to set:

<param name="initial_pose_x"            value="$(arg initial_pose_x)"/>
<param name="initial_pose_y"            value="$(arg initial_pose_y)"/>
<param name="initial_pose_a"            value="$(arg initial_pose_a)"/>
asimay_y gravatar image asimay_y  ( 2016-10-18 03:49:08 -0600 )edit

I know how to modify AMCL :) My question is about SLAM.

YingHua gravatar image YingHua  ( 2016-10-18 03:55:20 -0600 )edit

I think you still missed the concept of them. it is strange that you feed pose parameters into slam's initial pose, because where slam start is map start. You cannot designate its place while it is making map.

asimay_y gravatar image asimay_y  ( 2016-10-18 04:01:27 -0600 )edit

Hi asimay_y :) I have already solve my question. I can publish data to "initalpose" topice to change it.

I know how to use SLAM and AMCL in different situation. really thanks for your response.

YingHua gravatar image YingHua  ( 2016-10-18 06:19:40 -0600 )edit

Question Tools

1 follower


Asked: 2016-10-17 21:56:03 -0600

Seen: 580 times

Last updated: Oct 18 '16