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

when should I create a new workspace

asked 2018-03-22 13:56:28 -0500

Jeffery gravatar image

I just finished beginner tutorials. In the tutorial, we create a catkin_ws. Now I am trying to do some further projects, but I have no idea that do I need to create a new workspace for new project or just create new package in old workspace.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-03-22 14:10:10 -0500

gvdhoorn gravatar image

updated 2018-03-22 14:21:18 -0500

I don't believe there is a single "best" answer to this: some people like to keep all of their packages in a single workspace, others like to group packages that they use for particular projects into separate workspaces.

Neither is necessarily better than the other.

Personally I keep separate workspaces for just about everything, and use workspace overlaying whenever I need certain packages in other workspaces.


Edit:

Thank you for answering. So if I keep all packages in one workspace, whenever I use catkin_make to build packages, it will build all my packages, but usually I don't really need other packages.

That could be one reason to have multiple workspaces, yes.

On the other hand, catkin_tools supports profiles that allow you to configure black and whitelists. If you'd want, you could have a workspace with 1000 packages, while still only building 3 of them (for instance).

edit flag offensive delete link more

Comments

Thank you for answering. So if I keep all packages in one workspace, whenever I use catkin_make to build packages, it will build all my packages, but usually I don't really need other packages.

Jeffery gravatar image Jeffery  ( 2018-03-22 14:18:07 -0500 )edit

That's been my reason for using catkin_tools. I have that one repo with a lot of packages some broken that I don't need. Catkin build only build the ones I need :)

Maya gravatar image Maya  ( 2018-03-22 18:29:28 -0500 )edit

Question Tools

Stats

Asked: 2018-03-22 13:56:28 -0500

Seen: 1,280 times

Last updated: Mar 22 '18