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

#include <vimba_ros.h>

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 dynamic_reconfigure::SensorLevels Levels
 
typedef dynamic_reconfigure::Server< ConfigReconfigureServer
 

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 updateIrisConfig (const Config &config, FeaturePtrVector feature_ptr_vec)
 
void updatePixelFormatConfig (const Config &config, FeaturePtrVector feature_ptr_vec)
 
void updatePtpModeConfig (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::CameraInfoManagercinfo_
 
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_source_
 
int trigger_source_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 dynamic_reconfigure::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

avt_vimba_camera::VimbaROS::VimbaROS ( ros::NodeHandle  nh,
ros::NodeHandle  nhp 
)

Member Function Documentation

std::string avt_vimba_camera::VimbaROS::accessModeToString ( VmbAccessModeType  modeType)
private
void avt_vimba_camera::VimbaROS::configure ( Config newconfig,
uint32_t  level 
)
private
std::string avt_vimba_camera::VimbaROS::errorCodeToMessage ( VmbErrorType  eErr)
private
void avt_vimba_camera::VimbaROS::frameCallback ( const FramePtr  vimba_frame_ptr)
private
bool avt_vimba_camera::VimbaROS::frameToImage ( const FramePtr  vimba_frame_ptr,
sensor_msgs::Image &  image 
)
private
template<typename T >
bool avt_vimba_camera::VimbaROS::getFeatureValue ( const std::string &  feature_str,
T &  val 
)
private
bool avt_vimba_camera::VimbaROS::getFeatureValue ( const std::string &  feature_str,
std::string &  val 
)
private
int avt_vimba_camera::VimbaROS::getHeight ( )
int avt_vimba_camera::VimbaROS::getMaxHeight ( )
int avt_vimba_camera::VimbaROS::getMaxWidth ( )
int avt_vimba_camera::VimbaROS::getTriggerModeInt ( std::string  mode)
private
int avt_vimba_camera::VimbaROS::getWidth ( )
void avt_vimba_camera::VimbaROS::initApi ( void  )
private
std::string avt_vimba_camera::VimbaROS::interfaceToString ( VmbInterfaceType  interfaceType)
private
void avt_vimba_camera::VimbaROS::listAvailableCameras ( void  )
private
CameraPtr avt_vimba_camera::VimbaROS::openCamera ( std::string  id)
private
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
void avt_vimba_camera::VimbaROS::printAllCameraFeatures ( CameraPtr  camera)
private
bool avt_vimba_camera::VimbaROS::runCommand ( const std::string &  command_str)
private
template<typename T >
bool avt_vimba_camera::VimbaROS::setFeatureValue ( const std::string &  feature_str,
const T &  val 
)
private
void avt_vimba_camera::VimbaROS::start ( Config config)
private
void avt_vimba_camera::VimbaROS::stop ( )
private
void avt_vimba_camera::VimbaROS::updateAcquisitionConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updateBandwidthConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updateCameraInfo ( const Config config)
private
void avt_vimba_camera::VimbaROS::updateExposureConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updateGainConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updateGPIOConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updateImageModeConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updateIrisConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updatePixelFormatConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updatePtpModeConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updateROIConfig ( Config config,
FeaturePtrVector  feature_ptr_vec 
)
private
void avt_vimba_camera::VimbaROS::updateWhiteBalanceConfig ( const Config config,
FeaturePtrVector  feature_ptr_vec 
)
private

Member Data Documentation

sensor_msgs::CameraInfo avt_vimba_camera::VimbaROS::cam_info_
private

Definition at line 128 of file vimba_ros.h.

Config avt_vimba_camera::VimbaROS::camera_config_
private

Definition at line 137 of file vimba_ros.h.

boost::shared_ptr<camera_info_manager::CameraInfoManager> avt_vimba_camera::VimbaROS::cinfo_
private

Definition at line 129 of file vimba_ros.h.

bool avt_vimba_camera::VimbaROS::first_run_
private

Definition at line 106 of file vimba_ros.h.

std::string avt_vimba_camera::VimbaROS::frame_id_
private

Definition at line 122 of file vimba_ros.h.

image_transport::ImageTransport avt_vimba_camera::VimbaROS::it_
private

Definition at line 112 of file vimba_ros.h.

ros::NodeHandle avt_vimba_camera::VimbaROS::nh_
private

Definition at line 109 of file vimba_ros.h.

ros::NodeHandle avt_vimba_camera::VimbaROS::nhp_
private

Definition at line 110 of file vimba_ros.h.

int avt_vimba_camera::VimbaROS::num_frames_
private

Definition at line 121 of file vimba_ros.h.

polled_camera::PublicationServer avt_vimba_camera::VimbaROS::poll_srv_
private

Definition at line 116 of file vimba_ros.h.

ReconfigureServer avt_vimba_camera::VimbaROS::reconfigure_server_
private

Definition at line 134 of file vimba_ros.h.

bool avt_vimba_camera::VimbaROS::running_
private

Definition at line 105 of file vimba_ros.h.

image_transport::CameraPublisher avt_vimba_camera::VimbaROS::streaming_pub_
private

Definition at line 114 of file vimba_ros.h.

std::string avt_vimba_camera::VimbaROS::trigger_source_
private

Definition at line 123 of file vimba_ros.h.

int avt_vimba_camera::VimbaROS::trigger_source_int_
private

Definition at line 124 of file vimba_ros.h.

ros::Subscriber avt_vimba_camera::VimbaROS::trigger_sub_
private

Definition at line 118 of file vimba_ros.h.

VmbInt64_t avt_vimba_camera::VimbaROS::vimba_camera_max_height_
private

Definition at line 150 of file vimba_ros.h.

VmbInt64_t avt_vimba_camera::VimbaROS::vimba_camera_max_width_
private

Definition at line 148 of file vimba_ros.h.

CameraPtr avt_vimba_camera::VimbaROS::vimba_camera_ptr_
private

Definition at line 144 of file vimba_ros.h.

std::map<VmbErrorType, std::string> avt_vimba_camera::VimbaROS::vimba_error_code_to_message_
private

Definition at line 152 of file vimba_ros.h.

FrameObserver* avt_vimba_camera::VimbaROS::vimba_frame_observer_ptr_
private

Definition at line 142 of file vimba_ros.h.

FramePtr avt_vimba_camera::VimbaROS::vimba_frame_ptr_
private

Definition at line 146 of file vimba_ros.h.

VimbaSystem& avt_vimba_camera::VimbaROS::vimba_system_
private

Definition at line 140 of file vimba_ros.h.


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


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Mon Jun 10 2019 12:50:39