introlab / rtabmap

RTAB-Map library and standalone application
https://introlab.github.io/rtabmap
Other
2.83k stars 787 forks source link

When exporting large point clouds, RAM usage can be too high and app exits #1375

Open matlabbe opened 2 weeks ago

matlabbe commented 2 weeks ago

Related to this issue: https://github.com/introlab/rtabmap/issues/1368

Using min and max limits of Node filtering option helps to export one section of the map after the other, but it is tedious to estimate if the density of nodes is different across the map. Setting wrong limits will make the app crash if RAM is filled. We could add an option of export nodes up to a target max RAM usage, then automatically start a new cloud when limit is reached, saving the previous cloud (with some counting suffix using a base file name), clear memory and continue with next nodes.