rpos::features::location_provider::Map Class
Base class of Map.
Header File
rpos/features/location_provider/map.h
Applies to
- Slamware
- Mapper
Methods
rpos::core::RectangleF& getMapArea() const
Retrieves the area of the current map. Refer to rpos::core::RectangleF
rpos::core::Vector2f& getMapPosition() const
Retrieves the the upper-left point poistion of the map data. Refer to rpos::core::Vector2f
rpos::core::Vector2i& getMapDimension() const
Retrieves the pixel size (in X,Y dimensions) of the map. Refer to rpos::core::Vector2i
rpos::core::Vector2f& getMapResolution() const
Retrieves the real world size of each cell (or pixel) of the map. In meter units.
rpos::system::types::timestamp_t getMapTimestamp()
Retrieve the map updated timestamp.
std::vector<_u8>& getMapData() const
Retrieve the map data in raw byte stream.
MapType getMapType() const
Retrieves the map type.
Return Value | Description | Related Class |
---|---|---|
MapTypeBitmap8Bit |
The map is a grid map with each pixel is a 8bit cell | rpos::features::location_provider::BitmapMap |
MapTypePointmap |
Point map | rpos::features::location_provider::PointsMap |
virtual bool readFromStream(rpos::system::io::IStream &in)
Read map data from the specified input stream.
virtual bool writeToStream(rpos::system::io::IStream &out) const
Write the map data from the specified output stream.
template<class MapT> MapT cast()
Case the map object to its subclass type.