AuboStudio SDK  0.6.3
device_manager.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_DEVICE_MANAGER_H
2#define AUBO_SCOPE_DEVICE_MANAGER_H
3
4#include <vector>
6
7namespace arcs {
8namespace aubo_scope {
10
11/**
12 * @ingroup ApplicationApi
13 * \chinese
14 * 设备管理器
15 * 设备管理器的基础接口。
16 *
17 * 设备管理器为 AuboScope 支持的特定类型设备提供功能。例如,设备管理器可以提供访问
18 * 所有已注册设备(该类型)以及在程序中使用特定设备的功能。
19 * \endchinese
20 * \english
21 * DeviceManager
22 * Base interface for device managers.
23 *
24 * A device manager provides functionality for a specific type of device
25 * supported by AuboScope. The device manager can provide functionality for,
26 * e.g. accessing all registered devices (of that type) and using a specific
27 * device in a program.
28 * \endenglish
29 */
31{
32public:
33 virtual ~DeviceManager() = default;
34
35 /**
36 * \chinese
37 * 获取AuboScope中可用的夹爪设备列表
38 * @return 夹爪设备列表。
39 * \endchinese
40 * \english
41 * Returns the list of grippers (gripper devices) available in AuboScope.
42 * @return The list of gripper devices available in AuboScope.
43 * \endenglish
44 */
45 virtual std::vector<GripperDevicePtr> getGrippers() = 0;
46
47 /**
48 * \chinese
49 * 获取AuboScope中可用的螺丝刀设备列表
50 * @return 螺丝刀设备列表。
51 * \endchinese
52 * \english
53 * Returns the list of screwdrivers available in AuboScope.
54 * @return The list of screwdriver devices available in AuboScope.
55 * \endenglish
56 */
57 virtual std::vector<DevicePtr> getScrewDrivers() = 0;
58};
59} // namespace aubo_scope
60} // namespace arcs
61
62#endif
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
\chinese 设备管理器 设备管理器的基础接口。
virtual std::vector< GripperDevicePtr > getGrippers()=0
\chinese 获取AuboScope中可用的夹爪设备列表
virtual std::vector< DevicePtr > getScrewDrivers()=0
\chinese 获取AuboScope中可用的螺丝刀设备列表
virtual ~DeviceManager()=default