ROS2 How to uninstall/remove a package ?
Hello, I would like to know how to remove cleanly a package from ROS2.
I have installed from source the package ros2-lgsvl-bridge
and now I would like to remove it from my ros environment. How do I do it ?
In ROS1 I would source ROS again, rebuild my packages and it would be done ! But here in ROS2 Dashing even when sourcing ROS2 again I still have this package in those env variables : COLCON_PREFIX_PATH
, AMENT_PREFIX_PATH
, CMAKE_PREFIX_PATH
.
How do I remove this package cleanly without starting a new bash session ?
Thanks !
Asked by Mackou on 2020-10-25 11:15:24 UTC
Answers
remove the package directory (here from ros2_ws directory as being the working directory):
rm -rf src/<package_name>
Then remove the build, install and log directory
rm -rf build/ install/ log/
and rebuild the environment, as usual (full colcon build)
colcon build
Asked by PointCloud on 2022-10-21 22:40:41 UTC
Comments