4#include <unordered_map>
6#include <viam/api/app/v1/robot.pb.h>
7#include <viam/api/robot/v1/robot.pb.h>
9#include <viam/sdk/common/proto_value.hpp>
10#include <viam/sdk/referenceframe/frame.hpp>
11#include <viam/sdk/resource/resource_api.hpp>
19 ProtoStruct attributes;
25 static ResourceConfig from_proto(
const viam::app::v1::ComponentConfig& proto_cfg);
26 viam::app::v1::ComponentConfig to_proto()
const;
29 const API& api()
const;
31 const Model& model()
const;
32 const std::string& name()
const;
33 const std::string& namespace_()
const;
34 const std::string& type()
const;
35 const ProtoStruct& attributes()
const;
42 std::string namespace__;
44 std::vector<std::string> depends_on_;
45 std::vector<ResourceLevelServiceConfig> service_config_;
46 ProtoStruct attributes_;
48 std::vector<std::string> implicit_depends_on_;
Extends APIType to additionally define a resource's subtype (e.g., camera).
Definition resource_api.hpp:33
Defines the namespace_, family, and name for a particular resource model.
Definition resource_api.hpp:117
A name for specific instances of resources.
Definition resource_api.hpp:63
Type-erased value for storing google::protobuf::Value types. A ProtoValue can be nullptr,...
Definition proto_value.hpp:53
Definition resource.hpp:23
Definition resource.hpp:16