6#include <grpcpp/channel.h>
8#include <viam/api/component/generic/v1/generic.grpc.pb.h>
24 ProtoStruct
do_command(
const ProtoStruct& command)
override;
25 std::vector<GeometryConfig>
get_geometries(
const ProtoStruct& extra)
override;
33 std::unique_ptr<viam::component::generic::v1::GenericService::StubInterface> stub)
37 using StubType = viam::component::generic::v1::GenericService::StubInterface;
38 std::unique_ptr<StubType> stub_;
39 std::shared_ptr<grpc::Channel> channel_;
A GenericComponent represents any component that can execute arbitrary commands.
Definition generic.hpp:20
std::vector< GeometryConfig > get_geometries()
Returns GeometryConfigs associated with the calling camera.
Definition generic.hpp:29
virtual std::string name() const
Return the resource's name.
gRPC client implementation of a GenericComponent.
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.
Defines GenericComponent subtype and component class capable of executing arbitrary commands.