Public Member Functions | Private Types | Private Member Functions | Private Attributes
avt_vimba_camera::VimbaROS Class Reference

#include <vimba_ros.h>

List of all members.

Public Member Functions

int getHeight ()
int getMaxHeight ()
int getMaxWidth ()
int getWidth ()
 VimbaROS (ros::NodeHandle nh, ros::NodeHandle nhp)

Private Types

typedef
avt_vimba_camera::AvtVimbaCameraConfig 
Config
typedef driver_base::SensorLevels Levels
typedef
dynamic_reconfigure::Server
< Config
ReconfigureServer

Private Member Functions

std::string accessModeToString (VmbAccessModeType modeType)
void configure (Config &newconfig, uint32_t level)
std::string errorCodeToMessage (VmbErrorType eErr)
void frameCallback (const FramePtr vimba_frame_ptr)
bool frameToImage (const FramePtr vimba_frame_ptr, sensor_msgs::Image &image)
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)
void initApi (void)
std::string interfaceToString (VmbInterfaceType interfaceType)
void listAvailableCameras (void)
CameraPtr openCamera (std::string id)
void pollCallback (polled_camera::GetPolledImage::Request &req, polled_camera::GetPolledImage::Response &rsp, sensor_msgs::Image &image, sensor_msgs::CameraInfo &info)
void printAllCameraFeatures (CameraPtr camera)
bool runCommand (const std::string &command_str)
template<typename T >
bool setFeatureValue (const std::string &feature_str, const T &val)
void start (Config &config)
void stop ()
void updateAcquisitionConfig (const Config &config, FeaturePtrVector feature_ptr_vec)
void updateBandwidthConfig (const Config &config, FeaturePtrVector feature_ptr_vec)
void updateCameraInfo (const Config &config)
void updateExposureConfig (const Config &config, FeaturePtrVector feature_ptr_vec)
void updateGainConfig (const Config &config, FeaturePtrVector feature_ptr_vec)
void updateGPIOConfig (const Config &config, FeaturePtrVector feature_ptr_vec)
void updateImageModeConfig (const Config &config, FeaturePtrVector feature_ptr_vec)
void updatePixelFormatConfig (const Config &config, FeaturePtrVector feature_ptr_vec)
void updateROIConfig (Config &config, FeaturePtrVector feature_ptr_vec)
void updateWhiteBalanceConfig (const Config &config, FeaturePtrVector feature_ptr_vec)

Private Attributes

sensor_msgs::CameraInfo cam_info_
Config camera_config_
boost::shared_ptr
< camera_info_manager::CameraInfoManager
cinfo_
bool first_run_
std::string frame_id_
image_transport::ImageTransport it_
ros::NodeHandle nh_
ros::NodeHandle nhp_
int num_frames_
polled_camera::PublicationServer poll_srv_
ReconfigureServer reconfigure_server_
bool running_
image_transport::CameraPublisher streaming_pub_
std::string trigger_mode_
int trigger_mode_int_
ros::Subscriber trigger_sub_
VmbInt64_t vimba_camera_max_height_
VmbInt64_t vimba_camera_max_width_
CameraPtr vimba_camera_ptr_
std::map< VmbErrorType,
std::string > 
vimba_error_code_to_message_
FrameObservervimba_frame_observer_ptr_
FramePtr vimba_frame_ptr_
VimbaSystemvimba_system_

Detailed Description

Definition at line 95 of file vimba_ros.h.


Member Typedef Documentation

typedef avt_vimba_camera::AvtVimbaCameraConfig avt_vimba_camera::VimbaROS::Config [private]

Definition at line 132 of file vimba_ros.h.

typedef driver_base::SensorLevels avt_vimba_camera::VimbaROS::Levels [private]

Definition at line 127 of file vimba_ros.h.

typedef dynamic_reconfigure::Server<Config> avt_vimba_camera::VimbaROS::ReconfigureServer [private]

Definition at line 133 of file vimba_ros.h.


Constructor & Destructor Documentation

Definition at line 71 of file vimba_ros.cpp.


Member Function Documentation

Definition at line 1046 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::configure ( Config newconfig,
uint32_t  level 
) [private]

Dynamic reconfigure callback

Called immediately when callback first defined. Called again when dynamic reconfigure starts or changes a parameter value.

Parameters:
newconfignew Config values
levelbit-wise OR of reconfiguration levels for all changed parameters (0xffffffff on initial call)

Definition at line 405 of file vimba_ros.cpp.

