Go to the documentation of this file.
9 #ifndef CObservationGasSensors_H
10 #define CObservationGasSensors_H
174 const float& estimation,
const float& tau);
float a_rise
tau = a*AMPLITUDE +b (linear relationship)
std::vector< TObservationENose > m_readings
One entry per e-nose on the robot.
float b_rise
tau = a*AMPLITUDE +b (linear relationship)
float temperature
Sensed temperature in Celcius (valid if hasTemperature=true only)
uint16_t decimate_count
Decimate value for oversampled enose readings.
unsigned __int16 uint16_t
size_t winNoise_size
The size of the mobile average window used to reduce noise on sensor reagings.
void noise_filtering(const float &reading, const mrpt::system::TTimeStamp ×tamp)
Reduce noise by averaging with a mobile window of specific size (winNoise_size)
double fixed_incT
To force e-nose samples to have fixed time increments.
mrpt::system::TTimeStamp timestamp
Timestamp of the observation.
Declares a class within "CObservationGasSensors" that represents a set of gas concentration readings ...
The content of each m_lastObservations in the estimation when using the option : MOS_MODEl (useMOSmod...
float min_reading
Minimum reading value till the moment, used as approximation to baeline level.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::vector< int > sensorTypes
The kind of sensors in the array (size of "sensorTypes" is the same that the size of "readingsVoltage...
std::vector< TdataMap > m_antiNoise_window
Vector to temporally store and averge readings to reduce noise.
CObservationGasSensors()
Constructor.
mrpt::system::TTimeStamp timestamp
The associated UTC time-stamp.
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
bool first_iteration
To avoid the model estimation on first iteration.
float reading_filtered
Reading after smooth (noise averaging)
float tau
tau value applied
std::vector< float > readingsVoltage
The set of readings (in volts) from the array of sensors (size of "sensorTypes" is the same that the ...
math::TPose3D eNosePoseOnTheRobot
The pose of the sensors on the robot.
float a_decay
tau = a*AMPLITUDE +b (linear relationship)
bool first_incT
To force e-nose samples to have fixed time increments.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
TdataMap last_Obs
The content of each m_lastObservations in the estimation when using the option : MOS_MODEl (useMOSmod...
bool isActive
True if the input to this chamber/enose is poluted air, False if clean air.
Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).
void inverse_MOSmodeling(const float &reading, const mrpt::system::TTimeStamp ×tamp)
Estimates the gas concentration based on readings and sensor model.
bool hasTemperature
Must be true for "temperature" to contain a valid measurement.
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
float reading
Sensore reading.
The structure for each e-nose.
Declares a class derived from "CObservation" that represents a set of readings from gas sensors.
void save_log_map(const mrpt::system::TTimeStamp ×tamp, const float &reading, const float &estimation, const float &tau)
Save the gas distribution estiamtion into a log file for offline representation.
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
bool save_maplog
If true save generated gas map as a log file.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
float b_decay
tau = a*AMPLITUDE +b (linear relationship)
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
Declares a class that represents any robot's observation.
bool get_GasDistribution_estimation(float &reading, mrpt::system::TTimeStamp ×tamp)
Obtain an estimation of the gas distribution based on raw sensor readings
int decimate_value
[useMOSmodel] The decimate frecuency applied after noise filtering
float estimation
The value estimated according to the MOXmodel.
std::ofstream * m_debug_dump
Ofstream to save to file option "save_maplog".
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |