Some days ago map was generated correctly a couple of times, but then something happened and now it does not work properly.
The "loop closure detection" window is empty and it does not appear the text "New ID = 1" on top of Rtabmap interface...UNTIL I start any other task in the PC like for example openning Mozzilla Firefox. When that happens in the terminal running Rtabmap it can be read this warning:
[ WARN ] MainWindow.cpp: 1566::processStats() Processing time (1,181013 s) is over detection rate (1,000000 s), real-time problem!
And loop closure detection window appears and it can be read on top of it "New ID = 1".
From this moment, when a new task is started in the PC, the ID increments in 1 while it can be read in terminal again the warning commented before. So, every time processing time is over detection rate the ID is incremented, but if I do not start any other task seems like ID remains unchanged.
I would like to know how can I solve this problem. Thank you for your time.
What kind of computer do you have? Visual odometry at 1 sec is very slow, too slow. rtabmap may have difficulty to synchronize topics from camera at 30 Hz and odometry at 1 Hz. The queue_size could be increased, however, odometry at 1 sec will cause other problems. It should be done at least at 10 Hz and over.