AuboStudio SDK  0.6.3
move_node.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_MOVE_NODE_H
2#define AUBO_SCOPE_MOVE_NODE_H
3
8
9namespace arcs {
10namespace aubo_scope {
12
14{
15public:
16 enum ConfigType : int
17 {
18
19 /**
20 * <p>
21 * Movement type is MoveJ.
22 * </p>
23 *
24 * The config instance can be cast to {@link MoveJMoveNodeConfig}.
25 */
26 MOVE_J = 0,
27
28 /**
29 * <p>
30 * Movement type is MoveL.
31 * </p>
32 *
33 * The config instance can be cast to {@link MoveLMoveNodeConfig}.
34 */
36
38 };
39
41 {
42
43 /**
44 * Motions are adjusted to the currently active TCP. The TCP is
45 * determined during runtime of the program.
46 */
48
49 /**
50 * No TCP is used and the motion under this Move command will be with
51 * respect to the tool output flange.
52 */
54
55 /**
56 * A specific TCP is selected. <br>
57 * The TCPSelection instance can be cast to {@link MoveNodeTCP}.
58 */
60 };
61
63 {
64 /**
65 * The selected feature is no longer available (e.g. because the user
66 * has removed the feature in the Installation or the needed
67 * Installation is not currently loaded)
68 */
70
71 /**
72 * Feature is selected.
73 * The Selection instance can be cast to {@link MoveNodeFeature}
74 */
76 };
77
80 virtual ~MoveNode();
81
82 /**
83 * \chinese
84 * 返回配置类型。适当转换此实例以访问特定的 getter。
85 * @return 此配置的类型
86 * \endchinese
87 * \english
88 * This method returns the type of configuration. Cast this instance
89 * appropriately to have access to specific getters.
90 * @return the type of this config.
91 * \endenglish
92 */
95
97 void setUseJoints(bool use);
98
99 /**
100 * \chinese
101 * <p>为 MoveJ 配置设置关节速度参数。</p>
102 * 该参数适用于机械臂从上一个位置经过 Move 节点下的路点的运动。
103 *
104 * @param joint_speed 要达到的共享关节速度
105 * \endchinese
106 * \english
107 * <p>Set joint speed parameter for the MoveJ configuration.</p>
108 * The parameter applies to the movement of the robot arm, from the previous
109 * position through the waypoints under the Move node.
110 *
111 * @param joint_speed The shared joint speed to be achieved.
112 * \endenglish
113 */
114 void setJointSpeed(double joint_speed);
116
117 /**
118 * \chinese
119 * <p>为 MoveJ 配置设置关节加速度参数。</p>
120 * 该参数适用于机械臂从上一个位置经过 Move 节点下的路点的运动。
121 * @param joint_acceleration 要使用的共享关节加速度
122 * \endchinese
123 * \english
124 * <p>Set joint acceleration parameter for the MoveJ configuration.</p>
125 * The parameter applies to the movement of the robot arm, from the previous
126 * position through the waypoints under the Move node.
127 * @param joint_acceleration The shared joint acceleration to be used.
128 * \endenglish
129 */
130 void setJointAcceleration(double joint_acceleration);
132
133 /**
134 * \chinese
135 * <p>为 MoveJ 配置设置 TCP 选择。</p>
136 * <p>在执行机械臂运动之前,TCP 将被设置为活动 TCP。</p>
137 * @param tcp_selection 要应用的 TCP 设置
138 * \endchinese
139 * \english
140 * <p>Set the TCP selection for the MoveJ configuration.</p>
141 * <p>The TCP will be set as the active TCP before the movement of the robot
142 * arm is performed.</p>
143 * @param tcp_selection The TCP setting to be applied.
144 * \endenglish
145 */
146 void setTCPSelection(TCPPtr tcp_selection);
148
149 /**
150 * \chinese
151 * <p>为 MoveL 配置设置工具速度参数。</p>
152 * 该参数适用于机械臂从上一个位置经过 Move 节点下的路点的运动。
153 * @param tool_speed 要达到的共享工具速度
154 * \endchinese
155 * \english
156 * <p>Set tool speed parameter for the MoveL configuration.</p>
157 * The parameter applies to the movement of the robot arm, from the previous
158 * position through the waypoints under the Move node.
159 * @param tool_speed The shared tool speed to be achieved.
160 * \endenglish
161 */
162 void setToolSpeed(double tool_speed);
163 double getToolSpeed();
164
165 /**
166 * \chinese
167 * <p>为 MoveL 配置设置工具加速度参数。</p>
168 * 该参数适用于机械臂从上一个位置经过 Move 节点下的路点的运动。
169 * @param tool_acceleration 要使用的共享工具加速度
170 * \endchinese
171 * \english
172 * <p>Set tool acceleration parameter for the MoveL configuration.</p>
173 * The parameter applies to the movement of the robot arm, from the previous
174 * position through the waypoints under the Move node.
175 * @param tool_acceleration The shared tool acceleration to be used.
176 * \endenglish
177 */
178 void setToolAcceleration(double tool_acceleration);
180
181 /**
182 * \chinese
183 * <p>为 MoveL 配置设置坐标系。</p>
184 * 该坐标系将用于机械臂从上一个位置经过 Move 节点下的路点的运动。
185 * @param feature 此运动的共享坐标系
186 * \endchinese
187 * \english
188 * <p>Set feature for the MoveL configuration.</p>
189 * The feature will be used for the movement of the robot arm, from the
190 * previous position through the waypoints under the Move node.
191 * @param feature The shared feature for this movement.
192 * \endenglish
193 */
194 void setFeature(FeaturePtr feature);
195 void setFeature(FeatureVariablePtr feature_variable);
196 FeaturePtr getFeature();
197
198 /**
199 * \chinese
200 * <p>为 MoveP 配置设置交融参数。</p>
201 * 交融参数将用于机械臂运动中所有路点之间的过渡。
202 * @param blend 此 Move 节点运动中使用的共享交融值
203 * \endchinese
204 * \english
205 * <p>Set the blend parameter for the MoveP configuration.</p>
206 * The blend parameter will be used between all waypoints in the movement of
207 * the robot arm.
208 * @param blend The shared blend used in the motion of this Move node.
209 * \endenglish
210 */
211 void setBlend(double blend);
212 double getBlend();
213
216
217private:
218 friend class DataSwitch;
220 void *d_{ nullptr };
221};
222
223} // namespace aubo_scope
224} // namespace arcs
225#endif // AUBO_SCOPE_MOVE_NODE_H
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
void setUseJoints(bool use)
void setJointSpeed(double joint_speed)
\chinese
void setJointAcceleration(double joint_acceleration)
\chinese
void setFeature(FeaturePtr feature)
\chinese
@ UNRESOLVED_FEATURE
The selected feature is no longer available (e.g.
@ FEATURE
Feature is selected.
TcpSelectionType getTcpSelectionType()
ConfigType getConfigType()
\chinese 返回配置类型。适当转换此实例以访问特定的 getter。
void setTcpSelectionType(TcpSelectionType type)
void setToolAcceleration(double tool_acceleration)
\chinese
@ MOVE_TCP
A specific TCP is selected.
@ USE_ACTIVE_TCP
Motions are adjusted to the currently active TCP.
@ IGNORE_ACTIVE_TCP
No TCP is used and the motion under this Move command will be with respect to the tool output flange.
void setConfigType(ConfigType type)
void setTCPSelection(TCPPtr tcp_selection)
\chinese
void setToolSpeed(double tool_speed)
\chinese
void setFeature(FeatureVariablePtr feature_variable)
void setBlend(double blend)
\chinese