ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A
Ask Your Question

How to modify slam start location?

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

YingHua gravatar image

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

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 -0500

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 imageYingHua ( 2016-10-18 01:12:41 -0500 )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 imageasimay_y ( 2016-10-18 03:49:08 -0500 )edit

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

YingHua gravatar imageYingHua ( 2016-10-18 03:55:20 -0500 )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 imageasimay_y ( 2016-10-18 04:01:27 -0500 )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 imageYingHua ( 2016-10-18 06:19:40 -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

1 follower


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

Seen: 202 times

Last updated: Oct 18 '16