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

Revision history [back]

click to hide/show revision 1
initial version

I don't know if it's somehow possible using only launch files but it should be possible with bash scripts and ssh. Assuming we have local_bash.sh, remote_bash.sh scripts with local.launch and remote.launch launch files. To run local.launch on local and at the same time remote.launch on remote machine I would do something like this. local_bash.sh:

roslaunch ros_package local.launch
ssh user@hostname 'bash -s' < remote_bash.sh

This will run remote_bash.sh script on your local host.

remote_bash.sh would then look like this:

roslaunch ros_package remote.launch

I don't know if it's somehow possible using only launch files but it should be possible with bash scripts and ssh. Assuming we have local_bash.sh, remote_bash.sh scripts with local.launch and remote.launch launch files. To run local.launch on local and at the same time remote.launch on remote machine I would do something like this. this.

local_bash.sh:

roslaunch ros_package local.launch
ssh user@hostname 'bash -s' < remote_bash.sh

This will run remote_bash.sh script on your local host.

remote_bash.sh would then look like this:

roslaunch ros_package remote.launch