AuboStudio SDK  0.6.3
device.h
浏览该文件的文档.
2
3namespace arcs {
4namespace aubo_scope {
6
7/**
8 * \chinese
9 * 设备接口
10 * 此基础接口表示 AuboScope 支持的设备,例如夹爪设备。
11 * \endchinese
12 * \english
13 * Device
14 * This base interface represents a device supported by AuboScope, e.g. a
15 * gripping device.
16 * \endenglish
17 */
19{
20public:
21 virtual ~Device() = 0;
22 /**
23 * \chinese
24 * 获取将此夹爪设备添加/贡献到AuboScope的AuboCap信息。
25 * @return 此夹爪设备的AuboCap信息。
26 * \endchinese
27 * \english
28 * Get information about the AuboCap that added/contributed this gripper
29 * device to AuboScope.
30 *
31 * @return AuboCap information for this gripper device.
32 * \endenglish
33 */
34 virtual AuboCapInfoPtr getContributorInfo() = 0;
35
36 /**
37 * \chinese
38 * <p>
39 * 获取此夹爪的唯一标识符(id)。可用于在特定多夹爪设备中区分不同的夹爪。
40 * </p>
41 * 注意此id并非"全局"唯一,仅对属于特定多夹爪设备的各个夹爪唯一。
42 * @return 此夹爪的唯一标识符。
43 * \endchinese
44 * \english
45 * <p>
46 * Get the unique identifier (id) for this gripper. This can be used to
47 * identify this specific gripper among the set of individual grippers
48 * available in a specific multi-gripper device.
49 * </p>
50 *
51 * Note that this id is not "globally" unique, but only unique for the
52 * individual grippers belonging to a specific multi-gripper device.
53 *
54 * @return The unique identifier of this gripper.
55 * \endenglish
56 */
57 virtual std::string getId() = 0;
58
59 /**
60 * \chinese
61 * <p>
62 * AuboScope UI中显示的夹爪名称,例如在夹爪工具栏和程序节点中。
63 * </p>
64 * <b>注意:</b>此名称不应用于唯一标识特定的单个夹爪,因为名称可能会被翻译
65 * (取决于AuboScope中选择的语言)或在添加夹爪的AuboCap版本之间发生更改。
66 * @return 此夹爪在AuboScope中显示的名称。
67 * \endchinese
68 * \english
69 * <p>
70 * The name of the gripper displayed in the AuboScope UI, e.g. in the
71 * Gripper toolbar and program node.
72 * </p>
73 *
74 * <b>Note:</b> This name must not be used to uniquely identify a specific
75 * individual gripper, since the name might be translated (depending on the
76 * selected language in AuboScope) or be changed between versions of the
77 * AuboCap that added the gripper.
78 *
79 * @return The name of this gripper displayed in AuboScope.
80 * \endenglish
81 */
82 virtual std::string getDisplayName() = 0;
83
84 /**
85 * \chinese
86 * 设备无法保证始终存在于AuboScope中。如果添加设备的AuboCap未安装,设备将不可用。
87 * 此方法用于判断设备是否可用。
88 * @return 如果此夹爪设备存在于AuboScope中返回<code>true</code>,否则返回
89 * <code>false</code>。
90 * \endchinese
91 * \english
92 * A device cannot be guaranteed to be present in AuboScope. A device will
93 * not be present if the AuboCap that added the device is not installed.
94 * This method can be used to determine, if the device is present.
95 *
96 * @return <code>true</code> if this gripper device is present in AuboScope,
97 * otherwise <code>false</code>.
98 * \endenglish
99 */
100 virtual bool isResolvable() = 0;
101};
102} // namespace aubo_scope
103} // namespace arcs
#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 设备接口 此基础接口表示 AuboScope 支持的设备,例如夹爪设备。 \endchinese \english Device This base interface represe...
virtual std::string getId()=0
\chinese
virtual AuboCapInfoPtr getContributorInfo()=0
\chinese 获取将此夹爪设备添加/贡献到AuboScope的AuboCap信息。
virtual bool isResolvable()=0
\chinese 设备无法保证始终存在于AuboScope中。如果添加设备的AuboCap未安装,设备将不可用。 此方法用于判断设备是否可用。
virtual std::string getDisplayName()=0
\chinese