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 std::vector<mapping::proto::Trajectory>& trajectories,
71 #endif // CARTOGRAPHER_IO_POINTS_PROCESSOR_PIPELINE_BUILDER_H_ std::function< std::unique_ptr< PointsProcessor >(common::LuaParameterDictionary *, PointsProcessor *next)> FactoryFunction
std::function< std::unique_ptr< FileWriter >(const std::string &filename)> FileWriterFactory
std::unordered_map< std::string, FactoryFunction > factories_
PointsProcessorPipelineBuilder & operator=(const PointsProcessorPipelineBuilder &)=delete
PointsProcessorPipelineBuilder()
std::vector< std::unique_ptr< PointsProcessor > > CreatePipeline(common::LuaParameterDictionary *dictionary) const
void Register(const std::string &name, FactoryFunction factory)
void RegisterBuiltInPointsProcessors(const std::vector< mapping::proto::Trajectory > &trajectories, const FileWriterFactory &file_writer_factory, PointsProcessorPipelineBuilder *builder)