Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: vpRosGrapper only connects to localhost #27

Open
RodrigoFBernardo opened this issue Feb 4, 2022 · 1 comment
Open

Error: vpRosGrapper only connects to localhost #27

RodrigoFBernardo opened this issue Feb 4, 2022 · 1 comment

Comments

@RodrigoFBernardo
Copy link

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant