harvesters: Ranger3 Sick (3d Machine Vision Camera) not being able to fetch buffer through harvester
Describe the Bug
I am using Ranger3 Sick (3d machine vision camera) with Ubuntu 18.04. I have *.cti file from their Linux SDK. I am able to load cti file through harvester and get Camer info.
but when I try to fetch_buffer I am gettig the following error.
_genapi.RuntimeException: Invalid layout of buffer attached to chunk parser! : RuntimeException thrown (file 'ChunkAdapterGEV.cpp', line 99)
I have used following code
from harvesters.core import Harvester import numpy as np h = Harvester() h.add_file("sickGenTLProducer.cti") h.update() print(len(h.device_info_list)) print(h.device_info_list[0]) ia = h.create_image_acquirer(0) ia.start_acquisition() with ia.fetch_buffer() as buffer: print(buffer)
To Reproduce Steps to reproduce the behavior:
- Connect Ranger3 sick camera with Ubuntu system.
- Build Linux sdk from sicksupportportal
- Install genicam and harvester
- Use the code from harvester for image aquisition
- See error
Expected Behavior Needed buffer data from camera through code
Screenshots If applicable, add screenshots to help explain your problem; Note that it is not necessary to put everything as a screenshot! If the source is a text just paste the text because that is much helpful for us.
Configuration
- OS: Ubuntu 18.04
- Python: 3.8
- Harvester: 1.3.2
- GenTL Producer: SICK_AG
- Camera: Ranger3-40
Reproducibility
This phenomenon can be reproduced by other versions:
- Yes
If so, please list up the reproducible versions you have confirmed:
- a.b.c
Actions You Have Taken
- I’ve read the Harvester FAQ page.
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (4 by maintainers)
Hi
Thanks we’ll have a look later this week and provide feedback.
Regards
Francois
On 2022/03/07 08:12, Kazunari Kudo wrote:
We have started testing on the release candidate for GenApi v3.4. Alfred found a smaller problem and made a pull request https://github.com/genicam/harvesters/pull/295, we will continue testing this week.
@olofsjo Hi Jonas, thank you for taking care of this issue. I appreciate that. I have added some lines based on the suggested fix presented by Alfred to take care of some more practical situations. Hence, it’s ready to be tested on the field! Thank you again for your support. Regards, Kazunari.