nav_server.h 742 B

1234567891011121314151617181920212223242526
  1. //
  2. // Created by zx on 23-7-15.
  3. //
  4. #ifndef NAVIGATION_NAV_SERVER_H
  5. #define NAVIGATION_NAV_SERVER_H
  6. #include "MPC/navigation_main.h"
  7. class NavServer :public NavMessage::NavExcutor::Service{
  8. public:
  9. NavServer(Navigation* navigator){
  10. navigator_=navigator;
  11. }
  12. virtual ~NavServer(){}
  13. private:
  14. virtual ::grpc::Status Start(::grpc::ServerContext* context,
  15. const ::NavMessage::NavCmd* request, ::NavMessage::NavResponse* response);
  16. virtual ::grpc::Status Cancel(::grpc::ServerContext* context,
  17. const ::NavMessage::NavCmd* request, ::NavMessage::NavResponse* response);
  18. protected:
  19. Navigation* navigator_= nullptr;
  20. };
  21. #endif //NAVIGATION_NAV_SERVER_H