#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 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_ |
FrameObserver * | vimba_frame_observer_ptr_ |
FramePtr | vimba_frame_ptr_ |
VimbaSystem & | vimba_system_ |
Definition at line 95 of file vimba_ros.h.
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.
Definition at line 71 of file vimba_ros.cpp.
std::string avt_vimba_camera::VimbaROS::accessModeToString | ( | VmbAccessModeType | modeType | ) | [private] |
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.
newconfig | new Config values |
level | bit-wise OR of reconfiguration levels for all changed parameters (0xffffffff on initial call) |
Definition at line 405 of file vimba_ros.cpp.
std::string avt_vimba_camera::VimbaROS::errorCodeToMessage | ( | VmbErrorType | error | ) | [private] |
Translates Vimba error codes to readable error messages
error | Vimba error tyme |
Definition at line 969 of file vimba_ros.cpp.
void avt_vimba_camera::VimbaROS::frameCallback | ( | const FramePtr | vimba_frame_ptr | ) | [private] |
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.
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.
void avt_vimba_camera::VimbaROS::listAvailableCameras | ( | void | ) | [private] |
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.
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.
void avt_vimba_camera::VimbaROS::stop | ( | ) | [private] |
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
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.
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.
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.
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.
int avt_vimba_camera::VimbaROS::num_frames_ [private] |
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.
bool avt_vimba_camera::VimbaROS::running_ [private] |
Definition at line 105 of file vimba_ros.h.
Definition at line 114 of file vimba_ros.h.
std::string avt_vimba_camera::VimbaROS::trigger_mode_ [private] |
Definition at line 123 of file vimba_ros.h.
int avt_vimba_camera::VimbaROS::trigger_mode_int_ [private] |
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.
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.
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.
Definition at line 140 of file vimba_ros.h.