53 #ifndef GAZEBO_ROS_THERMAL_CAMERA_HH 54 #define GAZEBO_ROS_THERMAL_CAMERA_HH 61 template <
typename Base>
73 public:
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf);
74 public:
void LoadImpl(sensors::SensorPtr _parent, sdf::ElementPtr _sdf) {}
77 protected:
virtual void OnNewFrame(
const unsigned char *_image,
78 unsigned int _width,
unsigned int _height,
79 unsigned int _depth,
const std::string &_format);
83 unsigned int _width,
unsigned int _height,
84 unsigned int _depth,
const std::string &_format);
88 protected:
void PutCameraData(
const unsigned char *_src, common::Time &last_update_time);
void LoadImpl(sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
GazeboRosThermalCamera_()
Constructor.
void PutCameraData(const unsigned char *_src)
Put camera data to the ROS topic.
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
Load the plugin.
virtual void OnNewImageFrame(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
Update the controller.
~GazeboRosThermalCamera_()
Destructor.
virtual void OnNewFrame(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
Update the controller.