24 #include <condition_variable> 29 #include <grpc++/grpc++.h> 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_;
Definition: obu_interface_grpc_impl.h:38
define v2x proxy module and onboard unit interface grpc implement
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
void SendCarStatusToObu(const std::shared_ptr<::apollo::v2x::CarStatus > &msg) override
bool InitFlag()
Definition: obu_interface_grpc_impl.h:71
void GetV2xTrafficLightFromObu(std::shared_ptr<::apollo::v2x::obu::ObuTrafficLight > *msg) override
void GetV2xRsiFromObu(std::shared_ptr<::apollo::v2x::obu::ObuRsi > *msg) override
bool InitialClient() override
bool InitialServer() override
define v2x proxy module and onboard unit interface base class
void GetV2xObstaclesFromObu(std::shared_ptr<::apollo::v2x::V2XObstacles > *msg) override
Definition: obu_interface_abstract_class.h:38
define v2x proxy module and onboard unit interface grpc implement