Skip to content

Instantly share code, notes, and snippets.

@anindex
Last active June 5, 2019 10:08
Show Gist options
  • Save anindex/1106bbd80384f01f92ab6a7f39392067 to your computer and use it in GitHub Desktop.
Save anindex/1106bbd80384f01f92ab6a7f39392067 to your computer and use it in GitHub Desktop.
Setting up ROS workspace with catkin tools and wstool
mkdir -p ~/<name>/src
cd ~/<name>
catkin init
catkin config --extend /opt/ros/<distro>

To ease mass checkouts and updates, you may want to enable git credential caching with:

git config --global credential.helper 'cache --timeout=120'

Init wstool

wstool init

Add External *.rosinstall Files to Your Project (example .rosinstall in folder ~/pr-rosinstalls):

wstool merge ~/pr-rosinstalls/herb-minimal-sim.rosinstall
wstool up # update/clone your .rosinstall repositories

Add Additional Repositories to Your Project

wstool set some_repo https://github.com/user/some_repo.git --git
wstool up # update/clone your .rosinstall repositories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment