MRPT
2.0.1
|
Methods to convert between ROS msgs and MRPT objects for map datatypes.
the map class is implemented as singeleton use map::instance ()->fromROS ...
#include <mrpt/ros1bridge/map.h>
Public Member Functions | |
int16_t | cellMrpt2Ros (int16_t i) |
int8_t | cellRos2Mrpt (int8_t i) |
Static Public Member Functions | |
static MapHdl * | instance () |
it creates a instance with some look up table to speed up the conversions More... | |
static bool | loadMap (mrpt::maps::CMultiMetricMap &_metric_map, const mrpt::config::CConfigFileBase &_config_file, const std::string &_map_file="map.simplemap", const std::string &_section_name="metricMap", bool _debug=false) |
loads a mprt map More... | |
Private Member Functions | |
MapHdl () | |
MapHdl (const MapHdl &) | |
~MapHdl ()=default | |
Private Attributes | |
int | lut_cellmrpt2ros [0xFFFF] |
int | lut_cellros2mrpt [101] |
|
private |
Definition at line 40 of file map.cpp.
References INT16_MAX, INT16_MIN, INT8_MAX, INT8_MIN, mrpt::maps::CLogOddsGridMapLUT< TCELL >::l2p(), mrpt::maps::CLogOddsGridMapLUT< TCELL >::p2l(), and mrpt::round().
|
private |
|
privatedefault |
|
inline |
Definition at line 58 of file map.h.
References INT16_MIN, and lut_cellmrpt2ros.
|
inline |
Definition at line 63 of file map.h.
References ASSERT_BELOWEQ_, and lut_cellros2mrpt.
|
static |
|
static |
loads a mprt map
_metric_map | |
_config_file | |
_map_file | default: map.simplemap |
_section_name | default: metricMap |
_debug | default: false |
Definition at line 149 of file map.cpp.
References mrpt::serialization::archiveFrom(), ASSERT_, ASSERTMSG_, mrpt::maps::CMultiMetricMap::countMapsByClass(), mrpt::config::CLoadableOptions::dumpToConsole(), mrpt::system::extractFileExtension(), mrpt::system::fileExists(), mrpt::format(), mrpt::maps::TSetOfMetricMapInitializers::loadFromConfigFile(), mrpt::maps::CMetricMap::loadFromSimpleMap(), mrpt::system::lowerCase(), mrpt::maps::CMultiMetricMap::mapByClass(), mrpt::maps::CMultiMetricMap::setListOfMaps(), and THROW_EXCEPTION.
|
private |
Definition at line 36 of file map.h.
Referenced by cellMrpt2Ros().
|
private |
Definition at line 38 of file map.h.
Referenced by cellRos2Mrpt().
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |