Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
mrpt_bridge::MapHdl Class Reference

the map class is implemented as singeleton use map::instance ()->ros2mrpt ... More...

#include <map.h>

List of all members.

Public Member Functions

const int16_t cellMrpt2Ros (int i)
const int8_t cellRos2Mrpt (int i)

Static Public Member Functions

static MapHdlinstance ()
 it creates a instance with some look up table to speed up the conversions
static const bool loadMap (mrpt::slam::CMultiMetricMap &_metric_map, const mrpt::utils::CConfigFile &_config_file, const std::string &_map_file="map.simplemap", const std::string &_section_name="metricMap", bool _debug=false)

Private Member Functions

 MapHdl ()
 MapHdl (const MapHdl &)
 ~MapHdl ()

Private Attributes

int8_t lut_cellmrpt2ros [0xFFFF]
int8_t * lut_cellmrpt2rosPtr
int8_t lut_cellros2mrpt [0xFF]
int8_t * lut_cellros2mrptPtr

Static Private Attributes

static MapHdlinstance_ = NULL

Detailed Description

the map class is implemented as singeleton use map::instance ()->ros2mrpt ...

Methods to convert between ROS msgs and MRPT objects for map datatypes.

Definition at line 40 of file map.h.


Constructor & Destructor Documentation

ceation of the lookup table and pointers

Definition at line 28 of file map.cpp.

mrpt_bridge::MapHdl::MapHdl ( const MapHdl ) [private]

Definition at line 58 of file map.cpp.


Member Function Documentation

const int16_t mrpt_bridge::MapHdl::cellMrpt2Ros ( int  i) [inline]

Definition at line 68 of file map.h.

const int8_t mrpt_bridge::MapHdl::cellRos2Mrpt ( int  i) [inline]

Definition at line 72 of file map.h.

it creates a instance with some look up table to speed up the conversions

Returns:
returns singeleton instance

Definition at line 60 of file map.cpp.

const bool mrpt_bridge::MapHdl::loadMap ( mrpt::slam::CMultiMetricMap &  _metric_map,
const mrpt::utils::CConfigFile &  _config_file,
const std::string &  _map_file = "map.simplemap",
const std::string &  _section_name = "metricMap",
bool  _debug = false 
) [static]

loads a mprt map

Returns:
true on sucess.
Parameters:
_metric_map
_config_file
_map_filedefault: map.simplemap
_section_namedefault: metricMap
_debugdefault: false

Definition at line 130 of file map.cpp.


Member Data Documentation

MapHdl * mrpt_bridge::MapHdl::instance_ = NULL [static, private]

Definition at line 43 of file map.h.

int8_t mrpt_bridge::MapHdl::lut_cellmrpt2ros[0xFFFF] [private]

Definition at line 48 of file map.h.

Definition at line 49 of file map.h.

int8_t mrpt_bridge::MapHdl::lut_cellros2mrpt[0xFF] [private]

Definition at line 51 of file map.h.

Definition at line 52 of file map.h.


The documentation for this class was generated from the following files:


mrpt_bridge
Author(s):
autogenerated on Mon Aug 11 2014 11:23:21