smartek_camera_node.h
Go to the documentation of this file.
1 #ifndef SMARTEK_CAMERA_NODE_H
2 #define SMARTEK_CAMERA_NODE_H
3 
28 #include <ros/ros.h>
31 #include <dynamic_reconfigure/server.h>
32 #include <timesync/TimestampSynchronizer.h>
33 
34 #include <smartek_camera/SmartekCameraConfig.h>
35 
36 #include <gige_cpp/GigEVisionSDK.h>
37 
39 
40 public:
44 
49 
52  void run();
53 
54 private:
55  typedef smartek_camera::SmartekCameraConfig Config;
56  void reconfigure_callback(Config& config, uint32_t level);
57  void publishGigeImage(const gige::IImageBitmapInterface &img, const gige::IImageInfo &imgInfo);
58  void processFrames();
60 
61  Config config_;
62  std::string frame_id_; // ROS tf frame id
63 
66 
68  std::unique_ptr<image_transport::ImageTransport> pimageTransport_;
69  std::unique_ptr<camera_info_manager::CameraInfoManager> pcameraInfoManager_;
70  sensor_msgs::CameraInfo cameraInfo_;
71 
72  dynamic_reconfigure::Server<Config> reconfigureServer_;
73  dynamic_reconfigure::Server<Config>::CallbackType reconfigureCallback_;
74 
76  std::string serialNumber_; // when using multiple cameras
77 
78  // GigEVisionSDK members
79  gige::IDevice m_device_;
80  gige::IImageProcAPI m_imageProcApi_;
81 
82  gige::IAlgorithm m_colorPipelineAlg_;
83  gige::IParams m_colorPipelineParams_;
84  gige::IResults m_colorPipelineResults_;
85  gige::IImageBitmap m_colorPipelineBitmap_;
86  gige::IImageInfo m_imageInfo_;
87 
88  TimestampSynchronizer::Options defaultTimesyncOptions_;
89  std::unique_ptr<TimestampSynchronizer> ptimestampSynchronizer_;
90 
91  bool m_defaultGainNotSet_; // currently not used, maybe necessary for auto-gain control
93 };
94 
95 #endif //SMARTEK_CAMERA_NODE_H
ros::NodeHandle n_
image_transport::CameraPublisher cameraPublisher_
std::unique_ptr< image_transport::ImageTransport > pimageTransport_
std::unique_ptr< TimestampSynchronizer > ptimestampSynchronizer_
void reconfigure_callback(Config &config, uint32_t level)
gige::IImageBitmap m_colorPipelineBitmap_
gige::IImageInfo m_imageInfo_
dynamic_reconfigure::Server< Config > reconfigureServer_
gige::IAlgorithm m_colorPipelineAlg_
gige::IResults m_colorPipelineResults_
gige::IImageProcAPI m_imageProcApi_
sensor_msgs::CameraInfo cameraInfo_
void publishGigeImage(const gige::IImageBitmapInterface &img, const gige::IImageInfo &imgInfo)
smartek_camera::SmartekCameraConfig Config
gige::IParams m_colorPipelineParams_
std::unique_ptr< camera_info_manager::CameraInfoManager > pcameraInfoManager_
ros::NodeHandle np_
gige::IDevice m_device_
dynamic_reconfigure::Server< Config >::CallbackType reconfigureCallback_
TimestampSynchronizer::Options defaultTimesyncOptions_


smartek_camera
Author(s): Juraj Oršulić
autogenerated on Mon Jun 10 2019 15:10:30