gz/sensors/ThermalCameraSensor.hh
Go to the documentation of this file.
Thermal camera sensor class.
Definition: gz/sensors/ThermalCameraSensor.hh:73
virtual void SetScene(gz::rendering::ScenePtr _scene) override
Set the rendering scene.
common::ConnectionPtr ConnectImageCallback(std::function< void(const msgs::Image &)> _callback)
Set a callback to be called when image frame data is generated.
virtual void SetAmbientTemperature(float _ambient)
Set the ambient temperature of the environment.
virtual bool Load(sdf::ElementPtr _sdf) override
Load the sensor with SDF parameters.
virtual bool Load(const sdf::Sensor &_sdf) override
Load the sensor based on data from an sdf::Sensor object.
virtual ~ThermalCameraSensor()
destructor
virtual unsigned int ImageHeight() const override
Get image height.
virtual void SetLinearResolution(float _resolution)
Set the temperature linear resolution. The thermal image data returned will be temperature in kelvin ...
virtual rendering::ThermalCameraPtr ThermalCamera()
Force the sensor to generate data.
virtual bool Update(const std::chrono::steady_clock::duration &_now) override
Force the sensor to generate data.
virtual void SetAmbientTemperatureRange(float _range)
Set the range of ambient temperature.
virtual void SetMaxTemperature(float _max)
Set the maximum temperature the sensor can detect.
void OnNewThermalFrame(const uint16_t *_scan, unsigned int _width, unsigned int _height, unsigned int _channels, const std::string &_format)
Thermal data callback used to get the data from the sensor.
virtual bool Init() override
Initialize values in the sensor.
bool HasConnections() const
Check if there are any subscribers.
virtual void SetMinTemperature(float _min)
Set the minimum temperature the sensor can detect.
virtual unsigned int ImageWidth() const override
Get image width.
Definition: gz/sensors/AirPressureSensor.hh:32