nodelets.cpp
Go to the documentation of this file.
1 #include <ros/ros.h>
2 #include <ros/time.h>
3 
5 #include <nodelet/nodelet.h>
6 
7 #include "uvc_camera/camera.h"
9 
10 namespace uvc_camera {
11 
13  public:
15 
16  void onInit() {
19 
20  camera = new Camera(node, pnode);
21  }
22 
24  if (camera) delete camera;
25  }
26 
27  private:
29 };
30 
32  public:
34 
35  void onInit() {
38 
39  stereo = new StereoCamera(node, pnode);
40  }
41 
43  if (stereo) delete stereo;
44  }
45 
46  private:
48 };
49 
50 };
51 
53 PLUGINLIB_EXPORT_CLASS(uvc_camera::StereoNodelet, nodelet::Nodelet)
54 
ros::NodeHandle & getPrivateNodeHandle() const
ros::NodeHandle & getNodeHandle() const
StereoCamera * stereo
Definition: nodelets.cpp:47
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)


uvc_camera
Author(s): Ken Tossell
autogenerated on Sat Jun 8 2019 17:54:12