5

cartographer的杂项模块

 1 year ago
source link: https://charon-cheung.github.io/2022/06/04/%E6%BF%80%E5%85%89SLAM/Cartographer/%E6%BA%90%E7%A0%81%E8%A7%A3%E8%AF%BB/cartographer%E7%9A%84%E6%9D%82%E9%A1%B9%E6%A8%A1%E5%9D%97/#detect-floors-cc
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
cartographer的杂项模块
2022-06-04|激光SLAMCartographer源码解读|
Word count: 143|Reading time: 1 min

detect_floors.cc

detect_floors.h定义了关于3D扫描楼层的数据结构。

struct Timespan {
common::Time start;
common::Time end;
};
Timespan表征扫描的时间范围。

struct Floor {
std::vector< Timespan> timespans;
double z; //z轴的中值
};

一个楼层对应多个扫描timespan:有可能重复的扫描多次,但只有一个高度z。

std::vector DetectFloors(const proto::Trajectory& trajectory); 使用启发式搜索寻找building的不同楼层的z值。

normal_estimation_2d.cc

用于计算TSDF地图中的点云法向量,可以不看。 normal_estimation_2d_test.cc是测试文件,但是没有在CMakeLists中设置 。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK