5#include <unordered_map>
7#include <viam/sdk/common/proto_convert.hpp>
8#include <viam/sdk/common/proto_value.hpp>
10#include <viam/sdk/referenceframe/frame.hpp>
11#include <viam/sdk/resource/resource_api.hpp>
18class ResourceLevelServiceConfig;
27class DiscoverResourcesResponse;
38 ProtoStruct attributes;
46 std::string namespace_,
47 ProtoStruct attributes,
54 std::string namespace_,
55 ProtoStruct attributes,
63 Name resource_name()
const;
65 const API& api()
const;
67 const std::optional<LinkConfig>& frame()
const;
69 const Model& model()
const;
71 const std::string& name()
const;
72 const std::string& namespace_()
const;
73 const std::string& type()
const;
77 const std::vector<std::string>& depends_on()
const;
79 const std::vector<ResourceLevelServiceConfig>& service_config()
const;
81 const ProtoStruct& attributes()
const;
88 std::optional<LinkConfig> frame_;
93 std::string namespace__;
96 std::vector<std::string> depends_on_;
98 std::vector<ResourceLevelServiceConfig> service_config_;
100 ProtoStruct attributes_;
103 std::vector<std::string> implicit_depends_on_;
108namespace proto_convert_details {
117 void operator()(
const ResourceConfig&, app::v1::ComponentConfig*)
const;
127 std::vector<ResourceConfig> operator()(
128 const service::discovery::v1::DiscoverResourcesResponse*)
const;
Definition resource_api.hpp:21
Defines the namespace_, family, and name for a particular resource model.
Definition resource_api.hpp:129
A name for specific instances of resources.
Definition resource_api.hpp:61
Type-erased value for storing google::protobuf::Value types. A ProtoValue can be nullptr,...
Definition proto_value.hpp:55
Definition resource.hpp:42
log_level
Severity levels for the logger.
Definition logging.hpp:31
Defines logging infrastructure.
Definition resource.hpp:36
Definition proto_convert.hpp:24
Definition proto_convert.hpp:18