Apollo  6.0
Open source self driving car software
Namespaces | Classes | Typedefs | Functions
apollo::common Namespace Reference

apollo::common More...

Namespaces

 color
 
 math
 apollo::common::math
 
 monitor
 apollo::common::monitor
 
 util
 apollo::common::util
 

Classes

class  DigitalFilter
 The DigitalFilter class is used to pass signals with a frequency lower than a certain cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. More...
 
class  KVDB
 Lightweight key-value database to store system-wide parameters. We prefer keys like "apollo:data:commit_id". More...
 
class  LatencyRecorder
 
class  MeanFilter
 The MeanFilter class is used to smoothen a series of noisy numbers, such as sensor data or the output of a function that we wish to be smoother. More...
 
class  Status
 A general class to denote the return status of an API call. It can either be an OK status for success, or a failure status with error message and error code enum. More...
 
class  VehicleConfigHelper
 
class  VehicleModel
 
class  VehicleStateProvider
 The class of vehicle state. It includes basic information and computation about the state of the vehicle. More...
 

Typedefs

template<class EigenType >
using EigenVector = std::vector< EigenType, Eigen::aligned_allocator< EigenType > >
 
template<typename T , class EigenType >
using EigenMap = std::map< T, EigenType, std::less< T >, Eigen::aligned_allocator< std::pair< const T, EigenType > >>
 
using EigenVector3dVec = EigenVector< Eigen::Vector3d >
 
using EigenAffine3dVec = EigenVector< Eigen::Affine3d >
 

Functions

void LpfCoefficients (const double ts, const double cutoff_freq, std::vector< double > *denominators, std::vector< double > *numerators)
 Get low-pass coefficients for digital filter. More...
 
void LpFirstOrderCoefficients (const double ts, const double settling_time, const double dead_time, std::vector< double > *denominators, std::vector< double > *numerators)
 Get first order low-pass coefficients for ZOH digital filter. More...
 
std::ostream & operator<< (std::ostream &os, const Status &s)
 

Detailed Description

apollo::common

The apollo::common namespace contains the code of the common module.

Typedef Documentation

◆ EigenAffine3dVec

using apollo::common::EigenAffine3dVec = typedef EigenVector<Eigen::Affine3d>

◆ EigenMap

template<typename T , class EigenType >
using apollo::common::EigenMap = typedef std::map<T, EigenType, std::less<T>, Eigen::aligned_allocator<std::pair<const T, EigenType> >>

◆ EigenVector

template<class EigenType >
using apollo::common::EigenVector = typedef std::vector<EigenType, Eigen::aligned_allocator<EigenType> >

◆ EigenVector3dVec

using apollo::common::EigenVector3dVec = typedef EigenVector<Eigen::Vector3d>

Function Documentation

◆ LpfCoefficients()

void apollo::common::LpfCoefficients ( const double  ts,
const double  cutoff_freq,
std::vector< double > *  denominators,
std::vector< double > *  numerators 
)

Get low-pass coefficients for digital filter.

Parameters
tsTime interval between signals.
cutoff_freqCutoff of frequency to filter high-frequency signals out.
denominatorsDenominator coefficients for digital filter.
numeratorsNumerator coefficients for digital filter.

◆ LpFirstOrderCoefficients()

void apollo::common::LpFirstOrderCoefficients ( const double  ts,
const double  settling_time,
const double  dead_time,
std::vector< double > *  denominators,
std::vector< double > *  numerators 
)

Get first order low-pass coefficients for ZOH digital filter.

Parameters
tssampling time.
settlingtime: time required for an output to reach and remain within a given error band
deadtime: time delay
denominatorsDenominator coefficients for digital filter.
numeratorsNumerator coefficients for digital filter.

◆ operator<<()

std::ostream& apollo::common::operator<< ( std::ostream &  os,
const Status s 
)
inline