7#include <google/protobuf/descriptor.h>
9#include <viam/sdk/common/proto_type.hpp>
10#include <viam/sdk/common/utils.hpp>
11#include <viam/sdk/config/resource.hpp>
27 virtual AttributeMap
do_command(
const AttributeMap& command) = 0;
35 virtual std::vector<GeometryConfig>
get_geometries(
const AttributeMap& extra) = 0;
Extends APIType to additionally define a resource's subtype (e.g., camera).
Definition resource_api.hpp:33
Definition component.hpp:14
A GenericComponent represents any component that can execute arbitrary commands.
Definition generic.hpp:22
API api() const override
Creates a GenericComponent API.
std::vector< GeometryConfig > get_geometries()
Returns GeometryConfigs associated with the calling camera.
Definition generic.hpp:31
virtual AttributeMap do_command(const AttributeMap &command)=0
Send/receive arbitrary commands to the resource.
virtual std::string name() const
Return the resource's name.
Definition resource_api.hpp:50