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

#include <client_alignment.h>

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

Public 成员函数

 EightRoute (std::shared_ptr< JsonConf > sp_conf)
 
ErrorCode Process (const std::vector< FramePose > &poses)
 
double GetProgress () const
 
- Public 成员函数 继承自 apollo::hdmap::Alignment< EightRouteRequest, EightRouteResponse >
 Alignment ()
 
 Alignment (std::shared_ptr< JsonConf > sp_conf)
 
int SyncStart ()
 
int SyncStop ()
 
int PeriodicCheck ()
 
int GrpcStub (EightRouteRequest *request, EightRouteResponse *response)
 
virtual ~Alignment ()
 
virtual void SetStartTime (double start_time)
 
virtual void SetEndTime (double end_time)
 
virtual void UpdateBadPoseInfo (const FramePose &pose)
 
virtual void ClearBadPoseInfo ()
 
virtual void UpdateGoodPoseInfo (const FramePose &pose)
 
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 void SetStartTime (double start_time)
 
virtual void SetEndTime (double end_time)
 
virtual void UpdateBadPoseInfo (const FramePose &pose)
 
virtual void ClearBadPoseInfo ()
 
virtual void UpdateGoodPoseInfo (const FramePose &pose)
 
virtual void ClearGoodPoseInfo ()
 
virtual bool IsGoodPose (const std::vector< FramePose > &poses, int pose_index)
 
ErrorCode GetReturnState () const
 

额外继承的成员函数

- Protected 成员函数 继承自 apollo::hdmap::Alignment< EightRouteRequest, EightRouteResponse >
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< EightRouteRequest, EightRouteResponse >
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.h150 行定义.

构造及析构函数说明

◆ EightRoute()

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

在文件 eight_route.cc24 行定义.

24 : Alignment(sp_conf) {
25 Reset();
26}

成员函数说明

◆ GetProgress()

double apollo::hdmap::EightRoute::GetProgress ( ) const
virtual

重载 apollo::hdmap::Alignment< EightRouteRequest, EightRouteResponse > .

在文件 eight_route.cc159 行定义.

159{ return progress_; }

◆ Process()

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

实现了 apollo::hdmap::Alignment< EightRouteRequest, EightRouteResponse >.

在文件 eight_route.cc136 行定义.

136 {
137 AINFO << "[EightRoute::process] begin";
138 size_t size = poses.size();
139 if (size <= 1) {
141 return return_state_;
142 }
143
144 progress_ = GetEightRouteProgress(poses);
146 AINFO << "get_eight_route_progress failed.";
147 return return_state_;
148 }
149 if (progress_ < last_progress_) {
151 return return_state_;
152 }
153
154 AINFO << "[EightRoute::process] end, progress:" << progress_;
156 return return_state_;
157}
#define AINFO
Definition log.h:42

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