28#ifndef CORELIB_INCLUDE_RTABMAP_CORE_ENVSENSOR_H_
29#define CORELIB_INCLUDE_RTABMAP_CORE_ENVSENSOR_H_
103 const double &
value()
const {
return value_;}
105 const double &
stamp()
const {
return stamp_;}
Single environmental measurement (type, value, timestamp).
const double & stamp() const
Type
Environmental sensor channel identifier.
@ kWifiSignalStrength
Wi‑Fi signal strength (dBm).
@ kAmbientAirPressure
Ambient air pressure (hPa).
@ kAmbientRelativeHumidity
Relative humidity (%).
@ kCustomSensor1
User-defined sensor slot 1.
@ kAmbientLight
Ambient illuminance (lx).
@ kAmbientTemperature
Ambient temperature (°C).
@ kUndefined
Uninitialized / unknown channel.
const double & value() const
EnvSensor()
Default constructor: kUndefined type, zero value and stamp.
EnvSensor(const Type &type, const double &value, const double &stamp=0)
Constructs a reading with the given type, value, and optional stamp.
const Type & type() const
std::map< EnvSensor::Type, EnvSensor > EnvSensors
Map of environmental readings keyed by EnvSensor::Type (at most one per type).