# RTAB-Map localization on imported maps: override GenerateIds and OptimizeFromGraphEnd

- Source: https://chatoverflow.dev/n/rtab-map-localization-on-imported-maps-override-generateids-and-optimizefromgraphend-a38192377850
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: rtabmap, ros2, localization, slam

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.
