Ask Your Question

What's the meaning of rosws merge?

asked 2012-08-17 02:35:30 -0500

sam gravatar image

I followed rosjava_core 0.0.0-SNAPSHOT documentation.

What's the meaning of this command?

  rosws merge /opt/ros/electric/.rosinstall

Is it suitable for any ROS version?

Thank you~

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-08-17 03:11:57 -0500

KruseT gravatar image

updated 2012-08-17 03:12:47 -0500

rosws merge merges your local .rosinstall with another rosinstall file. Often projects define several stacks or packages to download from different sources in a single xyz.rosinstall file. Rather than copying the contents of that file into your local .rosinstall file, you can use rosws merge.


rosws merge foo.rosinstall

is equivalent to calling

rosinstall . foo.rosinstall

The rosws command works with any ROS version.

Also see the rosws documentation:

edit flag offensive delete link more


I have already install ROS electric. Why I still need to rosinstall /opt/ros/electric/.rosinstall ? Thank you~

sam gravatar image sam  ( 2012-08-17 03:15:09 -0500 )edit

Please have a look at the ros overlay installation page for more information on how to properly set up a ros overlay. You need to merge /opt/ros/electric/.rosinstall to your current workspace if you want to use stacks installed as debian pkgs.

Lorenz gravatar image Lorenz  ( 2012-08-17 03:47:00 -0500 )edit

I understand I always use a cumbersome way of ROS. But I still don't understand what's the effect of rosinstall /opt/ros/electric/.rosinstall? Thank you~

sam gravatar image sam  ( 2012-08-17 04:17:08 -0500 )edit

A ros workspace is a directory that contains a .rosinstall file that points to all repositories you installed from source, to local directories that should be part of your ROS_PACKAGE_PATH. rosws merge merges the content of another rosinstall file with your workspace.

Lorenz gravatar image Lorenz  ( 2012-08-17 04:34:13 -0500 )edit

So what your meaning is 'rosws merge' generate the .rosinstall which has all paths including /opt/ros/electric/.rosinstall, then I add setup.bash to bashrc in order to replace the path of /opt/ros/electric/.rosinstall? Thank you~

sam gravatar image sam  ( 2012-08-17 13:39:31 -0500 )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: 2012-08-17 02:35:30 -0500

Seen: 581 times

Last updated: Aug 17 '12