Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
avt_vimba_camera::AvtVimbaCamera Class Reference

#include <avt_vimba_camera.h>

Public Types

typedef avt_vimba_camera::AvtVimbaCameraConfig Config
 
typedef boost::function< void(const FramePtr)> frameCallbackFunc
 

Public Member Functions

 AvtVimbaCamera ()
 
 AvtVimbaCamera (std::string name)
 
CameraPtr getCameraPtr (void)
 
double getDeviceTemp (void)
 
int getHeight ()
 
int getMaxHeight ()
 
int getMaxWidth ()
 
double getTimestamp (void)
 
int getWidth ()
 
bool isOpened (void)
 
bool resetTimestamp (void)
 
void setCallback (frameCallbackFunc callback=&avt_vimba_camera::AvtVimbaCamera::defaultFrameCallback)
 
void start (std::string ip_str, std::string guid_str, bool debug_prints=true)
 
void startImaging (void)
 
void stop ()
 
void stopImaging (void)
 
void updateConfig (Config &config)
 

Private Member Functions

std::string accessModeToString (VmbAccessModeType modeType)
 
void defaultFrameCallback (const FramePtr vimba_frame_ptr)
 
void frameCallback (const FramePtr vimba_frame_ptr)
 
void getCurrentState (diagnostic_updater::DiagnosticStatusWrapper &stat)
 
template<typename T >
bool getFeatureValue (const std::string &feature_str, T &val)
 
bool getFeatureValue (const std::string &feature_str, std::string &val)
 
int getTriggerModeInt (std::string mode_str)
 
std::string interfaceToString (VmbInterfaceType interfaceType)
 
CameraPtr openCamera (std::string id_str)
 
void printAllCameraFeatures (const CameraPtr &camera)
 
bool runCommand (const std::string &command_str)
 
template<typename T >
bool setFeatureValue (const std::string &feature_str, const T &val)
 
void updateAcquisitionConfig (Config &config)
 
void updateBandwidthConfig (Config &config)
 
void updateExposureConfig (Config &config)
 
void updateGainConfig (Config &config)
 
void updateGPIOConfig (Config &config)
 
void updateImageModeConfig (Config &config)
 
void updateIrisConfig (Config &config)
 
void updatePixelFormatConfig (Config &config)
 
void updatePtpModeConfig (Config &config)
 
void updateROIConfig (Config &config)
 
void updateWhiteBalanceConfig (Config &config)
 

Private Attributes

AvtVimbaApi api_
 
CameraState camera_state_
 
Config config_
 
boost::mutex config_mutex_
 
std::string diagnostic_msg_
 
std::string frame_id_
 
std::string guid_
 
std::string name_
 
int num_frames_
 
bool on_init_
 
bool opened_
 
bool show_debug_prints_
 
bool streaming_
 
std::string trigger_source_
 
int trigger_source_int_
 
diagnostic_updater::Updater updater_
 
frameCallbackFunc userFrameCallback
 
VmbInt64_t vimba_camera_max_height_
 
VmbInt64_t vimba_camera_max_width_
 
CameraPtr vimba_camera_ptr_
 
FrameObservervimba_frame_observer_ptr_
 
FramePtr vimba_frame_ptr_
 

Detailed Description

Definition at line 76 of file avt_vimba_camera.h.

Member Typedef Documentation

typedef avt_vimba_camera::AvtVimbaCameraConfig avt_vimba_camera::AvtVimbaCamera::Config

Definition at line 101 of file avt_vimba_camera.h.

typedef boost::function<void (const FramePtr)> avt_vimba_camera::AvtVimbaCamera::frameCallbackFunc

Definition at line 96 of file avt_vimba_camera.h.

Constructor & Destructor Documentation

avt_vimba_camera::AvtVimbaCamera::AvtVimbaCamera ( )

Definition at line 95 of file avt_vimba_camera.cpp.

avt_vimba_camera::AvtVimbaCamera::AvtVimbaCamera ( std::string  name)

Definition at line 99 of file avt_vimba_camera.cpp.

Member Function Documentation

