Lidar + Webcam both using opencv and failing

Heya,

First post here so hopefully this is the correct area :slight_smile:

I have a webcam and a lidar connected to a raspberry pi. I can’t seem to run them both at the same time. They both run individually fine. And I can see this error from the lidar coming out:

[ WARN:0@155.500] global /home/yangsy/library/ThirdPart_build/opencv-4.6.0/modules/videoio/src/cap_v4l.cpp (1013) tryIoctl VIDEOIO(V4L2:/dev/video1): select() timeout.

I’m thinking that:

  1. The lidar shouldn’t be using opencv / v4l2 to get data right?
  2. There is resource contention between the devices and opencv is not getting any data from the lidar and timing out?

I have the webcam set to 1080p30fps. But the lidar is only set to take an image every second, so it shouldn’t be a through put issue right. Maybe this is just bad SDK usage of opencv?

Thanks guys!