Apollo  6.0
Open source self driving car software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
apollo::hdmap::PathApproximation Class Reference

#include <path.h>

Collaboration diagram for apollo::hdmap::PathApproximation:
Collaboration graph

Public Member Functions

 PathApproximation ()=default
 
 PathApproximation (const Path &path, const double max_error)
 
double max_error () const
 
const std::vector< int > & original_ids () const
 
const std::vector< common::math::LineSegment2d > & segments () const
 
bool GetProjection (const Path &path, const common::math::Vec2d &point, double *accumulate_s, double *lateral, double *distance) const
 
bool OverlapWith (const Path &path, const common::math::Box2d &box, double width) const
 

Protected Member Functions

void Init (const Path &path)
 
bool is_within_max_error (const Path &path, const int s, const int t)
 
double compute_max_error (const Path &path, const int s, const int t)
 
void InitDilute (const Path &path)
 
void InitProjections (const Path &path)
 

Protected Attributes

double max_error_ = 0
 
double max_sqr_error_ = 0
 
int num_points_ = 0
 
std::vector< int > original_ids_
 
std::vector< common::math::LineSegment2dsegments_
 
std::vector< double > max_error_per_segment_
 
std::vector< double > projections_
 
double max_projection_
 
int num_projection_samples_ = 0
 
std::vector< double > original_projections_
 
std::vector< double > max_original_projections_to_left_
 
std::vector< double > min_original_projections_to_right_
 
std::vector< int > sampled_max_original_projections_to_left_
 

Constructor & Destructor Documentation

◆ PathApproximation() [1/2]

apollo::hdmap::PathApproximation::PathApproximation ( )
default

◆ PathApproximation() [2/2]

apollo::hdmap::PathApproximation::PathApproximation ( const Path path,
const double  max_error 
)
inline

Member Function Documentation

◆ compute_max_error()

double apollo::hdmap::PathApproximation::compute_max_error ( const Path path,
const int  s,
const int  t 
)
protected

◆ GetProjection()

bool apollo::hdmap::PathApproximation::GetProjection ( const Path path,
const common::math::Vec2d point,
double *  accumulate_s,
double *  lateral,
double *  distance 
) const

◆ Init()

void apollo::hdmap::PathApproximation::Init ( const Path path)
protected

◆ InitDilute()

void apollo::hdmap::PathApproximation::InitDilute ( const Path path)
protected

◆ InitProjections()

void apollo::hdmap::PathApproximation::InitProjections ( const Path path)
protected

◆ is_within_max_error()

bool apollo::hdmap::PathApproximation::is_within_max_error ( const Path path,
const int  s,
const int  t 
)
protected

◆ max_error()

double apollo::hdmap::PathApproximation::max_error ( ) const
inline

◆ original_ids()

const std::vector<int>& apollo::hdmap::PathApproximation::original_ids ( ) const
inline

◆ OverlapWith()

bool apollo::hdmap::PathApproximation::OverlapWith ( const Path path,
const common::math::Box2d box,
double  width 
) const

◆ segments()

const std::vector<common::math::LineSegment2d>& apollo::hdmap::PathApproximation::segments ( ) const
inline

Member Data Documentation

◆ max_error_

double apollo::hdmap::PathApproximation::max_error_ = 0
protected

◆ max_error_per_segment_

std::vector<double> apollo::hdmap::PathApproximation::max_error_per_segment_
protected

◆ max_original_projections_to_left_

std::vector<double> apollo::hdmap::PathApproximation::max_original_projections_to_left_
protected

◆ max_projection_

double apollo::hdmap::PathApproximation::max_projection_
protected

◆ max_sqr_error_

double apollo::hdmap::PathApproximation::max_sqr_error_ = 0
protected

◆ min_original_projections_to_right_

std::vector<double> apollo::hdmap::PathApproximation::min_original_projections_to_right_
protected

◆ num_points_

int apollo::hdmap::PathApproximation::num_points_ = 0
protected

◆ num_projection_samples_

int apollo::hdmap::PathApproximation::num_projection_samples_ = 0
protected

◆ original_ids_

std::vector<int> apollo::hdmap::PathApproximation::original_ids_
protected

◆ original_projections_

std::vector<double> apollo::hdmap::PathApproximation::original_projections_
protected

◆ projections_

std::vector<double> apollo::hdmap::PathApproximation::projections_
protected

◆ sampled_max_original_projections_to_left_

std::vector<int> apollo::hdmap::PathApproximation::sampled_max_original_projections_to_left_
protected

◆ segments_

std::vector<common::math::LineSegment2d> apollo::hdmap::PathApproximation::segments_
protected

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