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

#include <gazebo_ros_multicamera.h>

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

Public Member Functions

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

Public Attributes

std::vector< GazeboRosCameraUtils * > utils
 

Protected Member Functions

void OnNewFrame (const unsigned char *_image, GazeboRosCameraUtils *util)
 
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)
 

Private Attributes

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

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 30 of file gazebo_ros_multicamera.h.

Constructor & Destructor Documentation

gazebo::GazeboRosMultiCamera::GazeboRosMultiCamera ( )

Constructor.

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

Definition at line 38 of file gazebo_ros_multicamera.cpp.

gazebo::GazeboRosMultiCamera::~GazeboRosMultiCamera ( )

Destructor.

Definition at line 44 of file gazebo_ros_multicamera.cpp.

Member Function Documentation

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

Load the plugin.

Parameters
takein SDF root element

Reimplemented from gazebo::MultiCameraPlugin.

Definition at line 48 of file gazebo_ros_multicamera.cpp.

void gazebo::GazeboRosMultiCamera::OnNewFrame ( const unsigned char *  _image,
GazeboRosCameraUtils util 
)
protected

Definition at line 98 of file gazebo_ros_multicamera.cpp.

void gazebo::GazeboRosMultiCamera::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 115 of file gazebo_ros_multicamera.cpp.

void gazebo::GazeboRosMultiCamera::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 124 of file gazebo_ros_multicamera.cpp.

Member Data Documentation

boost::shared_ptr<int> gazebo::GazeboRosMultiCamera::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 59 of file gazebo_ros_multicamera.h.

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

Definition at line 60 of file gazebo_ros_multicamera.h.

std::vector<GazeboRosCameraUtils*> gazebo::GazeboRosMultiCamera::utils

Definition at line 43 of file gazebo_ros_multicamera.h.

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

Definition at line 61 of file gazebo_ros_multicamera.h.


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


gazebo_plugins
Author(s): John Hsu
autogenerated on Tue Apr 6 2021 02:19:40