I am trying to implement a multi-camera setup with the Xavier. I have 4 cameras connected to it. I also referred to samples/sensors/camera/camera_multiple_gmsl/main.cpp.
The sample suggests to call dwSensorCamera_readFrame() in the same thread. (dwSensorCamera_readFrame() is called for each camera sibling ID in a simple ‘for’ loop). I was wondering if it was possible to have a separate thread for each camera to read frames. When I tried to implement such an architecture, I ended up with DW_FAILURE errors when I was trying to call dwSensorCamera_returnFrame(). It eventually led to DW_TIMEOUT in dwSensorCamera_readFrame() since the frames failed to be returned successfully.