Ask Your Question

(Why) Is it bad practice to check in catkin workspaces?

asked 2014-03-20 11:04:17 -0600

updated 2014-03-21 05:57:20 -0600

I'm trying to set up a repository which makes it easy for new developers to join the project. To do so I'm considering checking a catkin workspace; doing so without the constituent packages. Are there any known pitfalls to doing this?

Is there a recommended way to create one-step checkout and go setups?

edit retag flag offensive close merge delete



What are you actually proposing to check in? My workspace is effectively empty without any packages.

ahendrix gravatar imageahendrix ( 2014-03-20 11:06:41 -0600 )edit

My colleges are versioning complete workspaces. There are a few things to take care of. For example that the .rosinstall includes absolute paths, but they successfully versioned workspaces.

BennyRe gravatar imageBennyRe ( 2014-03-20 21:03:57 -0600 )edit

Be sure to not check in any generated files, such as devel or build folders. Can you motivate what exactly you want to do? It seems by providing a .rosinstall new developers can setup their workspace with just 2-3 commands.

demmeln gravatar imagedemmeln ( 2014-03-21 01:05:50 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-21 05:10:09 -0600

joq gravatar image

Probably not the best solution.

It might be more productive to discuss the problems with the ROS usability scripts mailing list.

It should be possible to write a script that creates a workspace and populates it from a rosinstall file all in one command with relatively few required parameters. That would be useful to everyone.

edit flag offensive delete link more


I'm also considering the script option, but am wary that any new adjustments to the setup couldn't be done directly and checked in, but rather would need to be done indirectly in the script and then verified in a fresh checkout. I'm curious about the specific reasons it might be a bad idea.

Asomerville gravatar imageAsomerville ( 2014-03-21 05:44:20 -0600 )edit

Maybe you could specify what exactly it is that you propose to check in, then we can discuss possible drawbacks or alternatives.

demmeln gravatar imagedemmeln ( 2014-03-21 06:10:16 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-03-20 11:04:17 -0600

Seen: 132 times

Last updated: Mar 21 '14