Open theateist opened 5 months ago
Sending the ping from docker to 192.168.2.10 works fine? Sending the ping from docker to camera works fine?
if not will you create a tcp dump in the docker while starting your application in the docker
Hello @theateist Did you manage to solve your issue at the end?
I have the same issue. I can connect from the host and i can also ping the camera from the docker container, but i can't connect
I just tested on an Ubuntu 22.04 laptop running ROS2 Humble on the host (no docker involved), and I get the same issue. I can see the stream from the pylonviewer but not from this ros package (humble branch). I have set a static IP and i can ping it. I have also set the device id and modified the config yaml, but to no avail.
I am running Pylon 8.0.0
Describe what you want to implement and what the issue & the steps to reproduce it are:
I'm trying to connect to the camera from a docker container.
OS: Ubuntu 22.04.4 LTS Pylon: pylon_7.5.0.15658-deb0_amd64
The camera is connected to ethernet interface
enp0s31f6
which is on static ip192.168.2.10/255.255.255.0
. The camera is on static ip192.168.2.11/255.255.255.0
I built pylon-ros-camera and it successfully detected the camera on the host
But even though I successfully built the same package inside a docker container, it cannot detect the camera
What I tried
--network=host -d myimage ....
And now if I runifconfig
inside the container, it shows me the same interfaces as on the host. See belowifconfig
output on host and inside container. But, it still cannot detect the camera.docker run --network=host --privileged -v /dev:/dev -d ....
But, it still cannot detect the camera.What might be the problem?
Hardware setup description
IFCONFIG on host
IFCONFIG inside container
Runtime information
Is your camera operational with the Basler pylon Viewer on your platform?
Yes