Main MRPT website > C++ reference
MRPT logo
Classes | Public Member Functions | Public Attributes | Protected Member Functions
mrpt::slam::CWirelessPowerGridMap2D Class Reference

Detailed Description

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.

The following papers describe the mapping alternatives implemented here:

See also:
mrpt::slam::CRandomFieldGridMap2D, mrpt::slam::CMetricMap, mrpt::utils::CDynamicGrid, The application icp-slam, mrpt::slam::CMultiMetricMap

#include <mrpt/slam/CWirelessPowerGridMap2D.h>

Inheritance diagram for mrpt::slam::CWirelessPowerGridMap2D:
Inheritance graph
[legend]

List of all members.

Classes

struct  TInsertionOptions
 Parameters related with inserting observations into the map: More...

Public Member Functions

 CWirelessPowerGridMap2D (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 ~CWirelessPowerGridMap2D ()
 Destructor.
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.
void saveMetricMapRepresentationToFile (const std::string &filNamePrefix) const
 The implementation in this class just calls all the corresponding method of the contained metric maps.
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.
void getAs3DObject (mrpt::opengl::CSetOfObjectsPtr &outObj) const
 Returns a 3D object representing the map.

Public Attributes

mrpt::slam::CWirelessPowerGridMap2D::TInsertionOptions insertionOptions

Protected Member Functions

virtual
CRandomFieldGridMap2D::TInsertionOptionsCommon * 
getCommonInsertOptions ()
 Get the part of the options common to all CRandomFieldGridMap2D classes.
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.

RTTI stuff

typedef CWirelessPowerGridMap2DPtr SmartPtr
static mrpt::utils::CLASSINIT _init_CWirelessPowerGridMap2D
static mrpt::utils::TRuntimeClassId classCWirelessPowerGridMap2D
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 CWirelessPowerGridMap2DPtr Create ()

Member Typedef Documentation

A typedef for the associated smart pointer

Definition at line 67 of file CWirelessPowerGridMap2D.h.


Constructor & Destructor Documentation

mrpt::slam::CWirelessPowerGridMap2D::CWirelessPowerGridMap2D ( 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::CWirelessPowerGridMap2D::~CWirelessPowerGridMap2D ( ) [virtual]

Destructor.


Member Function Documentation

static const mrpt::utils::TRuntimeClassId* mrpt::slam::CWirelessPowerGridMap2D::_GetBaseClass ( ) [static, protected]

Reimplemented from mrpt::slam::CRandomFieldGridMap2D.

double mrpt::slam::CWirelessPowerGridMap2D::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.

Parameters:
takenFromThe robot's pose the observation is supposed to be taken from.
obsThe observation.
Returns:
This method returns a likelihood in the range [0,1].
See also:
Used in particle filter algorithms, see: CMultiMetricMapPDF::update

Implements mrpt::slam::CMetricMap.

static CWirelessPowerGridMap2DPtr mrpt::slam::CWirelessPowerGridMap2D::Create ( ) [static]
static mrpt::utils::CObject* mrpt::slam::CWirelessPowerGridMap2D::CreateObject ( ) [static]
virtual mrpt::utils::CObject* mrpt::slam::CWirelessPowerGridMap2D::duplicate ( ) const [virtual]

Returns a copy of the object, indepently of its class.

Implements mrpt::utils::CObject.

void mrpt::slam::CWirelessPowerGridMap2D::getAs3DObject ( mrpt::opengl::CSetOfObjectsPtr &  outObj) const [virtual]

Returns a 3D object representing the map.

Reimplemented from mrpt::slam::CRandomFieldGridMap2D.

virtual void mrpt::slam::CWirelessPowerGridMap2D::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::CWirelessPowerGridMap2D::getCommonInsertOptions ( ) [inline, protected, virtual]

Get the part of the options common to all CRandomFieldGridMap2D classes.

Implements mrpt::slam::CRandomFieldGridMap2D.

Definition at line 132 of file CWirelessPowerGridMap2D.h.

virtual const mrpt::utils::TRuntimeClassId* mrpt::slam::CWirelessPowerGridMap2D::GetRuntimeClass ( ) const [virtual]

Returns information about the class of an object in runtime.

Reimplemented from mrpt::slam::CRandomFieldGridMap2D.

virtual void mrpt::slam::CWirelessPowerGridMap2D::internal_clear ( ) [protected, virtual]

Erase all the contents of the map.

Reimplemented from mrpt::slam::CRandomFieldGridMap2D.

virtual bool mrpt::slam::CWirelessPowerGridMap2D::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.

Parameters:
obsThe observation
robotPoseThe 3D pose of the robot mobile base in the map reference system, or NULL (default) if you want to use CPose2D(0,0,deg)
See also:
CObservation::insertObservationInto

Implements mrpt::slam::CMetricMap.

void mrpt::slam::CWirelessPowerGridMap2D::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.

void mrpt::slam::CWirelessPowerGridMap2D::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.


Member Data Documentation

Definition at line 67 of file CWirelessPowerGridMap2D.h.

Definition at line 67 of file CWirelessPowerGridMap2D.h.

Definition at line 67 of file CWirelessPowerGridMap2D.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011