Open hyunhoJeon opened 7 years ago
If you notice in the constructor for System.cc, it creates separate threads that call the Run
function in LocalMapping, LoopClosing, and Viewer. Each of those Run
functions has a while(1) { ... }
loop. One possible way to do this is every time you call System::TrackMonocular
, System::TrackStereo
, or System::TrackRGBD
(which is originally done in the Tracking thread i.e. the main thread), you additionally call everything in the while(1) { ... }
loops of the Run
functions in LocalMapping, LoopClosing, and Viewer.
I would definitely not recommend doing this however because tracking would then be extremely slow especially if the system enters a loop closure. Hopefully you can think of another way to debug your issue.
I would like to work on single thread for debugging purposes.
Does anyone know how to do this?