how to localize my robot
Hi all, I used gmapping to obtain the map.Now i want to localize my robot in this map,so that i can apply my path planning algorithm(A*).someone please help me to do this.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hi all, I used gmapping to obtain the map.Now i want to localize my robot in this map,so that i can apply my path planning algorithm(A*).someone please help me to do this.
Hi!
First, i think that the package gmapping already does the localization for you, since gmapping is design to work with SLAM (Simulataneos localization and mapping), you can check this in the wiki http://wiki.ros.org/gmapping. If your robot is not being localized maybe you should check your tf tree, and make sure that there is a transformation between the frame /odom (the one where gmapping "publish" the localization information), and the base frame of your robot (by default should be /base_link and it should be connected, at the same time, to the other parts of your robot).
Anyway if you are searching for packages in ROS to perform the localization, the amcl package http://wiki.ros.org/amcl, is one option.
Hope this helps!
thank you...i went through this tutorials.i applied this to turtlebot rosrun amcl amcl
but it is showing that request for map failed.
If you are you using gmapping, try set the param "use_map_topic" to true, this way the amcl node will read the information from the topic /map published by gmapping. To do this adding the following line in your launch should be enough:
<param name="use_map_topic " value="true" />
I did rosrun amcl amcl _use_map_topic:=true
. I got map also but how can i find the grid in which the robot resides so that i can apply my A* algorithm.
As you can see in the wiki documentation, the map is published in the /map topic, in the type of message Occupancy grid, while the pose of the robots is published in the topics /amcl_pose.
thank you sir..But when i do the same i'm getting the x,y coordinates of the robot in its current position. I want to know the index of the grid in which the robot is situated in the map so that I can apply my A* algorithm. Could you please help me to solve this problem.?
Hi! Right now i am not quite sure about how to exactly doing that. What i know is that gmapping publish a map in the format of a occupancygrid msg see the msg documentation.
Asked: 2016-02-21 10:39:08 -0600
Seen: 742 times
Last updated: Feb 22 '16
What topics are necessary to log for creating a SLAM comparison bag file?
Shoudl AMCL attempt to respect/get hints from walls?
Navigation stack in a busy room
localization in crowd environment
rviz shows the robot's location differently from gazebo
How to autonomous localization on TurtleBot?
what path planning method does GMAPPING-based navigation use?