Hi ,
I am trying to capture an image with GMSL camera and stream the image to CPU,
The camers is initialized successfully and frame capture is also okay
but the image streamer is failing with error:
[12-06-2021 16:32:26] Driveworks exception thrown: DW_INTERNAL_ERROR: ImageStreamer: cannot send image over stream
[2021-06-12 16:32:26] DW Error DW_INTERNAL_ERROR executing DW function:
dwImageStreamer_producerSend(frameCUDA, m_streamerCUDAtoCPU)
This is my work flow:
//Declaration:
dwImageStreamerHandle_t m_streamerCUDAtoCPU = DW_NULL_HANDLE;
dwImageProperties rgbaImageProperties{};
//Initialization:
// In order to stream we prepare the properties of the image
CHECK_DW_ERROR(dwSensorCamera_getImageProperties(&rgbaImageProperties, DW_CAMERA_OUTPUT_CUDA_RAW_UINT16, m_camera));
// Initializing the streamer to stream from CUDA to CPU
CHECK_DW_ERROR(dwImageStreamer_initialize(m_streamerCUDAtoCPU, &rgbaImageProperties, DW_IMAGE_CPU, m_sdk));
//Sending and Receiving:
// stream the CUDA image to the CPU domain
CHECK_DW_ERROR(dwImageStreamer_producerSend(frameCUDA, m_streamerCUDAtoCPU));
dwImageHandle_t frameCPU;
// receive the streamed image as a handle
CHECK_DW_ERROR(dwImageStreamer_consumerReceive(&frameCPU, timeout, m_streamerCUDAtoCPU));
//Returning:
// returned the consumed image
CHECK_DW_ERROR(dwImageStreamer_consumerReturn(&frameCPU, m_streamerCUDAtoCPU));
// notify the producer that the work is done
CHECK_DW_ERROR(dwImageStreamer_producerReturn(frameCUDA, timeout, m_streamerCUDAtoCPU));
//Releasing:
if (m_streamerCUDAtoCPU) {
dwImageStreamer_release(m_streamerCUDAtoCPU);
}
Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other
Target Operating System
Linux
QNX
other
Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other
SDK Manager Version
1.5.0.7774
other
Host Machine Version
native Ubuntu 18.04
other