12345678910111213141516171819202122232425262728293031323334 |
- //
- // Created by zx on 23-7-15.
- //
- #ifndef NAVIGATION_NAV_SERVER_H
- #define NAVIGATION_NAV_SERVER_H
- #include "MPC/navigation_main.h"
- class NavServer : public NavMessage::NavExcutor::Service {
- public:
- NavServer(Navigation *navigator) {
- navigator_ = navigator;
- }
- virtual ~NavServer() {}
- private:
- virtual ::grpc::Status Start(::grpc::ServerContext *context,
- const ::NavMessage::NavCmd *request, ::NavMessage::NavResponse *response);
- virtual ::grpc::Status Cancel(::grpc::ServerContext *context,
- const ::NavMessage::NavCmd *request, ::NavMessage::NavResponse *response);
- virtual ::grpc::Status ManualOperation(::grpc::ServerContext *context,
- const ::NavMessage::ManualCmd *request, ::NavMessage::NavResponse *response);
- protected:
- Navigation *navigator_ = nullptr;
- };
- #endif //NAVIGATION_NAV_SERVER_H
|