ARCS SDK API  0.25.0
载入中...
搜索中...
未找到
robot_state.h
浏览该文件的文档.
1/** @file robot_state.h
2 * @brief 获取机器人状态接口,如关节速度、关节角度、固件/硬件版本
3 */
4#ifndef AUBO_SDK_ROBOT_STATE_INTERFACE_H
5#define AUBO_SDK_ROBOT_STATE_INTERFACE_H
6
7#include <vector>
8
9#include <aubo/global_config.h>
10#include <aubo/type_def.h>
11
12namespace arcs {
13namespace common_interface {
14
15class ARCS_ABI_EXPORT RobotState
16{
17public:
19 virtual ~RobotState();
20
21 /**
22 * 获取机器人的模式状态
23 *
24 * @return 机器人的模式状态
25 *
26 * @throws arcs::common_interface::AuboException
27 *
28 * @par Python函数原型
29 * getRobotModeType(self: pyaubo_sdk.RobotState) ->
30 * arcs::common_interface::RobotModeType
31 *
32 * @par Lua函数原型
33 * getRobotModeType() -> number
34 *
35 * @par JSON-RPC请求示例
36 * {"jsonrpc":"2.0","method":"rob1.RobotState.getRobotModeType","params":[],"id":1}
37 *
38 * @par JSON-RPC响应示例
39 * {"id":1,"jsonrpc":"2.0","result":"Running"}
40 *
41 */
43
44 /**
45 * 获取安全模式
46 *
47 * @return 安全模式
48 *
49 * @throws arcs::common_interface::AuboException
50 *
51 * @par Python函数原型
52 * getSafetyModeType(self: pyaubo_sdk.RobotState) ->
53 * arcs::common_interface::SafetyModeType
54 *
55 * @par Lua函数原型
56 * getSafetyModeType() -> number
57 *
58 * @par JSON-RPC请求示例
59 * {"jsonrpc":"2.0","method":"rob1.RobotState.getSafetyModeType","params":[],"id":1}
60 *
61 * @par JSON-RPC响应示例
62 * {"id":1,"jsonrpc":"2.0","result":"Normal"}
63 *
64 */
66
67 /**
68 * 获取机器人通电状态
69 *
70 * @return 机器人通电返回 true; 反之返回 false
71 *
72 * @throws arcs::common_interface::AuboException
73 *
74 * @par JSON-RPC请求示例
75 * {"jsonrpc":"2.0","method":"rob1.RobotState.isPowerOn","params":[],"id":1}
76 *
77 * @par JSON-RPC响应示例
78 * {"id":1,"jsonrpc":"2.0","result":true}
79 *
80 */
81 bool isPowerOn();
82
83 /**
84 * 机器人是否已经停止下来
85 *
86 * @return 停止返回true; 反之返回false
87 *
88 * @throws arcs::common_interface::AuboException
89 *
90 * @par Python函数原型
91 * isSteady(self: pyaubo_sdk.RobotState) -> bool
92 *
93 * @par Lua函数原型
94 * isSteady() -> boolean
95 *
96 * @par JSON-RPC请求示例
97 * {"jsonrpc":"2.0","method":"rob1.RobotState.isSteady","params":[],"id":1}
98 *
99 * @par JSON-RPC响应示例
100 * {"id":1,"jsonrpc":"2.0","result":true}
101 *
102 */
103 bool isSteady();
104
105 /**
106 * 机器人是否发生了碰撞
107 *
108 * @return 发生碰撞返回 true; 反之返回 false
109 *
110 * @throws arcs::common_interface::AuboException
111 *
112 * @par JSON-RPC请求示例
113 * {"jsonrpc":"2.0","method":"rob1.RobotState.isCollisionOccurred","params":[],"id":1}
114 *
115 * @par JSON-RPC响应示例
116 * {"id":1,"jsonrpc":"2.0","result":false}
117 *
118 */
120
121 /**
122 * 机器人是否已经在安全限制之内
123 *
124 * @return 在安全限制之内返回true; 反之返回false
125 *
126 * @throws arcs::common_interface::AuboException
127 *
128 * @par Python函数原型
129 * isWithinSafetyLimits(self: pyaubo_sdk.RobotState) -> bool
130 *
131 * @par Lua函数原型
132 * isWithinSafetyLimits() -> boolean
133 *
134 * @par JSON-RPC请求示例
135 * {"jsonrpc":"2.0","method":"rob1.RobotState.isWithinSafetyLimits","params":[],"id":1}
136 *
137 * @par JSON-RPC响应示例
138 * {"id":1,"jsonrpc":"2.0","result":true}
139 *
140 */
142
143 /**
144 * 获取当前的TCP位姿,其 TCP 偏移可以通过 getActualTcpOffset 获取
145 *
146 * 位姿表示形式为(x,y,z,rx,ry,rz)。
147 * 其中x、y、z是工具中心点(TCP)在基坐标系下的位置,单位是m。
148 * rx、ry、rz是工具中心点(TCP)在基坐标系下的姿态,是ZYX欧拉角,单位是rad。
149 *
150 * @return TCP的位姿,形式为(x,y,z,rx,ry,rz)
151 *
152 * @throws arcs::common_interface::AuboException
153 *
154 * @par Python函数原型
155 * getTcpPose(self: pyaubo_sdk.RobotState) -> List[float]
156 *
157 * @par Lua函数原型
158 * getTcpPose() -> table
159 *
160 * @par JSON-RPC请求示例
161 * {"jsonrpc":"2.0","method":"rob1.RobotState.getTcpPose","params":[],"id":1}
162 *
163 * @par JSON-RPC响应示例
164 * {"id":1,"jsonrpc":"2.0","result":[0.41777839846910425,-0.13250000000000012,0.20928451364415995,3.1415792312578987,0.0,1.5707963267948963]}
165 *
166 */
167 std::vector<double> getTcpPose();
168
169 /**
170 * 获取当前的 TCP 偏移,也就是 getTcpPose 返回的 pose 用到的 TCP 偏移
171 *
172 * @return 当前的 TCP 偏移
173 */
174 std::vector<double> getActualTcpOffset();
175
176 /**
177 * 获取下一个目标路点
178 * 注意与 getTcpTargetPose 的区别,此处定义存在歧义,命名需要优化
179 *
180 * 位姿表示形式为(x,y,z,rx,ry,rz)。
181 * 其中x、y、z是工具中心点(TCP)在基坐标系下的目标位置,单位是m。
182 * rx、ry、rz是工具中心点(TCP)在基坐标系下的目标姿态,是ZYX欧拉角,单位是rad。
183 *
184 * @return 当前目标位姿,形式为(x,y,z,rx,ry,rz)
185 *
186 * @throws arcs::common_interface::AuboException
187 *
188 * @par Python函数原型
189 * getTargetTcpPose(self: pyaubo_sdk.RobotState) -> List[float]
190 *
191 * @par Lua函数原型
192 * getTargetTcpPose() -> table
193 *
194 * @par JSON-RPC请求示例
195 * {"jsonrpc":"2.0","method":"rob1.RobotState.getTargetTcpPose","params":[],"id":1}
196 *
197 * @par JSON-RPC响应示例
198 * {"id":1,"jsonrpc":"2.0","result":[0.4173932217619493,-0.13250000000000012,0.43296496133045825,3.141577313781914,0.0,1.5707963267948963]}
199 *
200 */
201 std::vector<double> getTargetTcpPose();
202
203 /**
204 * 获取工具端的位姿(不带TCP偏移)
205 *
206 * 位姿表示形式为(x,y,z,rx,ry,rz)。
207 * 其中x、y、z是法兰盘中心在基坐标系下的目标位置,单位是m。
208 * rx、ry、rz是法兰盘中心在基坐标系下的目标姿态,是ZYX欧拉角,单位是rad。
209 *
210 * @return 工具端的位姿,形式为(x,y,z,rx,ry,rz)
211 *
212 * @throws arcs::common_interface::AuboException
213 *
214 * @par Python函数原型
215 * getToolPose(self: pyaubo_sdk.RobotState) -> List[float]
216 *
217 * @par Lua函数原型
218 * getToolPose() -> table
219 *
220 * @par JSON-RPC请求示例
221 * {"jsonrpc":"2.0","method":"rob1.RobotState.getToolPose","params":[],"id":1}
222 *
223 * @par JSON-RPC响应示例
224 * {"id":1,"jsonrpc":"2.0","result":[0.41777820858878617,-0.13250000000000012,0.20928410288421018,3.141579231257899,0.0,1.5707963267948963]}
225 *
226 */
227 std::vector<double> getToolPose();
228
229 /**
230 * 获取TCP速度
231 *
232 * @return TCP速度
233 *
234 * @throws arcs::common_interface::AuboException
235 *
236 * @par Python函数原型
237 * getTcpSpeed(self: pyaubo_sdk.RobotState) -> List[float]
238 *
239 * @par Lua函数原型
240 * getTcpSpeed() -> table
241 *
242 * @par JSON-RPC请求示例
243 * {"jsonrpc":"2.0","method":"rob1.RobotState.getTcpSpeed","params":[],"id":1}
244 *
245 * @par JSON-RPC响应示例
246 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
247 *
248 */
249 std::vector<double> getTcpSpeed();
250
251 /**
252 * 获取TCP的力/力矩
253 *
254 * @return TCP的力/力矩
255 *
256 * @par Python函数原型
257 * getTcpForce(self: pyaubo_sdk.RobotState) -> List[float]
258 *
259 * @par Lua函数原型
260 * getTcpForce() -> table
261 *
262 * @par JSON-RPC请求示例
263 * {"jsonrpc":"2.0","method":"rob1.RobotState.getTcpForce","params":[],"id":1}
264 *
265 * @par JSON-RPC响应示例
266 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
267 *
268 */
269 std::vector<double> getTcpForce();
270
271 /**
272 * 获取肘部的位置
273 *
274 * @return 肘部的位置
275 *
276 * @throws arcs::common_interface::AuboException
277 *
278 * @par Python函数原型
279 * getElbowPosistion(self: pyaubo_sdk.RobotState) -> List[float]
280 *
281 * @par Lua函数原型
282 * getElbowPosistion() -> table
283 *
284 * @par JSON-RPC请求示例
285 * {"jsonrpc":"2.0","method":"rob1.RobotState.getElbowPosistion","params":[],"id":1}
286 *
287 * @par JSON-RPC响应示例
288 * {"id":1,"jsonrpc":"2.0","result":[0.07355755887512408,-0.1325,0.43200874126125227,-1.5707963267948968,0.433006344376404,0.0]}
289 *
290 */
291 std::vector<double> getElbowPosistion();
292
293 /**
294 * 获取肘部速度
295 *
296 * @return 肘部速度
297 *
298 * @throws arcs::common_interface::AuboException
299 *
300 * @par Python函数原型
301 * getElbowVelocity(self: pyaubo_sdk.RobotState) -> List[float]
302 *
303 * @par Lua函数原型
304 * getElbowVelocity() -> table
305 *
306 * @par JSON-RPC请求示例
307 * {"jsonrpc":"2.0","method":"rob1.RobotState.getElbowVelocity","params":[],"id":1}
308 *
309 * @par JSON-RPC响应示例
310 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
311 *
312 */
313 std::vector<double> getElbowVelocity();
314
315 /**
316 * 获取基座力/力矩
317 *
318 * @return 基座力/力矩
319 *
320 * @throws arcs::common_interface::AuboException
321 *
322 * @par Python函数原型
323 * getBaseForce(self: pyaubo_sdk.RobotState) -> List[float]
324 *
325 * @par Lua函数原型
326 * getBaseForce() -> table
327 *
328 * @par JSON-RPC请求示例
329 * {"jsonrpc":"2.0","method":"rob1.RobotState.getBaseForce","params":[],"id":1}
330 *
331 * @par JSON-RPC响应示例
332 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
333 *
334 */
335 std::vector<double> getBaseForce();
336
337 /**
338 * 获取上一次发送的TCP目标位姿
339 *
340 * @return TCP目标位姿
341 *
342 * @throws arcs::common_interface::AuboException
343 *
344 * @par Python函数原型
345 * getTcpTargetPose(self: pyaubo_sdk.RobotState) -> List[float]
346 *
347 * @par Lua函数原型
348 * getTcpTargetPose() -> table
349 *
350 * @par JSON-RPC请求示例
351 * {"jsonrpc":"2.0","method":"rob1.RobotState.getTcpTargetPose","params":[],"id":1}
352 *
353 * @par JSON-RPC响应示例
354 * {"id":1,"jsonrpc":"2.0","result":[0.41777829240862013,-0.13250000000000012,0.2092832117232601,3.1415812372223217,0.0,1.5707963267948963]}
355 *
356 */
357 std::vector<double> getTcpTargetPose();
358
359 /**
360 * 获取TCP目标速度
361 *
362 * @return TCP目标速度
363 *
364 * @throws arcs::common_interface::AuboException
365 *
366 * @par Python函数原型
367 * getTcpTargetSpeed(self: pyaubo_sdk.RobotState) -> List[float]
368 *
369 * @par Lua函数原型
370 * getTcpTargetSpeed() -> table
371 *
372 * @par JSON-RPC请求示例
373 * {"jsonrpc":"2.0","method":"rob1.RobotState.getTcpTargetSpeed","params":[],"id":1}
374 *
375 * @par JSON-RPC响应示例
376 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
377 *
378 */
379 std::vector<double> getTcpTargetSpeed();
380
381 /**
382 * 获取TCP目标力/力矩
383 *
384 * @return TCP目标力/力矩
385 *
386 * @throws arcs::common_interface::AuboException
387 *
388 * @par Python函数原型
389 * getTcpTargetForce(self: pyaubo_sdk.RobotState) -> List[float]
390 *
391 * @par Lua函数原型
392 * getTcpTargetForce() -> table
393 *
394 * @par JSON-RPC请求示例
395 * {"jsonrpc":"2.0","method":"rob1.RobotState.getTcpTargetForce","params":[],"id":1}
396 *
397 * @par JSON-RPC响应示例
398 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
399 *
400 */
401 std::vector<double> getTcpTargetForce();
402
403 /**
404 * 获取机械臂关节标志
405 *
406 * @return 机械臂关节标志
407 *
408 * @throws arcs::common_interface::AuboException
409 *
410 * @par Python函数原型
411 * getJointState(self: pyaubo_sdk.RobotState) ->
412 * List[arcs::common_interface::JointStateType]
413 *
414 * @par Lua函数原型
415 * getJointState() -> table
416 *
417 * @par JSON-RPC请求示例
418 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointState","params":[],"id":1}
419 *
420 * @par JSON-RPC响应示例
421 * {"id":1,"jsonrpc":"2.0","result":["Running","Running","Running","Running","Running","Running"]}
422 *
423 */
424 std::vector<JointStateType> getJointState();
425
426 /**
427 * 获取关节的伺服状态
428 *
429 * @return 关节的伺服状态
430 *
431 * @throws arcs::common_interface::AuboException
432 *
433 * @par Python函数原型
434 * getJointServoMode(self: pyaubo_sdk.RobotState) ->
435 * List[arcs::common_interface::JointServoModeType]
436 *
437 * @par Lua函数原型
438 * getJointServoMode() -> table
439 *
440 * @par JSON-RPC请求示例
441 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointServoMode","params":[],"id":1}
442 *
443 * @par JSON-RPC响应示例
444 * {"id":1,"jsonrpc":"2.0","result":["Position","Position","Position","Position","Position","Position"]}
445 *
446 */
447 std::vector<JointServoModeType> getJointServoMode();
448
449 /**
450 * 获取机械臂关节角度
451 *
452 * @return 机械臂关节角度
453 *
454 * @throws arcs::common_interface::AuboException
455 *
456 * @par Python函数原型
457 * getJointPositions(self: pyaubo_sdk.RobotState) -> List[float]
458 *
459 * @par Lua函数原型
460 * getJointPositions() -> table
461 *
462 * @par JSON-RPC请求示例
463 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointPositions","params":[],"id":1}
464 *
465 * @par JSON-RPC响应示例
466 * {"id":1,"jsonrpc":"2.0","result":[0.0,-0.26199241371495835,1.7418102574563423,0.4330197667082982,1.5707963267948966,0.0]}
467 *
468 */
469 std::vector<double> getJointPositions();
470
471 /**
472 * 获取机械臂历史关节角度
473 *
474 * @param steps
475 * @return
476 */
477 std::vector<double> getJointPositionsHistory(int steps);
478
479 /**
480 * 获取机械臂关节速度
481 *
482 * @return 机械臂关节速度
483 *
484 * @throws arcs::common_interface::AuboException
485 *
486 * @par Python函数原型
487 * getJointSpeeds(self: pyaubo_sdk.RobotState) -> List[float]
488 *
489 * @par Lua函数原型
490 * getJointSpeeds() -> table
491 *
492 * @par JSON-RPC请求示例
493 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointSpeeds","params":[],"id":1}
494 *
495 * @par JSON-RPC响应示例
496 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
497 *
498 */
499 std::vector<double> getJointSpeeds();
500
501 /**
502 * 获取机械臂关节加速度
503 *
504 * @return 机械臂关节加速度
505 *
506 * @throws arcs::common_interface::AuboException
507 *
508 * @par Python函数原型
509 * getJointAccelerations(self: pyaubo_sdk.RobotState) -> List[float]
510 *
511 * @par Lua函数原型
512 * getJointAccelerations() -> table
513 *
514 * @par JSON-RPC请求示例
515 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointAccelerations","params":[],"id":1}
516 *
517 * @par JSON-RPC响应示例
518 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
519 *
520 */
521 std::vector<double> getJointAccelerations();
522
523 /**
524 * 获取机械臂关节力矩
525 *
526 * @return 机械臂关节力矩
527 *
528 * @throws arcs::common_interface::AuboException
529 *
530 * @par Python函数原型
531 * getJointTorqueSensors(self: pyaubo_sdk.RobotState) -> List[float]
532 *
533 * @par Lua函数原型
534 * getJointTorqueSensors() -> table
535 *
536 * @par JSON-RPC请求示例
537 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointTorqueSensors","params":[],"id":1}
538 *
539 * @par JSON-RPC响应示例
540 * {"id":1,"jsonrpc":"2.0","result":[0.0,6275.367736816406,-7704.2816162109375,3586.9766235351563,503.0364990234375,1506.0882568359375]}
541 *
542 */
543 std::vector<double> getJointTorqueSensors();
544
545 /**
546 * 获取机械臂关节接触力矩(外力距)
547 *
548 * @return 机械臂关节接触力矩
549 *
550 * @throws arcs::common_interface::AuboException
551 *
552 * @par Python函数原型
553 * getJointContactTorques(self: pyaubo_sdk.RobotState) -> List[float]
554 *
555 * @par Lua函数原型
556 * getJointContactTorques() -> table
557 *
558 * @par JSON-RPC请求示例
559 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointContactTorques","params":[],"id":1}
560 *
561 * @par JSON-RPC响应示例
562 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
563 */
564 std::vector<double> getJointContactTorques();
565
566 /**
567 * 获取底座力传感器读数
568 *
569 * @return 底座力传感器读数
570 *
571 * @throws arcs::common_interface::AuboException
572 *
573 * @par Python函数原型
574 * getBaseForceSensor(self: pyaubo_sdk.RobotState) -> List[float]
575 *
576 * @par Lua函数原型
577 * getBaseForceSensor() -> table
578 *
579 * @par JSON-RPC请求示例
580 * {"jsonrpc":"2.0","method":"rob1.RobotState.getBaseForceSensor","params":[],"id":1}
581 *
582 * @par JSON-RPC响应示例
583 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
584 *
585 */
586 std::vector<double> getBaseForceSensor();
587
588 /**
589 * 获取TCP力传感器读数
590 *
591 * @return TCP力传感器读数
592 *
593 * @throws arcs::common_interface::AuboException
594 *
595 * @par Python函数原型
596 * getTcpForceSensors(self: pyaubo_sdk.RobotState) -> List[float]
597 *
598 * @par Lua函数原型
599 * getTcpForceSensors() -> table
600 *
601 * @par JSON-RPC请求示例
602 * {"jsonrpc":"2.0","method":"rob1.RobotState.getTcpForceSensors","params":[],"id":1}
603 *
604 * @par JSON-RPC响应示例
605 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
606 *
607 */
608 std::vector<double> getTcpForceSensors();
609
610 /**
611 * 获取机械臂关节电流
612 *
613 * @return 机械臂关节电流
614 *
615 * @throws arcs::common_interface::AuboException
616 *
617 * @par Python函数原型
618 * getJointCurrents(self: pyaubo_sdk.RobotState) -> List[float]
619 *
620 * @par Lua函数原型
621 * getJointCurrents() -> table
622 *
623 * @par JSON-RPC请求示例
624 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointCurrents","params":[],"id":1}
625 *
626 * @par JSON-RPC响应示例
627 * {"id":1,"jsonrpc":"2.0","result":[0.0,1.25885009765625,-1.5289306640625,0.71868896484375,0.1007080078125,0.3021240234375]}
628 *
629 */
630 std::vector<double> getJointCurrents();
631
632 /**
633 * 获取机械臂关节电压
634 *
635 * @return 机械臂关节电压
636 *
637 * @throws arcs::common_interface::AuboException
638 *
639 * @par Python函数原型
640 * getJointVoltages(self: pyaubo_sdk.RobotState) -> List[float]
641 *
642 * @par Lua函数原型
643 * getJointVoltages() -> table
644 *
645 * @par JSON-RPC请求示例
646 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointVoltages","params":[],"id":1}
647 *
648 * @par JSON-RPC响应示例
649 * {"id":1,"jsonrpc":"2.0","result":[2.0,2.5,3.0,2.0,2.5,2.0]}
650 *
651 */
652 std::vector<double> getJointVoltages();
653
654 /**
655 * 获取机械臂关节温度
656 *
657 * @return 机械臂关节温度
658 *
659 * @throws arcs::common_interface::AuboException
660 *
661 * @par Python函数原型
662 * getJointTemperatures(self: pyaubo_sdk.RobotState) -> List[float]
663 *
664 * @par Lua函数原型
665 * getJointTemperatures() -> table
666 *
667 * @par JSON-RPC请求示例
668 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointTemperatures","params":[],"id":1}
669 *
670 * @par JSON-RPC响应示例
671 * {"id":1,"jsonrpc":"2.0","result":[38.0,38.0,38.0,39.0,38.0,39.0]}
672 *
673 */
674 std::vector<double> getJointTemperatures();
675
676 /**
677 * 获取关节全球唯一ID
678 *
679 * @return 关节全球唯一ID
680 *
681 * @throws arcs::common_interface::AuboException
682 *
683 * @par Python函数原型
684 * getJointUniqueIds(self: pyaubo_sdk.RobotState) -> List[str]
685 *
686 * @par Lua函数原型
687 * getJointUniqueIds() -> table
688 *
689 * @par JSON-RPC请求示例
690 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointUniqueIds","params":[],"id":1}
691 *
692 * @par JSON-RPC响应示例
693 * {"id":1,"jsonrpc":"2.0","result":["00800020ffffffff31405153","00800020ffffffff3e3f5153","00800020ffffffff414b5153","00800020ffffffff31065153","00800020ffffffff41535153","00800020ffffffff41545153"]}
694 *
695 */
696 std::vector<std::string> getJointUniqueIds();
697
698 /**
699 * 获取关节固件版本
700 *
701 * @return 关节固件版本
702 *
703 * @throws arcs::common_interface::AuboException
704 *
705 * @par Python函数原型
706 * getJointFirmwareVersions(self: pyaubo_sdk.RobotState) -> List[int]
707 *
708 * @par Lua函数原型
709 * getJointFirmwareVersions() -> table
710 *
711 * @par JSON-RPC请求示例
712 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointFirmwareVersions","params":[],"id":1}
713 *
714 * @par JSON-RPC响应示例
715 * {"id":1,"jsonrpc":"2.0","result":[1000010,1000010,1000010,1000010,1000010,1000010]}
716 *
717 */
718 std::vector<int> getJointFirmwareVersions();
719
720 /**
721 * 获取关节硬件版本
722 *
723 * @return 关节硬件版本
724 *
725 * @throws arcs::common_interface::AuboException
726 *
727 * @par Python函数原型
728 * getJointHardwareVersions(self: pyaubo_sdk.RobotState) -> List[int]
729 *
730 * @par Lua函数原型
731 * getJointHardwareVersions() -> table
732 *
733 * @par JSON-RPC请求示例
734 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointHardwareVersions","params":[],"id":1}
735 *
736 * @par JSON-RPC响应示例
737 * {"id":1,"jsonrpc":"2.0","result":[1000000,1000000,1004000,1004000,1004000,1004000]}
738 *
739 */
740 std::vector<int> getJointHardwareVersions();
741
742 /**
743 * 获取MasterBoard全球唯一ID
744 *
745 * @return MasterBoard全球唯一ID
746 *
747 * @throws arcs::common_interface::AuboException
748 *
749 * @par Python函数原型
750 * getMasterBoardUniqueId(self: pyaubo_sdk.RobotState) -> str
751 *
752 * @par Lua函数原型
753 * getMasterBoardUniqueId() -> string
754 *
755 * @par JSON-RPC请求示例
756 * {"jsonrpc":"2.0","method":"rob1.RobotState.getMasterBoardUniqueId","params":[],"id":1}
757 *
758 * @par JSON-RPC响应示例
759 * {"id":1,"jsonrpc":"2.0","result":"001e0044510f343037323637"}
760 *
761 */
763
764 /**
765 * 获取MasterBoard固件版本
766 *
767 * @return MasterBoard固件版本
768 *
769 * @throws arcs::common_interface::AuboException
770 *
771 * @par Python函数原型
772 * getMasterBoardFirmwareVersion(self: pyaubo_sdk.RobotState) -> int
773 *
774 * @par Lua函数原型
775 * getMasterBoardFirmwareVersion() -> number
776 *
777 * @par JSON-RPC请求示例
778 * {"jsonrpc":"2.0","method":"rob1.RobotState.getMasterBoardFirmwareVersion","params":[],"id":1}
779 *
780 * @par JSON-RPC响应示例
781 * {"id":1,"jsonrpc":"2.0","result":1000004}
782 *
783 */
785
786 /**
787 * 获取MasterBoard硬件版本
788 *
789 * @return MasterBoard硬件版本
790 *
791 * @throws arcs::common_interface::AuboException
792 *
793 * @par Python函数原型
794 * getMasterBoardHardwareVersion(self: pyaubo_sdk.RobotState) -> int
795 *
796 * @par Lua函数原型
797 * getMasterBoardHardwareVersion() -> number
798 *
799 * @par JSON-RPC请求示例
800 * {"jsonrpc":"2.0","method":"rob1.RobotState.getMasterBoardHardwareVersion","params":[],"id":1}
801 *
802 * @par JSON-RPC响应示例
803 * {"id":1,"jsonrpc":"2.0","result":1000000}
804 *
805 */
807
808 /**
809 * 获取SlaveBoard全球唯一ID
810 *
811 * @return SlaveBoard全球唯一ID
812 *
813 * @throws arcs::common_interface::AuboException
814 *
815 * @par Python函数原型
816 * getSlaveBoardUniqueId(self: pyaubo_sdk.RobotState) -> str
817 *
818 * @par Lua函数原型
819 * getSlaveBoardUniqueId() -> string
820 *
821 * @par JSON-RPC请求示例
822 * {"jsonrpc":"2.0","method":"rob1.RobotState.getSlaveBoardUniqueId","params":[],"id":1}
823 *
824 * @par JSON-RPC响应示例
825 * {"id":1,"jsonrpc":"2.0","result":"736572630080000000000000"}
826 *
827 */
829
830 /**
831 * 获取SlaveBoard固件版本
832 *
833 * @return SlaveBoard固件版本
834 *
835 * @throws arcs::common_interface::AuboException
836 *
837 * @par Python函数原型
838 * getSlaveBoardFirmwareVersion(self: pyaubo_sdk.RobotState) -> int
839 *
840 * @par Lua函数原型
841 * getSlaveBoardFirmwareVersion() -> number
842 *
843 * @par JSON-RPC请求示例
844 * {"jsonrpc":"2.0","method":"rob1.RobotState.getSlaveBoardFirmwareVersion","params":[],"id":1}
845 *
846 * @par JSON-RPC响应示例
847 * {"id":1,"jsonrpc":"2.0","result":0}
848 *
849 */
851
852 /**
853 * 获取SlaveBoard硬件版本
854 *
855 * @return SlaveBoard硬件版本
856 *
857 * @throws arcs::common_interface::AuboException
858 *
859 * @par Python函数原型
860 * getSlaveBoardHardwareVersion(self: pyaubo_sdk.RobotState) -> int
861 *
862 * @par Lua函数原型
863 * getSlaveBoardHardwareVersion() -> number
864 *
865 * @par JSON-RPC请求示例
866 * {"jsonrpc":"2.0","method":"rob1.RobotState.getSlaveBoardHardwareVersion","params":[],"id":1}
867 *
868 * @par JSON-RPC响应示例
869 * {"id":1,"jsonrpc":"2.0","result":6030098}
870 *
871 */
873
874 /**
875 * 获取工具端全球唯一ID
876 *
877 * @return 工具端全球唯一ID
878 *
879 * @throws arcs::common_interface::AuboException
880 *
881 * @par Python函数原型
882 * getToolUniqueId(self: pyaubo_sdk.RobotState) -> str
883 *
884 * @par Lua函数原型
885 * getToolUniqueId() -> string
886 *
887 * @par JSON-RPC请求示例
888 * {"jsonrpc":"2.0","method":"rob1.RobotState.getToolUniqueId","params":[],"id":1}
889 *
890 * @par JSON-RPC响应示例
891 * {"id":1,"jsonrpc":"2.0","result":"397d4e5331541252314d3042"}
892 *
893 */
894 std::string getToolUniqueId();
895
896 /**
897 * 获取工具端固件版本
898 *
899 * @return 工具端固件版本
900 *
901 * @throws arcs::common_interface::AuboException
902 *
903 * @par Python函数原型
904 * getToolFirmwareVersion(self: pyaubo_sdk.RobotState) -> int
905 *
906 * @par Lua函数原型
907 * getToolFirmwareVersion() -> number
908 *
909 * @par JSON-RPC请求示例
910 * {"jsonrpc":"2.0","method":"rob1.RobotState.getToolFirmwareVersion","params":[],"id":1}
911 *
912 * @par JSON-RPC响应示例
913 * {"id":1,"jsonrpc":"2.0","result":1001003}
914 *
915 */
917
918 /**
919 * 获取工具端硬件版本
920 *
921 * @return 工具端硬件版本
922 *
923 * @throws arcs::common_interface::AuboException
924 *
925 * @par Python函数原型
926 * getToolHardwareVersion(self: pyaubo_sdk.RobotState) -> int
927 *
928 * @par Lua函数原型
929 * getToolHardwareVersion() -> number
930 *
931 * @par JSON-RPC请求示例
932 * {"jsonrpc":"2.0","method":"rob1.RobotState.getToolHardwareVersion","params":[],"id":1}
933 *
934 * @par JSON-RPC响应示例
935 * {"id":1,"jsonrpc":"2.0","result":1000000}
936 *
937 */
939
940 /**
941 * 获取末端通信模式
942 *
943 * @return 末端通信模式
944 * 0: 表示无串口
945 * 1: 表示只有串口
946 * 2: 表示带力传感器和串口
947 *
948 * @throws arcs::common_interface::AuboException
949 *
950 * @par Python函数原型
951 * getToolCommMode(self: pyaubo_sdk.RobotState) -> int
952 *
953 * @par Lua函数原型
954 * getToolCommMode() -> number
955 *
956 * @par JSON-RPC请求示例
957 * {"jsonrpc":"2.0","method":"rob1.RobotState.getToolCommMode","params":[],"id":1}
958 *
959 * @par JSON-RPC响应示例
960 * {"id":1,"jsonrpc":"2.0","result":1}
961 *
962 */
964
965 /**
966 * 获取底座全球唯一ID
967 *
968 * @return 底座全球唯一ID
969 *
970 * @throws arcs::common_interface::AuboException
971 *
972 * @par Python函数原型
973 * getPedestalUniqueId(self: pyaubo_sdk.RobotState) -> str
974 *
975 * @par Lua函数原型
976 * getPedestalUniqueId() -> string
977 *
978 * @par JSON-RPC请求示例
979 * {"jsonrpc":"2.0","method":"rob1.RobotState.getPedestalUniqueId","params":[],"id":1}
980 *
981 * @par JSON-RPC响应示例
982 * {"id":1,"jsonrpc":"2.0","result":"205257533543065248544339"}
983 *
984 */
985 std::string getPedestalUniqueId();
986
987 /**
988 * 获取底座固件版本
989 *
990 * @return 底座固件版本
991 *
992 * @throws arcs::common_interface::AuboException
993 *
994 * @par Python函数原型
995 * getPedestalFirmwareVersion(self: pyaubo_sdk.RobotState) -> int
996 *
997 * @par Lua函数原型
998 * getPedestalFirmwareVersion() -> number
999 *
1000 * @par JSON-RPC请求示例
1001 * {"jsonrpc":"2.0","method":"rob1.RobotState.getPedestalFirmwareVersion","params":[],"id":1}
1002 *
1003 * @par JSON-RPC响应示例
1004 * {"id":1,"jsonrpc":"2.0","result":1000004}
1005 *
1006 */
1008
1009 /**
1010 * 获取底座硬件版本
1011 *
1012 * @return 底座硬件版本
1013 *
1014 * @throws arcs::common_interface::AuboException
1015 *
1016 * @par Python函数原型
1017 * getPedestalHardwareVersion(self: pyaubo_sdk.RobotState) -> int
1018 *
1019 * @par Lua函数原型
1020 * getPedestalHardwareVersion() -> number
1021 *
1022 * @par JSON-RPC请求示例
1023 * {"jsonrpc":"2.0","method":"rob1.RobotState.getPedestalHardwareVersion","params":[],"id":1}
1024 *
1025 * @par JSON-RPC响应示例
1026 * {"id":1,"jsonrpc":"2.0","result":1007000}
1027 *
1028 */
1030
1031 /**
1032 * 获取机械臂关节目标位置角度
1033 *
1034 * @return 机械臂关节目标位置角度
1035 *
1036 * @throws arcs::common_interface::AuboException
1037 *
1038 * @par Python函数原型
1039 * getJointTargetPositions(self: pyaubo_sdk.RobotState) -> List[float]
1040 *
1041 * @par Lua函数原型
1042 * getJointTargetPositions() -> table
1043 *
1044 * @par JSON-RPC请求示例
1045 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointTargetPositions","params":[],"id":1}
1046 *
1047 * @par JSON-RPC响应示例
1048 * {"id":1,"jsonrpc":"2.0","result":[0.0,-0.2619944355631239,1.7418124015308052,0.4330219266665035,1.5707963267948966,0.0]}
1049 *
1050 */
1051 std::vector<double> getJointTargetPositions();
1052
1053 /**
1054 * 获取机械臂关节目标速度
1055 *
1056 * @return 机械臂关节目标速度
1057 *
1058 * @throws arcs::common_interface::AuboException
1059 *
1060 * @par Python函数原型
1061 * getJointTargetSpeeds(self: pyaubo_sdk.RobotState) -> List[float]
1062 *
1063 * @par Lua函数原型
1064 * getJointTargetSpeeds() -> table
1065 *
1066 * @par JSON-RPC请求示例
1067 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointTargetSpeeds","params":[],"id":1}
1068 *
1069 * @par JSON-RPC响应示例
1070 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.00024227101509399773,0.0016521760307419697,0.0026521060731088397,0.0,0.0]}
1071 *
1072 */
1073 std::vector<double> getJointTargetSpeeds();
1074
1075 /**
1076 * 获取机械臂关节目标加速度
1077 *
1078 * @return 机械臂关节目标加速度
1079 *
1080 * @throws arcs::common_interface::AuboException
1081 *
1082 * @par Python函数原型
1083 * getJointTargetAccelerations(self: pyaubo_sdk.RobotState) -> List[float]
1084 *
1085 * @par Lua函数原型
1086 * getJointTargetAccelerations() -> table
1087 *
1088 * @par JSON-RPC请求示例
1089 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointTargetAccelerations","params":[],"id":1}
1090 *
1091 * @par JSON-RPC响应示例
1092 * {"id":1,"jsonrpc":"2.0","result":[0.0,-0.6737932929246071,-12.610253240108449,0.0,0.0,0.0]}
1093 *
1094 */
1095 std::vector<double> getJointTargetAccelerations();
1096
1097 /**
1098 * 获取机械臂关节目标力矩
1099 *
1100 * @return 机械臂关节目标力矩
1101 *
1102 * @throws arcs::common_interface::AuboException
1103 *
1104 * @par Python函数原型
1105 * getJointTargetTorques(self: pyaubo_sdk.RobotState) -> List[float]
1106 *
1107 * @par Lua函数原型
1108 * getJointTargetTorques() -> table
1109 *
1110 * @par JSON-RPC请求示例
1111 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointTargetTorques","params":[],"id":1}
1112 *
1113 * @par JSON-RPC响应示例
1114 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
1115 *
1116 */
1117 std::vector<double> getJointTargetTorques();
1118
1119 /**
1120 * 获取机械臂关节目标电流
1121 *
1122 * @return 机械臂关节目标电流
1123 *
1124 * @throws arcs::common_interface::AuboException
1125 *
1126 * @par Python函数原型
1127 * getJointTargetCurrents(self: pyaubo_sdk.RobotState) -> List[float]
1128 *
1129 * @par Lua函数原型
1130 * getJointTargetCurrents() -> table
1131 *
1132 * @par JSON-RPC请求示例
1133 * {"jsonrpc":"2.0","method":"rob1.RobotState.getJointTargetCurrents","params":[],"id":1}
1134 *
1135 * @par JSON-RPC响应示例
1136 * {"id":1,"jsonrpc":"2.0","result":[0.0,0.0,0.0,0.0,0.0,0.0]}
1137 *
1138 */
1139 std::vector<double> getJointTargetCurrents();
1140
1141 /**
1142 * 获取控制柜温度
1143 *
1144 * @return 控制柜温度
1145 *
1146 * @throws arcs::common_interface::AuboException
1147 *
1148 * @par Python函数原型
1149 * getControlBoxTemperature(self: pyaubo_sdk.RobotState) -> float
1150 *
1151 * @par Lua函数原型
1152 * getControlBoxTemperature() -> number
1153 *
1154 * @par JSON-RPC请求示例
1155 * {"jsonrpc":"2.0","method":"rob1.RobotState.getControlBoxTemperature","params":[],"id":1}
1156 *
1157 * @par JSON-RPC响应示例
1158 * {"id":1,"jsonrpc":"2.0","result":25.0}
1159 *
1160 */
1162
1163 /**
1164 * 获取控制柜湿度
1165 *
1166 * @return 控制柜湿度
1167 *
1168 * @throws arcs::common_interface::AuboException
1169 *
1170 * @par Python函数原型
1171 * getControlBoxHumidity(self: pyaubo_sdk.RobotState) -> float
1172 *
1173 * @par Lua函数原型
1174 * getControlBoxHumidity() -> number
1175 *
1176 * @par JSON-RPC请求示例
1177 * {"jsonrpc":"2.0","method":"rob1.RobotState.getControlBoxHumidity","params":[],"id":1}
1178 *
1179 * @par JSON-RPC响应示例
1180 * {"id":1,"jsonrpc":"2.0","result":20.0}
1181 *
1182 */
1184
1185 /**
1186 * 获取母线电压
1187 *
1188 * @return 母线电压
1189 *
1190 * @throws arcs::common_interface::AuboException
1191 *
1192 * @par Python函数原型
1193 * getMainVoltage(self: pyaubo_sdk.RobotState) -> float
1194 *
1195 * @par Lua函数原型
1196 * getMainVoltage() -> number
1197 *
1198 * @par JSON-RPC请求示例
1199 * {"jsonrpc":"2.0","method":"rob1.RobotState.getMainVoltage","params":[],"id":1}
1200 *
1201 * @par JSON-RPC响应示例
1202 * {"id":1,"jsonrpc":"2.0","result":52.75}
1203 *
1204 */
1206
1207 /**
1208 * 获取母线电流
1209 *
1210 * @return 母线电流
1211 *
1212 * @throws arcs::common_interface::AuboException
1213 *
1214 * @par Python函数原型
1215 * getMainCurrent(self: pyaubo_sdk.RobotState) -> float
1216 *
1217 * @par Lua函数原型
1218 * getMainCurrent() -> number
1219 *
1220 * @par JSON-RPC请求示例
1221 * {"jsonrpc":"2.0","method":"rob1.RobotState.getMainCurrent","params":[],"id":1}
1222 *
1223 * @par JSON-RPC响应示例
1224 * {"id":1,"jsonrpc":"2.0","result":0.3204345703125}
1225 *
1226 */
1228
1229 /**
1230 * 获取机器人电压
1231 *
1232 * @return 机器人电压
1233 *
1234 * @throws arcs::common_interface::AuboException
1235 *
1236 * @par Python函数原型
1237 * getRobotVoltage(self: pyaubo_sdk.RobotState) -> float
1238 *
1239 * @par Lua函数原型
1240 * getRobotVoltage() -> number
1241 *
1242 * @par JSON-RPC请求示例
1243 * {"jsonrpc":"2.0","method":"rob1.RobotState.getRobotVoltage","params":[],"id":1}
1244 *
1245 * @par JSON-RPC响应示例
1246 * {"id":1,"jsonrpc":"2.0","result":52.75}
1247 *
1248 */
1250
1251 /**
1252 * 获取机器人电流
1253 *
1254 * @return 机器人电流
1255 *
1256 * @throws arcs::common_interface::AuboException
1257 *
1258 * @par Python函数原型
1259 * getRobotCurrent(self: pyaubo_sdk.RobotState) -> float
1260 *
1261 * @par Lua函数原型
1262 * getRobotCurrent() -> number
1263 *
1264 * @par JSON-RPC请求示例
1265 * {"jsonrpc":"2.0","method":"rob1.RobotState.getRobotCurrent","params":[],"id":1}
1266 *
1267 * @par JSON-RPC响应示例
1268 * {"id":1,"jsonrpc":"2.0","result":0.3204345703125}
1269 */
1271
1272 /**
1273 * 获取机器人缓速等级
1274 *
1275 * @return
1276 *
1277 * @throws arcs::common_interface::AuboException
1278 *
1279 * @par JSON-RPC请求示例
1280 * {"jsonrpc":"2.0","method":"rob1.RobotState.getSlowDownLevel","params":[],"id":1}
1281 *
1282 * @par JSON-RPC响应示例
1283 * {"id":1,"jsonrpc":"2.0","result":0}
1284 *
1285 */
1287
1288protected:
1289 void *d_;
1290};
1291using RobotStatePtr = std::shared_ptr<RobotState>;
1292
1293// clang-format off
1294#define RobotState_DECLARES \
1295 _FUNC(RobotState, 0, getRobotModeType) \
1296 _FUNC(RobotState, 0, getSafetyModeType) \
1297 _FUNC(RobotState, 0, isPowerOn) \
1298 _FUNC(RobotState, 0, isSteady) \
1299 _FUNC(RobotState, 0, isCollisionOccurred) \
1300 _FUNC(RobotState, 0, isWithinSafetyLimits) \
1301 _FUNC(RobotState, 0, getTcpPose) \
1302 _FUNC(RobotState, 0, getActualTcpOffset) \
1303 _FUNC(RobotState, 0, getTargetTcpPose) \
1304 _FUNC(RobotState, 0, getToolPose) \
1305 _FUNC(RobotState, 0, getTcpSpeed) \
1306 _FUNC(RobotState, 0, getTcpForce) \
1307 _FUNC(RobotState, 0, getElbowPosistion) \
1308 _FUNC(RobotState, 0, getElbowVelocity) \
1309 _FUNC(RobotState, 0, getBaseForce) \
1310 _FUNC(RobotState, 0, getTcpTargetPose) \
1311 _FUNC(RobotState, 0, getTcpTargetSpeed) \
1312 _FUNC(RobotState, 0, getTcpTargetForce) \
1313 _FUNC(RobotState, 0, getJointState) \
1314 _FUNC(RobotState, 0, getJointServoMode) \
1315 _FUNC(RobotState, 0, getJointPositions) \
1316 _FUNC(RobotState, 1, getJointPositionsHistory, steps) \
1317 _FUNC(RobotState, 0, getJointSpeeds) \
1318 _FUNC(RobotState, 0, getJointAccelerations) \
1319 _FUNC(RobotState, 0, getJointTorqueSensors) \
1320 _FUNC(RobotState, 0, getJointContactTorques) \
1321 _FUNC(RobotState, 0, getBaseForceSensor) \
1322 _FUNC(RobotState, 0, getTcpForceSensors) \
1323 _FUNC(RobotState, 0, getJointCurrents) \
1324 _FUNC(RobotState, 0, getJointVoltages) \
1325 _FUNC(RobotState, 0, getJointTemperatures) \
1326 _FUNC(RobotState, 0, getJointUniqueIds) \
1327 _FUNC(RobotState, 0, getJointFirmwareVersions) \
1328 _FUNC(RobotState, 0, getJointHardwareVersions) \
1329 _FUNC(RobotState, 0, getMasterBoardUniqueId) \
1330 _FUNC(RobotState, 0, getMasterBoardFirmwareVersion) \
1331 _FUNC(RobotState, 0, getMasterBoardHardwareVersion) \
1332 _FUNC(RobotState, 0, getSlaveBoardUniqueId) \
1333 _FUNC(RobotState, 0, getSlaveBoardFirmwareVersion) \
1334 _FUNC(RobotState, 0, getSlaveBoardHardwareVersion) \
1335 _FUNC(RobotState, 0, getToolUniqueId) \
1336 _FUNC(RobotState, 0, getToolFirmwareVersion) \
1337 _FUNC(RobotState, 0, getToolHardwareVersion) \
1338 _FUNC(RobotState, 0, getToolCommMode) \
1339 _FUNC(RobotState, 0, getPedestalUniqueId) \
1340 _FUNC(RobotState, 0, getPedestalFirmwareVersion) \
1341 _FUNC(RobotState, 0, getPedestalHardwareVersion) \
1342 _FUNC(RobotState, 0, getJointTargetPositions) \
1343 _FUNC(RobotState, 0, getJointTargetSpeeds) \
1344 _FUNC(RobotState, 0, getJointTargetAccelerations) \
1345 _FUNC(RobotState, 0, getJointTargetTorques) \
1346 _FUNC(RobotState, 0, getJointTargetCurrents) \
1347 _FUNC(RobotState, 0, getControlBoxTemperature) \
1348 _FUNC(RobotState, 0, getControlBoxHumidity) \
1349 _FUNC(RobotState, 0, getMainVoltage) \
1350 _FUNC(RobotState, 0, getMainCurrent) \
1351 _FUNC(RobotState, 0, getRobotVoltage) \
1352 _FUNC(RobotState, 0, getRobotCurrent) \
1353 _FUNC(RobotState, 0, getSlowDownLevel)
1354// clang-format on
1355} // namespace common_interface
1356} // namespace arcs
1357#endif // AUBO_SDK_ROBOT_STATE_INTERFACE_H
std::string getToolUniqueId()
获取工具端全球唯一ID
int getToolFirmwareVersion()
获取工具端固件版本
std::vector< double > getJointTargetAccelerations()
获取机械臂关节目标加速度
std::vector< double > getJointTargetTorques()
获取机械臂关节目标力矩
std::vector< double > getJointTargetCurrents()
获取机械臂关节目标电流
std::vector< double > getTcpSpeed()
获取TCP速度
std::vector< JointServoModeType > getJointServoMode()
获取关节的伺服状态
int getSlowDownLevel()
获取机器人缓速等级
std::vector< double > getBaseForce()
获取基座力/力矩
std::vector< double > getTcpForce()
获取TCP的力/力矩
std::vector< double > getJointTargetPositions()
获取机械臂关节目标位置角度
std::vector< double > getJointSpeeds()
获取机械臂关节速度
bool isWithinSafetyLimits()
机器人是否已经在安全限制之内
std::vector< double > getJointTargetSpeeds()
获取机械臂关节目标速度
std::vector< double > getJointCurrents()
获取机械臂关节电流
int getPedestalFirmwareVersion()
获取底座固件版本
double getRobotVoltage()
获取机器人电压
std::vector< double > getTcpTargetPose()
获取上一次发送的TCP目标位姿
double getMainCurrent()
获取母线电流
std::vector< double > getJointPositionsHistory(int steps)
获取机械臂历史关节角度
SafetyModeType getSafetyModeType()
获取安全模式
double getControlBoxHumidity()
获取控制柜湿度
bool isSteady()
机器人是否已经停止下来
std::string getSlaveBoardUniqueId()
获取SlaveBoard全球唯一ID
bool isPowerOn()
获取机器人通电状态
std::vector< double > getActualTcpOffset()
获取当前的 TCP 偏移,也就是 getTcpPose 返回的 pose 用到的 TCP 偏移
int getToolHardwareVersion()
获取工具端硬件版本
bool isCollisionOccurred()
机器人是否发生了碰撞
std::vector< std::string > getJointUniqueIds()
获取关节全球唯一ID
std::vector< double > getTargetTcpPose()
获取下一个目标路点 注意与 getTcpTargetPose 的区别,此处定义存在歧义,命名需要优化
int getMasterBoardFirmwareVersion()
获取MasterBoard固件版本
std::vector< double > getToolPose()
获取工具端的位姿(不带TCP偏移)
int getSlaveBoardFirmwareVersion()
获取SlaveBoard固件版本
int getToolCommMode()
获取末端通信模式
std::string getPedestalUniqueId()
获取底座全球唯一ID
std::vector< JointStateType > getJointState()
获取机械臂关节标志
std::vector< double > getElbowPosistion()
获取肘部的位置
double getControlBoxTemperature()
获取控制柜温度
std::vector< double > getJointAccelerations()
获取机械臂关节加速度
std::vector< double > getElbowVelocity()
获取肘部速度
std::vector< double > getJointContactTorques()
获取机械臂关节接触力矩(外力距)
std::vector< double > getBaseForceSensor()
获取底座力传感器读数
std::vector< double > getTcpTargetSpeed()
获取TCP目标速度
double getRobotCurrent()
获取机器人电流
double getMainVoltage()
获取母线电压
std::vector< double > getTcpForceSensors()
获取TCP力传感器读数
std::vector< double > getJointTemperatures()
获取机械臂关节温度
int getPedestalHardwareVersion()
获取底座硬件版本
int getMasterBoardHardwareVersion()
获取MasterBoard硬件版本
std::vector< double > getJointPositions()
获取机械臂关节角度
std::vector< double > getTcpPose()
获取当前的TCP位姿,其 TCP 偏移可以通过 getActualTcpOffset 获取
std::vector< int > getJointHardwareVersions()
获取关节硬件版本
std::vector< double > getTcpTargetForce()
获取TCP目标力/力矩
int getSlaveBoardHardwareVersion()
获取SlaveBoard硬件版本
std::string getMasterBoardUniqueId()
获取MasterBoard全球唯一ID
RobotModeType getRobotModeType()
获取机器人的模式状态
std::vector< double > getJointTorqueSensors()
获取机械臂关节力矩
std::vector< double > getJointVoltages()
获取机械臂关节电压
std::vector< int > getJointFirmwareVersions()
获取关节固件版本
SafetyModeType
安全状态:
Definition type_def.h:450
std::shared_ptr< RobotState > RobotStatePtr
数据类型的定义