How to prevent hector_mapping from losing the position of the robot
I'm using a VR100 vacuum cleaning robot (aka neato) with a 360° lidar (1 distance measure per degree, five revolutions per second) to create a map with hector_slam. Unfortunately the mapper often loses the estimated position of the robot and starts a new mapping process on another place of the map and with an different angle: http://img27.imageshack.us/img27/2466/ahor.png In the log of the roscore also often appears the output "SearchDir angle change too large". This is comprehensible because the cleaner sometimes rotates almost quick around itself. Is there a possibility in configuration to make hector_slam resistant against such kind of movement and to prevent the frequently restart of mapping on a new position?
Appendix 1: Meanwhile I made some experiments with configuration parameters. Decreasing the map_update_angle_tresh(old) to 0.01 and degrading the map_resolution to 0.075 causes the mapper to glitch not so often. But the created map looks a litte poor: http://img845.imageshack.us/img845/9906/a4nc.png
Appendix 2: Now I've used a bag with double filtered data. Once out of the driver and second time with rosbag filter. However hector_slam can't create a map out of this data without hickups. I created two partial maps (~ 20% of the whole bag): http://img818.imageshack.us/img818/6504/hgxj.png and http://img43.imageshack.us/img43/9436/tqna.png A better resolution than 0.65 causes a wild hopping during creation of map. I'm afraid that hector_slam in general can't handle this kind of data. Any other hints or a tipp how to create the tf-topic to test these data with gmapping?
Appendix 3 to the edit of jodafos answer
So I'll find out how to start an odometry calculator to create this data for gmapping.
Increasing the value of "map_multi_res_levels" increases the problems. The map with level "2" I posted above: http://img818.imageshack.us/img818/6504/hgxj.png . This is the map with level "3": http://img94.imageshack.us/img94/8259/fqo.png , with level "4": http://img22.imageshack.us/img22/7415/rzrv.png and with level "5": http://img577.imageshack.us/img577/528/4mmg.png . All other settings and the used bagfile are identical for all tries.
Hi FlashErase, have you resolved this problem by any chance? I am having the same map-jumping problem with 2 of my hokuyo lidars that I use to get 360 degree view.
No, unfortunately there was no complete solution for this problem. But Ben_S posted some adjustments for the configuration here: http://answers.ros.org/question/79386... This decreased the number of origin jumps.