Hi,
If you indeed input the GPS to rtabmap (feeding
/gps/fix topic, with Optimizer/PriorsIgnored=false), that can make it easier to remove old nodes in the map while keeping the map in same origin (based on the GPS). Ideally, if you can clean the map offline, it would be easier. You can use "rtabmap-reprocess" CLI tool to extract nodes up to past 10 hours, with this option :
-start # Start from this node ID.
To know from which ID to start from, you can do a sqlite3 query on the database:
ID=$(sqlite3 rtabmap.db "select min(id) from Node where time_enter > '2024-09-29 19:45:15'")
rtabmap-reprocess -start #ID rtabmap.db output.db
cheers,
Mathieu