Viam C++ SDK
current
Loading...
Searching...
No Matches
src
viam
sdk
module
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>
6
#include <
viam/sdk/resource/resource_manager.hpp
>
7
#include <viam/sdk/resource/resource_server_base.hpp>
8
#include <
viam/sdk/robot/client.hpp
>
9
10
namespace
viam {
11
namespace
sdk {
12
13
class
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
viam::sdk::HandlerMap_
Definition
handler_map.hpp:19
viam::sdk::Module
Definition
module.hpp:13
client.hpp
gRPC client implementation for a robot.
resource_manager.hpp
Defines a general-purpose resource manager.
Generated by
1.10.0