7#include <viam/sdk/common/proto_value.hpp>
8#include <viam/sdk/common/utils.hpp>
9#include <viam/sdk/config/resource.hpp>
10#include <viam/sdk/services/service.hpp>
26 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:21
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:10
Definition resource_api.hpp:50