17 #ifndef CARTOGRAPHER_IO_PROBABILITY_GRID_POINTS_PROCESSOR_H_ 18 #define CARTOGRAPHER_IO_PROBABILITY_GRID_POINTS_PROCESSOR_H_ 28 #include "cartographer/mapping/proto/2d/probability_grid_range_data_inserter_options_2d.pb.h" 29 #include "cartographer/mapping/proto/trajectory.pb.h" 41 "write_probability_grid";
45 const mapping::proto::ProbabilityGridRangeDataInserterOptions2D&
46 probability_grid_range_data_inserter_options,
48 std::unique_ptr<FileWriter> file_writer,
49 const std::vector<mapping::proto::Trajectory>& trajectorios,
56 static std::unique_ptr<ProbabilityGridPointsProcessor>
FromDictionary(
57 const std::vector<mapping::proto::Trajectory>& trajectories,
63 void Process(std::unique_ptr<PointsBatch> batch)
override;
87 #endif // CARTOGRAPHER_IO_PROBABILITY_GRID_POINTS_PROCESSOR_H_ mapping::ProbabilityGrid probability_grid_
std::function< std::unique_ptr< FileWriter >(const std::string &filename)> FileWriterFactory
const std::vector< mapping::proto::Trajectory > trajectories_
void Process(std::unique_ptr< PointsBatch > batch) override
std::unique_ptr< Image > DrawProbabilityGrid(const mapping::ProbabilityGrid &probability_grid, Eigen::Array2i *offset)
static constexpr const char * kConfigurationFileActionName
const DrawTrajectories draw_trajectories_
std::unique_ptr< FileWriter > file_writer_
static std::unique_ptr< ProbabilityGridPointsProcessor > FromDictionary(const std::vector< mapping::proto::Trajectory > &trajectories, const FileWriterFactory &file_writer_factory, common::LuaParameterDictionary *dictionary, PointsProcessor *next)
mapping::ProbabilityGrid CreateProbabilityGrid(const double resolution)
mapping::ProbabilityGridRangeDataInserter2D range_data_inserter_
FlushResult Flush() override
PointsProcessor *const next_
ProbabilityGridPointsProcessor & operator=(const ProbabilityGridPointsProcessor &)=delete
~ProbabilityGridPointsProcessor() override
ProbabilityGridPointsProcessor(double resolution, const mapping::proto::ProbabilityGridRangeDataInserterOptions2D &probability_grid_range_data_inserter_options, const DrawTrajectories &draw_trajectories, std::unique_ptr< FileWriter > file_writer, const std::vector< mapping::proto::Trajectory > &trajectorios, PointsProcessor *next)