std::string avt_vimba_camera::AvtVimbaCamera::accessModeToString ( VmbAccessModeType  modeType)
private

Definition at line 611 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::defaultFrameCallback ( const FramePtr  vimba_frame_ptr)
inlineprivate

Definition at line 146 of file avt_vimba_camera.h.

void avt_vimba_camera::AvtVimbaCamera::frameCallback ( const FramePtr  vimba_frame_ptr)
private

Definition at line 355 of file avt_vimba_camera.cpp.

CameraPtr avt_vimba_camera::AvtVimbaCamera::getCameraPtr ( void  )
inline

Definition at line 86 of file avt_vimba_camera.h.

void avt_vimba_camera::AvtVimbaCamera::getCurrentState ( diagnostic_updater::DiagnosticStatusWrapper stat)
private

Definition at line 1190 of file avt_vimba_camera.cpp.

double avt_vimba_camera::AvtVimbaCamera::getDeviceTemp ( void  )

Definition at line 367 of file avt_vimba_camera.cpp.

template<typename T >
bool avt_vimba_camera::AvtVimbaCamera::getFeatureValue ( const std::string &  feature_str,
T &  val 
)
private

Definition at line 392 of file avt_vimba_camera.cpp.

bool avt_vimba_camera::AvtVimbaCamera::getFeatureValue ( const std::string &  feature_str,
std::string &  val 
)
private

Definition at line 454 of file avt_vimba_camera.cpp.

int avt_vimba_camera::AvtVimbaCamera::getHeight ( )
int avt_vimba_camera::AvtVimbaCamera::getMaxHeight ( )
int avt_vimba_camera::AvtVimbaCamera::getMaxWidth ( )
double avt_vimba_camera::AvtVimbaCamera::getTimestamp ( void  )

Definition at line 379 of file avt_vimba_camera.cpp.

int avt_vimba_camera::AvtVimbaCamera::getTriggerModeInt ( std::string  mode_str)
private

Definition at line 626 of file avt_vimba_camera.cpp.

int avt_vimba_camera::AvtVimbaCamera::getWidth ( )
std::string avt_vimba_camera::AvtVimbaCamera::interfaceToString ( VmbInterfaceType  interfaceType)
private

Definition at line 599 of file avt_vimba_camera.cpp.

bool avt_vimba_camera::AvtVimbaCamera::isOpened ( void  )
inline

Definition at line 105 of file avt_vimba_camera.h.

CameraPtr avt_vimba_camera::AvtVimbaCamera::openCamera ( std::string  id_str)
private

Definition at line 284 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::printAllCameraFeatures ( const CameraPtr camera)
private

Definition at line 646 of file avt_vimba_camera.cpp.

bool avt_vimba_camera::AvtVimbaCamera::resetTimestamp ( void  )

Definition at line 375 of file avt_vimba_camera.cpp.

bool avt_vimba_camera::AvtVimbaCamera::runCommand ( const std::string &  command_str)
private

Definition at line 567 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::setCallback ( frameCallbackFunc  callback = &avt_vimba_camera::AvtVimbaCamera::defaultFrameCallback)
inline

Definition at line 97 of file avt_vimba_camera.h.

template<typename T >
bool avt_vimba_camera::AvtVimbaCamera::setFeatureValue ( const std::string &  feature_str,
const T &  val 
)
private

Definition at line 509 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::start ( std::string  ip_str,
std::string  guid_str,
bool  debug_prints = true 
)

Definition at line 116 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::startImaging ( void  )

Definition at line 193 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::stop ( )

Definition at line 278 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::stopImaging ( void  )

Definition at line 218 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateAcquisitionConfig ( Config config)
private

Change the Trigger configuration

Definition at line 786 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateBandwidthConfig ( Config config)
private

Change the Bandwidth configuration

Definition at line 1131 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateConfig ( Config config)

Definition at line 241 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateExposureConfig ( Config config)
private

Change the Exposure configuration

Definition at line 875 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateGainConfig ( Config config)
private

Change the Gain configuration

Definition at line 933 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateGPIOConfig ( Config config)
private

Change the GPIO configuration

