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

How to make robot localise itself its initial point with existing map

asked 2020-12-28 05:56:20 -0500

NgocDuong gravatar image

Hi there,

I want to make my robot autonomously localise itself at the starting point (which could be anywhere in a room) then send some navigation goals for it to follow, then at the end i want my robot to return to the same initial point which it had localised itself in the beginning, all without any user intervention. I have already created map with GMapping and text labels for each point.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-12-29 05:25:42 -0500

Dragonslayer gravatar image

updated 2020-12-29 05:35:43 -0500

If you use amcl for localization, there is a service called global_localization that will disperse the particles ramdomly at startup (oposed to giving amcl an initialpose). However as far as I know, you then have to move around with the robot for some time for the particles to "align"/localize. From that point on you can give a goal to move_base and it will navigate there. Possibly you will have to order the first movements via some other node, as move_base will possibly get into trouble with ever changing localization at this point, or amcl will not even publish a localization until some quality parameter is fullfiled. There is also a way to give a initialpose to amcl that practically includes the hole map, might be worth a try as well.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-12-28 05:56:20 -0500

Seen: 86 times

Last updated: Dec 29 '20