Public Member Functions | Private Attributes | List of all members
visionary::FrameGrabber< DataType > Class Template Reference

Class which receives frames from the device in background thread and provides the latest one via an interface. This helps avoiding getting old frames because of buffering of data within the network infrastructure. It also handles automatically reconnects in case of connection issues. More...

#include <FrameGrabber.h>

Public Member Functions

 FrameGrabber (const std::string &hostname, std::uint16_t port, std::uint32_t timeoutMs)
 
bool getCurrentFrame (std::shared_ptr< DataType > &pDataHandler)
 
bool getNextFrame (std::shared_ptr< DataType > &pDataHandler, std::uint32_t timeoutMs=1000)
 
 ~FrameGrabber ()
 

Private Attributes

FrameGrabberBase frameGrabberBase
 

Detailed Description

template<class DataType>
class visionary::FrameGrabber< DataType >

Class which receives frames from the device in background thread and provides the latest one via an interface. This helps avoiding getting old frames because of buffering of data within the network infrastructure. It also handles automatically reconnects in case of connection issues.

Definition at line 20 of file FrameGrabber.h.

Constructor & Destructor Documentation

◆ FrameGrabber()

template<class DataType >
visionary::FrameGrabber< DataType >::FrameGrabber ( const std::string &  hostname,
std::uint16_t  port,
std::uint32_t  timeoutMs 
)
inline

Definition at line 23 of file FrameGrabber.h.

◆ ~FrameGrabber()

template<class DataType >
visionary::FrameGrabber< DataType >::~FrameGrabber ( )
inline

Definition at line 28 of file FrameGrabber.h.

Member Function Documentation

◆ getCurrentFrame()

template<class DataType >
bool visionary::FrameGrabber< DataType >::getCurrentFrame ( std::shared_ptr< DataType > &  pDataHandler)
inline

Gets the current blob from the connected device

Parameters
[in,out]pDataHandleran (empty) pointer where the blob will be stored in
Return values
truea blob was available and has been stored in pDataHandler Pointer
falseNo blob was available

Definition at line 53 of file FrameGrabber.h.

◆ getNextFrame()

template<class DataType >
bool visionary::FrameGrabber< DataType >::getNextFrame ( std::shared_ptr< DataType > &  pDataHandler,
std::uint32_t  timeoutMs = 1000 
)
inline

Gets the next blob from the connected device

Parameters
[in,out]pDataHandleran (empty) pointer where the blob will be stored in
[in]timeoutMscontrols the timeout how long to wait for a new blob, default 1000ms
Return values
trueNew blob has been received and stored in pDataHandler Pointer
falseNo new blob has been received

Definition at line 38 of file FrameGrabber.h.

Member Data Documentation

◆ frameGrabberBase

template<class DataType >
FrameGrabberBase visionary::FrameGrabber< DataType >::frameGrabberBase
private

Definition at line 64 of file FrameGrabber.h.


The documentation for this class was generated from the following file:


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 04:38:18