visp_ros icon indicating copy to clipboard operation
visp_ros copied to clipboard

Error: vpRosGrapper only connects to localhost

Open RodrigoFBernardo opened this issue 4 years ago • 1 comments

My ROS master is running on Robo's PC and so whenever I try to run the vpRosGrapper test script I get this error:

euroage@euroage:~$ roslaunch vision vision.launch 
... logging to /home/euroage/.ros/log/3b23780c-85c2-11ec-9501-e0d55e204096/roslaunch-euroage-27418.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.1.101:34219/

SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.12

NODES
  /
    vpRosGrapper (vision/vpRosGrapper)

ROS_MASTER_URI=http://192.168.1.100:11311/

process[vpRosGrapper-1]: started with pid [27432]
[ERROR] [1643982987.714933681]: [registerPublisher] Failed to contact master at [localhost:11311].  Retrying...

I only get no error when I run the master on localhost.

How can I get around this problem?

RodrigoFBernardo avatar Feb 04 '22 14:02 RodrigoFBernardo

I solved the problem by changing the vpROSGrabber.cpp parameter m_master_uri( "http://192.168.1.100:11311/" ) in the file. How can I change this parameter automatically? Or change it from the launch file?

RodrigoFBernardo avatar Feb 04 '22 15:02 RodrigoFBernardo