Detect relocalization when reusing database
Posted by heimsi on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Detect-relocalization-when-reusing-database-tp3602.html
Hello,
In my project I am reusing prebuilt database files. I need to detect when RTAB has been able to localize itself in the prebuilt map.
One way to detect relocalization is to observe the transform from 'map' to 'odom', which changes to non-zero values when RTAB has relocalized itself.
But this detection method does not work, if the camera is placed at the same location at initialization of RTAB when building the map and when reusing the map. Because the tf from 'map' to 'odom' would stay 0 even after relocalization.
Is there another way to detect it? Does RTAB somehow signalizes that it was able to relocalize itself in the old map?
Kind regards