Robotics StackExchange | Archived questions

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.ABandexport 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









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 blocking roscore from contacting http://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

Answers