cartographer源码分析(28)-io-points_processor.h
来源:互联网 发布:淘宝seo怎么优化关键词 编辑:程序博客网 时间:2024/06/05 05:08
源码可在https://github.com/learnmoreonce/SLAM 下载
文件:io/points_processor.h#ifndef CARTOGRAPHER_IO_POINTS_PROCESSOR_H_#define CARTOGRAPHER_IO_POINTS_PROCESSOR_H_#include <memory>#include "cartographer/io/points_batch.h"namespace cartographer {namespace io {/*PointsProcessor 点云虚基类,提供一种批量处理points的抽象接口,不可拷贝/赋值2个抽象接口:1),Process()负责对PointsBatch进行处理2),Flush()刷新.在assets_writer_backpack_2d.lua文件中有各个pipeline的处理流程.*/// A processor in a pipeline. It processes a 'points_batch' and hands it to the// next processor in the pipeline.class PointsProcessor { public: enum class FlushResult { kRestartStream, kFinished, }; PointsProcessor() {} virtual ~PointsProcessor() {} //必须为虚函数,不然子类无法正确析构. PointsProcessor(const PointsProcessor&) = delete; PointsProcessor& operator=(const PointsProcessor&) = delete; // Receive a 'points_batch', process it and pass it on. virtual void Process(std::unique_ptr<PointsBatch> points_batch) = 0;//纯虚函数 // Some implementations will perform expensive computations and others that do // multiple passes over the data might ask for restarting the stream. virtual FlushResult Flush() = 0;};} // namespace io} // namespace cartographer#endif // CARTOGRAPHER_IO_POINTS_PROCESSOR_H_
本文发于:
* http://www.jianshu.com/u/9e38d2febec1
* https://zhuanlan.zhihu.com/learnmoreonce
* http://blog.csdn.net/learnmoreonce
* slam源码分析微信公众号:slamcode
阅读全文
0 0
- cartographer源码分析(28)-io-points_processor.h
- cartographer源码分析(26)-io-file_writer.h
- cartographer源码分析(27)-io-points_batch.h
- cartographer源码分析(29)-io-min_max_range_filtering_points_processor.h
- cartographer源码分析(30)-io-counting_points_processor.h
- cartographer源码分析(31)-io-xray_points_processor.h
- cartographer源码分析(32)-io-intensity_to_color_points_processor.h
- cartographer源码分析(33)-io-ply_writing_points_processor.h
- cartographer源码分析(34)-io-coloring_points_processor.h
- cartographer源码分析(35)-io-fixed_ratio_sampling_points_processor.h
- cartographer源码分析(36)-io- outlier_removing_points_processor.h
- cartographer源码分析(37)-io-pcd_writing_points_processor.h
- cartographer源码分析(38)-io-null_points_processor.h
- cartographer源码分析(3)-common-port.h
- cartographer源码分析(4)-common-time.h
- cartographer源码分析(5)-common-rate_time.h
- cartographer源码分析(6)-common-histogram.h
- cartographer源码分析(7)-common-math.h
- cartographer源码分析(27)-io-points_batch.h
- 基于Python的开源人脸识别库:离线识别率高达99.38%——新开源的用了一下感受一下
- Java多线程学习笔记
- vb.net 教程 12-1 WebBrowser 3
- Eclipse环境安装Python插件PyDev
- cartographer源码分析(28)-io-points_processor.h
- 古文觀止卷七_原毁_韓愈
- 解决excel导出大数字溢出或者被科学计数法格式化
- cartographer源码分析(29)-io-min_max_range_filtering_points_processor.h
- Lucas–Kanade光流算法
- C++Windows下CONTAINING_RECORD宏的用法和详解
- int数组里的元素查重问题
- Vue项目启动问题
- cartographer源码分析(30)-io-counting_points_processor.h