SherifN / peak_cam

A Linux ROS C++ Node that wraps the driver API for IDS vision cameras using IDS peak software.
Other
8 stars 12 forks source link

PEAK_RETURN_CODE_BAD_ACCESS #39

Open jprehbein opened 1 year ago

jprehbein commented 1 year ago

Hello, First off, thank you for the package and all the work. Now to my problem: I recently got my hands on an IDS-U3-3560XLE-CHQ and need to somehow get the raw image into ROS for further image processing. After getting the installation done with some problems, I cant run the basic launch file. Whenever I do I get the error:

[ INFO] [1684756034.385314900]: Setting parameters to:
[ INFO] [1684756034.385726474]: camera_topic: image_raw
[ INFO] [1684756034.842413758]: Devices available:
[ INFO] [1684756034.842516551]: 0: IDS Imaging Development Systems GmbH U3-356xXLE-C (1409f4a81af4)
[ INFO] [1684756034.842564321]: SELECTING NEW DEVICE: 0
[ INFO] [1684756034.975754580]: [PEAK_CAM]: U3-356xXLE-C found
[ INFO] [1684756034.983839997]: [PEAK_CAM]: maxWidth '1920'
[ INFO] [1684756034.984193142]: [PEAK_CAM]: maxHeight '1200'
[ INFO] [1684756034.987109026]: [PEAK_CAM]: ImageWidth is set to '1920'
[ INFO] [1684756034.988950890]: [PEAK_CAM]: ImageHeight is set to '1200'
[ INFO] [1684756034.992813766]: [PEAK_CAM]: GainSelector is set to 'AnalogAll'
[ INFO] [1684756034.992845816]: [PEAK_CAM]: ExposureAuto is set to 'Off'
[ INFO] [1684756034.999686943]: [PEAK_CAM]: ExposureTime is set to 14990 microseconds
[ INFO] [1684756035.002654084]: [PEAK_CAM]: DeviceLinkThroughputLimit is set to 120000000 Bps allowing for 27.4173 Hz
[ INFO] [1684756035.010960336]: [PEAK_CAM]: No AcquisitionFrameRate is set, camera is expected to be externally triggered by Line0 on RisingEdge
[ INFO] [1684756035.010992276]: [PEAK_CAM]: TriggerDivider is set to 1
[ WARN] [1684756035.011016362]: [PEAK_CAM]: Make sure resulting trigger rate stays below 27.4173 Hz to avoid latency and buffer overflows!
[ERROR] [1684756035.011617072]: [PEAK_CAM]: EXCEPTION: Error-Code: 4 (PEAK_RETURN_CODE_BAD_ACCESS) | Error-Description: Node is not writable. : AccessException thrown in node 'LineSource' while calling 'LineSource.SetIntValue()' (file 'EnumerationT.h', line 83)
[ERROR] [1684756035.011647539]: [PEAK_CAM]: Could not set all Parameters
[ INFO] [1684756035.025296981]: [PEAK_CAM]: U3-356xXLE-C connected
[ INFO] [1684756035.025722902]: [PEAK_CAM]: Acquisition started
[ERROR] [1684756040.026426700]: [PEAK_CAM]: EXCEPTION: Error-Code: 13 (PEAK_RETURN_CODE_TIMEOUT) | Error-Description: [Function: EventGetData | Error-Code: -1011 (GC_ERR_TIMEOUT) | Error-Text: Wait for event data timed out! Timeout: 5000.
[ERROR] [1684756040.026537959]: [PEAK_CAM]: Acquisition loop stopped, device may be disconnected!
[ERROR] [1684756040.026559570]: [PEAK_CAM]: No device reset available
[ERROR] [1684756040.026588775]: [PEAK_CAM]: Restart peak cam node!
Did anyone else run into this issue or know how to fix it? I already checked the parameters, they align with the ones in the IDS Cockpit. I first ran into the (AutoGain) issue that was also mentioned here and turned off all the parameters my hardware doesnt support.

Aspects overview: ids-peak-1.6.0 ids-peak-ipl-1.7.0 camera: IDS-U3-3560XLE-CHQ peak_cam: master branch

Thank you very much for any help, if further information needed I would be happy to provide.