deleting a map does not release the corresponding memory from RAM.

Posted by Amber on
URL: http://official-rtab-map-forum.206.s1.nabble.com/deleting-a-map-does-not-release-the-corresponding-memory-from-RAM-tp9102.html

Hi Matheu,

Problem: I have a map loaded while running localization with rtabmap node. Now, without crashing the node, I want to remove that map_1.db file and load another one, say map_2.db.


This process somewhat works, although there is a problem situation.
Situation:
Initially, map_1.db is loaded. Then, I use rtabmap.close() (important one only mentioned) function to delete the memory occupied by the map and through a ros service call load map_2.db (I also call OnInit() function through this service). However, my RAM usage shows that the space occupied by map_1.db is not freed.

Would you please suggest, if I am missing something?

regards,
Anindya