6#include <grpcpp/channel.h>
8#include <viam/api/service/generic/v1/generic.grpc.pb.h>
11#include <viam/sdk/services/generic.hpp>
24 ProtoStruct
do_command(
const ProtoStruct& command)
override;
32 std::unique_ptr<viam::service::generic::v1::GenericService::StubInterface> stub)
36 using StubType = viam::service::generic::v1::GenericService::StubInterface;
37 std::unique_ptr<StubType> stub_;
38 std::shared_ptr<grpc::Channel> channel_;
A GenericService represents any service that can execute arbitrary commands.
Definition generic.hpp:21
virtual std::string name() const
Return the resource's name.
gRPC client implementation of a GenericService.
Definition generic_client.hpp:20
ProtoStruct do_command(const ProtoStruct &command) override
Send/receive arbitrary commands to the resource.
gRPC client implementation for a robot.