3#include <unordered_map>
5#include <grpcpp/impl/service_type.h>
6#include <grpcpp/support/status.h>
8#include <viam/sdk/common/proto_value.hpp>
9#include <viam/sdk/config/resource.hpp>
10#include <viam/sdk/resource/resource_api.hpp>
16using Dependencies = std::unordered_map<Name, std::shared_ptr<Resource>>;
29 virtual std::string
name()
const;
38 return {
"rdk",
"resource",
"Resource"};
Extends APIType to additionally define a resource's subtype (e.g., camera).
Definition resource_api.hpp:33
Definition resource.hpp:17
virtual std::string name() const
Return the resource's name.
virtual API api() const =0
Returns the API associated with a particular resource.
virtual viam::common::v1::ResourceName get_resource_name(std::string name) const
Returns a ResourceName for a particular resource name.
Definition resource_api.hpp:50