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

#include <fixed_ratio_sampling_points_processor.h>

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

Public Member Functions

 FixedRatioSamplingPointsProcessor (double sampling_ratio, PointsProcessor *next)
 
 FixedRatioSamplingPointsProcessor (const FixedRatioSamplingPointsProcessor &)=delete
 
FlushResult Flush () override
 
FixedRatioSamplingPointsProcessoroperator= (const FixedRatioSamplingPointsProcessor &)=delete
 
void Process (std::unique_ptr< PointsBatch > batch) override
 
 ~FixedRatioSamplingPointsProcessor () 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< FixedRatioSamplingPointsProcessorFromDictionary (common::LuaParameterDictionary *dictionary, PointsProcessor *next)
 

Static Public Attributes

static constexpr const char * kConfigurationFileActionName
 

Private Attributes

PointsProcessor *const next_
 
std::unique_ptr< common::FixedRatioSamplersampler_
 
const double sampling_ratio_
 

Additional Inherited Members

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

Detailed Description

Definition at line 31 of file fixed_ratio_sampling_points_processor.h.

Constructor & Destructor Documentation

◆ FixedRatioSamplingPointsProcessor() [1/2]

cartographer::io::FixedRatioSamplingPointsProcessor::FixedRatioSamplingPointsProcessor ( double  sampling_ratio,
PointsProcessor next 
)

Definition at line 37 of file fixed_ratio_sampling_points_processor.cc.

◆ ~FixedRatioSamplingPointsProcessor()

cartographer::io::FixedRatioSamplingPointsProcessor::~FixedRatioSamplingPointsProcessor ( )
inlineoverride

Definition at line 42 of file fixed_ratio_sampling_points_processor.h.

◆ FixedRatioSamplingPointsProcessor() [2/2]

cartographer::io::FixedRatioSamplingPointsProcessor::FixedRatioSamplingPointsProcessor ( const FixedRatioSamplingPointsProcessor )
delete

Member Function Documentation

◆ Flush()

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

◆ FromDictionary()

std::unique_ptr< FixedRatioSamplingPointsProcessor > cartographer::io::FixedRatioSamplingPointsProcessor::FromDictionary ( common::LuaParameterDictionary dictionary,
PointsProcessor next 
)
static

Definition at line 27 of file fixed_ratio_sampling_points_processor.cc.

◆ operator=()

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

◆ Process()

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

Member Data Documentation

◆ kConfigurationFileActionName

constexpr const char* cartographer::io::FixedRatioSamplingPointsProcessor::kConfigurationFileActionName
static
Initial value:
=
"fixed_ratio_sampler"

Definition at line 33 of file fixed_ratio_sampling_points_processor.h.

◆ next_

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

Definition at line 54 of file fixed_ratio_sampling_points_processor.h.

◆ sampler_

std::unique_ptr<common::FixedRatioSampler> cartographer::io::FixedRatioSamplingPointsProcessor::sampler_
private

Definition at line 55 of file fixed_ratio_sampling_points_processor.h.

◆ sampling_ratio_

const double cartographer::io::FixedRatioSamplingPointsProcessor::sampling_ratio_
private

Definition at line 53 of file fixed_ratio_sampling_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