ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Failed to contact master at 172.x.x.x

asked 2017-05-11 00:46:34 -0600

Robita gravatar image

updated 2017-05-11 01:07:13 -0600

gvdhoorn gravatar image

hi I'am trying to connect my pioneer LX Robot with my own system in which ROS Kinetic is installed for SLAM(in Ubuntu 16.04) via wifi,but after runnig this command

export ROS_MASTER_URI=http://172.x.x.x:11311

when i run

rosrun rosaria RosAria

every time i got the following error..

xyz@xyz-Desktop:~/catkin_ws$ export ROS_MASTER_URI=
xyz@xyz-Desktop:~/catkin_ws$ rosrun rosaria RosAria
[ERROR] [1494496662.614976996]: [registerPublisher] Failed to contact master at [].  Retrying...
Connnecting to robot using TCP connection to localhost:8101...
Could not connect to simulator, connecting to robot through serial port /dev/ttyUSB0.
ArSerialConnection::open: Could not open serial port '/dev/ttyUSB0' | ErrorFromOSNum: 2 ErrorFromOSString: No such file or directory
Could not connect, because open on the device connection failed.
Failed to connect to robot.

Any help is appreciated.

edit retag flag offensive close merge delete


Could you please update your question to clearly indicate which command you run on which computer / robot? Right now this is rather ambiguous.

gvdhoorn gravatar image gvdhoorn  ( 2017-05-11 01:07:47 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-05-11 01:43:21 -0600

spooner-dev gravatar image

updated 2017-05-11 01:49:03 -0600

This is a wild guest, given the lack of info, but:

You also need to export either ROS_HOSTNAME or ROS_IP variables:

export ROS_IP=172.x.x.x

ROS_HOSTNAME requires, that the provided hostname is resolvable, so ROS_IP, is your choice for simple setup.

This might be helpfull ROS Network Setup

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-05-11 00:46:34 -0600

Seen: 1,899 times

Last updated: May 11 '17