CGasConcentrationGridMap2D represents a PDF of gas concentrations over a 2D area.
There are a number of methods available to build the gas grid-map, depending on the value of "TMapRepresentation maptype" passed in the constructor (see base class mrpt::slam::CRandomFieldGridMap2D).
#include <mrpt/slam/CGasConcentrationGridMap2D.h>

Classes | |
| struct | TdataMap |
| The content of each m_lastObservations in the estimation when using the option : MOS_MODEl (insertionOptions.useMOSmodel =1) More... | |
| struct | TInsertionOptions |
| Parameters related with inserting observations into the map: More... | |
Public Member Functions | |
| 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. | |
| virtual | ~CGasConcentrationGridMap2D () |
| Destructor. | |
| virtual double | computeObservationLikelihood (const CObservation *obs, const CPose3D &takenFrom) |
| Computes the likelihood that a given observation was taken from a given pose in the world being modeled with this map. | |
| virtual void | getAsBitmapFile (mrpt::utils::CImage &out_img) const |
| Returns an image just as described in saveAsBitmapFile. | |
| virtual void | saveMetricMapRepresentationToFile (const std::string &filNamePrefix) const |
| The implementation in this class just calls all the corresponding method of the contained metric maps. | |
| virtual void | saveAsMatlab3DGraph (const std::string &filName) const |
| Save a matlab ".m" file which represents as 3D surfaces the mean and a given confidence level for the concentration of each cell. | |
| virtual void | getAs3DObject (mrpt::opengl::CSetOfObjectsPtr &outObj) const |
| Returns a 3D object representing the map. | |
Public Attributes | |
| mrpt::slam::CGasConcentrationGridMap2D::TInsertionOptions | insertionOptions |
Protected Member Functions | |
| virtual CRandomFieldGridMap2D::TInsertionOptionsCommon * | getCommonInsertOptions () |
| Get the part of the options common to all CRandomFieldGridMap2D classes. | |
| void | CGasConcentration_estimation (float reading, const CPose3D &sensorPose, const mrpt::system::TTimeStamp timestamp) |
| Estimates the gas concentration based on readings and sensor model. | |
| void | noise_filtering (float reading, const CPose3D &sensorPose, const mrpt::system::TTimeStamp timestamp) |
| Reduce noise by averaging with a mobile window. | |
| void | save_log_map (const mrpt::system::TTimeStamp timestamp, const float reading, const float estimation, const float k, const double yaw, const float speed) |
| Save the GAS_MAP generated into a log file for offline representation. | |
| virtual void | internal_clear () |
| Erase all the contents of the map. | |
| virtual bool | internal_insertObservation (const CObservation *obs, const CPose3D *robotPose=NULL) |
| Insert the observation information into this map. | |
Protected Attributes | |
| TdataMap | m_new_Obs |
| [useMOSmodel] The last N GasObservations, used for the MOS MODEL estimation. | |
| TdataMap | m_new_ANS |
| std::vector< TdataMap > | m_lastObservations |
| std::vector< TdataMap > | m_antiNoise_window |
| std::ofstream * | m_debug_dump |
| [useMOSmodel] Ofstream to save to file option "save_maplog" | |
| uint16_t | decimate_count |
| [useMOSmodel] Decimate value for oversampled enose readings | |
| double | fixed_incT |
| [useMOSmodel] To force e-nose samples to have fixed time increments | |
| bool | first_incT |
RTTI stuff | |
| typedef CGasConcentrationGridMap2DPtr | SmartPtr |
| static mrpt::utils::CLASSINIT | _init_CGasConcentrationGridMap2D |
| static mrpt::utils::TRuntimeClassId | classCGasConcentrationGridMap2D |
| static const mrpt::utils::TRuntimeClassId * | classinfo |
| static const mrpt::utils::TRuntimeClassId * | _GetBaseClass () |
| virtual const mrpt::utils::TRuntimeClassId * | GetRuntimeClass () const |
| Returns information about the class of an object in runtime. | |
| virtual mrpt::utils::CObject * | duplicate () const |
| Returns a copy of the object, indepently of its class. | |
| static mrpt::utils::CObject * | CreateObject () |
| static CGasConcentrationGridMap2DPtr | Create () |
A typedef for the associated smart pointer
Definition at line 60 of file CGasConcentrationGridMap2D.h.
| mrpt::slam::CGasConcentrationGridMap2D::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.
| virtual mrpt::slam::CGasConcentrationGridMap2D::~CGasConcentrationGridMap2D | ( | ) | [virtual] |
Destructor.
| static const mrpt::utils::TRuntimeClassId* mrpt::slam::CGasConcentrationGridMap2D::_GetBaseClass | ( | ) | [static, protected] |
Reimplemented from mrpt::slam::CRandomFieldGridMap2D.
| void mrpt::slam::CGasConcentrationGridMap2D::CGasConcentration_estimation | ( | float | reading, |
| const CPose3D & | sensorPose, | ||
| const mrpt::system::TTimeStamp | timestamp | ||
| ) | [protected] |
Estimates the gas concentration based on readings and sensor model.
| virtual double mrpt::slam::CGasConcentrationGridMap2D::computeObservationLikelihood | ( | const CObservation * | obs, |
| const CPose3D & | takenFrom | ||
| ) | [virtual] |
Computes the likelihood that a given observation was taken from a given pose in the world being modeled with this map.
| takenFrom | The robot's pose the observation is supposed to be taken from. |
| obs | The observation. |
Implements mrpt::slam::CMetricMap.
| static CGasConcentrationGridMap2DPtr mrpt::slam::CGasConcentrationGridMap2D::Create | ( | ) | [static] |
| static mrpt::utils::CObject* mrpt::slam::CGasConcentrationGridMap2D::CreateObject | ( | ) | [static] |
| virtual mrpt::utils::CObject* mrpt::slam::CGasConcentrationGridMap2D::duplicate | ( | ) | const [virtual] |
Returns a copy of the object, indepently of its class.
Implements mrpt::utils::CObject.
| virtual void mrpt::slam::CGasConcentrationGridMap2D::getAs3DObject | ( | mrpt::opengl::CSetOfObjectsPtr & | outObj | ) | const [virtual] |
Returns a 3D object representing the map.
Reimplemented from mrpt::slam::CRandomFieldGridMap2D.
| virtual void mrpt::slam::CGasConcentrationGridMap2D::getAsBitmapFile | ( | mrpt::utils::CImage & | out_img | ) | const [virtual] |
Returns an image just as described in saveAsBitmapFile.
Reimplemented from mrpt::slam::CRandomFieldGridMap2D.
| virtual CRandomFieldGridMap2D::TInsertionOptionsCommon* mrpt::slam::CGasConcentrationGridMap2D::getCommonInsertOptions | ( | ) | [inline, protected, virtual] |
Get the part of the options common to all CRandomFieldGridMap2D classes.
Implements mrpt::slam::CRandomFieldGridMap2D.
Definition at line 153 of file CGasConcentrationGridMap2D.h.
| virtual const mrpt::utils::TRuntimeClassId* mrpt::slam::CGasConcentrationGridMap2D::GetRuntimeClass | ( | ) | const [virtual] |
Returns information about the class of an object in runtime.
Reimplemented from mrpt::slam::CRandomFieldGridMap2D.
| virtual void mrpt::slam::CGasConcentrationGridMap2D::internal_clear | ( | ) | [protected, virtual] |
Erase all the contents of the map.
Reimplemented from mrpt::slam::CRandomFieldGridMap2D.
| virtual bool mrpt::slam::CGasConcentrationGridMap2D::internal_insertObservation | ( | const CObservation * | obs, |
| const CPose3D * | robotPose = NULL |
||
| ) | [protected, virtual] |
Insert the observation information into this map.
This method must be implemented in derived classes.
| obs | The observation |
| robotPose | The 3D pose of the robot mobile base in the map reference system, or NULL (default) if you want to use CPose2D(0,0,deg) |
Implements mrpt::slam::CMetricMap.
| void mrpt::slam::CGasConcentrationGridMap2D::noise_filtering | ( | float | reading, |
| const CPose3D & | sensorPose, | ||
| const mrpt::system::TTimeStamp | timestamp | ||
| ) | [protected] |
Reduce noise by averaging with a mobile window.
| void mrpt::slam::CGasConcentrationGridMap2D::save_log_map | ( | const mrpt::system::TTimeStamp | timestamp, |
| const float | reading, | ||
| const float | estimation, | ||
| const float | k, | ||
| const double | yaw, | ||
| const float | speed | ||
| ) | [protected] |
Save the GAS_MAP generated into a log file for offline representation.
| virtual void mrpt::slam::CGasConcentrationGridMap2D::saveAsMatlab3DGraph | ( | const std::string & | filName | ) | const [virtual] |
Save a matlab ".m" file which represents as 3D surfaces the mean and a given confidence level for the concentration of each cell.
This method can only be called in a KF map model.
Reimplemented from mrpt::slam::CRandomFieldGridMap2D.
| virtual void mrpt::slam::CGasConcentrationGridMap2D::saveMetricMapRepresentationToFile | ( | const std::string & | filNamePrefix | ) | const [virtual] |
The implementation in this class just calls all the corresponding method of the contained metric maps.
Reimplemented from mrpt::slam::CRandomFieldGridMap2D.
mrpt::utils::CLASSINIT mrpt::slam::CGasConcentrationGridMap2D::_init_CGasConcentrationGridMap2D [static, protected] |
Definition at line 60 of file CGasConcentrationGridMap2D.h.
mrpt::utils::TRuntimeClassId mrpt::slam::CGasConcentrationGridMap2D::classCGasConcentrationGridMap2D [static] |
Definition at line 60 of file CGasConcentrationGridMap2D.h.
Definition at line 60 of file CGasConcentrationGridMap2D.h.
uint16_t mrpt::slam::CGasConcentrationGridMap2D::decimate_count [protected] |
[useMOSmodel] Decimate value for oversampled enose readings
Definition at line 181 of file CGasConcentrationGridMap2D.h.
bool mrpt::slam::CGasConcentrationGridMap2D::first_incT [protected] |
Definition at line 186 of file CGasConcentrationGridMap2D.h.
double mrpt::slam::CGasConcentrationGridMap2D::fixed_incT [protected] |
[useMOSmodel] To force e-nose samples to have fixed time increments
Definition at line 185 of file CGasConcentrationGridMap2D.h.
| mrpt::slam::CGasConcentrationGridMap2D::TInsertionOptions mrpt::slam::CGasConcentrationGridMap2D::insertionOptions |
Definition at line 173 of file CGasConcentrationGridMap2D.h.
[useMOSmodel] Ofstream to save to file option "save_maplog"
Definition at line 177 of file CGasConcentrationGridMap2D.h.
Definition at line 172 of file CGasConcentrationGridMap2D.h.
Definition at line 171 of file CGasConcentrationGridMap2D.h.
[useMOSmodel] The last N GasObservations, used for the MOS MODEL estimation.
Definition at line 171 of file CGasConcentrationGridMap2D.h.
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011 |