Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
cartographer::io::ProbabilityGridPointsProcessor Class Reference

#include <probability_grid_points_processor.h>

Inheritance diagram for cartographer::io::ProbabilityGridPointsProcessor:
Inheritance graph
[legend]

Public Types

enum  DrawTrajectories { DrawTrajectories::kNo, DrawTrajectories::kYes }
 
- Public Types inherited from cartographer::io::PointsProcessor
enum  FlushResult { FlushResult::kRestartStream, FlushResult::kFinished }
 

Public Member Functions

FlushResult Flush () override
 
ProbabilityGridPointsProcessoroperator= (const ProbabilityGridPointsProcessor &)=delete
 
 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)
 
 ProbabilityGridPointsProcessor (const ProbabilityGridPointsProcessor &)=delete
 
void Process (std::unique_ptr< PointsBatch > batch) override
 
 ~ProbabilityGridPointsProcessor () override
 
- Public Member Functions inherited from cartographer::io::PointsProcessor
PointsProcessoroperator= (const PointsProcessor &)=delete
 
 PointsProcessor ()
 
 PointsProcessor (const PointsProcessor &)=delete
 
virtual ~PointsProcessor ()
 

Static Public Member Functions

static std::unique_ptr< ProbabilityGridPointsProcessorFromDictionary (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
 

Private Attributes

const DrawTrajectories draw_trajectories_
 
std::unique_ptr< FileWriterfile_writer_
 
PointsProcessor *const next_
 
mapping::ProbabilityGrid probability_grid_
 
mapping::ProbabilityGridRangeDataInserter2D range_data_inserter_
 
const std::vector< mapping::proto::Trajectory > trajectories_
 

Detailed Description

Definition at line 38 of file probability_grid_points_processor.h.

Member Enumeration Documentation

◆ DrawTrajectories

Enumerator
kNo 
kYes 

Definition at line 42 of file probability_grid_points_processor.h.

Constructor & Destructor Documentation

◆ ProbabilityGridPointsProcessor() [1/2]

cartographer::io::ProbabilityGridPointsProcessor::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 
)

Definition at line 58 of file probability_grid_points_processor.cc.

◆ ProbabilityGridPointsProcessor() [2/2]

cartographer::io::ProbabilityGridPointsProcessor::ProbabilityGridPointsProcessor ( const ProbabilityGridPointsProcessor )
delete

◆ ~ProbabilityGridPointsProcessor()

cartographer::io::ProbabilityGridPointsProcessor::~ProbabilityGridPointsProcessor ( )
inlineoverride

Definition at line 61 of file probability_grid_points_processor.h.

Member Function Documentation

◆ Flush()

PointsProcessor::FlushResult cartographer::io::ProbabilityGridPointsProcessor::Flush ( )
overridevirtual

◆ FromDictionary()

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 74 of file probability_grid_points_processor.cc.

◆ operator=()

ProbabilityGridPointsProcessor& cartographer::io::ProbabilityGridPointsProcessor::operator= ( const ProbabilityGridPointsProcessor )
delete

◆ Process()

void cartographer::io::ProbabilityGridPointsProcessor::Process ( std::unique_ptr< PointsBatch batch)
overridevirtual

Member Data Documentation

◆ draw_trajectories_

const DrawTrajectories cartographer::io::ProbabilityGridPointsProcessor::draw_trajectories_
private

Definition at line 67 of file probability_grid_points_processor.h.

◆ file_writer_

std::unique_ptr<FileWriter> cartographer::io::ProbabilityGridPointsProcessor::file_writer_
private

Definition at line 69 of file probability_grid_points_processor.h.

◆ kConfigurationFileActionName

constexpr const char* cartographer::io::ProbabilityGridPointsProcessor::kConfigurationFileActionName
static
Initial value:
=
"write_probability_grid"

Definition at line 40 of file probability_grid_points_processor.h.

◆ next_

PointsProcessor* const cartographer::io::ProbabilityGridPointsProcessor::next_
private

Definition at line 70 of file probability_grid_points_processor.h.

◆ probability_grid_

mapping::ProbabilityGrid cartographer::io::ProbabilityGridPointsProcessor::probability_grid_
private

Definition at line 72 of file probability_grid_points_processor.h.

◆ range_data_inserter_

mapping::ProbabilityGridRangeDataInserter2D cartographer::io::ProbabilityGridPointsProcessor::range_data_inserter_
private

Definition at line 71 of file probability_grid_points_processor.h.

◆ trajectories_

const std::vector<mapping::proto::Trajectory> cartographer::io::ProbabilityGridPointsProcessor::trajectories_
private

Definition at line 68 of file probability_grid_points_processor.h.


The documentation for this class was generated from the following files:


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:59