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