10 #ifndef CGasConcentrationGridMap2D_H
11 #define CGasConcentrationGridMap2D_H
55 float resolution = 0.1
62 virtual
double computeObservationLikelihood( const
CObservation *obs, const
CPose3D &takenFrom );
74 void loadFromConfigFile(
76 const std::string §ion);
78 void dumpToTextStream(
CStream &out)
const;
103 virtual void saveMetricMapRepresentationToFile(
104 const std::string &filNamePrefix
110 virtual void saveAsMatlab3DGraph(
const std::string &filName)
const;
114 virtual void getAs3DObject ( mrpt::opengl::CSetOfObjectsPtr &outObj )
const;
118 virtual void getAs3DObject ( mrpt::opengl::CSetOfObjectsPtr &meanObj, mrpt::opengl::CSetOfObjectsPtr &varObj )
const;
122 void getWindAs3DObject( mrpt::opengl::CSetOfObjectsPtr &windObj)
const;
127 virtual void increaseUncertainty(
const double STD_increase_value);
131 bool simulateAdvection(
const double &STD_increase_value);
158 std::vector< std::vector< std::vector<TGaussianCell> > > *
table;
165 return &insertionOptions;
169 virtual void internal_clear();
178 virtual bool internal_insertObservation(
const CObservation *obs,
const CPose3D *robotPose = NULL );
183 bool build_Gaussian_Wind_Grid();
185 bool save_Gaussian_Wind_Grid_To_File();
186 bool load_Gaussian_Wind_Grid_From_File();
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1...
The contents of each cell in a CRandomFieldGridMap2D map.
TMapRepresentation
The type of map representation to be used, see CRandomFieldGridMap2D for a discussion.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
float advectionFreq
Indicates if wind information must be used to simulate Advection.
std::string gasSensorLabel
The label of the CObservationGasSensor used to generate the map.
A class for storing images as grayscale or RGB bitmaps.
mrpt::system::TTimeStamp timeLastSimulated
The timestamp of the last time the advection simulation was executed.
CGasConcentrationGridMap2D represents a PDF of gas concentrations over a 2D area. ...
This class allows loading and storing values and vectors of different types from a configuration text...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
This base provides a set of functions for maths stuff.
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
Parameters related with inserting observations into the map:
CRandomFieldGridMap2D represents a 2D grid map where each cell is associated one real-valued property...
Declares a class that represents any robot's observation.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
mrpt::slam::CDynamicGrid< double > windGrid_module
Gridmaps of the wind Direction/Module.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Parameters common to any derived class.
virtual CRandomFieldGridMap2D::TInsertionOptionsCommon * getCommonInsertOptions()
Get the part of the options common to all CRandomFieldGridMap2D classes.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
std::string windSensorLabel
The label of the WindSenor used to simulate advection.
std::vector< std::vector< std::vector< TGaussianCell > > > * table
float std_windNoise_phi
Frequency for simulating advection (only used to transform wind speed to distance) ...
uint16_t enose_id
id for the enose used to generate this map (must be < gasGrid_count)
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
uint16_t gasSensorType
The sensor type for the gas concentration map (0x0000 ->mean of all installed sensors, 0x2600, 0x6810, ...)
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...