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

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

2 Answers

Sort by ยป oldest newest most voted
15

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

1

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 image shawnysh  ( 2017-05-30 01:07:06 -0500 )edit
3

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

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

answered 2021-09-02 21:53:23 -0500

bigbellmercy gravatar image

When I removed the source folder of a package, an error happened in catkin build command for the package. So I used the following command and the build succeeded:

catkin clean --dependents PKGNAME

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 63,016 times

Last updated: Sep 02 '21