ROS cv camera driver. More...
#include <driver.h>
Public Member Functions | |
Driver (ros::NodeHandle &private_node, ros::NodeHandle &camera_node) | |
construct with ROS node handles. More... | |
void | proceed () |
Capture, publish and sleep. More... | |
void | setup () |
Setup camera device and ROS parameters. More... | |
~Driver () | |
Private Attributes | |
boost::shared_ptr< Capture > | camera_ |
wrapper of cv::VideoCapture. More... | |
ros::NodeHandle | camera_node_ |
ROS private node for publishing images. More... | |
ros::NodeHandle | private_node_ |
ROS private node for getting ROS parameters. More... | |
boost::shared_ptr< ros::Rate > | rate_ |
publishing rate. More... | |
ROS cv camera driver.
This wraps getting parameters and publish in specified rate.
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.
private_node | node for getting parameters. |
camera_node | node for publishing. |
Definition at line 15 of file driver.cpp.
cv_camera::Driver::~Driver | ( | ) |
Definition at line 109 of file driver.cpp.
void cv_camera::Driver::proceed | ( | ) |
Capture, publish and sleep.
Definition at line 100 of file driver.cpp.
void cv_camera::Driver::setup | ( | ) |
Setup camera device and ROS parameters.
cv_camera::DeviceError | device open failed. |
Definition at line 21 of file driver.cpp.
|
private |
|
private |
|
private |
|
private |