Ask Your Question
5

catkin: move/remove package and workspace

asked 2013-11-27 21:46:30 -0500

eds gravatar image

updated 2014-01-28 17:07:25 -0500

ngrennan gravatar image

Hello,

I have a catkin workspace containing some catkin packages. They were created using catkin_init_workspace and catkin_create_pkg commands respectively.

I want to move them all in another directory but I didn't find any tutorial about it. Is there something I have to do before that? Can I simply mv -r this workspace directory?

I have some doubts because using rosrun ROS I can find my packages everywhere and it doesn't ask me for paths, so I thought it could be possible only with some environment settings. I'm cautios about moving workspace, that's why I'm asking here :)

I'm using ROS Groovy and Ubuntu 12.04

So, briefly my questione are:

  • How to move packages into another workspace?

  • How to move the entire workspace with all its packages?

  • How to remove a package?

  • How to remove an entire workspace?

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
8

answered 2013-11-27 22:54:36 -0500

dornhege gravatar image

For removing packages: Just delete them (and rebuild). They'll be gone.

For removing a workspace: Just delete it (there are no other traces).

When moving packages or workspaces to another directory/workspace you should probably clean the build completely and rebuild.

edit flag offensive delete link more

Comments

what if my package is build from source(clone from github and catkin_make)? Is it the same way as debian install is?

shawnysh gravatar imageshawnysh ( 2017-05-30 01:07:06 -0500 )edit

sudo apt-get remove ros-$Distro-$package_name

matkok gravatar imagematkok ( 2019-04-15 03:40:54 -0500 )edit

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-11-27 21:46:30 -0500

Seen: 29,145 times

Last updated: Nov 27 '13