Closed mandralis closed 9 months ago
Can you provide more detailed error traces? What is the exact error message you are seeing?
Hi so I am seeing exactly the Warning: "VRPN connection is bad".
This occurs in client.cpp line 78: RCLCPP_WARN(this->get_logger(), "VRPN connection is bad");
I have setup optitrack to stream to the correct IP address and through the correct port, but I cannot get it to work...
I am working on foxy and built from source. I also previously tried installing directly from debian but both have the same behavior.
Thanks for your help !
There may be 2 IP addresses. Are you using the one setup in Motive or the IP address of the host machine (that is running Motive)?
The IP address I am using is the IP of Motive. This works when using ROS1 with the original VRPN client.
Can you try setting the IP to be the host machine's local IP (dynamically allocated by the router) instead of the IP specified in Motive?
I will try this tomorrow morning when I have access to opti-track again. Thanks for the help - I'll be in touch. I really need to get this to work - thanks for your work in making this possible !
opti track is set to stream at IP X. I am setting the vrpn client to listen to the same IP X.
I can't debug this issue - any other ideas ?
Note: I am using ros foxy within a docker container - maybe this messes up things ?
The VRPN client should listen to the IP of the host computer. You can get this IP by running ipconfig
in a windows terminal. From my experience, this IP is usually not the same IP as the one set in Motive.
I managed to get it to work by using it outside Docker. We will have to figure out the appropriate settings to get this package to mesh well with docker. Thanks !
Running apt-get install netbase
in the container adds the necessary /etc/protocols
file to fix the vrpn_poll_for_accept: getprotobyname() failed
error. Which I believe is the root cause of the problem. Make sure to run docker with --network=host as well.
I am getting a warning that VRPN connection is bad.
I am quite sure I am on the correct ip address and port. I am interfacing with optitrack and ros2.
Any advice ?
Thanks