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

#include <stereo_camera.h>

Public Member Functions

void run ()
 
 StereoCamera (ros::NodeHandle nh, ros::NodeHandle nhp)
 
 ~StereoCamera (void)
 

Private Types

typedef avt_vimba_camera::AvtVimbaCameraConfig Config
 
typedef dynamic_reconfigure::Server< StereoConfigReconfigureServer
 
typedef avt_vimba_camera::AvtVimbaCameraStereoConfig StereoConfig
 

Private Member Functions

void checkCallback ()
 
void configure (StereoConfig &newconfig, uint32_t level)
 
void copyConfig (StereoConfig &sc, Config &lc, Config &rc)
 
void leftFrameCallback (const FramePtr &vimba_frame_ptr)
 
void rightFrameCallback (const FramePtr &vimba_frame_ptr)
 
void syncCallback ()
 
void updateCameraInfo (const StereoConfig &config)
 

Private Attributes

AvtVimbaApi api_
 
StereoConfig camera_config_
 
int imgs_buffer_size_
 
image_transport::ImageTransport it_
 
std::vector< sensor_msgs::Image > l_imgs_buffer_
 
mutex l_sync_mutex_
 
AvtVimbaCamera left_cam_
 
std::string left_camera_info_url_
 
std::string left_guid_
 
boost::shared_ptr< camera_info_manager::CameraInfoManagerleft_info_man_
 
std::string left_ip_
 
ros::NodeHandle left_nhp_
 
image_transport::CameraPublisher left_pub_
 
double max_sec_diff_
 
ros::NodeHandle nh_
 
ros::NodeHandle nhp_
 
diagnostic_updater::TopicDiagnosticpub_freq_
 
ros::Publisher pub_left_temp_
 
ros::Publisher pub_right_temp_
 
std::vector< sensor_msgs::Image > r_imgs_buffer_
 
mutex r_sync_mutex_
 
ReconfigureServer reconfigure_server_
 
AvtVimbaCamera right_cam_
 
std::string right_camera_info_url_
 
std::string right_guid_
 
boost::shared_ptr< camera_info_manager::CameraInfoManagerright_info_man_
 
std::string right_ip_
 
ros::NodeHandle right_nhp_
 
image_transport::CameraPublisher right_pub_
 
bool show_debug_prints_
 
diagnostic_updater::FunctionDiagnosticTasksync_check_
 
diagnostic_updater::Updater updater_
 

Detailed Description

Definition at line 63 of file stereo_camera.h.

Member Typedef Documentation

typedef avt_vimba_camera::AvtVimbaCameraConfig avt_vimba_camera::StereoCamera::Config
private

Definition at line 108 of file stereo_camera.h.

typedef dynamic_reconfigure::Server<StereoConfig> avt_vimba_camera::StereoCamera::ReconfigureServer
private

Definition at line 110 of file stereo_camera.h.

typedef avt_vimba_camera::AvtVimbaCameraStereoConfig avt_vimba_camera::StereoCamera::StereoConfig
private

Definition at line 109 of file stereo_camera.h.

Constructor & Destructor Documentation

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

Definition at line 37 of file stereo_camera.cpp.

avt_vimba_camera::StereoCamera::~StereoCamera ( void  )

Definition at line 52 of file stereo_camera.cpp.

Member Function Documentation

