lebai sdk 1.1.33
lebai c++ sdk with swig to support sereval languages.
Loading...
Searching...
No Matches
discovery.hh
1
17#pragma once
18
19#include <memory>
20#include <string>
21#include <vector>
22
23namespace lebai {
24namespace zeroconf {
30 public:
36 std::string str();
37
38 std::string hostname;
39 std::string ip_address;
40 std::string mac_address;
41 std::string model;
42 std::string ds_version;
43 std::string rc_version;
44 std::string id;
45};
46
51class Discovery {
52 public:
57 class DiscoveryImpl;
67 virtual ~Discovery();
68
75 std::vector<ControllerInfo> resolve();
76
77 protected:
78 std::unique_ptr<DiscoveryImpl> impl_;
79};
80} // namespace zeroconf
81
82} // namespace lebai
Lebai机械臂控制器的信息数据结构.
Definition discovery.hh:29
std::string ds_version
Definition discovery.hh:42
std::string str()
将控制器信息转换为字符串.
std::string hostname
Definition discovery.hh:38
std::string rc_version
Definition discovery.hh:43
std::string ip_address
Definition discovery.hh:39
std::string mac_address
Definition discovery.hh:40
std::string model
Definition discovery.hh:41
std::string id
Definition discovery.hh:44
自动发现局域网内lebai机械臂.
Definition discovery.hh:51
std::unique_ptr< DiscoveryImpl > impl_
Definition discovery.hh:78
virtual ~Discovery()
析构Discovery对象.
std::vector< ControllerInfo > resolve()
获取局域网内lebai机械臂的信息数据,可以用来自动发现局域网内的所有机械臂控制器.
Discovery()
构造Discovery对象.
Definition discovery.hh:23