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;
29 std::vector<GeometryConfig>
get_geometries(
const ProtoStruct& extra)
override;
37 std::unique_ptr<viam::component::generic::v1::GenericService::StubInterface> stub)
41 using StubType = viam::component::generic::v1::GenericService::StubInterface;
42 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:33
virtual std::string name() const
Return the resource's name.
gRPC client implementation of a GenericComponent.
Definition generic_client.hpp:19
ProtoStruct get_status() override
Get the status of the generic component.
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.