Definition at line 1159 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateImageModeConfig ( Config config)
private

Change the Binning and Decimation configuration

Definition at line 1032 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateIrisConfig ( Config config)
private

Definition at line 838 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updatePixelFormatConfig ( Config config)
private

Change the Pixel Format configuration

Definition at line 1146 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updatePtpModeConfig ( Config config)
private

Change the Binning and Decimation configuration

Definition at line 1018 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateROIConfig ( Config config)
private

Change the ROI configuration

Todo:
Replicating logic from polledCallback

Definition at line 1061 of file avt_vimba_camera.cpp.

void avt_vimba_camera::AvtVimbaCamera::updateWhiteBalanceConfig ( Config config)
private

Change the White Balance configuration

Definition at line 985 of file avt_vimba_camera.cpp.

Member Data Documentation

AvtVimbaApi avt_vimba_camera::AvtVimbaCamera::api_
private

Definition at line 110 of file avt_vimba_camera.h.

CameraState avt_vimba_camera::AvtVimbaCamera::camera_state_
private

Definition at line 132 of file avt_vimba_camera.h.

Config avt_vimba_camera::AvtVimbaCamera::config_
private

Definition at line 108 of file avt_vimba_camera.h.

boost::mutex avt_vimba_camera::AvtVimbaCamera::config_mutex_
private

Definition at line 123 of file avt_vimba_camera.h.

std::string avt_vimba_camera::AvtVimbaCamera::diagnostic_msg_
private

Definition at line 133 of file avt_vimba_camera.h.

std::string avt_vimba_camera::AvtVimbaCamera::frame_id_
private

Definition at line 138 of file avt_vimba_camera.h.

std::string avt_vimba_camera::AvtVimbaCamera::guid_
private

Definition at line 137 of file avt_vimba_camera.h.

std::string avt_vimba_camera::AvtVimbaCamera::name_
private

Definition at line 129 of file avt_vimba_camera.h.

int avt_vimba_camera::AvtVimbaCamera::num_frames_
private

Definition at line 136 of file avt_vimba_camera.h.

bool avt_vimba_camera::AvtVimbaCamera::on_init_
private

Definition at line 127 of file avt_vimba_camera.h.

bool avt_vimba_camera::AvtVimbaCamera::opened_
private

Definition at line 125 of file avt_vimba_camera.h.

bool avt_vimba_camera::AvtVimbaCamera::show_debug_prints_
private

Definition at line 128 of file avt_vimba_camera.h.

bool avt_vimba_camera::AvtVimbaCamera::streaming_
private

Definition at line 126 of file avt_vimba_camera.h.

std::string avt_vimba_camera::AvtVimbaCamera::trigger_source_
private

Definition at line 139 of file avt_vimba_camera.h.

int avt_vimba_camera::AvtVimbaCamera::trigger_source_int_
private

Definition at line 140 of file avt_vimba_camera.h.

diagnostic_updater::Updater avt_vimba_camera::AvtVimbaCamera::updater_
private

Definition at line 131 of file avt_vimba_camera.h.

frameCallbackFunc avt_vimba_camera::AvtVimbaCamera::userFrameCallback
private

Definition at line 144 of file avt_vimba_camera.h.

VmbInt64_t avt_vimba_camera::AvtVimbaCamera::vimba_camera_max_height_
private

Definition at line 120 of file avt_vimba_camera.h.

VmbInt64_t avt_vimba_camera::AvtVimbaCamera::vimba_camera_max_width_
private

Definition at line 118 of file avt_vimba_camera.h.

CameraPtr avt_vimba_camera::AvtVimbaCamera::vimba_camera_ptr_
private

Definition at line 114 of file avt_vimba_camera.h.

FrameObserver* avt_vimba_camera::AvtVimbaCamera::vimba_frame_observer_ptr_
private

Definition at line 112 of file avt_vimba_camera.h.

FramePtr avt_vimba_camera::AvtVimbaCamera::vimba_frame_ptr_
private

Definition at line 116 of file avt_vimba_camera.h.


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


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Wed Jun 5 2019 22:22:41