18 #ifndef GAZEBO_ROS_TRIGGERED_CAMERA_HH 19 #define GAZEBO_ROS_TRIGGERED_CAMERA_HH 25 #include <gazebo/plugins/CameraPlugin.hh> 31 class GazeboRosTriggeredMultiCamera;
43 public:
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf);
50 public:
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf,
51 const std::string &_camera_name_suffix,
52 double _hack_baseline);
55 protected:
virtual void OnNewFrame(
const unsigned char *_image,
56 unsigned int _width,
unsigned int _height,
57 unsigned int _depth,
const std::string &_format);
~GazeboRosTriggeredCamera()
Destructor.
virtual void TriggerCamera()
void SetCameraEnabled(const bool _enabled)
GazeboRosTriggeredCamera()
Constructor.
event::ConnectionPtr preRenderConnection_
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
Load the plugin.
virtual void OnNewFrame(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
Update the controller.
virtual bool CanTriggerCamera()