rtabmap icon indicating copy to clipboard operation
rtabmap copied to clipboard

Map Loading

Open takahiko-hasegawa-hdjp opened this issue 2 years ago • 3 comments

Hi,

I am currently trying to develop an QT application that can load map.db and display the map on the GUI.

However, the map data stored in the database is the "unoptimized" version of the map; I need to optimize the map everyttime the map gets loaded.

I suppose I need to use the existing rtabmap library to optimize the map but not to sure where to look at.

Could you give me some advice on how to do that?

thanks in advance

takahiko-hasegawa-hdjp avatar Jul 04 '23 05:07 takahiko-hasegawa-hdjp

You can look for opt_poses in Admin table to get already optimized graph, for convenience using DBDriver class: https://github.com/introlab/rtabmap/blob/64f79813cd2c3a7e3f916a7ef2637e93f1f13a5f/corelib/include/rtabmap/core/DBDriver.h#L108

matlabbe avatar Jul 07 '23 04:07 matlabbe

thanks! @matlabbe how about optimized 2D point cloud? (like the graph view)

takahiko-hasegawa-hdjp avatar Aug 01 '23 09:08 takahiko-hasegawa-hdjp

Do you mean the oocupancy grid? it is also in Admin table (see here), though only created automatically on ROS when there is a subscriber on the map. Otherwise, you can regenerate the occupancy grid in rtabmap-databaseViewer File->Renegerate optimized 2d map...

matlabbe avatar Aug 05 '23 21:08 matlabbe