Public Member Functions | Private Attributes
cv_camera::Driver Class Reference

ROS cv camera driver. More...

#include <driver.h>

List of all members.

Public Member Functions

 Driver (ros::NodeHandle &private_node, ros::NodeHandle &camera_node)
 construct with ROS node handles.
void proceed ()
 Capture, publish and sleep.
void setup ()
 Setup camera device and ROS parameters.
 ~Driver ()

Private Attributes

boost::shared_ptr< Capturecamera_
 wrapper of cv::VideoCapture.
ros::NodeHandle camera_node_
 ROS private node for publishing images.
ros::NodeHandle private_node_
 ROS private node for getting ROS parameters.
boost::shared_ptr< ros::Raterate_
 publishing rate.

Detailed Description

ROS cv camera driver.

This wraps getting parameters and publish in specified rate.

Definition at line 16 of file driver.h.


Constructor & Destructor Documentation

cv_camera::Driver::Driver ( ros::NodeHandle private_node,
ros::NodeHandle camera_node 
)

construct with ROS node handles.

use private_node for getting topics like ~rate or ~device, camera_node for advertise and publishing images.

Parameters:
private_nodenode for getting parameters.
camera_nodenode for publishing.

Definition at line 15 of file driver.cpp.

Definition at line 109 of file driver.cpp.


Member Function Documentation

Capture, publish and sleep.

Definition at line 100 of file driver.cpp.

Setup camera device and ROS parameters.

Exceptions:
cv_camera::DeviceErrordevice open failed.

Definition at line 22 of file driver.cpp.


Member Data Documentation

boost::shared_ptr<Capture> cv_camera::Driver::camera_ [private]

wrapper of cv::VideoCapture.

Definition at line 54 of file driver.h.

ROS private node for publishing images.

Definition at line 50 of file driver.h.

ROS private node for getting ROS parameters.

Definition at line 46 of file driver.h.

boost::shared_ptr<ros::Rate> cv_camera::Driver::rate_ [private]

publishing rate.

Definition at line 59 of file driver.h.


The documentation for this class was generated from the following files:


cv_camera
Author(s): Takashi Ogura
autogenerated on Thu Oct 5 2017 02:35:21