6#include <viam/api/component/generic/v1/generic.grpc.pb.h>
10#include <viam/sdk/rpc/dial.hpp>
27 ProtoStruct
do_command(
const ProtoStruct& command)
override;
28 std::vector<GeometryConfig>
get_geometries(
const ProtoStruct& extra)
override;
36 std::unique_ptr<viam::component::generic::v1::GenericService::StubInterface> stub)
40 using StubType = viam::component::generic::v1::GenericService::StubInterface;
41 std::unique_ptr<StubType> stub_;
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:19
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.