Public Member Functions | Protected Member Functions | Protected Attributes
CameraHandler Class Reference

#include <CameraHandler.h>

Inheritance diagram for CameraHandler:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 11 of file CameraHandler.h.


Constructor & Destructor Documentation

Definition at line 16 of file CameraHandler.cpp.

Definition at line 23 of file CameraHandler.cpp.


Member Function Documentation

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.

Parameters:
reqThe desired camera parameters.
resres.success is true if the parameters have been set properly, false otherwise. Some more information may be contained in res.status_message.
Returns:
Same as res.success

Definition at line 169 of file CameraHandler.cpp.

void CameraHandler::synchronize ( ) [virtual]

Reimplemented from GenericObjectHandler.

Definition at line 30 of file CameraHandler.cpp.


Member Data Documentation

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.

We create an ImageTransport instance.

Definition at line 43 of file CameraHandler.h.

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 service server for setting camera parameters from ros.

Definition at line 77 of file CameraHandler.h.


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


camera_handler
Author(s): Riccardo Spica , Giovanni Claudio
autogenerated on Wed Sep 9 2015 18:55:01