17 #ifndef CARTOGRAPHER_IO_POINTS_PROCESSOR_PIPELINE_BUILDER_H_ 18 #define CARTOGRAPHER_IO_POINTS_PROCESSOR_PIPELINE_BUILDER_H_ 21 #include <unordered_map> 27 #include "cartographer/mapping/proto/trajectory.pb.h" 58 std::unordered_map<std::string, FactoryFunction>
factories_;
64 const mapping::proto::Trajectory& trajectory,
71 #endif // CARTOGRAPHER_IO_POINTS_PROCESSOR_PIPELINE_BUILDER_H_ std::function< std::unique_ptr< PointsProcessor >(common::LuaParameterDictionary *, PointsProcessor *next)> FactoryFunction
void RegisterBuiltInPointsProcessors(const mapping::proto::Trajectory &trajectory, FileWriterFactory file_writer_factory, PointsProcessorPipelineBuilder *builder)
std::function< std::unique_ptr< FileWriter >(const string &filename)> FileWriterFactory
std::unordered_map< std::string, FactoryFunction > factories_
std::vector< std::unique_ptr< PointsProcessor > > CreatePipeline(common::LuaParameterDictionary *dictionary) const
PointsProcessorPipelineBuilder & operator=(const PointsProcessorPipelineBuilder &)=delete
PointsProcessorPipelineBuilder()
void Register(const std::string &name, FactoryFunction factory)