oh_my_loam/src/visualizer/extractor_visualizer.cc

19 lines
703 B
C++
Raw Normal View History

2020-10-18 01:14:43 +08:00
#include "extractor_visualizer.h"
namespace oh_my_loam {
void ExtractorVisualizer::Draw() {
2020-10-27 20:13:19 +08:00
auto frame = GetCurrentFrame<ExtractorVisFrame>();
2020-12-31 20:59:08 +08:00
DrawPointCloud<Point>(frame.cloud, WHITE, "raw_point_cloud");
DrawPointCloud<TPoint>(frame.feature_pts.less_flat_surf_pts, CYAN,
"less_flat_surf_pts");
DrawPointCloud<TPoint>(frame.feature_pts.flat_surf_pts, BLUE,
"flat_surf_pts");
DrawPointCloud<TPoint>(frame.feature_pts.less_sharp_corner_pts, PURPLE,
"less_sharp_corner_pts");
DrawPointCloud<TPoint>(frame.feature_pts.sharp_corner_pts, RED,
"sharp_corner_pts");
2020-10-18 01:14:43 +08:00
};
} // namespace oh_my_loam