class mrpt::maps::CWirelessPowerGridMap2D

Overview

CWirelessPowerGridMap2D represents a PDF of wifi concentrations over a 2D area.

There are a number of methods available to build the wifi grid-map, depending on the value of “TMapRepresentation maptype” passed in the constructor (see CRandomFieldGridMap2D for a discussion).

Update the map with insertIndividualReading() or insertObservation()

See also:

mrpt::maps::CRandomFieldGridMap2D, mrpt::maps::CMetricMap, mrpt::containers::CDynamicGrid, The application icp-slam, mrpt::maps::CMultiMetricMap

#include <mrpt/maps/CWirelessPowerGridMap2D.h>

class CWirelessPowerGridMap2D: public mrpt::maps::CRandomFieldGridMap2D
{
public:
    // typedefs

    typedef std::vector<TRandomFieldCell> grid_data_t;
    typedef typename grid_data_t::iterator iterator;
    typedef typename grid_data_t::const_iterator const_iterator;

    // enums

    enum TGridInterpolationMethod;

    // structs

    struct TInsertionOptions;

    // fields

    mrpt::maps::CWirelessPowerGridMap2D::TInsertionOptions insertionOptions;

    // construction

    CWirelessPowerGridMap2D(
        TMapRepresentation mapType = mrKernelDM,
        double x_min = -2,
        double x_max = 2,
        double y_min = -2,
        double y_max = 2,
        double resolution = 0.1
        );

    // methods

    const grid_data_t& data() const;
    iterator begin();
    const_iterator begin() const;
    iterator end();
    const_iterator end() const;
    virtual void getVisualizationInto(mrpt::opengl::CSetOfObjects& outObj) const;
    float cell2float(const TRandomFieldCell& c) const;
    void enableVerbose(bool enable_verbose);
    bool isEnabledVerbose() const;
    void enableProfiler(bool enable = true);
    bool isProfilerEnabled() const;
    mrpt::maps::CSimplePointsMap* getAsSimplePointsMap();
    int y2idx(double y) const;

    int xy2idx(
        double x,
        double y
        ) const;

    double idx2y(int cy) const;
};

Inherited Members

public:
    // structs

    struct TMsg;
    struct ConnectivityDescriptor;
    struct TInsertionOptionsCommon;
    struct TObservationGMRF;
    struct TPriorFactorGMRF;

    // methods

    virtual bool isEmpty() const = 0;
    virtual void saveMetricMapRepresentationToFile(const std::string& filNamePrefix) const = 0;
    virtual std::string asString() const = 0;
    virtual void getVisualizationInto(mrpt::opengl::CSetOfObjects& o) const = 0;
    virtual void getVisualizationInto(mrpt::opengl::CSetOfObjects& outObj) const;
    virtual void getAs3DObject(mrpt::opengl::CSetOfObjects& meanObj, mrpt::opengl::CSetOfObjects& varObj) const;

Construction

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.

Methods

virtual void getVisualizationInto(mrpt::opengl::CSetOfObjects& outObj) const

Returns a 3D object representing the map