55 std::shared_ptr<::apollo::v2x::obu::ObuTrafficLight> *msg)
override;
58 std::shared_ptr<::apollo::v2x::V2XObstacles> *msg)
override;
61 std::shared_ptr<::apollo::v2x::obu::ObuRsi> *msg)
override;
67 const std::shared_ptr<::apollo::v2x::CarStatus> &msg)
override;
76 void ThreadRunServer();
78 std::shared_ptr<GrpcClientImpl> grpc_client_;
79 std::unique_ptr<GrpcServerImpl> grpc_server_;
80 std::unique_ptr<grpc::Server> server_;
82 bool cli_init_ =
false;
83 bool srv_init_ =
false;
85 bool init_succ_ =
false;
86 bool exit_flag_ =
false;
87 std::unique_ptr<std::thread> thread_grpc_;
89 std::condition_variable condition_;