ros-drivers / flir_camera_driver

163 stars 154 forks source link

Driver disconnects Realsense #103

Open samraise opened 1 year ago

samraise commented 1 year ago

I'm trying to use a Realsense D435i camera alongside a FLIR Blackfly. When I launch the FLIR camera driver the Realsense driver fails to locate the d435i with the following error:

 05/12 10:06:25,759 ERROR [281472258334960] (librealsense-exception.h:52) acquire: Cannot open '/dev/video0 Last Error: No such file or directory
 05/12 10:06:25,759 ERROR [281472258334960] (global_timestamp_reader.cpp:239) Error during time_diff_keeper polling: acquire: Cannot open '/dev/video0 Last Error: No such file or directory
 05/12 10:06:25,824 ERROR [281471969054960] (backend-v4l2.cpp:329) xioctl(VIDIOC_QBUF) failed when requesting new frame! fd: 22 error: No such device
 05/12 10:06:25,824 ERROR [281471969054960] (backend-v4l2.cpp:329) xioctl(VIDIOC_QBUF) failed when requesting new frame! fd: 27 error: No such device
 05/12 10:06:25,836 ERROR [281471814197488] (librealsense-exception.h:52) get_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: No such device
 05/12 10:06:25,836 ERROR [281471814197488] (librealsense-exception.h:52) get_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: No such device
 05/12 10:06:26,525 ERROR [281472023916784] (librealsense-exception.h:52) get_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: No such device
 05/12 10:06:26,525 ERROR [281472023916784] (error-handling.cpp:78) Error during polling error handler: get_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: No such device
 05/12 10:06:26,759 ERROR [281472258334960] (librealsense-exception.h:52) acquire: Cannot open '/dev/video0 Last Error: No such file or directory
 05/12 10:06:26,759 ERROR [281472258334960] (global_timestamp_reader.cpp:239) Error during time_diff_keeper polling: acquire: Cannot open '/dev/video0 Last Error: No such file or directory

Could I please get some help on how I might be able to resolve this?

fcladera commented 1 year ago

I am observing the same issue with other cameras. As soon as I run this driver, other cameras are disconnected.

Update: it seems to be an issue with Spinnaker. Launching spinview triggers the same bug.

KDeng98 commented 5 months ago

Hi, I met a similar problem. Both Realsense and FLIR cameras can be turned on but the FLIR camera node will be killed with the following errors: [ERROR] [1712765563.427054041]: [SpinnakerCamera::grabImage] Failed to retrieve buffer with error: Spinnaker: Failed waiting for EventData on NEW_BUFFER_DATA event. [-1011] [ERROR] [1712765563.427170181]: Failed to disconnect with error: [SpinnakerCamera::disconnect] Failed to disconnect camera with error: Spinnaker: Can't de-initialize camera. Camera is still streaming. [-1004] Can anyone help me to find out why this happens and how to solve it? Thanks

KDeng98 commented 5 months ago

Hi, I met a similar problem. Both Realsense and FLIR cameras can be turned on but the FLIR camera node will be killed with the following errors: [ERROR] [1712765563.427054041]: [SpinnakerCamera::grabImage] Failed to retrieve buffer with error: Spinnaker: Failed waiting for EventData on NEW_BUFFER_DATA event. [-1011] [ERROR] [1712765563.427170181]: Failed to disconnect with error: [SpinnakerCamera::disconnect] Failed to disconnect camera with error: Spinnaker: Can't de-initialize camera. Camera is still streaming. [-1004] Can anyone help me to find out why this happens and how to solve it? Thanks

The problem was solved by using the USB3 camera instead of the GigE camera. It would be fine if you launch the FLIR node before launching the RealSense node.