Apollo 11.0
自动驾驶开放平台
apollo::perception::radar4d::CCRFOneShotTypeFusion类 参考

#include <ccrf_type_fusion.h>

类 apollo::perception::radar4d::CCRFOneShotTypeFusion 继承关系图:
apollo::perception::radar4d::CCRFOneShotTypeFusion 的协作图:

Public 成员函数

EIGEN_MAKE_ALIGNED_OPERATOR_NEW bool Init (const TypeFusionInitOption &option) override
 INit type fusion
 
bool TypeFusion (const TypeFusionOption &option, std::shared_ptr< perception::base::Object > object) override
 Type fusion of objects
 
std::string Name () const override
 Get class name
 
bool FuseOneShotTypeProbs (const std::shared_ptr< perception::base::Object > &object, Vectord *log_prob)
 Get object type probabilities
 

Protected 属性

apollo::common::EigenMap< std::string, Matrixdsmooth_matrices_
 
Matrixd confidence_smooth_matrix_
 

详细描述

在文件 ccrf_type_fusion.h35 行定义.

成员函数说明

◆ FuseOneShotTypeProbs()

bool apollo::perception::radar4d::CCRFOneShotTypeFusion::FuseOneShotTypeProbs ( const std::shared_ptr< perception::base::Object > &  object,
Vectord log_prob 
)

Get object type probabilities

参数
objectupdate type probs of the object
log_prob
返回
true
false

◆ Init()

bool apollo::perception::radar4d::CCRFOneShotTypeFusion::Init ( const TypeFusionInitOption option)
overridevirtual

INit type fusion

参数
option
返回
true
false

实现了 apollo::perception::radar4d::BaseOneShotTypeFusion.

在文件 ccrf_type_fusion.cc35 行定义.

35 {
36 std::string config_file = "ccrf_type_fusion.pb.txt";
37 if (!options.config_file.empty()) {
38 config_file = options.config_file;
39 }
40 config_file = GetConfigFile(options.config_path, config_file);
41 CcrfTypeFusionConfig config;
42 ACHECK(cyber::common::GetProtoFromFile(config_file, &config));
43 std::string classifiers_property_file_path =
45 options.config_path, config.classifiers_property_file_path());
46 ACHECK(util::LoadMultipleMatricesFile(classifiers_property_file_path,
48
49 for (auto& pair : smooth_matrices_) {
50 util::NormalizeRow(&pair.second);
51 pair.second.transposeInPlace();
52 AINFO << "Source: " << pair.first;
53 AINFO << std::endl << pair.second;
54 }
55
56 confidence_smooth_matrix_ = Matrixd::Identity();
57 auto iter = smooth_matrices_.find("Confidence");
58 if (iter != smooth_matrices_.end()) {
59 confidence_smooth_matrix_ = iter->second;
60 smooth_matrices_.erase(iter);
61 }
62 AINFO << "Confidence: ";
63 AINFO << std::endl << confidence_smooth_matrix_;
64
65 return true;
66}
apollo::common::EigenMap< std::string, Matrixd > smooth_matrices_
#define ACHECK(cond)
Definition log.h:80
#define AINFO
Definition log.h:42
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
Definition file.cc:132
bool LoadMultipleMatricesFile(const std::string &filename, EigenMap< std::string, Matrixd > *matrices)
Definition util.cc:108
void NormalizeRow(Matrixd *prob)
Compute normalize row of Matrixd
Definition util.cc:71
std::string GetConfigFile(const std::string &config_path, const std::string &config_file)
Definition util.cc:80

◆ Name()

std::string apollo::perception::radar4d::CCRFOneShotTypeFusion::Name ( ) const
inlineoverridevirtual

Get class name

返回
std::string

实现了 apollo::perception::radar4d::BaseOneShotTypeFusion.

在文件 ccrf_type_fusion.h61 行定义.

61{ return "CCRFOneShotTypeFusion"; }

◆ TypeFusion()

bool apollo::perception::radar4d::CCRFOneShotTypeFusion::TypeFusion ( const TypeFusionOption option,
std::shared_ptr< perception::base::Object object 
)
overridevirtual

Type fusion of objects

参数
option
object
返回
true
false

实现了 apollo::perception::radar4d::BaseOneShotTypeFusion.

类成员变量说明

◆ confidence_smooth_matrix_

Matrixd apollo::perception::radar4d::CCRFOneShotTypeFusion::confidence_smooth_matrix_
protected

在文件 ccrf_type_fusion.h76 行定义.

◆ smooth_matrices_

apollo::common::EigenMap<std::string, Matrixd> apollo::perception::radar4d::CCRFOneShotTypeFusion::smooth_matrices_
protected

在文件 ccrf_type_fusion.h75 行定义.


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