ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The easiest way is to create a rosinstall file and use the version
tag. For your single example repository the example.rosinstall
file would look like:
-git:
uri: https://github.com/xxx
local-name: yyy
version: indigo
Note that the local name is typically just the repository name without the organization name, but you are free to organize your repositories into any structure you like (including subdirectories).
Once you have an example.rosinstall
file you would add the repository to your workspace by going to the src/
directory and using wstool to merge in additional rosinstall files:
wstool merge example.rosinstall
This will automatically populate the .rosinstall
file in the src/
directory of your workspace.
Another option (that is discouraged) is to manually edit the .rosinstall
file in the src/
directory of your workspace. However, that is an auto-generated file and your manual edits may be overwritten at a later time which can lead to confusion, which is why it is discouraged.