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

#include <channel_verify_agent.h>

apollo::hdmap::ChannelVerifyAgent 的协作图:

Public 成员函数

 ChannelVerifyAgent (std::shared_ptr< JsonConf > sp_conf)
 
grpc::Status ProcessGrpcRequest (grpc::ServerContext *context, ChannelVerifyRequest *request, ChannelVerifyResponse *response)
 

详细描述

在文件 channel_verify_agent.h36 行定义.

构造及析构函数说明

◆ ChannelVerifyAgent()

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

在文件 channel_verify_agent.cc28 行定义.

28 {
29 sp_conf_ = sp_conf;
30 sp_channel_checker_ = nullptr;
31 sp_check_result_ = nullptr;
32}

成员函数说明

◆ ProcessGrpcRequest()

grpc::Status apollo::hdmap::ChannelVerifyAgent::ProcessGrpcRequest ( grpc::ServerContext *  context,
ChannelVerifyRequest request,
ChannelVerifyResponse response 
)

在文件 channel_verify_agent.cc43 行定义.

45 {
46 AINFO << "ChannelVerifyAgent Request: " << request->DebugString();
47 switch (request->cmd()) {
48 case CmdType::START:
49 AINFO << "ChannelVerifyAgent start";
50 StartCheck(request, response);
51 break;
52 case CmdType::CHECK:
53 AINFO << "ChannelVerifyAgent check";
54 CheckResult(request, response);
55 break;
56 case CmdType::STOP:
57 AINFO << "ChannelVerifyAgent stop";
58 StopCheck(request, response);
59 break;
60 default:
61 response->set_code(ErrorCode::ERROR_REQUEST);
62 AERROR << "command error";
63 }
64 AINFO << "ChannelVerifyAgent progress: " << response->DebugString();
65 return grpc::Status::OK;
66}
#define AERROR
Definition log.h:44
#define AINFO
Definition log.h:42

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