how to configure the map to put its origin as in stage
Part 1: Hi, I already posted nearly same question but I ended up with sth new. I am using gmapping (localization and map) to run the navigation by move_base node and I have this famous error :
[ WARN] [1350293255.494001686]: The origin for the sensor at (-0.16, 0.68) is out of map bounds. So, the costmap cannot raytrace for it.
I am running a simple differential robot, gmapping node, laser node, and move_base.
As I found from some discussions, it seems that I didn’t realise that I had to configure the map to put its origin as in stage; so can it be the reason? if yes then the question is that how can I configure that?
Thanks in advance.
Part 2: Thanks for your answers. Now I am putting the global costmap static_map parameter to true. and the local costmap static_map parameter to false. and rolling_window to false as well and I set no map parameter in the yaml files. So it should take all from map_server. In my saved map file, the origin is [-10, -10] for a 20X20 map. but again I am receiving the out of map bound error!
The map is from map server (including map parameters of course). the laser data is going from the laser. the localization from gmapping. it is putting the robot foot print on origin so my laser will be out bound. How can I get rid of it then? Well generally how this map updating should go now? I want to have a implementation like the implementation in the link: http://www.ros.org/wiki/navigation/Tutorials/Using%20rviz%20with%20the%20Navigation%20Stack
I mean to have the general map and also have the online updating of the obstacles (not an updated map though).
I added a 2nd part to my question.
you might want to set the local costmap rolling_window to true (since static_map is false). Then look at RViz to see your map, and show your laser link and see where it is with reference to the map.