Networking issues with tmux
If I run roslaunch
within a tmux
session on a remote machine, I get the following error when attempting to do a remote service call (i.e. rosservice call foo
):
ERROR: Unable to communicate with service [/foo], address [rosrpc://remote-machine:42565]
I am running roslaunch using ssh root@$192.168.1.20 "tmux new-window 'source /opt/ros/indigo/setup.bash && roslaunch some_pkg some_launch_file.launch'"
(where 192.168.1.20 is the IP of the remote-machine).
If, instead, I just run ssh root@192.168.1.20 "source /opt/ros/indigo/setup.bash && roslaunch some_pkg some_launch_file.launch"
then everything works just fine, and I am able to make service calls.
Interestingly enough, in both cases I am able to list services just fine using rosservice list
. But I cannot actually make service calls if roslaunch
is running under tmux
.
Any idea why this is happening?