7#include <google/protobuf/descriptor.h>
9#include <viam/sdk/common/proto_value.hpp>
10#include <viam/sdk/common/utils.hpp>
11#include <viam/sdk/config/resource.hpp>
12#include <viam/sdk/services/service.hpp>
28 virtual ProtoStruct
do_command(
const ProtoStruct& command) = 0;
Extends APIType to additionally define a resource's subtype (e.g., camera).
Definition resource_api.hpp:33
A GenericService represents any service that can execute arbitrary commands.
Definition generic.hpp:23
virtual ProtoStruct do_command(const ProtoStruct &command)=0
Send/receive arbitrary commands to the resource.
API api() const override
Creates a GenericService API.
virtual std::string name() const
Return the resource's name.
Definition service.hpp:12
Definition resource_api.hpp:50