Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
mrpt_bridge::MapHdl Class Reference

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

#include <map.h>

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 More...
 
static const bool loadMap (CMultiMetricMap &_metric_map, const 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 78 of file map.h.

Constructor & Destructor Documentation

◆ MapHdl() [1/2]

mrpt_bridge::MapHdl::MapHdl ( )
private

creation of the lookup table and pointers

Definition at line 56 of file map.cpp.

◆ MapHdl() [2/2]

mrpt_bridge::MapHdl::MapHdl ( const MapHdl )
private

◆ ~MapHdl()

mrpt_bridge::MapHdl::~MapHdl ( )
private

Definition at line 95 of file map.cpp.

Member Function Documentation

◆ cellMrpt2Ros()

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

Definition at line 109 of file map.h.

◆ cellRos2Mrpt()

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

Definition at line 111 of file map.h.

◆ instance()

MapHdl * mrpt_bridge::MapHdl::instance ( )
static

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

Returns
returns singeleton instance

Definition at line 96 of file map.cpp.

◆ loadMap()

const bool mrpt_bridge::MapHdl::loadMap ( CMultiMetricMap &  _metric_map,
const 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 175 of file map.cpp.

Member Data Documentation

◆ instance_

MapHdl * mrpt_bridge::MapHdl::instance_ = NULL
staticprivate

Definition at line 81 of file map.h.

◆ lut_cellmrpt2ros

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

Definition at line 87 of file map.h.

◆ lut_cellmrpt2rosPtr

int8_t* mrpt_bridge::MapHdl::lut_cellmrpt2rosPtr
private

Definition at line 88 of file map.h.

◆ lut_cellros2mrpt

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

Definition at line 91 of file map.h.

◆ lut_cellros2mrptPtr

int8_t* mrpt_bridge::MapHdl::lut_cellros2mrptPtr
private

Definition at line 92 of file map.h.


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


mrpt_bridge
Author(s): Markus Bader , Raphael Zack
autogenerated on Sun Mar 6 2022 03:48:10