#include <CameraHandler.h>
Public Member Functions | |
CameraHandler () | |
unsigned int | getObjectType () const |
void | handleSimulation () |
void | synchronize () |
~CameraHandler () | |
Protected Member Functions | |
void | _initialize () |
void | computeCameraInfo () |
bool | setCameraInfo (sensor_msgs::SetCameraInfo::Request &req, sensor_msgs::SetCameraInfo::Response &res) |
Protected Attributes | |
double | _acquisitionFrequency |
sensor_msgs::CameraInfo | _camera_info |
bool | _cameraIsRGB |
image_transport::ImageTransport | _it |
simFloat | _lastPublishedImageTime |
image_transport::CameraPublisher | _pubIT |
ros::ServiceServer | _service |
Definition at line 11 of file CameraHandler.h.
Definition at line 16 of file CameraHandler.cpp.
Definition at line 23 of file CameraHandler.cpp.
void CameraHandler::_initialize | ( | ) | [protected, virtual] |
Implements GenericObjectHandler.
Definition at line 208 of file CameraHandler.cpp.
void CameraHandler::computeCameraInfo | ( | ) | [protected] |
Helping method to compute camera information message.
Definition at line 132 of file CameraHandler.cpp.
unsigned int CameraHandler::getObjectType | ( | ) | const [virtual] |
Implements GenericObjectHandler.
Definition at line 26 of file CameraHandler.cpp.
void CameraHandler::handleSimulation | ( | ) | [virtual] |
Implements GenericObjectHandler.
Definition at line 41 of file CameraHandler.cpp.
bool CameraHandler::setCameraInfo | ( | sensor_msgs::SetCameraInfo::Request & | req, |
sensor_msgs::SetCameraInfo::Response & | res | ||
) | [protected] |
Service handler for setting camera parameters from ros.
req | The desired camera parameters. |
res | res.success is true if the parameters have been set properly, false otherwise. Some more information may be contained in res.status_message. |
Definition at line 169 of file CameraHandler.cpp.
void CameraHandler::synchronize | ( | ) | [virtual] |
Reimplemented from GenericObjectHandler.
Definition at line 30 of file CameraHandler.cpp.
double CameraHandler::_acquisitionFrequency [protected] |
Camera frequency
Definition at line 68 of file CameraHandler.h.
sensor_msgs::CameraInfo CameraHandler::_camera_info [protected] |
Preconstructed msg containing camera information.
Definition at line 53 of file CameraHandler.h.
bool CameraHandler::_cameraIsRGB [protected] |
Camera is RGB or not
Definition at line 72 of file CameraHandler.h.
image_transport::ImageTransport CameraHandler::_it [protected] |
We create an ImageTransport instance.
Definition at line 43 of file CameraHandler.h.
simFloat CameraHandler::_lastPublishedImageTime [protected] |
Time of the last published image.
Definition at line 63 of file CameraHandler.h.
Publisher for camera images.
Definition at line 48 of file CameraHandler.h.
ros::ServiceServer CameraHandler::_service [protected] |
Ros service server for setting camera parameters from ros.
Definition at line 77 of file CameraHandler.h.