RLException: ERROR: could not contact master The traceback for the exception was written to the log file

asked 2023-05-29 04:41:53 -0500

mericgeren gravatar image

updated 2023-05-30 08:03:51 -0500

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


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.

edit retag flag offensive close merge delete

Comments

1

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.

gvdhoorn gravatar image gvdhoorn  ( 2023-05-31 02:20:22 -0500 )edit

I commented out the line in which i set ROS_HOSTNAME with export ROS_HOSTNAME and firewall is disabled.

mericgeren gravatar image mericgeren  ( 2023-05-31 04:40:02 -0500 )edit