AuboStudio SDK  0.6.3
width_capability.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_WIDTH_CAPABILITY_H
2#define AUBO_SCOPE_WIDTH_CAPABILITY_H
3
5
6namespace arcs {
7namespace aubo_scope {
9
10/**
11 * \chinese
12 * 宽度能力
13 * 此接口表示夹爪已注册的宽度/位置能力,支持移动到用户可配置的位置(打开/关闭到
14 * 可配置的宽度)。
15 *
16 * 通过此接口,可以在能力注册后调整宽度的范围和默认值。这通常不适用于大多数夹爪,
17 * 但当范围取决于另一个自定义夹爪设置(可由用户配置)时,这可能是相关的。
18 * \endchinese
19 * \english
20 * WidthCapability
21 * This interface represents a registered width/position capability for a
22 * gripper which supports moving to a user configurable position (open/close to
23 * a configurable width).
24 *
25 * Through this interface, it is possible to adjust the range and default values
26 * for the width after the capability has been registered. This is typically not
27 * applicable for most grippers, but can be relevant when the range depends on
28 * another custom gripper setting (which can be configured by the user).
29 * \endenglish
30 */
32{
33public:
34 virtual ~WidthCapability() = default;
35
36 /**
37 * <p>
38 * Update the range and default values for the width supported by the
39 * gripper.
40 * </p>
41 *
42 * Updating the range could result in an already entered value in the
43 * configuration of a gripper program node being outside the range. This
44 * will make the given program node undefined, and force the end user to
45 * adjust the value to be valid again.
46 *
47 * @param minWidth minimum width supported by the gripper
48 * @param maxWidth maximum width supported by the gripper
49 * @param defaultGripWidth default value for the width for a grip
50 * action. This value is used for, e.g. performing a "default" grip
51 * action using the toolbar
52 * @param defaultReleaseWidth default value for the width for a release
53 * action. This value is used for, e.g. performing a "default" release
54 * action using the toolbar
55 * @param unit the unit for all specified values, not <code>null</code>
56 * @throws InvalidCapabilityRange if <code>minWidth} > <code>maxWidth</code>
57 * @throws InvalidCapabilityRange if <code>defaultGripWidth</code> or
58 * <code>defaultReleaseWidth</code> is outside the range defined by
59 * <code>minWidth</code> and <code>maxWidth</code>.
60 */
61 virtual void updateCapability(double minWidth, double maxWidth,
62 double defaultGripWidth,
63 double defaultReleaseWidth) = 0;
64};
65} // namespace aubo_scope
66} // namespace arcs
67#endif
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
\chinese 宽度能力 此接口表示夹爪已注册的宽度/位置能力,支持移动到用户可配置的位置(打开/关闭到 可配置的宽度)。
virtual ~WidthCapability()=default
virtual void updateCapability(double minWidth, double maxWidth, double defaultGripWidth, double defaultReleaseWidth)=0