#include <obu_interface_grpc_impl.h>
◆ ObuInterFaceGrpcImpl()
apollo::v2x::ObuInterFaceGrpcImpl::ObuInterFaceGrpcImpl |
( |
| ) |
|
在文件 obu_interface_grpc_impl.cc 第 38 行定义.
39 : grpc_client_(new GrpcClientImpl(grpc::CreateChannel(
40 FLAGS_grpc_client_host + ":" + FLAGS_grpc_client_port,
41 grpc::InsecureChannelCredentials()))) {
42 AINFO <<
"ObuInterFaceGrpcImpl Start Construct.";
43 cli_init_ = grpc_client_->InitFlag();
44 grpc_server_.reset(new GrpcServerImpl());
45 srv_init_ = grpc_server_->InitFlag();
48 init_succ_ = true;
49}
bool InitialClient() override
bool InitialServer() override
◆ ~ObuInterFaceGrpcImpl()
apollo::v2x::ObuInterFaceGrpcImpl::~ObuInterFaceGrpcImpl |
( |
| ) |
|
在文件 obu_interface_grpc_impl.cc 第 51 行定义.
51 {
52 {
53 std::unique_lock<std::mutex> lck(mutex_);
54 exit_flag_ = true;
55 }
56 condition_.notify_all();
57 if (!!thread_grpc_ && thread_grpc_->joinable()) {
58 thread_grpc_->join();
59 }
60 AINFO <<
"close obu interface success";
61}
◆ GetV2xObstaclesFromObu()
◆ GetV2xRsiFromObu()
◆ GetV2xTrafficLightFromObu()
◆ InitFlag()
bool apollo::v2x::ObuInterFaceGrpcImpl::InitFlag |
( |
| ) |
|
|
inline |
◆ InitialClient()
bool apollo::v2x::ObuInterFaceGrpcImpl::InitialClient |
( |
| ) |
|
|
overridevirtual |
◆ InitialServer()
bool apollo::v2x::ObuInterFaceGrpcImpl::InitialServer |
( |
| ) |
|
|
overridevirtual |
◆ SendCarStatusToObu()
该类的文档由以下文件生成: