Viam C++ SDK current
Loading...
Searching...
No Matches
gripper_server.hpp
Go to the documentation of this file.
1
4#pragma once
5
6#include <viam/api/component/gripper/v1/gripper.grpc.pb.h>
7#include <viam/api/component/gripper/v1/gripper.pb.h>
8
11#include <viam/sdk/resource/resource_server_base.hpp>
12
13namespace viam {
14namespace sdk {
15namespace impl {
16
18 public viam::component::gripper::v1::GripperService::Service {
19 public:
20 using interface_type = Gripper;
21 using service_type = component::gripper::v1::GripperService;
22
23 explicit GripperServer(std::shared_ptr<ResourceManager> manager);
24
25 ::grpc::Status Open(::grpc::ServerContext* context,
26 const ::viam::component::gripper::v1::OpenRequest* request,
27 ::viam::component::gripper::v1::OpenResponse* response) noexcept override;
28
29 ::grpc::Status Grab(::grpc::ServerContext* context,
30 const ::viam::component::gripper::v1::GrabRequest* request,
31 ::viam::component::gripper::v1::GrabResponse* response) noexcept override;
32
33 ::grpc::Status Stop(::grpc::ServerContext* context,
34 const ::viam::component::gripper::v1::StopRequest* request,
35 ::viam::component::gripper::v1::StopResponse* response) noexcept override;
36
37 ::grpc::Status IsMoving(
38 ::grpc::ServerContext* context,
39 const ::viam::component::gripper::v1::IsMovingRequest* request,
40 ::viam::component::gripper::v1::IsMovingResponse* response) noexcept override;
41
42 ::grpc::Status DoCommand(::grpc::ServerContext* context,
43 const ::viam::common::v1::DoCommandRequest* request,
44 ::viam::common::v1::DoCommandResponse* response) noexcept override;
45
46 ::grpc::Status GetGeometries(
47 ::grpc::ServerContext* context,
48 const ::viam::common::v1::GetGeometriesRequest* request,
49 ::viam::common::v1::GetGeometriesResponse* response) noexcept override;
50};
51
52} // namespace impl
53} // namespace sdk
54} // namespace viam
A Gripper represents a physical robotic gripper.
Definition gripper.hpp:21
Definition resource_server_base.hpp:8
Definition gripper_server.hpp:18
Defines a Gripper component.
Defines a general-purpose resource manager.