Apollo 10.0
自动驾驶开放平台
apollo::hdmap::LapsChecker类 参考

#include <laps_checker.h>

apollo::hdmap::LapsChecker 的协作图:

Public 成员函数

 LapsChecker (const std::vector< FramePose > &poses, int laps_to_check, std::shared_ptr< JsonConf > sp_conf)
 
ErrorCode Check ()
 
double GetProgress () const
 
double GetConfidence ()
 
size_t GetLap () const
 
ErrorCode GetReturnState ()
 

Public 属性

const std::vector< FramePose > & poses_
 
double maxx_
 
double maxy_
 
double minx_
 
double miny_
 
std::vector< std::vector< Grid > > grids_map_
 
bool finished_
 

详细描述

在文件 laps_checker.h35 行定义.

构造及析构函数说明

◆ LapsChecker()

apollo::hdmap::LapsChecker::LapsChecker ( const std::vector< FramePose > &  poses,
int  laps_to_check,
std::shared_ptr< JsonConf sp_conf 
)

在文件 laps_checker.cc30 行定义.

32 : poses_(poses), sp_conf_(sp_conf) {
33 laps_to_check_ = laps_to_check;
34 maxx_ = 0.0;
35 maxy_ = 0.0;
36 minx_ = 0.0;
37 miny_ = 0.0;
38 possible_max_laps_ = (laps_to_check_ + 1) * 10;
39 confidence_.resize(possible_max_laps_ + 1, 0.0);
40 finished_ = false;
41 return_state_ = ErrorCode::SUCCESS;
42 AINFO << "instance has " << poses.size() << " poses";
43 AINFO << "confidence size: " << possible_max_laps_ + 1;
44}
const std::vector< FramePose > & poses_
#define AINFO
Definition log.h:42

成员函数说明

◆ Check()

ErrorCode apollo::hdmap::LapsChecker::Check ( )

在文件 laps_checker.cc87 行定义.

87 {
88 if (poses_.empty()) {
90 return return_state_;
91 }
92 DoCheck();
93 finished_ = true;
94 return return_state_;
95}

◆ GetConfidence()

double apollo::hdmap::LapsChecker::GetConfidence ( )

在文件 laps_checker.cc55 行定义.

55 {
56 double res = 0.0;
57 lap_ = laps_to_check_;
58 for (size_t i = 0; i < confidence_.size(); ++i) {
59 AINFO << "confidence[" << i << "]: " << confidence_[i];
60 }
61 AINFO << "laps to check: " << laps_to_check_;
62 for (size_t i = laps_to_check_; i < confidence_.size(); ++i) {
63 res += confidence_[i];
64 }
65 AINFO << "current confidence: " << res
66 << ",confidence thresh:" << sp_conf_->laps_rate_thresh;
67 if (res < sp_conf_->laps_rate_thresh) {
68 if (confidence_.empty()) {
69 AINFO << "some problems induce lap problem";
70 return 0.0;
71 }
72 res = confidence_[0];
73 lap_ = 0;
74 for (size_t i = 1; i < confidence_.size(); ++i) {
75 if (i == laps_to_check_) {
76 continue;
77 }
78 if (confidence_[i] > res) {
79 lap_ = i;
80 res = confidence_[i];
81 }
82 }
83 }
84 return res;
85}

◆ GetLap()

size_t apollo::hdmap::LapsChecker::GetLap ( ) const

在文件 laps_checker.cc53 行定义.

53{ return lap_; }

◆ GetProgress()

double apollo::hdmap::LapsChecker::GetProgress ( ) const

在文件 laps_checker.cc51 行定义.

51{ return progress_; }

◆ GetReturnState()

ErrorCode apollo::hdmap::LapsChecker::GetReturnState ( )

在文件 laps_checker.cc408 行定义.

408{ return return_state_; }

类成员变量说明

◆ finished_

bool apollo::hdmap::LapsChecker::finished_

在文件 laps_checker.h66 行定义.

◆ grids_map_

std::vector<std::vector<Grid> > apollo::hdmap::LapsChecker::grids_map_

在文件 laps_checker.h65 行定义.

◆ maxx_

double apollo::hdmap::LapsChecker::maxx_

在文件 laps_checker.h64 行定义.

◆ maxy_

double apollo::hdmap::LapsChecker::maxy_

在文件 laps_checker.h64 行定义.

◆ minx_

double apollo::hdmap::LapsChecker::minx_

在文件 laps_checker.h64 行定义.

◆ miny_

double apollo::hdmap::LapsChecker::miny_

在文件 laps_checker.h64 行定义.

◆ poses_

const std::vector<FramePose>& apollo::hdmap::LapsChecker::poses_

在文件 laps_checker.h63 行定义.


该类的文档由以下文件生成: