MRPT  1.9.9
CWirelessPowerGridMap2D.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #ifndef CWirelessPowerGridMap2D_H
11 #define CWirelessPowerGridMap2D_H
12 
15 
16 namespace mrpt::maps
17 {
18 /** CWirelessPowerGridMap2D represents a PDF of wifi concentrations over a 2D
19  * area.
20  *
21  * There are a number of methods available to build the wifi grid-map,
22  * depending on the value of
23  * "TMapRepresentation maptype" passed in the constructor (see
24  * CRandomFieldGridMap2D for a discussion).
25  *
26  * Update the map with insertIndividualReading() or insertObservation()
27  *
28  * \sa mrpt::maps::CRandomFieldGridMap2D, mrpt::maps::CMetricMap,
29  * mrpt::containers::CDynamicGrid, The application icp-slam,
30  * mrpt::maps::CMultiMetricMap
31  * \ingroup mrpt_maps_grp
32  */
34 {
36  public:
37  /** Constructor */
39  TMapRepresentation mapType = mrKernelDM, double x_min = -2,
40  double x_max = 2, double y_min = -2, double y_max = 2,
41  double resolution = 0.1);
42 
43  /** Destructor */
44  virtual ~CWirelessPowerGridMap2D();
45 
46  /** Parameters related with inserting observations into the map:
47  */
50  {
51  /** Default values loader */
53 
54  void loadFromConfigFile(
56  const std::string& section) override; // See base docs
57  void dumpToTextStream(
58  std::ostream& out) const override; // See base docs
59 
61 
62  /** Returns a 3D object representing the map */
63  void getAs3DObject(mrpt::opengl::CSetOfObjects::Ptr& outObj) const override;
64 
65  protected:
66  /** Get the part of the options common to all CRandomFieldGridMap2D classes
67  */
70  {
71  return &insertionOptions;
72  }
73 
74  // See docs in derived class
75  void internal_clear() override;
77  const mrpt::obs::CObservation* obs,
78  const mrpt::poses::CPose3D* robotPose = nullptr) override;
80  const mrpt::obs::CObservation* obs,
81  const mrpt::poses::CPose3D& takenFrom) override;
82 
84  /** See CWirelessPowerGridMap2D::CWirelessPowerGridMap2D */
85  double min_x, max_x, min_y, max_y, resolution;
86  /** The kind of map representation (see
87  * CWirelessPowerGridMap2D::CWirelessPowerGridMap2D) */
91 };
92 
93 }
94 #endif
95 
96 
Gaussian kernel-based estimator (see discussion in mrpt::maps::CRandomFieldGridMap2D) ...
CWirelessPowerGridMap2D(TMapRepresentation mapType=mrKernelDM, double x_min=-2, double x_max=2, double y_min=-2, double y_max=2, double resolution=0.1)
Constructor.
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
void getAs3DObject(mrpt::opengl::CSetOfObjects::Ptr &outObj) const override
Returns a 3D object representing the map.
mrpt::maps::CWirelessPowerGridMap2D::TInsertionOptions insertionOptions
Parameters related with inserting observations into the map:
#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()
TMapRepresentation
The type of map representation to be used, see CRandomFieldGridMap2D for a discussion.
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string &section) override
This method load the options from a ".ini"-like file or memory-stored string list.
CWirelessPowerGridMap2D represents a PDF of wifi concentrations over a 2D area.
This class allows loading and storing values and vectors of different types from a configuration text...
virtual CRandomFieldGridMap2D::TInsertionOptionsCommon * getCommonInsertOptions() override
Get the part of the options common to all CRandomFieldGridMap2D classes.
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form, sending it to a std::ostream.
GLsizei const GLchar ** string
Definition: glext.h:4101
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...
CRandomFieldGridMap2D represents a 2D grid map where each cell is associated one real-valued property...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:86
Declares a class that represents any robot's observation.
Definition: CObservation.h:43
GLsizei GLsizei GLchar * source
Definition: glext.h:4082
#define MAP_DEFINITION_END(_CLASS_NAME_)
double internal_computeObservationLikelihood(const mrpt::obs::CObservation *obs, const mrpt::poses::CPose3D &takenFrom) override
Internal method called by computeObservationLikelihood()
void internal_clear() override
Erase all the contents of the map.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020