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

How to update multiple ROS machines simultaneously?

asked 2011-06-01 21:50:49 -0500

updated 2014-01-28 17:09:46 -0500

ngrennan gravatar image

Hi everyone!

So here's my problem...

I have 6 netbooks with Ubuntu 10.04 and ROS c-turtle. When I first installed everything I did so on the first netbook and cloned the image to the other 5.

Now I want to update ROS to diamondback, I could do the update one by one, but I'm guessing there is a faster way! What options do I have to update/install ROS and manage the robot's ROS stacks without having to work on the netbooks one by one?

Thanks for the help in advance,

Gonçalo Cabrita

edit retag flag offensive close merge delete


has anyone created a puppet ( recipe for ROS?
JonW gravatar image JonW  ( 2011-06-01 22:51:57 -0500 )edit

2 Answers

Sort by » oldest newest most voted

answered 2011-06-02 00:43:06 -0500

ben gravatar image

You can turn on all of your machines and have them connected to the network. Then you can use Cluster SSH to ssh into all of them at once from some master computer and update all of them at once. It will take the same amount of time required to update one machine, to update all of them.

If your 'master' computer is running Ubuntu, you can install cssh by running:

sudo apt-get install clusterssh
edit flag offensive delete link more


interesting package!
JonW gravatar image JonW  ( 2011-06-02 12:08:26 -0500 )edit

answered 2011-06-01 23:48:10 -0500

JonW gravatar image

If you know the commands that you ned to run to upgrade to diamondback, you could bundle them together in a shell script and then either copy and run on each machine individually or use SSH to execute the commands remotely.

How much time and effort you spend on setting this up now does depend on how often you expect to be doing this in future. How elaborate is your ROS installation?

edit flag offensive delete link more


Right now I'm just interested in erasing c-turtle and installing diamondback plus a couple of extra stacks. Although it would be interesting to be able to simultaneously install stacks on all robots at the same time.
Gonçalo Cabrita gravatar image Gonçalo Cabrita  ( 2011-06-02 00:53:59 -0500 )edit
You don't need to uninstall the old install unless you need the space. Simply updating the line "source /opt/ros/cturtle/setup.bash" to diamondback in .bashrc should be sufficient to force your system to use the newer release. There are neat way to do this, but a straight file copy should work.
JonW gravatar image JonW  ( 2011-06-02 12:04:33 -0500 )edit
We are using Eee PCs with tiny HDs so space is scarce! Thanks for the tip nonetheless!
Gonçalo Cabrita gravatar image Gonçalo Cabrita  ( 2011-06-04 07:59:57 -0500 )edit

Question Tools


Asked: 2011-06-01 21:50:49 -0500

Seen: 364 times

Last updated: Jun 02 '11