ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

vrpn_client_ros couldn't work in docker

asked 2021-07-20 20:49:14 -0500

flyline gravatar image

My environment is MacBook Pro M1, Docker for M1. I pulled a docker image , ros:melodic,from docker hub, and installed ros-melodic-vrpn and this code(vrpn_client_ros). but this code can't working. It stoped at "connect established". For comparing, I running it at Jetson Nano Native OS and Docker in the Jetson Nano which the image was same with the MacBook, ros:melodic. The result showed it can connect the Movite when it running in the Jetson Nano Native OS and can not connect in the Docker in the Jetson Nano either.

then, the other software needed using network in the two docker containers could running normally, such as ssh, apt-get, curl and so on, and running "ping" to Movite's IP in the two docker containers could success.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-07-24 00:26:39 -0500

ruffsl gravatar image

You may want to read into the networking documentation for docker containers:

https://docs.docker.com/network

One simplistic workaround may be to remove network isolation between the container and the Docker host, and use the host’s networking directly. See using the host network:

https://docs.docker.com/network/host

Although, when using Docker for Mac, networking gets more complex given a virtual machine is used to host the docker engine.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-07-20 20:49:14 -0500

Seen: 142 times

Last updated: Jul 24 '21