RLException: ERROR: could not contact master The traceback for the exception was written to the log file
Hello there,
I am new to ROS and trying to start a ROS master in a Windows 10 computer with WSL Version 1. In WSL, i only set ROSIP and ROSMASTERURI using `export ROSIP=192.XXX.XXX.ABand
export ROSMASTERURI=http://192.XXX.XXX.AB:11311` inside .bashrc of WSL. After setting ROSIP and ROSMASTER_URI as such, i did roscore
in the WSL to start the master. But, after doing roscore, i ran into the following exception:
RLException: ERROR: could not contact master [http://192.XXX.XXX.AB:11311] The traceback for the exception was written to the log file
PC
- OS: Windows 10
- WSL OS: Linux Ubuntu 20.04
- WSL Version: 1
- ROS Distro: Noetic
- IP Address: 192.XXX.XXX.AB
- ROS_IP: 192.XXX.XXX.AB
- ROSMASTERURI: http://192.XXX.XXX.AB:11311
Could you help me on this issue please?
Thanks in advance.
P.S. If i use ROSHOSTNAME in place for ROSIP i can start the master. But still curious about why i can't achieve this with ROS_IP.
Asked by mericgeren on 2023-05-29 04:41:53 UTC
Comments
quick comment: either the hostname you configure using
ROS_HOSTNAME
resolves to a different IP inside WSL, or a firewall or something similar is blockingroscore
from contactinghttp://192.XXX.XXX.AB:11311
.Asked by gvdhoorn on 2023-05-31 02:20:22 UTC
I commented out the line in which i set ROS_HOSTNAME with
export ROS_HOSTNAME
and firewall is disabled.Asked by mericgeren on 2023-05-31 04:40:02 UTC