Why HectorSLAM gets better results from a rosbag that in live time?
Hi!!!
I've been doing proves with the turtlebot using the Kinect sensor with HectorSLAM and in live time, and the result was that HectorSLAM could not generate the map of a small environment, because it loses the robot pose by the rotations. I've read that HectorSLAM doesn't work good with the Kinect, so I created a rosbag of /scan and /tf while I was using Gmapping to build a map in live time, and then I used this file to run HectorSLAM with the same parameters that in live time. The surprise for me was that HectorSLAM generated a good map with this file and I still can not understand why? If it supose that the file has the same data that if I run HectorSLAM in live time.
I hope that someone can explain me why happens this situation please. Thanks in advance!!!
EDIT:
I attach the map generated by HectorSLAM in live time:
The map generated with a rosbag of the same environment:
What sort of CPU are you running this on? Have you monitored the CPU usage of each node to see if you have enough CPU cycles to run the map-building process?
I've running this with an Intel core i7 with 8 cores and I don't know how to see the CPU usage of each node. Thanks by your attention!
I might miss something here, but where do you get the
scan
topic from? From Kinect sensor?And btw, HectorSlam can still work with Kinect if the area is small enough and you do some filtering of data from Kinect
Thanks DavidN by your attention!! Then, HectorSLAM does not do the filtering of data? Because I only keep the data from /scan and /tf topics in the rosbag and then I replayed it with the default parameters of the algorithm. I did not do a filtering of data, but the area is small.
I tried this algorithm with a rosbag that I generated of another environment bigger but HectorSLAM collapsed, it only did a map with the small environment with the rosbag, but it can not generate the map in live time. I can not understand this situation, if it supose that is the same data no? Thanks
So HectorSLAM collapsed when you used the bag of a big environment? Is it ok if you upload the rosbag so I can try?
Thanks again DavidN! HectorSLAM sometimes collapsed with big environments or it generates small portions of the map, but it always loses the robot pose. With small environments, it generates the map with the rosbag, but I stop the replay of the bag when it begins to generate errors.