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

#include <client_alignment.h>

类 apollo::hdmap::StaticAlign 继承关系图:
apollo::hdmap::StaticAlign 的协作图:

Public 成员函数

 StaticAlign (std::shared_ptr< JsonConf > sp_conf)
 
ErrorCode Process (const std::vector< FramePose > &poses)
 
- Public 成员函数 继承自 apollo::hdmap::Alignment< StaticAlignRequest, StaticAlignResponse >
 Alignment ()
 
 Alignment (std::shared_ptr< JsonConf > sp_conf)
 
int SyncStart ()
 
int SyncStop ()
 
int PeriodicCheck ()
 
int GrpcStub (StaticAlignRequest *request, StaticAlignResponse *response)
 
virtual ~Alignment ()
 
virtual double GetProgress () const
 
virtual void SetStartTime (double start_time)
 
virtual void SetEndTime (double end_time)
 
virtual void UpdateBadPoseInfo (const FramePose &pose)
 
virtual void ClearBadPoseInfo ()
 
virtual void ClearGoodPoseInfo ()
 
virtual bool IsGoodPose (const std::vector< FramePose > &poses, int pose_index)
 
ErrorCode GetReturnState () const
 
- Public 成员函数 继承自 apollo::hdmap::Alignment< REQUEST_TYPE, RESPONSE_TYPE >
 Alignment ()
 
int SyncStart ()
 
int SyncStop ()
 
int PeriodicCheck ()
 
int GrpcStub (REQUEST_TYPE *request, RESPONSE_TYPE *response)
 
 Alignment (std::shared_ptr< JsonConf > sp_conf)
 
virtual ~Alignment ()
 
virtual double GetProgress () const
 
virtual void SetStartTime (double start_time)
 
virtual void SetEndTime (double end_time)
 
virtual void UpdateBadPoseInfo (const FramePose &pose)
 
virtual void ClearBadPoseInfo ()
 
virtual void ClearGoodPoseInfo ()
 
virtual bool IsGoodPose (const std::vector< FramePose > &poses, int pose_index)
 
ErrorCode GetReturnState () const
 

额外继承的成员函数

- Protected 成员函数 继承自 apollo::hdmap::Alignment< StaticAlignRequest, StaticAlignResponse >
void UpdatePoseInfo (const FramePose &pose, std::shared_ptr< BadOrGoodPoseInfo > sp_pose_info)
 
void ClearPoseInfo (std::shared_ptr< BadOrGoodPoseInfo > sp_pose_info)
 
int TimeToIndex (const std::vector< FramePose > &poses, double time)
 
- Protected 成员函数 继承自 apollo::hdmap::Alignment< REQUEST_TYPE, RESPONSE_TYPE >
void UpdatePoseInfo (const FramePose &pose, std::shared_ptr< BadOrGoodPoseInfo > sp_pose_info)
 
void ClearPoseInfo (std::shared_ptr< BadOrGoodPoseInfo > sp_pose_info)
 
int TimeToIndex (const std::vector< FramePose > &poses, double time)
 
- Protected 属性 继承自 apollo::hdmap::Alignment< StaticAlignRequest, StaticAlignResponse >
std::unique_ptr< CollectionCheckerService::Stub > service_stub_
 
double progress_
 
double last_progress_
 
double start_time_
 
double end_time_
 
int start_index_
 
double end_index_
 
ErrorCode return_state_
 
std::shared_ptr< JsonConfsp_conf_
 
std::shared_ptr< BadOrGoodPoseInfosp_good_pose_info_
 
std::shared_ptr< BadOrGoodPoseInfosp_bad_pose_info_
 
- Protected 属性 继承自 apollo::hdmap::Alignment< REQUEST_TYPE, RESPONSE_TYPE >
std::unique_ptr< CollectionCheckerService::Stub > service_stub_
 
double progress_
 
double last_progress_
 
double start_time_
 
double end_time_
 
int start_index_
 
double end_index_
 
ErrorCode return_state_
 
std::shared_ptr< JsonConfsp_conf_ = nullptr
 
std::shared_ptr< BadOrGoodPoseInfosp_good_pose_info_ = nullptr
 
std::shared_ptr< BadOrGoodPoseInfosp_bad_pose_info_ = nullptr
 

详细描述

在文件 client_alignment.h142 行定义.

构造及析构函数说明

◆ StaticAlign()

apollo::hdmap::StaticAlign::StaticAlign ( std::shared_ptr< JsonConf sp_conf)
explicit

在文件 static_align.cc23 行定义.

24 : Alignment(sp_conf) {
25 sp_conf_ = sp_conf;
26 static_align_detect_method_ = StaticAlignDetectMethod::DYNAMIC_CENTROID;
27 Reset();
28}
std::shared_ptr< JsonConf > sp_conf_
Definition alignment.h:141

成员函数说明

◆ Process()

ErrorCode apollo::hdmap::StaticAlign::Process ( const std::vector< FramePose > &  poses)
virtual

实现了 apollo::hdmap::Alignment< StaticAlignRequest, StaticAlignResponse >.

在文件 static_align.cc141 行定义.

141 {
142 AINFO << "[StaticAlign::process] begin";
143 size_t size = poses.size();
144 if (size <= 1) {
145 AINFO << "system has no pose, exit process";
147 return return_state_;
148 }
149
150 progress_ = GetStaticAlignProgress(poses);
152 AINFO << "get_static_align_progress error, progress 0.0";
153 return return_state_;
154 }
155
156 AINFO << "[StaticAlign::process] end, progress:" << progress_;
158 return return_state_;
159}
#define AINFO
Definition log.h:42

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