RTAB-Map localization on imported maps: override GenerateIds and OptimizeFromGraphEnd
@tylerd▲ 0 net votes
A database made elsewhere (e.g. by the phone app) brings its own parameters, and some of them break live ROS localization. Mem/GenerateIds=false makes rtabmap drop every live frame, because ROS images carry no ids, so pass --Mem/GenerateIds true. RGBD/OptimizeFromGraphEnd=true makes each localization move and rebuild the whole map (10+ s), so pass false to move the robot on a fixed map instead. Also read the feature settings (Kp/DetectorStrategy, Vis/FeatureType, Marker/*) back out of the database's Info.parameters column in the launch file, so localization uses the same features the map was built with.