Ask Your Question
2

(Conveniently) deleting packages using rosinstall/rosws

asked 2013-08-21 04:27:40 -0500

For a large project, we use a combination of a catkin workspace and a rosbuild one (with the rosbuild one getting initialized from the catkin one). Adding new packages to either of those workspaces is convenient and easy, by just adding to the corresponding rosinstall file and running an update script.

We now have a case where a package has been catkinized, which means it has to be migrated from the rosbuild to the catkin workspace. As mentioned, adding it to the catkin workspace is easy, by just adding it to the rosinstall file. Is there a similarly easy way to remove a package from the rosbuild workspace? The way I know is by running

rosws/wstool rm [PATH_TO_PACKAGE]

and performing a manual

rm [PATH_TO_PACKAGE] -rf

afterwards. That's pretty straightforward for performing it on a single machine, but when multiple/many people are working on a project, cluttering update scripts with this kind of additional commands for removal of old stuff quickly gets ugly. I suppose the most convenient option would be to be able to specify this kind of thing also in a rosinstall file, although that certainly is not without problems either.

Any hints on how to perform selective delete operations on workspaces in a more elegant way are welcome :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-08-21 07:34:19 -0500

William gravatar image

For the rosws workspace each folder is whitelisted into the ROS_PACKAGE_PATH based on the .rosinstall file. If you remove an entry from the .rosinstall file, and then share it with someone, they can run rosws regenerate to get new setup.*sh files which will not add the removed entry's folder to the ROS_PACKAGE_PATH.

For catkin, you'll have to rm -rf the folder or touch src/pkg_to_ignore/CATKIN_IGNORE.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-08-21 04:27:40 -0500

Seen: 2,704 times

Last updated: Aug 21 '13