18 #ifndef GAZEBO_ROS_MULTICAMERA_HH 19 #define GAZEBO_ROS_MULTICAMERA_HH 41 public:
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf);
43 std::vector<GazeboRosCameraUtils*>
utils;
45 protected:
void OnNewFrame(
const unsigned char *_image,
49 protected:
virtual void OnNewFrameLeft(
const unsigned char *_image,
50 unsigned int _width,
unsigned int _height,
51 unsigned int _depth,
const std::string &_format);
53 unsigned int _width,
unsigned int _height,
54 unsigned int _depth,
const std::string &_format);
GazeboRosMultiCamera()
Constructor.
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.
~GazeboRosMultiCamera()
Destructor.
std::vector< GazeboRosCameraUtils * > utils
boost::shared_ptr< boost::mutex > image_connect_count_lock_
virtual void OnNewFrameRight(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
Load the plugin.
boost::shared_ptr< int > image_connect_count_
boost::shared_ptr< bool > was_active_
void OnNewFrame(const unsigned char *_image, GazeboRosCameraUtils *util)