Public Member Functions | Private Attributes | List of all members
cartographer::common::FixedRatioSampler Class Reference

#include <fixed_ratio_sampler.h>

Public Member Functions

std::string DebugString ()
 
 FixedRatioSampler (double ratio)
 
 FixedRatioSampler (const FixedRatioSampler &)=delete
 
FixedRatioSampleroperator= (const FixedRatioSampler &)=delete
 
bool Pulse ()
 
 ~FixedRatioSampler ()
 

Private Attributes

int64 num_pulses_ = 0
 
int64 num_samples_ = 0
 
const double ratio_
 

Detailed Description

Definition at line 29 of file fixed_ratio_sampler.h.

Constructor & Destructor Documentation

◆ FixedRatioSampler() [1/2]

cartographer::common::FixedRatioSampler::FixedRatioSampler ( double  ratio)
explicit

Definition at line 24 of file fixed_ratio_sampler.cc.

◆ ~FixedRatioSampler()

cartographer::common::FixedRatioSampler::~FixedRatioSampler ( )

Definition at line 30 of file fixed_ratio_sampler.cc.

◆ FixedRatioSampler() [2/2]

cartographer::common::FixedRatioSampler::FixedRatioSampler ( const FixedRatioSampler )
delete

Member Function Documentation

◆ DebugString()

std::string cartographer::common::FixedRatioSampler::DebugString ( )

Definition at line 41 of file fixed_ratio_sampler.cc.

◆ operator=()

FixedRatioSampler& cartographer::common::FixedRatioSampler::operator= ( const FixedRatioSampler )
delete

◆ Pulse()

bool cartographer::common::FixedRatioSampler::Pulse ( )

Definition at line 32 of file fixed_ratio_sampler.cc.

Member Data Documentation

◆ num_pulses_

int64 cartographer::common::FixedRatioSampler::num_pulses_ = 0
private

Definition at line 48 of file fixed_ratio_sampler.h.

◆ num_samples_

int64 cartographer::common::FixedRatioSampler::num_samples_ = 0
private

Definition at line 49 of file fixed_ratio_sampler.h.

◆ ratio_

const double cartographer::common::FixedRatioSampler::ratio_
private

Definition at line 46 of file fixed_ratio_sampler.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