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

How to purge out a package that I have build with catkin ? [closed]

asked 2014-06-26 14:40:35 -0500

I have build a package (in ROS hydro) with catkin, now I wish to purge (delete all of it, including configuration files and executable) it out completely, is there a catkin facility to do so ?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Arkapravo
close date 2014-06-27 02:41:36.218476

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-06-26 15:06:24 -0500

William gravatar image

There is not anything built into any of the tools to do this. If you are doing catkin_make_isolated then you can just delete the build folder for the package in build/<package name> and the devel/install folders. Then remove the source code for that package or drop a CATKIN_IGNORE file in the source code of the that package and then rebuild. This will be relatively fast since the build folder for all of the other packages are preserved.

If you are using catkin_make, the packages are all combined, so the only way is to remove it from the workspace is to remove or disable the source code and then delete the build, devel, and/or install folders and rebuild the whole workspace.

edit flag offensive delete link more

Comments

@William That would be really messy ! shouldn't we have a tool like that ? or is it against catkin philosophy ?

Arkapravo gravatar image Arkapravo  ( 2014-06-26 16:14:02 -0500 )edit

It's not against any philosophy, but there are technical problems to how it would be implemented, can you suggest a way to remove one package from a target installation when multiple have been installed there?

William gravatar image William  ( 2014-06-26 16:35:02 -0500 )edit

@William Okay - this is a shot in the bush ! since catkin_make gives a detailed list of the installation (on the terminal window) as it installs, there should be a way to keep a track of what all it installs, so that can be starting point. I am trying to draw a comparison with apt-get in Ubuntu.

Arkapravo gravatar image Arkapravo  ( 2014-06-26 16:40:20 -0500 )edit

Just playing the devil's advocate, what happens if two packages install the same file, and then you remove one of the packages, do you leave the file they both installed?

William gravatar image William  ( 2014-06-26 17:09:43 -0500 )edit

@William dude ! I like Al Pacino, but dare not get into his shoes ! ;-)

Arkapravo gravatar image Arkapravo  ( 2014-06-26 22:41:34 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-06-26 14:40:35 -0500

Seen: 2,582 times

Last updated: Jun 26 '14