Viam C++ SDK current
Loading...
Searching...
No Matches
module.hpp
1#pragma once
2
3#include <viam/sdk/module/handler_map.hpp>
4#include <viam/sdk/resource/resource.hpp>
6#include <viam/sdk/resource/resource_server_base.hpp>
8
9namespace viam {
10namespace sdk {
11
12class Module {
13 public:
14 void set_ready();
15 Module(std::string addr);
16 const std::string& name() const;
17 const std::string& addr() const;
18 bool ready() const;
19 const HandlerMap_& handles() const;
20 HandlerMap_& mutable_handles();
21 const std::shared_ptr<grpc::Channel>& channel() const;
22
23 private:
24 std::string name_;
25 std::string addr_;
26 bool ready_;
27 HandlerMap_ handles_;
28 std::shared_ptr<grpc::Channel> channel_;
29};
30
31} // namespace sdk
32} // namespace viam
Definition handler_map.hpp:10
Definition module.hpp:12
gRPC client implementation for a robot.
Defines a general-purpose resource manager.