#include <CameraHandler.h>
Public Member Functions | |
CameraHandler () | |
bool | endOfSimulation () |
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 | _cameraHasDepth |
bool | _cameraIsFloat |
bool | _cameraIsRGB |
image_transport::ImageTransport | _it |
simFloat | _lastPublishedImageTime |
image_transport::Publisher | _pubDepth |
image_transport::CameraPublisher | _pubIT |
ros::ServiceServer | _service |
Definition at line 11 of file CameraHandler.h.
Definition at line 15 of file CameraHandler.cpp.
Definition at line 24 of file CameraHandler.cpp.
void CameraHandler::_initialize | ( | ) | [protected, virtual] |
Implements GenericObjectHandler.
Definition at line 272 of file CameraHandler.cpp.
void CameraHandler::computeCameraInfo | ( | ) | [protected] |
Helping method to compute camera information message.
Definition at line 196 of file CameraHandler.cpp.
bool CameraHandler::endOfSimulation | ( | ) | [virtual] |
Reimplemented from GenericObjectHandler.
Definition at line 355 of file CameraHandler.cpp.
unsigned int CameraHandler::getObjectType | ( | ) | const [virtual] |
Implements GenericObjectHandler.
Definition at line 27 of file CameraHandler.cpp.
void CameraHandler::handleSimulation | ( | ) | [virtual] |
Implements GenericObjectHandler.
Definition at line 37 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 233 of file CameraHandler.cpp.
void CameraHandler::synchronize | ( | ) | [virtual] |
Reimplemented from GenericObjectHandler.
Definition at line 31 of file CameraHandler.cpp.
double CameraHandler::_acquisitionFrequency [protected] |
Camera frequency
Definition at line 76 of file CameraHandler.h.
sensor_msgs::CameraInfo CameraHandler::_camera_info [protected] |
Preconstructed msg containing camera information.
Definition at line 61 of file CameraHandler.h.
bool CameraHandler::_cameraHasDepth [protected] |
Camera has depth sensor
Definition at line 85 of file CameraHandler.h.
bool CameraHandler::_cameraIsFloat [protected] |
Camera image is published as a 32 bit float
Definition at line 90 of file CameraHandler.h.
bool CameraHandler::_cameraIsRGB [protected] |
Camera is RGB or not
Definition at line 80 of file CameraHandler.h.
image_transport::ImageTransport CameraHandler::_it [protected] |
We create an ImageTransport instance.
Definition at line 46 of file CameraHandler.h.
simFloat CameraHandler::_lastPublishedImageTime [protected] |
Time of the last published image.
Definition at line 71 of file CameraHandler.h.
image_transport::Publisher CameraHandler::_pubDepth [protected] |
Publisher for depth maps.
Definition at line 56 of file CameraHandler.h.
Publisher for camera images.
Definition at line 51 of file CameraHandler.h.
ros::ServiceServer CameraHandler::_service [protected] |
Ros service server for setting camera parameters from ros.
Definition at line 95 of file CameraHandler.h.