[Rock-dev] [rock] #340: proposal for upgrading /drivers/camera_prosilica

rock noreply at opendfki.de
Mon Oct 7 13:24:03 CEST 2013


#340: proposal  for upgrading /drivers/camera_prosilica
--------------------------------+---------------------------------------
 Reporter:  mathias.vonessen@…  |      Owner:  rock-dev-mailing-list
     Type:  enhancement         |     Status:  new
 Priority:  minor               |  Milestone:
Component:  base                |   Keywords:  driver, prosilica, camera
--------------------------------+---------------------------------------
 /drivers/camera_prosilica (stable) produces large amounts of invalid
 packages with Allied Vision Technologies' (AVT) cameras. Performance is
 improved when the currently used Prosilica API (Prosilica GigE SDK 1.20)
 is replaced with newer AVT PvAPI (AVT PvAPI GigE SDK 1.26).

 This would require minor modifications to CMakeLists.txt (wget / example
 compilation, lines 43-50 ) and memory allocation for
 ProFrame::AncillaryBuffer (new API segfaults without memory allocation).
 See patch below.

 Tested with AVT Manta G504B / Rock's stable branch.

 diff --git a/src/CamGigEProsilica.h b/src/CamGigEProsilica.h
 index b5f225a..d658a27 100755
 --- a/src/CamGigEProsilica.h
 +++ b/src/CamGigEProsilica.h
 @@ -26,7 +26,12 @@ namespace camera
          ProFrame( int frame_size_in_byte)
          {
              resize(frame_size_in_byte);
 -
 +            frame.AncillaryBuffer = malloc(sizeof(char));
 +        }
 +
 +        ~ProFrame()
 +        {
 +            free (frame.AncillaryBuffer);
          }

-- 
Ticket URL: <http://rock.opendfki.de/ticket/340>
rock <http://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list