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 ROS_IP and ROS_MASTER_URI using export ROS_IP=192.XXX.XXX.AB
and export ROS_MASTER_URI=http://192.XXX.XXX.AB:11311
inside .bashrc of WSL. After setting ROS_IP and ROS_MASTER_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
- ROS_MASTER_URI:http://192.XXX.XXX.AB:11311
Could you help me on this issue please?
Thanks in advance.
P.S. If i use ROS_HOSTNAME in place for ROS_IP i can start the master. But still curious about why i can't achieve this with ROS_IP.
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
.I commented out the line in which i set ROS_HOSTNAME with
export ROS_HOSTNAME
and firewall is disabled.