void avt_vimba_camera::StereoCamera::checkCallback ( )
private
void avt_vimba_camera::StereoCamera::configure ( StereoConfig 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 240 of file stereo_camera.cpp.

void avt_vimba_camera::StereoCamera::copyConfig ( StereoConfig sc,
Config lc,
Config rc 
)
private

Definition at line 265 of file stereo_camera.cpp.

void avt_vimba_camera::StereoCamera::leftFrameCallback ( const FramePtr vimba_frame_ptr)
private

Definition at line 97 of file stereo_camera.cpp.

void avt_vimba_camera::StereoCamera::rightFrameCallback ( const FramePtr vimba_frame_ptr)
private

Definition at line 164 of file stereo_camera.cpp.

void avt_vimba_camera::StereoCamera::run ( )

Definition at line 60 of file stereo_camera.cpp.

void avt_vimba_camera::StereoCamera::syncCallback ( )
private
void avt_vimba_camera::StereoCamera::updateCameraInfo ( const StereoConfig config)
private

Definition at line 366 of file stereo_camera.cpp.

Member Data Documentation

AvtVimbaApi avt_vimba_camera::StereoCamera::api_
private

Definition at line 70 of file stereo_camera.h.

StereoConfig avt_vimba_camera::StereoCamera::camera_config_
private

Definition at line 114 of file stereo_camera.h.

int avt_vimba_camera::StereoCamera::imgs_buffer_size_
private

Definition at line 119 of file stereo_camera.h.

image_transport::ImageTransport avt_vimba_camera::StereoCamera::it_
private

Definition at line 94 of file stereo_camera.h.

std::vector<sensor_msgs::Image> avt_vimba_camera::StereoCamera::l_imgs_buffer_
private

Definition at line 118 of file stereo_camera.h.

mutex avt_vimba_camera::StereoCamera::l_sync_mutex_
private

Definition at line 120 of file stereo_camera.h.

AvtVimbaCamera avt_vimba_camera::StereoCamera::left_cam_
private

Definition at line 71 of file stereo_camera.h.

std::string avt_vimba_camera::StereoCamera::left_camera_info_url_
private

Definition at line 84 of file stereo_camera.h.

std::string avt_vimba_camera::StereoCamera::left_guid_
private

Definition at line 82 of file stereo_camera.h.

boost::shared_ptr<camera_info_manager::CameraInfoManager> avt_vimba_camera::StereoCamera::left_info_man_
private

Definition at line 104 of file stereo_camera.h.

std::string avt_vimba_camera::StereoCamera::left_ip_
private

Definition at line 80 of file stereo_camera.h.

ros::NodeHandle avt_vimba_camera::StereoCamera::left_nhp_
private

Definition at line 90 of file stereo_camera.h.

image_transport::CameraPublisher avt_vimba_camera::StereoCamera::left_pub_
private

Definition at line 97 of file stereo_camera.h.

double avt_vimba_camera::StereoCamera::max_sec_diff_
private

Definition at line 122 of file stereo_camera.h.

ros::NodeHandle avt_vimba_camera::StereoCamera::nh_
private

Definition at line 88 of file stereo_camera.h.

ros::NodeHandle avt_vimba_camera::StereoCamera::nhp_
private

Definition at line 89 of file stereo_camera.h.

diagnostic_updater::TopicDiagnostic* avt_vimba_camera::StereoCamera::pub_freq_
private

Definition at line 75 of file stereo_camera.h.

ros::Publisher avt_vimba_camera::StereoCamera::pub_left_temp_
private

Definition at line 101 of file stereo_camera.h.

ros::Publisher avt_vimba_camera::StereoCamera::pub_right_temp_
private

Definition at line 102 of file stereo_camera.h.

std::vector<sensor_msgs::Image> avt_vimba_camera::StereoCamera::r_imgs_buffer_
private

Definition at line 117 of file stereo_camera.h.

mutex avt_vimba_camera::StereoCamera::r_sync_mutex_
private

Definition at line 121 of file stereo_camera.h.

ReconfigureServer avt_vimba_camera::StereoCamera::reconfigure_server_
private

Definition at line 111 of file stereo_camera.h.

AvtVimbaCamera avt_vimba_camera::StereoCamera::right_cam_
private

Definition at line 72 of file stereo_camera.h.

std::string avt_vimba_camera::StereoCamera::right_camera_info_url_
private

Definition at line 85 of file stereo_camera.h.

std::string avt_vimba_camera::StereoCamera::right_guid_
private

Definition at line 83 of file stereo_camera.h.

boost::shared_ptr<camera_info_manager::CameraInfoManager> avt_vimba_camera::StereoCamera::right_info_man_
private

Definition at line 105 of file stereo_camera.h.

std::string avt_vimba_camera::StereoCamera::right_ip_
private

Definition at line 81 of file stereo_camera.h.

ros::NodeHandle avt_vimba_camera::StereoCamera::right_nhp_
private

Definition at line 91 of file stereo_camera.h.

image_transport::CameraPublisher avt_vimba_camera::StereoCamera::right_pub_
private

Definition at line 98 of file stereo_camera.h.

bool avt_vimba_camera::StereoCamera::show_debug_prints_
private

Definition at line 77 of file stereo_camera.h.

diagnostic_updater::FunctionDiagnosticTask* avt_vimba_camera::StereoCamera::sync_check_
private

Definition at line 76 of file stereo_camera.h.

diagnostic_updater::Updater avt_vimba_camera::StereoCamera::updater_
private

Definition at line 74 of file stereo_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