Skip to content

Using Your Workspace

Nick Walker edited this page Oct 17, 2017 · 2 revisions

Building your workspace

Now that you've pulled down our code, you can build it by running

catkin build

Adding a ROS package to your workspace

cd ~/catkin_ws/src
wstool set <package-name> --<version control system> <remote-repository> [--version-new <remote repository tag/branch>]
wstool update <package-name>

Example:

wstool set segbot --git [https://github.com/utexas-bwi/segbot.git](https://github.com/utexas-bwi/segbot.git) --version-new devel
wstool update segbot

Adding a rosinstall file to your workspace

You can directly add a number of repositories to your catkin workspace using a rosinstall file.

Adding all repositories in the rosinstall file to your workspace:

cd ~/catkin_ws/src
wstool merge <rosinstall-file>
wstool update

Examples:

wstool merge /home/piyushk/my-favorite.rosinstall
wstool merge http://farnsworth.csres.utexas.edu/share/kr.rosinstall

Removing a package from your workspace

Remove the rosinstall entry:

cd ~/catkin_ws/src/
wstool rm `<package-name>

Remove the directory. If you have uncommitted changes, or changes local to only your repository, then they will be lost. Be careful!!!:

rm -rf <package-name>

The next time you rebuild your catkin workspace, this package should be gone.

Clone this wiki locally