Thank you!
I followed your answer and the referred link and was able to successfully save the database. I used
<param name="database_path" command="bash -c 'printf "rtabmap_%(%d-%m-%Y_%Ih%Mm%S)T.db"'" />
on my launch file during mapping process and now i have databases name in
rtabmap_17-03-2022_08h36m23.db,
rtabmap_18-03-2022_08h41m23.db,
rtabmap_18-03-2022_08h43m08.db and so on.
Now in another launch file say run.launch i want to load the database. I just want the latest database to be loaded. How do i set the database path so it always gets the latest db file ? without renaming the previously saved database. For example say
rtabmap_18-03-2022_08h43m08.db in the database path.
I want to do so because to keep on using two different scripts for mapping and navigation without losing any database or worry of replacing it.