rpos::features::location_provider::RectangleAreaMap类

矩形区域地图

头文件

rpos/features/location_provider/rectangle_area_map.h

适用于

  • Slamware

父类

继承自rpos::features::location_provider::Map

构造器

/**
* 该构造器仅限SDK内部使用。
*/
RectangleAreaMap(boost::shared_ptr<detail::RectangleAreaMapImpl> impl);

运算符

/**
* 下标运算符。
*/
const artifact_provider::RectangleArea& operator[](size_t i) const;
/**
* 下标运算符。
*/
artifact_provider::RectangleArea& operator[](size_t i);

方法

/**
* 创建一个地图对象。
*/
static RectangleAreaMap createMap(rpos::system::types::_u64 timestamp = 0);
/**
* 矩形区域ID。
*/
std::string Id() const;
std::string& Id();
/**
* 从输入流中读取地图数据。
*/
virtual bool readFromStream(rpos::system::io::IStream &in);  
/**
* 将地图数据写到输出流。
*/
virtual bool writeToStream(rpos::system::io::IStream &out) const;  
/**
* 清除地图数据。
*/
void clear();  
/**
* 获取地图尺寸。
*/
size_t size() const;  
/**
* 修改地图尺寸。
*/     
void resize(size_t N);  
/**
* 添加矩形区域。
*/
void addRectangleAreas(const std::vector<artifact_provider::RectangleArea>& areas);