How can I run ros master on remote machine through roslaunch
I want to run a roslaunch file that runs node both locally and on a remote machine, but I want the ros master be on the remote machine.
I managed to set everything up with the ROSMASTERURI to get the roslaunch to work when I manually run roscore on the remote machine before running the roslaunch file.
The problem I am having is that if the roscore isn't up and running on the remote machine (the master isn't up) the roslaunch doesn't start one and gives an error
[ERROR: unable to contact ROS master ....
How can I get roslaunch to run ROS master on a remote machine like it does if the master is local?
Asked by GilMe on 2022-08-28 03:05:53 UTC
Comments
Hi, you can check the system variable $ ROS_IP, this IP should be where you want your roscore to run.
Asked by Dhara on 2022-08-29 08:14:10 UTC
Unfortunately it didn't work. When running roslaunch it gave me an error:
RLException: Unable to contact my own server at [http://192.168.68.118:40525/]. This usually means that the network is not configured properly
I think the problem is that the ROS_IP variable is used to register to the rosmaster on which IP the local nodes are. That is why the IP has to be the IP of the local machine. It does work when I run roscone on remote machine and set ROS_IP to be the IP of the local machine.
Asked by GilMe on 2022-08-29 09:14:42 UTC