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