ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS2 How to uninstall/remove a package ?

asked 2020-10-25 11:15:24 -0600

Mackou gravatar image

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 !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-21 22:40:41 -0600

PointCloud gravatar image

updated 2022-10-21 22:49:42 -0600

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
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-10-25 11:15:24 -0600

Seen: 15,732 times

Last updated: Oct 21 '22