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

SLAM - detect initial position

asked 2016-04-22 04:33:00 -0500

MariaKrgr gravatar image

updated 2016-04-22 04:51:46 -0500

Hello there, I just performed SLAM with navigation_stack and V-REP simulator. As I know for know, we should give initial position of the robot so that AMCL performs localization and costmaps are generated properly.

My question is: Is there a way to skip the procedure of the user giving the initial position?

edit retag flag offensive close merge delete

Comments

You can set the initial pose estimate in your AMCL launch file. It's still the "user" that provides it, but at least you don't have to do it in RViz. What I usually do is set the initial pose to [0 0 0] and then start the robot roughly at the origin of the SLAM-generated map. It quickly converges.

spmaniato gravatar image spmaniato  ( 2016-04-22 14:50:59 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2016-04-22 06:54:45 -0500

fsteinhardt gravatar image

Hi,

you could try the global_localization service of amcl, this spreads the particles all over the map. Then you have to drive around and maybe you get the correct position after the particles converged.

edit flag offensive delete link more

Comments

Hi.. I used global_localization but I think it needs a lot driving over the map to work. It would be nicer if it needed only a 360 degrees relative to its own frame (for example)..

MariaKrgr gravatar image MariaKrgr  ( 2016-04-22 08:22:03 -0500 )edit

In addition, in my simulation this initial localization is happening by driving into the 'room' without calling /global_localization service... It seems like this service is needless or there is something I am doing wrong..

MariaKrgr gravatar image MariaKrgr  ( 2016-04-22 08:38:36 -0500 )edit

I suggest you visualize the filter particles in rviz and compare their distribution when you initialize the node against using the /global_localization service.

Procópio gravatar image Procópio  ( 2016-04-22 09:11:46 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2016-04-22 04:33:00 -0500

Seen: 1,122 times

Last updated: Apr 22 '16