#include <probability_grid_points_processor.h>
Public Types | |
enum | DrawTrajectories { kNo, kYes } |
enum | OutputType { kPng, kPb } |
Public Member Functions | |
FlushResult | Flush () override |
ProbabilityGridPointsProcessor & | operator= (const ProbabilityGridPointsProcessor &) |
ProbabilityGridPointsProcessor (double resolution, const mapping::proto::ProbabilityGridRangeDataInserterOptions2D &probability_grid_range_data_inserter_options, const DrawTrajectories &draw_trajectories, const OutputType &output_type, std::unique_ptr< FileWriter > file_writer, const std::vector< mapping::proto::Trajectory > &trajectories, PointsProcessor *next) | |
ProbabilityGridPointsProcessor (const ProbabilityGridPointsProcessor &) | |
void | Process (std::unique_ptr< PointsBatch > batch) override |
~ProbabilityGridPointsProcessor () override | |
Static Public Member Functions | |
static std::unique_ptr < ProbabilityGridPointsProcessor > | FromDictionary (const std::vector< mapping::proto::Trajectory > &trajectories, const FileWriterFactory &file_writer_factory, common::LuaParameterDictionary *dictionary, PointsProcessor *next) |
Static Public Attributes | |
static constexpr const char * | kConfigurationFileActionName = "write_probability_grid" |
Private Attributes | |
mapping::ValueConversionTables | conversion_tables_ |
const DrawTrajectories | draw_trajectories_ |
std::unique_ptr< FileWriter > | file_writer_ |
PointsProcessor *const | next_ |
const OutputType | output_type_ |
mapping::ProbabilityGrid | probability_grid_ |
mapping::ProbabilityGridRangeDataInserter2D | range_data_inserter_ |
const std::vector < mapping::proto::Trajectory > | trajectories_ |
Definition at line 39 of file probability_grid_points_processor.h.
Definition at line 43 of file probability_grid_points_processor.h.
Definition at line 44 of file probability_grid_points_processor.h.
cartographer::io::ProbabilityGridPointsProcessor::ProbabilityGridPointsProcessor | ( | double | resolution, |
const mapping::proto::ProbabilityGridRangeDataInserterOptions2D & | probability_grid_range_data_inserter_options, | ||
const DrawTrajectories & | draw_trajectories, | ||
const OutputType & | output_type, | ||
std::unique_ptr< FileWriter > | file_writer, | ||
const std::vector< mapping::proto::Trajectory > & | trajectories, | ||
PointsProcessor * | next | ||
) |
Definition at line 81 of file probability_grid_points_processor.cc.
cartographer::io::ProbabilityGridPointsProcessor::ProbabilityGridPointsProcessor | ( | const ProbabilityGridPointsProcessor & | ) |
cartographer::io::ProbabilityGridPointsProcessor::~ProbabilityGridPointsProcessor | ( | ) | [inline, override] |
Definition at line 63 of file probability_grid_points_processor.h.
PointsProcessor::FlushResult cartographer::io::ProbabilityGridPointsProcessor::Flush | ( | ) | [override, virtual] |
Implements cartographer::io::PointsProcessor.
Definition at line 134 of file probability_grid_points_processor.cc.
std::unique_ptr< ProbabilityGridPointsProcessor > cartographer::io::ProbabilityGridPointsProcessor::FromDictionary | ( | const std::vector< mapping::proto::Trajectory > & | trajectories, |
const FileWriterFactory & | file_writer_factory, | ||
common::LuaParameterDictionary * | dictionary, | ||
PointsProcessor * | next | ||
) | [static] |
Definition at line 104 of file probability_grid_points_processor.cc.
ProbabilityGridPointsProcessor& cartographer::io::ProbabilityGridPointsProcessor::operator= | ( | const ProbabilityGridPointsProcessor & | ) |
void cartographer::io::ProbabilityGridPointsProcessor::Process | ( | std::unique_ptr< PointsBatch > | batch | ) | [override, virtual] |
Implements cartographer::io::PointsProcessor.
Definition at line 127 of file probability_grid_points_processor.cc.
mapping::ValueConversionTables cartographer::io::ProbabilityGridPointsProcessor::conversion_tables_ [private] |
Definition at line 75 of file probability_grid_points_processor.h.
const DrawTrajectories cartographer::io::ProbabilityGridPointsProcessor::draw_trajectories_ [private] |
Definition at line 69 of file probability_grid_points_processor.h.
std::unique_ptr<FileWriter> cartographer::io::ProbabilityGridPointsProcessor::file_writer_ [private] |
Definition at line 72 of file probability_grid_points_processor.h.
constexpr const char* cartographer::io::ProbabilityGridPointsProcessor::kConfigurationFileActionName = "write_probability_grid" [static] |
Definition at line 41 of file probability_grid_points_processor.h.
PointsProcessor* const cartographer::io::ProbabilityGridPointsProcessor::next_ [private] |
Definition at line 73 of file probability_grid_points_processor.h.
Definition at line 70 of file probability_grid_points_processor.h.
mapping::ProbabilityGrid cartographer::io::ProbabilityGridPointsProcessor::probability_grid_ [private] |
Definition at line 76 of file probability_grid_points_processor.h.
mapping::ProbabilityGridRangeDataInserter2D cartographer::io::ProbabilityGridPointsProcessor::range_data_inserter_ [private] |
Definition at line 74 of file probability_grid_points_processor.h.
const std::vector<mapping::proto::Trajectory> cartographer::io::ProbabilityGridPointsProcessor::trajectories_ [private] |
Definition at line 71 of file probability_grid_points_processor.h.