Robotics StackExchange | Archived questions

Using hector slam mapping for Ros navigation stack

I need guidelines on how to build an effective map for Ros navigation.

Following is the approach that I am adopting

For the sake of testing my robot's position on the map, I drive the robot manually and I receive the following error and the robot randomly moves all around the map.

[WARN]: The origin of the sensor is out of map bounds. so the costmap cannot raytrace for it

[WARN]: Map update loop missed its desired rate of 10.0000Hz...the loop actually took 0.1207 seconds.

Autonomous navigation will only work if this localization problem is solved and according to my naive point of view I guess it's the problem of building the map with hector slam and later on using amcl for localization.

Questions:

  1. Is this approach possible?
  2. Can I use hector slam for localization instead of amcl?
  3. How do i make the robot localize itself in the pre-build map (using hector_slam) when I control it manually

Asked by zaid on 2022-11-07 05:59:28 UTC

Comments

Answers

You can use the laser_scan_matcher package for localization. Follow the instructions below :

http://wiki.ros.org/laser_scan_matcher

Asked by Davies Ogunsina on 2023-02-24 07:17:59 UTC

Comments