imi_Driver.h
Go to the documentation of this file.
1 #ifndef IMI_DRIVER_H
2 #define IMI_DRIVER_H
3 
4 #include <ros/ros.h>
5 #include <sensor_msgs/Image.h>
7 #include <sensor_msgs/PointCloud2.h>
8 #include <boost/shared_ptr.hpp>
9 #include <dynamic_reconfigure/server.h>
10 #include <imi_camera/ImiConfig.h>
11 
12 namespace imi_wrapper
13 {
14 
15  class ImiDevice;
16 
17  class ImiDriver
18  {
19 
20  typedef imi_ros_cfg::ImiConfig Config;
21  typedef dynamic_reconfigure::Server<Config> ReconfigureServer;
22  public:
24  ~ImiDriver();
25  private:
26  int initDevice();
27  void newColorFrameCallback(sensor_msgs::ImagePtr image);
28  void newUVCFrameCallback(sensor_msgs::ImagePtr image);
29  void newDepthFrameCallback(sensor_msgs::ImagePtr image);
31  void colorConnectCb();
32  void uvcConnectCb();
33  void depthConnectCb();
34  void couldCb();
35  void advertiseROSTopics();
36  int startColorStream();
37  int startUVCStream();
38  int startDepthStream();
39  void configCb(Config &config, uint32_t level);
40  private:
48  // published topics
55  int depthMode;
56  int colorMode;
57  };
58 }
59 
60 #endif
image_transport::CameraPublisher pub_color_
Definition: imi_Driver.h:49
dynamic_reconfigure::Server< Config > ReconfigureServer
Definition: imi_Driver.h:21
ros::NodeHandle & nh_
Definition: imi_Driver.h:41
void newUVCFrameCallback(sensor_msgs::ImagePtr image)
Definition: imi_Driver.cpp:168
ImiDevice * pImiDevice
Definition: imi_Driver.h:43
boost::shared_ptr< ReconfigureServer > reconfigure_server_
Definition: imi_Driver.h:53
ros::NodeHandle & pnh_
Definition: imi_Driver.h:42
image_transport::CameraPublisher pub_uvc_
Definition: imi_Driver.h:52
ImiDriver(ros::NodeHandle &n, ros::NodeHandle &pnh)
Definition: imi_Driver.cpp:57
ros::Publisher pub_cloud_
Definition: imi_Driver.h:51
image_transport::CameraPublisher pub_depth_
Definition: imi_Driver.h:50
void newColorFrameCallback(sensor_msgs::ImagePtr image)
Definition: imi_Driver.cpp:145
void newCloudPointCallback(boost::shared_ptr< sensor_msgs::PointCloud2 > cloudPtr)
Definition: imi_Driver.cpp:240
imi_ros_cfg::ImiConfig Config
Definition: imi_Driver.h:20
void newDepthFrameCallback(sensor_msgs::ImagePtr image)
Definition: imi_Driver.cpp:204
void configCb(Config &config, uint32_t level)
Definition: imi_Driver.cpp:92


imi_camera
Author(s): hjimi , HUAJIEIMI
autogenerated on Mon Jun 10 2019 13:32:59