24 using service_type = component::base::v1::BaseService;
25 explicit BaseServer(std::shared_ptr<ResourceManager> manager);
27 ::grpc::Status MoveStraight(
28 ::grpc::ServerContext* context,
29 const ::viam::component::base::v1::MoveStraightRequest* request,
30 ::viam::component::base::v1::MoveStraightResponse* response)
noexcept override;
32 ::grpc::Status Spin(::grpc::ServerContext* context,
33 const ::viam::component::base::v1::SpinRequest* request,
34 ::viam::component::base::v1::SpinResponse* response)
noexcept override;
36 ::grpc::Status SetPower(
37 ::grpc::ServerContext* context,
38 const ::viam::component::base::v1::SetPowerRequest* request,
39 ::viam::component::base::v1::SetPowerResponse* response)
noexcept override;
41 ::grpc::Status SetVelocity(
42 ::grpc::ServerContext* context,
43 const ::viam::component::base::v1::SetVelocityRequest* request,
44 ::viam::component::base::v1::SetVelocityResponse* response)
noexcept override;
46 ::grpc::Status Stop(::grpc::ServerContext* context,
47 const ::viam::component::base::v1::StopRequest* request,
48 ::viam::component::base::v1::StopResponse* response)
noexcept override;
50 ::grpc::Status IsMoving(
51 ::grpc::ServerContext* context,
52 const ::viam::component::base::v1::IsMovingRequest* request,
53 ::viam::component::base::v1::IsMovingResponse* response)
noexcept override;
55 ::grpc::Status GetGeometries(
56 ::grpc::ServerContext* context,
57 const ::viam::common::v1::GetGeometriesRequest* request,
58 ::viam::common::v1::GetGeometriesResponse* response)
noexcept override;
60 ::grpc::Status GetProperties(
61 ::grpc::ServerContext* context,
62 const ::viam::component::base::v1::GetPropertiesRequest* request,
63 ::viam::component::base::v1::GetPropertiesResponse* response)
noexcept override;
65 ::grpc::Status DoCommand(grpc::ServerContext* context,
66 const viam::common::v1::DoCommandRequest* request,
67 viam::common::v1::DoCommandResponse* response)
noexcept override;