Translates Vimba error codes to readable error messages

Parameters:
errorVimba error tyme
Returns:
readable string error

Definition at line 969 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::frameCallback ( const FramePtr  vimba_frame_ptr) [private]
Todo:
Better trigger timestamp matching

Definition at line 269 of file vimba_ros.cpp.

bool avt_vimba_camera::VimbaROS::frameToImage ( const FramePtr  vimba_frame_ptr,
sensor_msgs::Image &  image 
) [private]

Definition at line 294 of file vimba_ros.cpp.

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

Definition at line 780 of file vimba_ros.cpp.

bool avt_vimba_camera::VimbaROS::getFeatureValue ( const std::string &  feature_str,
std::string &  val 
) [private]

Definition at line 838 of file vimba_ros.cpp.

int avt_vimba_camera::VimbaROS::getTriggerModeInt ( std::string  mode) [private]

Definition at line 1056 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::initApi ( void  ) [private]

Definition at line 1259 of file vimba_ros.cpp.

std::string avt_vimba_camera::VimbaROS::interfaceToString ( VmbInterfaceType  interfaceType) [private]

Definition at line 1034 of file vimba_ros.cpp.

Definition at line 978 of file vimba_ros.cpp.

CameraPtr avt_vimba_camera::VimbaROS::openCamera ( std::string  id) [private]

Definition at line 1076 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::pollCallback ( polled_camera::GetPolledImage::Request &  req,
polled_camera::GetPolledImage::Response &  rsp,
sensor_msgs::Image &  image,
sensor_msgs::CameraInfo &  info 
) [private]

Definition at line 180 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::printAllCameraFeatures ( CameraPtr  camera) [private]

Definition at line 1120 of file vimba_ros.cpp.

bool avt_vimba_camera::VimbaROS::runCommand ( const std::string &  command_str) [private]

Definition at line 942 of file vimba_ros.cpp.

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

Definition at line 888 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::start ( Config config) [private]

Definition at line 95 of file vimba_ros.cpp.

Definition at line 169 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updateAcquisitionConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
) [private]

Change the Trigger configuration

Definition at line 451 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updateBandwidthConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
) [private]

Change the Bandwidth configuration

Definition at line 716 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updateCameraInfo ( const Config config) [private]

Definition at line 363 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updateExposureConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
) [private]

Change the Exposure configuration

Definition at line 486 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updateGainConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
) [private]

Change the Gain configuration

Definition at line 541 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updateGPIOConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
) [private]

Change the GPIO configuration

Definition at line 746 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updateImageModeConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
) [private]

Change the Binning and Decimation configuration

Definition at line 628 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updatePixelFormatConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
) [private]

Change the Pixel Format configuration

Definition at line 732 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updateROIConfig ( Config config,
FeaturePtrVector  feature_ptr_vec 
) [private]

Change the ROI configuration

Todo:
Replicating logic from polledCallback

Definition at line 658 of file vimba_ros.cpp.

void avt_vimba_camera::VimbaROS::updateWhiteBalanceConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
) [private]

Change the White Balance configuration

Definition at line 594 of file vimba_ros.cpp.


Member Data Documentation

sensor_msgs::CameraInfo avt_vimba_camera::VimbaROS::cam_info_ [private]

Definition at line 128 of file vimba_ros.h.

Definition at line 137 of file vimba_ros.h.

Definition at line 129 of file vimba_ros.h.

Definition at line 106 of file vimba_ros.h.

Definition at line 122 of file vimba_ros.h.

Definition at line 112 of file vimba_ros.h.

Definition at line 109 of file vimba_ros.h.

Definition at line 110 of file vimba_ros.h.

Definition at line 121 of file vimba_ros.h.

Definition at line 116 of file vimba_ros.h.

Definition at line 134 of file vimba_ros.h.

Definition at line 105 of file vimba_ros.h.

Definition at line 114 of file vimba_ros.h.

Definition at line 123 of file vimba_ros.h.

Definition at line 124 of file vimba_ros.h.

Definition at line 118 of file vimba_ros.h.

Definition at line 150 of file vimba_ros.h.

Definition at line 148 of file vimba_ros.h.

Definition at line 144 of file vimba_ros.h.

Definition at line 152 of file vimba_ros.h.

Definition at line 142 of file vimba_ros.h.

Definition at line 146 of file vimba_ros.h.

Definition at line 140 of file vimba_ros.h.


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


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Thu Aug 27 2015 12:29:49