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

Can a single git repository release multiple ROS stacks?

asked 2011-06-19 00:47:31 -0600

joq gravatar image

I am setting up a repository which will contain several ROS stacks. I want rosinstall and ros_release to manage each stack separately. I know how to do it with svn, but git seems to force the whole repository to be managed as a unit.

  • Is there a way to use git that meets these requirements?

  • Do I need a separate git repository for each stack?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
4

answered 2011-06-19 08:02:01 -0600

kwc gravatar image

You need to map git repositories directly onto stacks as you cannot do partial checkouts of git repositories. For source-based installs using rosinstall, you can get into bad states if you are using more than one stack from a single git repository. Another way to think of it is, outside of ROS, if you were releasing a software library, you would have a separate repository for that software library, i.e. we generally map releasable units to separate repositories.

You can, however, use git submodules to create larger, virtual repositories. git submodules are not seamless, but they are the closest to combining the aggregate 'give me everything' behavior of SVN and managing release-able units separately.

edit flag offensive delete link more
4

answered 2012-02-03 02:37:50 -0600

updated 2012-02-03 02:39:11 -0600

Just for future reference: The preferred way now seems to be releasing every stack as a separate git repository, then adding them to a rosinstall file and adding that to the indexer. See this mail by Ken Conley to ros-users. This approach makes it possible to develop and check out each stack separately while avoiding problems with Git submodules (such as this one).

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2011-06-19 00:47:31 -0600

Seen: 794 times

Last updated: Feb 03 '12