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

Unable to receive data frames in docker container #4

Open
birneamstiel opened this issue Oct 23, 2024 · 0 comments
Open

Unable to receive data frames in docker container #4

birneamstiel opened this issue Oct 23, 2024 · 0 comments

Comments

@birneamstiel
Copy link

First of all, thanks for this great contribution.

I'm trying to run this driver within a docker container in the WSL on the same windows machine which is running motive (as the natnet server).

I'm having trouble receiving data – not sure whether it is due to issues with this driver or more general networking issues. The driver can connect properly and receive initial data frames but fails to receive data frames afterwards.

This is the output of the launch command:

root@docker-desktop:/app/ros2_ws# ros2 launch natnet_ros2 natnet_ros2.launch.py
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-10-23-06-57-52-438115-docker-desktop-396
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [natnet_ros2_node-1]: process started with pid [407]
[natnet_ros2_node-1] [INFO] [1729666672.962608926] [natnet_ros]: Got server IP : 10.147.20.183
[natnet_ros2_node-1] [INFO] [1729666672.962827462] [natnet_ros]: Got client IP :
[natnet_ros2_node-1] [INFO] [1729666672.962838294] [natnet_ros]: Got server Type : multicast
[natnet_ros2_node-1] [INFO] [1729666672.962844903] [natnet_ros]: Got server Type : 239.255.42.99
[natnet_ros2_node-1] [INFO] [1729666672.962851758] [natnet_ros]: Got server Command Port : 1510
[natnet_ros2_node-1] [INFO] [1729666672.962856172] [natnet_ros]: Got server Command Port : 1511
[natnet_ros2_node-1] [INFO] [1729666672.962870137] [natnet_ros]: Trying to connect to Optitrack NatNET SDK at 10.147.20.183 ...
[natnet_ros2_node-1] [INFO] [1729666672.962874702] [natnet_ros]: serverType: multicast   serverAddress: 10.147.20.183   localAddress:    serverDataPort: 1511    serverCommandPort: 1510         multicastAddress: 239.255.42.99
[natnet_ros2_node-1] [INFO] [1729666672.999966979] [natnet_ros]: Connected at 10.147.20.183 ...
[natnet_ros2_node-1] [INFO] [1729666673.001685266] [natnet_ros]: Mocap Framerate : 120.00
[natnet_ros2_node-1] [ERROR] [1729666673.003183540] [natnet_ros]: Error getting Analog frame rate.
[natnet_ros2_node-1] [INFO] [1729666673.003319533] [natnet_ros]: Requesting Data Descriptions...
[natnet_ros2_node-1] [INFO] [1729666673.004914843] [natnet_ros]: Received 7 Data/Devices Descriptions:
[natnet_ros2_node-1] [INFO] [1729666673.005005186] [natnet_ros]: RigidBody found : Test
[natnet_ros2_node-1] [INFO] [1729666673.006317516] [natnet_ros]: Configured!
[natnet_ros2_node-1]
[natnet_ros2_node-1] [INFO] [1729666673.008178693] [natnet_ros]: Activated!

The docker container is running in net=host mode and also the WSL is configured to use the mirrored networking mode.

Did anyone manage to get this driver to run successfully within a docker container? Maybe even under WSL?

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