camera.h
Go to the documentation of this file.
1 #include <ros/ros.h>
3 #include "uvc_cam/uvc_cam.h"
4 #include <boost/thread.hpp>
6 
7 namespace uvc_camera {
8 
9 class Camera {
10  public:
11  Camera(ros::NodeHandle comm_nh, ros::NodeHandle param_nh);
12  void onInit();
13  void sendInfo(sensor_msgs::ImagePtr &image, ros::Time time);
14  void sendInfoJpeg(ros::Time time);
15  void feedImages();
16  ~Camera();
17 
18  private:
21  bool ok;
22 
24  std::string device, frame, format;
25  bool rotate;
26 
28 
32 
34  boost::thread image_thread;
35 };
36 
37 };
38 
image_transport::Publisher pub
Definition: camera.h:29
camera_info_manager::CameraInfoManager info_mgr
Definition: camera.h:27
std::string format
Definition: camera.h:24
ros::Publisher info_pub
Definition: camera.h:31
boost::thread image_thread
Definition: camera.h:34
std::string frame
Definition: camera.h:24
ros::Publisher pubjpeg
Definition: camera.h:30
void sendInfo(sensor_msgs::ImagePtr &image, ros::Time time)
Definition: camera.cpp:198
ros::NodeHandle pnode
Definition: camera.h:19
image_transport::ImageTransport it
Definition: camera.h:20
uvc_cam::Cam * cam
Definition: camera.h:33
ros::NodeHandle node
Definition: camera.h:19
int frames_to_skip
Definition: camera.h:23
std::string device
Definition: camera.h:24
void sendInfoJpeg(ros::Time time)
Definition: camera.cpp:220
Camera(ros::NodeHandle comm_nh, ros::NodeHandle param_nh)
Definition: camera.cpp:20


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