Rtabmap package disappearing

In my private rosject, I need to use Rtabmap. Every time i logout, and some time have passed (about 15 min), and I login back again, the package disappears and i have to reinstall it again. How can I fix/solve this.

Hi,

Where are you placing it?

The only persistent storage space is inside ros2_ws/src (or catkin_ws if you are in ROS 1).

If you are installing it through apt, then unfortunately there is no way to keep it installed in the system after your environment closes. In this case, you could create a script install_rtabmap.sh, make it executable chmod +x install_rtabmap.sh, and place it in ros2_ws/src. Inside the bash script just paste the install commands, and you can run it every time you open your environment.

The files inside ros2_ws/src will be saved forever.

This helps, thank you