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:

  1. Connect Ranger3 sick camera with Ubuntu system.
  2. Build Linux sdk from sicksupportportal
  3. Install genicam and harvester
  4. Use the code from harvester for image aquisition
  5. 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

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)

Most upvoted comments

Hi

Thanks we’ll have a look later this week and provide feedback.

Regards

Francois

On 2022/03/07 08:12, Kazunari Kudo wrote:

Hi Everybody, Could you ping me when any of you could confirm the issue has been resolved. We have resolved the first issue but I do not know if there are some more defects that block us to get the SICK Ranger 3 working. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/genicam/harvesters/issues/269#issuecomment-1060228222, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHIR3T63NFHP4Z43VHU6STU6WM4TANCNFSM5JJPRZWA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

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.