Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
gazebo::GazeboRosTriggeredMultiCamera Class Reference

#include <gazebo_ros_triggered_multicamera.h>

Inheritance diagram for gazebo::GazeboRosTriggeredMultiCamera:
Inheritance graph
[legend]

Public Member Functions

 GazeboRosTriggeredMultiCamera ()
 Constructor. More...
 
void Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
 Load the plugin. More...
 
 ~GazeboRosTriggeredMultiCamera ()
 Destructor. More...
 
- Public Member Functions inherited from gazebo::MultiCameraPlugin
 MultiCameraPlugin ()
 
virtual ~MultiCameraPlugin ()
 Destructor. More...
 

Public Attributes

std::vector< GazeboRosTriggeredCamera * > triggered_cameras
 

Protected Member Functions

virtual void OnNewFrameLeft (const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
 Update the controller FIXME: switch to function vectors. More...
 
virtual void OnNewFrameRight (const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
 
void PreRender ()
 
void SetCameraEnabled (const bool _enabled)
 

Protected Attributes

event::ConnectionPtr preRenderConnection_
 
- Protected Attributes inherited from gazebo::MultiCameraPlugin
std::vector< rendering::CameraPtr > camera
 
std::vector< unsigned int > depth
 
std::vector< std::string > format
 
std::vector< unsigned int > height
 
sensors::MultiCameraSensorPtr parentSensor
 
std::vector< unsigned int > width
 

Private Attributes

boost::shared_ptr< int > image_connect_count_
 
boost::shared_ptr< boost::mutex > image_connect_count_lock_
 
boost::shared_ptr< bool > was_active_
 

Detailed Description

Definition at line 30 of file gazebo_ros_triggered_multicamera.h.

Constructor & Destructor Documentation

gazebo::GazeboRosTriggeredMultiCamera::GazeboRosTriggeredMultiCamera ( )

Constructor.

Parameters
parentThe parent entity, must be a Model or a Sensor

Definition at line 33 of file gazebo_ros_triggered_multicamera.cpp.

gazebo::GazeboRosTriggeredMultiCamera::~GazeboRosTriggeredMultiCamera ( )

Destructor.

Definition at line 39 of file gazebo_ros_triggered_multicamera.cpp.

Member Function Documentation

void gazebo::GazeboRosTriggeredMultiCamera::Load ( sensors::SensorPtr  _parent,
sdf::ElementPtr  _sdf 
)
virtual

Load the plugin.

Parameters
takein SDF root element

Reimplemented from gazebo::MultiCameraPlugin.

Definition at line 43 of file gazebo_ros_triggered_multicamera.cpp.

void gazebo::GazeboRosTriggeredMultiCamera::OnNewFrameLeft ( const unsigned char *  _image,
unsigned int  _width,
unsigned int  _height,
unsigned int  _depth,
const std::string &  _format 
)
protectedvirtual

Update the controller FIXME: switch to function vectors.

Reimplemented from gazebo::MultiCameraPlugin.

Definition at line 93 of file gazebo_ros_triggered_multicamera.cpp.

void gazebo::GazeboRosTriggeredMultiCamera::OnNewFrameRight ( const unsigned char *  _image,
unsigned int  _width,
unsigned int  _height,
unsigned int  _depth,
const std::string &  _format 
)
protectedvirtual

Reimplemented from gazebo::MultiCameraPlugin.

Definition at line 103 of file gazebo_ros_triggered_multicamera.cpp.

void gazebo::GazeboRosTriggeredMultiCamera::PreRender ( )
protected
void gazebo::GazeboRosTriggeredMultiCamera::SetCameraEnabled ( const bool  _enabled)
protected

Member Data Documentation

boost::shared_ptr<int> gazebo::GazeboRosTriggeredMultiCamera::image_connect_count_
private

Bookkeeping flags that will be passed into the underlying GazeboRosCameraUtils objects to let them share state about the parent sensor.

Definition at line 57 of file gazebo_ros_triggered_multicamera.h.

boost::shared_ptr<boost::mutex> gazebo::GazeboRosTriggeredMultiCamera::image_connect_count_lock_
private

Definition at line 58 of file gazebo_ros_triggered_multicamera.h.

event::ConnectionPtr gazebo::GazeboRosTriggeredMultiCamera::preRenderConnection_
protected

Definition at line 61 of file gazebo_ros_triggered_multicamera.h.

std::vector<GazeboRosTriggeredCamera *> gazebo::GazeboRosTriggeredMultiCamera::triggered_cameras

Definition at line 43 of file gazebo_ros_triggered_multicamera.h.

boost::shared_ptr<bool> gazebo::GazeboRosTriggeredMultiCamera::was_active_
private

Definition at line 59 of file gazebo_ros_triggered_multicamera.h.


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


gazebo_plugins
Author(s): John Hsu
autogenerated on Tue Mar 26 2019 02:31:27