17 #ifndef _GAZEBO_MULTI_CAMERA_PLUGIN_HH_ 18 #define _GAZEBO_MULTI_CAMERA_PLUGIN_HH_ 23 #include <gazebo/common/Plugin.hh> 24 #include <gazebo/sensors/MultiCameraSensor.hh> 25 #include <gazebo/rendering/Camera.hh> 26 #include <gazebo/gazebo.hh> 37 public:
virtual void Load(sensors::SensorPtr _sensor, sdf::ElementPtr _sdf);
40 unsigned int _width,
unsigned int _height,
41 unsigned int _depth,
const std::string &_format);
43 unsigned int _width,
unsigned int _height,
44 unsigned int _depth,
const std::string &_format);
49 protected: std::vector<std::string>
format;
51 protected: std::vector<rendering::CameraPtr>
camera;
virtual ~MultiCameraPlugin()
Destructor.
std::vector< rendering::CameraPtr > camera
virtual void OnNewFrameLeft(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
std::vector< unsigned int > width
sensors::MultiCameraSensorPtr parentSensor
virtual void Load(sensors::SensorPtr _sensor, sdf::ElementPtr _sdf)
std::vector< unsigned int > depth
std::vector< unsigned int > height
std::vector< std::string > format
std::vector< event::ConnectionPtr > newFrameConnection
virtual void OnNewFrameRight(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)