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

◆ GazeboRosMultiCamera()

gazebo::GazeboRosMultiCamera::GazeboRosMultiCamera ( )

Constructor.

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

Definition at line 42 of file gazebo_ros_multicamera.cpp.

◆ ~GazeboRosMultiCamera()

gazebo::GazeboRosMultiCamera::~GazeboRosMultiCamera ( )

Destructor.

Definition at line 48 of file gazebo_ros_multicamera.cpp.

Member Function Documentation

◆ Load()

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 52 of file gazebo_ros_multicamera.cpp.

◆ OnNewFrame()

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

Definition at line 102 of file gazebo_ros_multicamera.cpp.

◆ OnNewFrameLeft()

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 136 of file gazebo_ros_multicamera.cpp.

◆ OnNewFrameRight()

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 145 of file gazebo_ros_multicamera.cpp.

Member Data Documentation

◆ image_connect_count_

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.

◆ image_connect_count_lock_

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

Definition at line 60 of file gazebo_ros_multicamera.h.

◆ utils

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

Definition at line 43 of file gazebo_ros_multicamera.h.

◆ was_active_

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 Thu Sep 5 2024 02:49:55