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