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