Go to the documentation of this file.
10 #ifndef CGasConcentrationGridMap2D_H
11 #define CGasConcentrationGridMap2D_H
43 float y_min = -2,
float y_max = 2,
float resolution = 0.1);
51 public TInsertionOptionsCommon
60 std::ostream& out)
const override;
135 std::vector<std::vector<std::vector<TGaussianCell>>>*
table;
173 float min_x, max_x, min_y, max_y, resolution;
float std_windNoise_phi
Frequency for simulating advection (only used.
virtual void getAs3DObject(mrpt::opengl::CSetOfObjects::Ptr &outObj) const override
Returns a 3D object representing the map.
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ion) override
This method load the options from a ".ini"-like file or memory-stored string list.
CGasConcentrationGridMap2D represents a PDF of gas concentrations over a 2D area.
Parameters related with inserting observations into the map:
unsigned __int16 uint16_t
CGasConcentrationGridMap2D(TMapRepresentation mapType=mrAchim, float x_min=-2, float x_max=2, float y_min=-2, float y_max=2, float resolution=0.1)
Constructor.
Parameters common to any derived class.
std::vector< std::vector< std::vector< TGaussianCell > > > * table
uint16_t enose_id
id for the enose used to generate this map (must be < gasGrid_count)
void getWindAs3DObject(mrpt::opengl::CSetOfObjects::Ptr &windObj) const
Returns the 3D object representing the wind grid information.
mrpt::containers::CDynamicGrid< double > windGrid_module
Gridmaps of the wind Direction/Module.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form,...
struct mrpt::maps::CGasConcentrationGridMap2D::TGaussianWindTable LUT
virtual void increaseUncertainty(const double STD_increase_value)
Increase the kf_std of all cells from the m_map This mehod is usually called by the main_map to simul...
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
GLsizei GLsizei GLchar * source
std::string windSensorLabel
The label of the WindSenor used to simulate advection.
float advectionFreq
Indicates if wind information must be used.
This class allows loading and storing values and vectors of different types from a configuration text...
bool load_Gaussian_Wind_Grid_From_File()
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
TMapRepresentation
The type of map representation to be used, see CRandomFieldGridMap2D for a discussion.
bool save_Gaussian_Wind_Grid_To_File()
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
std::shared_ptr< CSetOfObjects > Ptr
bool simulateAdvection(const double &STD_increase_value)
Implements the transition model of the gasConcentration map using the information of the wind maps
mrpt::maps::CGasConcentrationGridMap2D::TInsertionOptions insertionOptions
#define MAP_DEFINITION_START(_CLASS_NAME_)
Add a MAP_DEFINITION_START() ...
bool internal_insertObservation(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D *robotPose=nullptr) override
Internal method called by insertObservation()
virtual CRandomFieldGridMap2D::TInsertionOptionsCommon * getCommonInsertOptions() override
Get the part of the options common to all CRandomFieldGridMap2D classes.
#define MAP_DEFINITION_END(_CLASS_NAME_)
uint16_t gasSensorType
The sensor type for the gas concentration map (0x0000 ->mean of all installed sensors,...
void internal_clear() override
Erase all the contents of the map.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
CRandomFieldGridMap2D represents a 2D grid map where each cell is associated one real-valued property...
virtual ~CGasConcentrationGridMap2D()
Destructor.
mrpt::containers::CDynamicGrid< double > windGrid_direction
Declares a class that represents any robot's observation.
@ mrAchim
Another alias for "mrKernelDM", for backwards compatibility (see discussion in mrpt::maps::CRandomFie...
float default_wind_direction
The std to consider on.
GLsizei const GLchar ** string
mrpt::system::TTimeStamp timeLastSimulated
The timestamp of the last time the advection simulation was executed.
std::string gasSensorLabel
The label of the CObservationGasSensor used to generate the map.
bool build_Gaussian_Wind_Grid()
Builds a LookUp table with the values of the Gaussian Weights result of the wind advection for a spec...
TInsertionOptions()
Default values loader.
double internal_computeObservationLikelihood(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D &takenFrom) override
Internal method called by computeObservationLikelihood()
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 | |