33 #ifndef AVT_VIMBA_CAMERA_H 34 #define AVT_VIMBA_CAMERA_H 38 #include <avt_vimba_camera/AvtVimbaCameraConfig.h> 45 #include <boost/function.hpp> 46 #include <boost/thread.hpp> 53 using AVT::VmbAPI::IFrameObserverPtr;
80 void start(std::string ip_str, std::string guid_str,
bool debug_prints =
true);
101 typedef avt_vimba_camera::AvtVimbaCameraConfig
Config;
147 std::cout <<
"[AvtVimbaCamera] No frame callback provided." << std::endl;
154 bool getFeatureValue(
const std::string& feature_str, std::string& val);
155 bool runCommand(
const std::string& command_str);
void updatePtpModeConfig(Config &config)
std::string interfaceToString(VmbInterfaceType interfaceType)
void printAllCameraFeatures(const CameraPtr &camera)
void updateWhiteBalanceConfig(Config &config)
NetPointer< Frame, AVT::VmbAPINET::Frame > FramePtr
void getCurrentState(diagnostic_updater::DiagnosticStatusWrapper &stat)
boost::mutex config_mutex_
void updateImageModeConfig(Config &config)
void updatePixelFormatConfig(Config &config)
CameraPtr openCamera(std::string id_str)
VmbInt64_t vimba_camera_max_height_
bool resetTimestamp(void)
void updateIrisConfig(Config &config)
VmbInt64_t vimba_camera_max_width_
void updateGPIOConfig(Config &config)
void setCallback(frameCallbackFunc callback=&avt_vimba_camera::AvtVimbaCamera::defaultFrameCallback)
int getTriggerModeInt(std::string mode_str)
void updateConfig(Config &config)
void callback(const sensor_msgs::ImageConstPtr &msg)
void updateROIConfig(Config &config)
void frameCallback(const FramePtr vimba_frame_ptr)
CameraPtr vimba_camera_ptr_
boost::function< void(const FramePtr)> frameCallbackFunc
avt_vimba_camera::AvtVimbaCameraConfig Config
void start(std::string ip_str, std::string guid_str, bool debug_prints=true)
NetPointer< Camera, AVT::VmbAPINET::Camera > CameraPtr
FramePtr vimba_frame_ptr_
bool setFeatureValue(const std::string &feature_str, const T &val)
bool getFeatureValue(const std::string &feature_str, T &val)
void updateBandwidthConfig(Config &config)
void updateExposureConfig(Config &config)
double getDeviceTemp(void)
void updateGainConfig(Config &config)
frameCallbackFunc userFrameCallback
CameraState camera_state_
std::string trigger_source_
diagnostic_updater::Updater updater_
std::string diagnostic_msg_
void updateAcquisitionConfig(Config &config)
double getTimestamp(void)
void defaultFrameCallback(const FramePtr vimba_frame_ptr)
CameraPtr getCameraPtr(void)
std::string accessModeToString(VmbAccessModeType modeType)
bool runCommand(const std::string &command_str)
SP_DECL(FrameObserver) frame_obs_ptr_