Coverage for abb_rws_client_python_rw6/rws/motionsystem.py: 100%
131 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-13 22:17 +0000
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-13 22:17 +0000
1# This file is AUTO-GENERATED by utils/generator/main.py
2# DO NOT EDIT MANUALLY — run the generator to regenerate.
3# Generator author: Clement RACINET
4"""
5RWS module: RobotWare Services → Motion System → Get Motion System
71:1 mirror of the ABB RobotWare 6 REST API.
8Each function maps to exactly one HTTP endpoint.
9No composed logic — see highlevel/ for wrappers.
10"""
12from __future__ import annotations
14import httpx
16from abb_rws_client_python_rw6.core.client import RWSClient
19async def get_motion_system(
20 client: RWSClient,
21 continue_on_err: str | None = None,
22 resource: str | None = None,
23) -> httpx.Response:
24 """
25 Get Motion System.
27 Route: ``GET /rw/motionsystem``
29 Args:
30 client: Open RWSClient instance.
31 continue_on_err: Query parameter. Optional.
32 resource: Query parameter. Optional.
34 Returns:
35 Raw HTTP response. Expected success: HTTP 200.
37 Raises:
38 RWSAuthenticationError: On HTTP 401.
39 RWSNotFoundError: On HTTP 404.
40 RWSHTTPError: On any other HTTP >= 400.
41 # ABB codes: BAD_REQUEST(400)
43 Example:
44 ```python
45 >>> await get_motion_system(client)
46 <Response [200]>
47 ```
48 """
49 return await client.get(
50 "/rw/motionsystem",
51 params={
52 k: v
53 for k, v in {"continue_on_err": continue_on_err, "resource": resource}.items()
54 if v is not None
55 },
56 )
59async def get_motion_system_action(
60 client: RWSClient,
61 action: str | None = None,
62) -> httpx.Response:
63 """
64 Get Motion System action.
66 Route: ``GET /rw/motionsystem``
68 Args:
69 client: Open RWSClient instance.
70 action: Query parameter. Optional.
72 Returns:
73 Raw HTTP response. Expected success: HTTP 200.
75 Raises:
76 RWSAuthenticationError: On HTTP 401.
77 RWSNotFoundError: On HTTP 404.
78 RWSHTTPError: On any other HTTP >= 400.
79 # ABB codes: BAD_REQUEST(400)
81 Example:
82 ```python
83 >>> await get_motion_system_action(client)
84 <Response [200]>
85 ```
86 """
87 return await client.get(
88 "/rw/motionsystem",
89 params={k: v for k, v in {"action": action}.items() if v is not None},
90 )
93async def set_mechunit_for_jogging(
94 client: RWSClient,
95 action: str | None = None,
96 mechunit_name: str | None = None,
97) -> httpx.Response:
98 """
99 Set Mechunit for jogging.
101 Route: ``POST /rw/motionsystem``
103 Args:
104 client: Open RWSClient instance.
105 action: Query parameter. Optional.
106 mechunit_name: Body parameter. Optional.
108 Returns:
109 Raw HTTP response. Expected success: HTTP 204.
111 Raises:
112 RWSAuthenticationError: On HTTP 401.
113 RWSNotFoundError: On HTTP 404.
114 RWSHTTPError: On any other HTTP >= 400.
115 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
117 Example:
118 ```python
119 >>> await set_mechunit_for_jogging(client)
120 <Response [204]>
121 ```
122 """
123 return await client.post(
124 "/rw/motionsystem",
125 params={k: v for k, v in {"action": action}.items() if v is not None},
126 data={k: v for k, v in {"mechunit_name": mechunit_name}.items() if v is not None},
127 )
130async def post_perform_jogging(
131 client: RWSClient,
132 action: str | None = None,
133 axis1: str | None = None,
134 axis2: str | None = None,
135 axis3: str | None = None,
136 axis4: str | None = None,
137 axis5: str | None = None,
138 axis6: str | None = None,
139 ccount: str | None = None,
140 inc_mode: str | None = None,
141) -> httpx.Response:
142 """
143 Perform Jogging.
145 Route: ``POST /rw/motionsystem``
147 Args:
148 client: Open RWSClient instance.
149 action: Query parameter. Optional.
150 axis1: Body parameter. Optional.
151 axis2: Body parameter. Optional.
152 axis3: Body parameter. Optional.
153 axis4: Body parameter. Optional.
154 axis5: Body parameter. Optional.
155 axis6: Body parameter. Optional.
156 ccount: Body parameter. Optional.
157 inc_mode: Body parameter. Optional.
159 Returns:
160 Raw HTTP response. Expected success: HTTP 204.
162 Raises:
163 RWSAuthenticationError: On HTTP 401.
164 RWSNotFoundError: On HTTP 404.
165 RWSHTTPError: On any other HTTP >= 400.
166 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
168 Example:
169 ```python
170 >>> await post_perform_jogging(client)
171 <Response [204]>
172 ```
173 """
174 return await client.post(
175 "/rw/motionsystem",
176 params={k: v for k, v in {"action": action}.items() if v is not None},
177 data={
178 k: v
179 for k, v in {
180 "axis1": axis1,
181 "axis2": axis2,
182 "axis3": axis3,
183 "axis4": axis4,
184 "axis5": axis5,
185 "axis6": axis6,
186 "ccount": ccount,
187 "inc_mode": inc_mode,
188 }.items()
189 if v is not None
190 },
191 )
194async def set_robo_target_position(
195 client: RWSClient,
196 action: str | None = None,
197 pos_x: str | None = None,
198 pos_y: str | None = None,
199 pos_z: str | None = None,
200 orient_q1: str | None = None,
201 orient_q2: str | None = None,
202 orient_q3: str | None = None,
203 orient_q4: str | None = None,
204 config_j1: str | None = None,
205 config_j4: str | None = None,
206 config_j6: str | None = None,
207) -> httpx.Response:
208 """
209 Set Robo Target Position.
211 Route: ``POST /rw/motionsystem``
213 Args:
214 client: Open RWSClient instance.
215 action: Query parameter. Optional.
216 pos_x: Body parameter. Optional.
217 pos_y: Body parameter. Optional.
218 pos_z: Body parameter. Optional.
219 orient_q1: Body parameter. Optional.
220 orient_q2: Body parameter. Optional.
221 orient_q3: Body parameter. Optional.
222 orient_q4: Body parameter. Optional.
223 config_j1: Body parameter. Optional.
224 config_j4: Body parameter. Optional.
225 config_j6: Body parameter. Optional.
227 Returns:
228 Raw HTTP response. Expected success: HTTP 204.
230 Raises:
231 RWSAuthenticationError: On HTTP 401.
232 RWSNotFoundError: On HTTP 404.
233 RWSHTTPError: On any other HTTP >= 400.
234 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
236 Example:
237 ```python
238 >>> await set_robo_target_position(client)
239 <Response [204]>
240 ```
241 """
242 return await client.post(
243 "/rw/motionsystem",
244 params={k: v for k, v in {"action": action}.items() if v is not None},
245 data={
246 k: v
247 for k, v in {
248 "pos_x": pos_x,
249 "pos_y": pos_y,
250 "pos_z": pos_z,
251 "orient_q1": orient_q1,
252 "orient_q2": orient_q2,
253 "orient_q3": orient_q3,
254 "orient_q4": orient_q4,
255 "config_j1": config_j1,
256 "config_j4": config_j4,
257 "config_j6": config_j6,
258 }.items()
259 if v is not None
260 },
261 )
264async def get_check_change_count(
265 client: RWSClient,
266 changecount: str | None = None,
267) -> httpx.Response:
268 """
269 Get check change count.
271 Route: ``GET /rw/motionsystem/checkchangecount``
273 Args:
274 client: Open RWSClient instance.
275 changecount: Query parameter. Optional.
277 Returns:
278 Raw HTTP response. Expected success: HTTP 200.
280 Raises:
281 RWSAuthenticationError: On HTTP 401.
282 RWSNotFoundError: On HTTP 404.
283 RWSHTTPError: On any other HTTP >= 400.
284 # ABB codes: BAD_REQUEST(400)
286 Example:
287 ```python
288 >>> await get_check_change_count(client)
289 <Response [200]>
290 ```
291 """
292 return await client.get(
293 "/rw/motionsystem/checkchangecount",
294 params={k: v for k, v in {"changecount": changecount}.items() if v is not None},
295 )
298async def subscribe_on_error_eventchange(
299 client: RWSClient,
300 identifier: str | None = None,
301 identifier_p: str | None = None,
302) -> httpx.Response:
303 """
304 Subscribe on Error EventChange.
306 Route: ``POST /subscription``
307 ABB constraints: On subscription an empty initial event will be generated. Not supported in
308 bootserver mode.
310 Args:
311 client: Open RWSClient instance.
312 identifier: Body parameter. Optional.
313 identifier_p: Body parameter. Optional.
315 Returns:
316 Raw HTTP response. Expected success: HTTP 201.
318 Raises:
319 RWSAuthenticationError: On HTTP 401.
320 RWSNotFoundError: On HTTP 404.
321 RWSHTTPError: On any other HTTP >= 400.
322 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
324 Example:
325 ```python
326 >>> await subscribe_on_error_eventchange(client)
327 <Response [201]>
328 ```
329 """
330 return await client.post(
331 "/subscription",
332 data={
333 k: v
334 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
335 if v is not None
336 },
337 )
340async def get_error_state(client: RWSClient) -> httpx.Response:
341 """
342 Get Error State.
344 Route: ``GET /rw/motionsystem/errorstate``
346 Args:
347 client: Open RWSClient instance.
349 Returns:
350 Raw HTTP response. Expected success: HTTP 200.
352 Raises:
353 RWSAuthenticationError: On HTTP 401.
354 RWSNotFoundError: On HTTP 404.
355 RWSHTTPError: On any other HTTP >= 400.
357 Example:
358 ```python
359 >>> await get_error_state(client)
360 <Response [200]>
361 ```
362 """
363 return await client.get("/rw/motionsystem/errorstate")
366async def get_motion_supervision(
367 client: RWSClient,
368 mechunit: str | None = None,
369) -> httpx.Response:
370 """
371 Get Motion Supervision.
373 Route: ``GET /rw/motionsystem/motionsupervision``
375 Args:
376 client: Open RWSClient instance.
377 mechunit: Query parameter. Optional.
379 Returns:
380 Raw HTTP response. Expected success: HTTP 200.
382 Raises:
383 RWSAuthenticationError: On HTTP 401.
384 RWSNotFoundError: On HTTP 404.
385 RWSHTTPError: On any other HTTP >= 400.
386 # ABB codes: BAD_REQUEST(400)
388 Example:
389 ```python
390 >>> await get_motion_supervision(client)
391 <Response [200]>
392 ```
393 """
394 return await client.get(
395 "/rw/motionsystem/motionsupervision",
396 params={k: v for k, v in {"mechunit": mechunit}.items() if v is not None},
397 )
400async def get_motion_supervision_actions(
401 client: RWSClient,
402 action: str | None = None,
403) -> httpx.Response:
404 """
405 Get Motion Supervision Actions.
407 Route: ``GET /rw/motionsystem/motionsupervision``
409 Args:
410 client: Open RWSClient instance.
411 action: Query parameter. Optional.
413 Returns:
414 Raw HTTP response. Expected success: HTTP 200.
416 Raises:
417 RWSAuthenticationError: On HTTP 401.
418 RWSNotFoundError: On HTTP 404.
419 RWSHTTPError: On any other HTTP >= 400.
420 # ABB codes: BAD_REQUEST(400)
422 Example:
423 ```python
424 >>> await get_motion_supervision_actions(client)
425 <Response [200]>
426 ```
427 """
428 return await client.get(
429 "/rw/motionsystem/motionsupervision",
430 params={k: v for k, v in {"action": action}.items() if v is not None},
431 )
434async def set_motion_supervision_mode_jog_supervision_mode(
435 client: RWSClient,
436 action: str | None = None,
437 mechunit_name: str | None = None,
438 mode: str | None = None,
439) -> httpx.Response:
440 """
441 Set Motion Supervision Mode (Jog Supervision Mode).
443 Route: ``POST /rw/motionsystem/motionsupervision``
445 Args:
446 client: Open RWSClient instance.
447 action: Query parameter. Optional.
448 mechunit_name: Body parameter. Optional.
449 mode: Body parameter. Optional.
451 Returns:
452 Raw HTTP response. Expected success: HTTP 204.
454 Raises:
455 RWSAuthenticationError: On HTTP 401.
456 RWSNotFoundError: On HTTP 404.
457 RWSHTTPError: On any other HTTP >= 400.
458 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
460 Example:
461 ```python
462 >>> await set_motion_supervision_mode_jog_supervision_mode(client)
463 <Response [204]>
464 ```
465 """
466 return await client.post(
467 "/rw/motionsystem/motionsupervision",
468 params={k: v for k, v in {"action": action}.items() if v is not None},
469 data={
470 k: v for k, v in {"mechunit_name": mechunit_name, "mode": mode}.items() if v is not None
471 },
472 )
475async def set_motion_supervision_sensitivity_jog_supervision_sensitivity(
476 client: RWSClient,
477 action: str | None = None,
478 mechunit_name: str | None = None,
479 sensitivity: str | None = None,
480) -> httpx.Response:
481 """
482 Set Motion Supervision Sensitivity (Jog Supervision Sensitivity).
484 Route: ``POST /rw/motionsystem/motionsupervision``
486 Args:
487 client: Open RWSClient instance.
488 action: Query parameter. Optional.
489 mechunit_name: Body parameter. Optional.
490 sensitivity: Body parameter. Optional.
492 Returns:
493 Raw HTTP response. Expected success: HTTP 204.
495 Raises:
496 RWSAuthenticationError: On HTTP 401.
497 RWSNotFoundError: On HTTP 404.
498 RWSHTTPError: On any other HTTP >= 400.
499 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
501 Example:
502 ```python
503 >>> await set_motion_supervision_sensitivity_jog_supervision_sensitivity(client)
504 <Response [204]>
505 ```
506 """
507 return await client.post(
508 "/rw/motionsystem/motionsupervision",
509 params={k: v for k, v in {"action": action}.items() if v is not None},
510 data={
511 k: v
512 for k, v in {"mechunit_name": mechunit_name, "sensitivity": sensitivity}.items()
513 if v is not None
514 },
515 )
518async def get_motion_supervision_collision_prediction_mode(
519 client: RWSClient,
520 action: str | None = None,
521) -> httpx.Response:
522 """
523 Get Motion Supervision Collision Prediction Mode.
525 Route: ``GET /rw/motionsystem/motionsupervision``
527 Args:
528 client: Open RWSClient instance.
529 action: Query parameter. Optional.
531 Returns:
532 Raw HTTP response. Expected success: HTTP 200.
534 Raises:
535 RWSAuthenticationError: On HTTP 401.
536 RWSNotFoundError: On HTTP 404.
537 RWSHTTPError: On any other HTTP >= 400.
538 # ABB codes: BAD_REQUEST(400)
540 Example:
541 ```python
542 >>> await get_motion_supervision_collision_prediction_mode(client)
543 <Response [200]>
544 ```
545 """
546 return await client.get(
547 "/rw/motionsystem/motionsupervision",
548 params={k: v for k, v in {"action": action}.items() if v is not None},
549 )
552async def set_motion_supervision_collision_prediction_mode(
553 client: RWSClient,
554 action: str | None = None,
555 mode: str | None = None,
556) -> httpx.Response:
557 """
558 Set Motion Supervision Collision Prediction Mode.
560 Route: ``POST /rw/motionsystem/motionsupervision``
562 Args:
563 client: Open RWSClient instance.
564 action: Query parameter. Optional.
565 mode: Body parameter. Optional.
567 Returns:
568 Raw HTTP response. Expected success: HTTP 204.
570 Raises:
571 RWSAuthenticationError: On HTTP 401.
572 RWSNotFoundError: On HTTP 404.
573 RWSHTTPError: On any other HTTP >= 400.
574 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
576 Example:
577 ```python
578 >>> await set_motion_supervision_collision_prediction_mode(client)
579 <Response [204]>
580 ```
581 """
582 return await client.post(
583 "/rw/motionsystem/motionsupervision",
584 params={k: v for k, v in {"action": action}.items() if v is not None},
585 data={k: v for k, v in {"mode": mode}.items() if v is not None},
586 )
589async def get_path_supervision(
590 client: RWSClient,
591 mechunit: str | None = None,
592) -> httpx.Response:
593 """
594 Get Path Supervision.
596 Route: ``GET /rw/motionsystem/pathsupervision``
598 Args:
599 client: Open RWSClient instance.
600 mechunit: Query parameter. Optional.
602 Returns:
603 Raw HTTP response. Expected success: HTTP 200.
605 Raises:
606 RWSAuthenticationError: On HTTP 401.
607 RWSNotFoundError: On HTTP 404.
608 RWSHTTPError: On any other HTTP >= 400.
609 # ABB codes: BAD_REQUEST(400)
611 Example:
612 ```python
613 >>> await get_path_supervision(client)
614 <Response [200]>
615 ```
616 """
617 return await client.get(
618 "/rw/motionsystem/pathsupervision",
619 params={k: v for k, v in {"mechunit": mechunit}.items() if v is not None},
620 )
623async def get_path_supervision_actions(
624 client: RWSClient,
625 action: str | None = None,
626) -> httpx.Response:
627 """
628 Get Path Supervision Actions.
630 Route: ``GET /rw/motionsystem/pathsupervision``
632 Args:
633 client: Open RWSClient instance.
634 action: Query parameter. Optional.
636 Returns:
637 Raw HTTP response. Expected success: HTTP 200.
639 Raises:
640 RWSAuthenticationError: On HTTP 401.
641 RWSNotFoundError: On HTTP 404.
642 RWSHTTPError: On any other HTTP >= 400.
643 # ABB codes: BAD_REQUEST(400)
645 Example:
646 ```python
647 >>> await get_path_supervision_actions(client)
648 <Response [200]>
649 ```
650 """
651 return await client.get(
652 "/rw/motionsystem/pathsupervision",
653 params={k: v for k, v in {"action": action}.items() if v is not None},
654 )
657async def set_path_supervision_mode(
658 client: RWSClient,
659 action: str | None = None,
660 mechunit: str | None = None,
661 mode: str | None = None,
662) -> httpx.Response:
663 """
664 Set Path Supervision Mode.
666 Route: ``POST /rw/motionsystem/pathsupervision``
668 Args:
669 client: Open RWSClient instance.
670 action: Query parameter. Optional.
671 mechunit: Body parameter. Optional.
672 mode: Body parameter. Optional.
674 Returns:
675 Raw HTTP response. Expected success: HTTP 204.
677 Raises:
678 RWSAuthenticationError: On HTTP 401.
679 RWSNotFoundError: On HTTP 404.
680 RWSHTTPError: On any other HTTP >= 400.
681 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
683 Example:
684 ```python
685 >>> await set_path_supervision_mode(client)
686 <Response [204]>
687 ```
688 """
689 return await client.post(
690 "/rw/motionsystem/pathsupervision",
691 params={k: v for k, v in {"action": action}.items() if v is not None},
692 data={k: v for k, v in {"mechunit": mechunit, "mode": mode}.items() if v is not None},
693 )
696async def set_path_supervision_level(
697 client: RWSClient,
698 action: str | None = None,
699 mechunit: str | None = None,
700 level: str | None = None,
701) -> httpx.Response:
702 """
703 Set Path Supervision Level.
705 Route: ``POST /rw/motionsystem/pathsupervision``
707 Args:
708 client: Open RWSClient instance.
709 action: Query parameter. Optional.
710 mechunit: Body parameter. Optional.
711 level: Body parameter. Optional.
713 Returns:
714 Raw HTTP response. Expected success: HTTP 204.
716 Raises:
717 RWSAuthenticationError: On HTTP 401.
718 RWSNotFoundError: On HTTP 404.
719 RWSHTTPError: On any other HTTP >= 400.
720 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403)
722 Example:
723 ```python
724 >>> await set_path_supervision_level(client)
725 <Response [204]>
726 ```
727 """
728 return await client.post(
729 "/rw/motionsystem/pathsupervision",
730 params={k: v for k, v in {"action": action}.items() if v is not None},
731 data={k: v for k, v in {"mechunit": mechunit, "level": level}.items() if v is not None},
732 )
735async def get_non_motion_execution_mode(client: RWSClient) -> httpx.Response:
736 """
737 Get Non Motion Execution Mode.
739 Route: ``GET /rw/motionsystem/nonmotionexecution``
741 Args:
742 client: Open RWSClient instance.
744 Returns:
745 Raw HTTP response. Expected success: HTTP 200.
747 Raises:
748 RWSAuthenticationError: On HTTP 401.
749 RWSNotFoundError: On HTTP 404.
750 RWSHTTPError: On any other HTTP >= 400.
751 # ABB codes: BAD_REQUEST(400)
753 Example:
754 ```python
755 >>> await get_non_motion_execution_mode(client)
756 <Response [200]>
757 ```
758 """
759 return await client.get("/rw/motionsystem/nonmotionexecution")
762async def get_nonmotion_execution_actions(
763 client: RWSClient,
764 action: str | None = None,
765) -> httpx.Response:
766 """
767 Get NonMotion Execution Actions.
769 Route: ``GET /rw/motionsystem/nonmotionexecution``
771 Args:
772 client: Open RWSClient instance.
773 action: Query parameter. Optional.
775 Returns:
776 Raw HTTP response. Expected success: HTTP 200.
778 Raises:
779 RWSAuthenticationError: On HTTP 401.
780 RWSNotFoundError: On HTTP 404.
781 RWSHTTPError: On any other HTTP >= 400.
782 # ABB codes: BAD_REQUEST(400)
784 Example:
785 ```python
786 >>> await get_nonmotion_execution_actions(client)
787 <Response [200]>
788 ```
789 """
790 return await client.get(
791 "/rw/motionsystem/nonmotionexecution",
792 params={k: v for k, v in {"action": action}.items() if v is not None},
793 )
796async def set_nonmotion_execution_mode(
797 client: RWSClient,
798 action: str | None = None,
799 mode: str | None = None,
800) -> httpx.Response:
801 """
802 Set NonMotion Execution Mode.
804 Route: ``POST /rw/motionsystem/nonmotionexecution``
806 Args:
807 client: Open RWSClient instance.
808 action: Query parameter. Optional.
809 mode: Body parameter. Optional.
811 Returns:
812 Raw HTTP response. Expected success: HTTP 204.
814 Raises:
815 RWSAuthenticationError: On HTTP 401.
816 RWSNotFoundError: On HTTP 404.
817 RWSHTTPError: On any other HTTP >= 400.
818 # ABB codes: BAD_REQUEST (400), FORBIDDEN (403)
820 Example:
821 ```python
822 >>> await set_nonmotion_execution_mode(client)
823 <Response [204]>
824 ```
825 """
826 return await client.post(
827 "/rw/motionsystem/nonmotionexecution",
828 params={k: v for k, v in {"action": action}.items() if v is not None},
829 data={k: v for k, v in {"mode": mode}.items() if v is not None},
830 )
833async def get_mechunits(client: RWSClient) -> httpx.Response:
834 """
835 Get Mechunits.
837 Route: ``GET /rw/motionsystem/mechunits``
839 Args:
840 client: Open RWSClient instance.
842 Returns:
843 Raw HTTP response. Expected success: HTTP 200.
845 Raises:
846 RWSAuthenticationError: On HTTP 401.
847 RWSNotFoundError: On HTTP 404.
848 RWSHTTPError: On any other HTTP >= 400.
849 # ABB codes: BAD_REQUEST (400)
851 Example:
852 ```python
853 >>> await get_mechunits(client)
854 <Response [200]>
855 ```
856 """
857 return await client.get("/rw/motionsystem/mechunits")
860async def get_mechunit(
861 client: RWSClient,
862 mechunit: str,
863 continue_on_err: str | None = None,
864 resource: str | None = None,
865) -> httpx.Response:
866 """
867 Get Mechunit.
869 Route: ``GET /rw/motionsystem/mechunits/{mechunit}``
871 Args:
872 client: Open RWSClient instance.
873 mechunit: URL path parameter.
874 continue_on_err: Query parameter. Optional.
875 resource: Query parameter. Optional.
877 Returns:
878 Raw HTTP response. Expected success: HTTP 200.
880 Raises:
881 RWSAuthenticationError: On HTTP 401.
882 RWSNotFoundError: On HTTP 404.
883 RWSHTTPError: On any other HTTP >= 400.
884 # ABB codes: Not Found(404),BAD_REQUEST(400)
886 Example:
887 ```python
888 >>> await get_mechunit(client, "mechunit_value")
889 <Response [200]>
890 ```
891 """
892 return await client.get(
893 f"/rw/motionsystem/mechunits/{mechunit}",
894 params={
895 k: v
896 for k, v in {"continue_on_err": continue_on_err, "resource": resource}.items()
897 if v is not None
898 },
899 )
902async def get_mechunit_action(
903 client: RWSClient,
904 mechunit: str,
905 action: str | None = None,
906) -> httpx.Response:
907 """
908 Get Mechunit action.
910 Route: ``GET /rw/motionsystem/mechunits/{mechunit}``
912 Args:
913 client: Open RWSClient instance.
914 mechunit: URL path parameter.
915 action: Query parameter. Optional.
917 Returns:
918 Raw HTTP response. Expected success: HTTP 200.
920 Raises:
921 RWSAuthenticationError: On HTTP 401.
922 RWSNotFoundError: On HTTP 404.
923 RWSHTTPError: On any other HTTP >= 400.
924 # ABB codes: BAD_REQUEST(400)
926 Example:
927 ```python
928 >>> await get_mechunit_action(client, "mechunit_value")
929 <Response [200]>
930 ```
931 """
932 return await client.get(
933 f"/rw/motionsystem/mechunits/{mechunit}",
934 params={k: v for k, v in {"action": action}.items() if v is not None},
935 )
938async def set_mechunit(
939 client: RWSClient,
940 mechunit: str,
941 action: str | None = None,
942 continue_on_err: str | None = None,
943 tool: str | None = None,
944 wobj: str | None = None,
945 payload: str | None = None,
946 total_payload: str | None = None,
947 mode: str | None = None,
948 jog_mode: str | None = None,
949 coord_system: str | None = None,
950) -> httpx.Response:
951 """
952 Set Mechunit.
954 Route: ``POST /rw/motionsystem/mechunits/{mechunit}``
956 Args:
957 client: Open RWSClient instance.
958 mechunit: URL path parameter.
959 action: Query parameter. Optional.
960 continue_on_err: Query parameter. Optional.
961 tool: Body parameter. Optional.
962 wobj: Body parameter. Optional.
963 payload: Body parameter. Optional.
964 total_payload: Body parameter. Optional.
965 mode: Body parameter. Optional.
966 jog_mode: Body parameter. Optional.
967 coord_system: Body parameter. Optional.
969 Returns:
970 Raw HTTP response. Expected success: HTTP 204.
972 Raises:
973 RWSAuthenticationError: On HTTP 401.
974 RWSNotFoundError: On HTTP 404.
975 RWSHTTPError: On any other HTTP >= 400.
976 # ABB codes: BAD_REQUEST(400)
978 Example:
979 ```python
980 >>> await set_mechunit(client, "mechunit_value")
981 <Response [204]>
982 ```
983 """
984 return await client.post(
985 f"/rw/motionsystem/mechunits/{mechunit}",
986 params={
987 k: v
988 for k, v in {"action": action, "continue_on_err": continue_on_err}.items()
989 if v is not None
990 },
991 data={
992 k: v
993 for k, v in {
994 "tool": tool,
995 "wobj": wobj,
996 "payload": payload,
997 "total_payload": total_payload,
998 "mode": mode,
999 "jog_mode": jog_mode,
1000 "coord_system": coord_system,
1001 }.items()
1002 if v is not None
1003 },
1004 )
1007async def set_compliance_lead_through(
1008 client: RWSClient,
1009 mechunit: str,
1010 action: str | None = None,
1011 status: str | None = None,
1012) -> httpx.Response:
1013 """
1014 Set Compliance Lead Through.
1016 Route: ``POST /rw/motionsystem/mechunits/{mechunit}``
1018 Args:
1019 client: Open RWSClient instance.
1020 mechunit: URL path parameter.
1021 action: Query parameter. Optional.
1022 status: Body parameter. Optional.
1024 Returns:
1025 Raw HTTP response. Expected success: HTTP 204.
1027 Raises:
1028 RWSAuthenticationError: On HTTP 401.
1029 RWSNotFoundError: On HTTP 404.
1030 RWSHTTPError: On any other HTTP >= 400.
1031 # ABB codes: BAD_REQUEST(400)
1033 Example:
1034 ```python
1035 >>> await set_compliance_lead_through(client, "mechunit_value")
1036 <Response [204]>
1037 ```
1038 """
1039 return await client.post(
1040 f"/rw/motionsystem/mechunits/{mechunit}",
1041 params={k: v for k, v in {"action": action}.items() if v is not None},
1042 data={k: v for k, v in {"status": status}.items() if v is not None},
1043 )
1046async def get_compliance_lead_through(
1047 client: RWSClient,
1048 mechunit: str,
1049 resource: str | None = None,
1050) -> httpx.Response:
1051 """
1052 Get Compliance Lead Through.
1054 Route: ``GET /rw/motionsystem/mechunits/{mechunit}``
1056 Args:
1057 client: Open RWSClient instance.
1058 mechunit: URL path parameter.
1059 resource: Query parameter. Optional.
1061 Returns:
1062 Raw HTTP response. Expected success: HTTP 200.
1064 Raises:
1065 RWSAuthenticationError: On HTTP 401.
1066 RWSNotFoundError: On HTTP 404.
1067 RWSHTTPError: On any other HTTP >= 400.
1068 # ABB codes: BAD_REQUEST(400)
1070 Example:
1071 ```python
1072 >>> await get_compliance_lead_through(client, "mechunit_value")
1073 <Response [200]>
1074 ```
1075 """
1076 return await client.get(
1077 f"/rw/motionsystem/mechunits/{mechunit}",
1078 params={k: v for k, v in {"resource": resource}.items() if v is not None},
1079 )
1082async def set_fine_calibration(
1083 client: RWSClient,
1084 mechunit: str,
1085 action: str | None = None,
1086 axis: str | None = None,
1087) -> httpx.Response:
1088 """
1089 Set Fine Calibration.
1091 Route: ``POST /rw/motionsystem/mechunits/{mechunit}``
1093 Args:
1094 client: Open RWSClient instance.
1095 mechunit: URL path parameter.
1096 action: Query parameter. Optional.
1097 axis: Body parameter. Optional.
1099 Returns:
1100 Raw HTTP response. Expected success: HTTP 204.
1102 Raises:
1103 RWSAuthenticationError: On HTTP 401.
1104 RWSNotFoundError: On HTTP 404.
1105 RWSHTTPError: On any other HTTP >= 400.
1106 # ABB codes: BAD_REQUEST(400)
1108 Example:
1109 ```python
1110 >>> await set_fine_calibration(client, "mechunit_value")
1111 <Response [204]>
1112 ```
1113 """
1114 return await client.post(
1115 f"/rw/motionsystem/mechunits/{mechunit}",
1116 params={k: v for k, v in {"action": action}.items() if v is not None},
1117 data={k: v for k, v in {"axis": axis}.items() if v is not None},
1118 )
1121async def update_syncronize_revolution_counter(
1122 client: RWSClient,
1123 mechunit: str,
1124 action: str | None = None,
1125 axis: str | None = None,
1126) -> httpx.Response:
1127 """
1128 Update (Syncronize) Revolution Counter.
1130 Route: ``POST /rw/motionsystem/mechunits/{mechunit}``
1132 Args:
1133 client: Open RWSClient instance.
1134 mechunit: URL path parameter.
1135 action: Query parameter. Optional.
1136 axis: Body parameter. Optional.
1138 Returns:
1139 Raw HTTP response. Expected success: HTTP 204.
1141 Raises:
1142 RWSAuthenticationError: On HTTP 401.
1143 RWSNotFoundError: On HTTP 404.
1144 RWSHTTPError: On any other HTTP >= 400.
1145 # ABB codes: BAD_REQUEST(400)
1147 Example:
1148 ```python
1149 >>> await update_syncronize_revolution_counter(client, "mechunit_value")
1150 <Response [204]>
1151 ```
1152 """
1153 return await client.post(
1154 f"/rw/motionsystem/mechunits/{mechunit}",
1155 params={k: v for k, v in {"action": action}.items() if v is not None},
1156 data={k: v for k, v in {"axis": axis}.items() if v is not None},
1157 )
1160async def get_physical_joints(
1161 client: RWSClient,
1162 mechunit: str,
1163) -> httpx.Response:
1164 """
1165 Get Physical Joints.
1167 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/pjoints``
1169 Args:
1170 client: Open RWSClient instance.
1171 mechunit: URL path parameter.
1173 Returns:
1174 Raw HTTP response. Expected success: HTTP 200.
1176 Raises:
1177 RWSAuthenticationError: On HTTP 401.
1178 RWSNotFoundError: On HTTP 404.
1179 RWSHTTPError: On any other HTTP >= 400.
1180 # ABB codes: BAD_REQUEST(400)
1182 Example:
1183 ```python
1184 >>> await get_physical_joints(client, "mechunit_value")
1185 <Response [200]>
1186 ```
1187 """
1188 return await client.get(f"/rw/motionsystem/mechunits/{mechunit}/pjoints")
1191async def get_cartesian_value(
1192 client: RWSClient,
1193 mechunit: str,
1194 tool: str | None = None,
1195 wobj: str | None = None,
1196 coordinate: str | None = None,
1197 elog_at_err: str | None = None,
1198) -> httpx.Response:
1199 """
1200 Get Cartesian Value.
1202 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/cartesian``
1204 Args:
1205 client: Open RWSClient instance.
1206 mechunit: URL path parameter.
1207 tool: Query parameter. Optional.
1208 wobj: Query parameter. Optional.
1209 coordinate: Query parameter. Optional.
1210 elog_at_err: Query parameter. Optional.
1212 Returns:
1213 Raw HTTP response. Expected success: HTTP 200.
1215 Raises:
1216 RWSAuthenticationError: On HTTP 401.
1217 RWSNotFoundError: On HTTP 404.
1218 RWSHTTPError: On any other HTTP >= 400.
1219 # ABB codes: BAD_REQUEST(400)
1221 Example:
1222 ```python
1223 >>> await get_cartesian_value(client, "mechunit_value")
1224 <Response [200]>
1225 ```
1226 """
1227 return await client.get(
1228 f"/rw/motionsystem/mechunits/{mechunit}/cartesian",
1229 params={
1230 k: v
1231 for k, v in {
1232 "tool": tool,
1233 "wobj": wobj,
1234 "coordinate": coordinate,
1235 "elog_at_err": elog_at_err,
1236 }.items()
1237 if v is not None
1238 },
1239 )
1242async def set_mechanical_unit(
1243 client: RWSClient,
1244 mechunit: str,
1245 action: str | None = None,
1246 rob_joint: str | None = None,
1247 ext_joint: str | None = None,
1248) -> httpx.Response:
1249 """
1250 Set Mechanical Unit.
1252 Route: ``POST /rw/motionsystem/mechunits/{mechunit}``
1254 Args:
1255 client: Open RWSClient instance.
1256 mechunit: URL path parameter.
1257 action: Query parameter. Optional.
1258 rob_joint: Body parameter. Optional.
1259 ext_joint: Body parameter. Optional.
1261 Returns:
1262 Raw HTTP response. Expected success: HTTP 204.
1264 Raises:
1265 RWSAuthenticationError: On HTTP 401.
1266 RWSNotFoundError: On HTTP 404.
1267 RWSHTTPError: On any other HTTP >= 400.
1268 # ABB codes: BAD_REQUEST(400)
1270 Example:
1271 ```python
1272 >>> await set_mechanical_unit(client, "mechunit_value")
1273 <Response [204]>
1274 ```
1275 """
1276 return await client.post(
1277 f"/rw/motionsystem/mechunits/{mechunit}",
1278 params={k: v for k, v in {"action": action}.items() if v is not None},
1279 data={
1280 k: v
1281 for k, v in {"rob_joint": rob_joint, "ext_joint": ext_joint}.items()
1282 if v is not None
1283 },
1284 )
1287async def get_robtarget(
1288 client: RWSClient,
1289 mechunit: str,
1290 tool: str | None = None,
1291 wobj: str | None = None,
1292 coordinate: str | None = None,
1293) -> httpx.Response:
1294 """
1295 Get Robtarget.
1297 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/robtarget``
1299 Args:
1300 client: Open RWSClient instance.
1301 mechunit: URL path parameter.
1302 tool: Query parameter. Optional.
1303 wobj: Query parameter. Optional.
1304 coordinate: Query parameter. Optional.
1306 Returns:
1307 Raw HTTP response. Expected success: HTTP 200.
1309 Raises:
1310 RWSAuthenticationError: On HTTP 401.
1311 RWSNotFoundError: On HTTP 404.
1312 RWSHTTPError: On any other HTTP >= 400.
1313 # ABB codes: BAD_REQUEST(400)
1315 Example:
1316 ```python
1317 >>> await get_robtarget(client, "mechunit_value")
1318 <Response [200]>
1319 ```
1320 """
1321 return await client.get(
1322 f"/rw/motionsystem/mechunits/{mechunit}/robtarget",
1323 params={
1324 k: v
1325 for k, v in {"tool": tool, "wobj": wobj, "coordinate": coordinate}.items()
1326 if v is not None
1327 },
1328 )
1331async def get_joint_target(
1332 client: RWSClient,
1333 mechunit: str,
1334) -> httpx.Response:
1335 """
1336 Get Joint target.
1338 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/jointtarget``
1340 Args:
1341 client: Open RWSClient instance.
1342 mechunit: URL path parameter.
1344 Returns:
1345 Raw HTTP response. Expected success: HTTP 200.
1347 Raises:
1348 RWSAuthenticationError: On HTTP 401.
1349 RWSNotFoundError: On HTTP 404.
1350 RWSHTTPError: On any other HTTP >= 400.
1351 # ABB codes: BAD_REQUEST(400)
1353 Example:
1354 ```python
1355 >>> await get_joint_target(client, "mechunit_value")
1356 <Response [200]>
1357 ```
1358 """
1359 return await client.get(f"/rw/motionsystem/mechunits/{mechunit}/jointtarget")
1362async def subscribe_on_mechunit_mode_change(
1363 client: RWSClient,
1364 identifier: str | None = None,
1365 identifier_p: str | None = None,
1366) -> httpx.Response:
1367 """
1368 Subscribe on Mechunit Mode Change.
1370 Route: ``POST /subscription``
1371 ABB constraints: Not supported in bootserver mode.
1373 Args:
1374 client: Open RWSClient instance.
1375 identifier: Body parameter. Optional.
1376 identifier_p: Body parameter. Optional.
1378 Returns:
1379 Raw HTTP response. Expected success: HTTP 201.
1381 Raises:
1382 RWSAuthenticationError: On HTTP 401.
1383 RWSNotFoundError: On HTTP 404.
1384 RWSHTTPError: On any other HTTP >= 400.
1385 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
1387 Example:
1388 ```python
1389 >>> await subscribe_on_mechunit_mode_change(client)
1390 <Response [201]>
1391 ```
1392 """
1393 return await client.post(
1394 "/subscription",
1395 data={
1396 k: v
1397 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
1398 if v is not None
1399 },
1400 )
1403async def get_joints_from_position(
1404 client: RWSClient,
1405 mechunit: str,
1406 action: str | None = None,
1407 curr_position: str | None = None,
1408 curr_ext_joints: str | None = None,
1409 tool_frame_position: str | None = None,
1410 curr_orientation: str | None = None,
1411 tool_frame_orientation: str | None = None,
1412 old_rob_joints: str | None = None,
1413 old_ext_joints: str | None = None,
1414 robot_fixed_object: str | None = None,
1415 robot_configuration: str | None = None,
1416 elog_at_error: str | None = None,
1417) -> httpx.Response:
1418 """
1419 Get Joints From Position.
1421 Route: ``POST /rw/motionsystem/mechunits/{mechunit}``
1423 Args:
1424 client: Open RWSClient instance.
1425 mechunit: URL path parameter.
1426 action: Query parameter. Optional.
1427 curr_position: Body parameter. Optional.
1428 curr_ext_joints: Body parameter. Optional.
1429 tool_frame_position: Body parameter. Optional.
1430 curr_orientation: Body parameter. Optional.
1431 tool_frame_orientation: Body parameter. Optional.
1432 old_rob_joints: Body parameter. Optional.
1433 old_ext_joints: Body parameter. Optional.
1434 robot_fixed_object: Body parameter. Optional.
1435 robot_configuration: Body parameter. Optional.
1436 elog_at_error: Body parameter. Optional.
1438 Returns:
1439 Raw HTTP response. Expected success: HTTP 200.
1441 Raises:
1442 RWSAuthenticationError: On HTTP 401.
1443 RWSNotFoundError: On HTTP 404.
1444 RWSHTTPError: On any other HTTP >= 400.
1445 # ABB codes: BAD_REQUEST (400)
1447 Example:
1448 ```python
1449 >>> await get_joints_from_position(client, "mechunit_value")
1450 <Response [200]>
1451 ```
1452 """
1453 return await client.post(
1454 f"/rw/motionsystem/mechunits/{mechunit}",
1455 params={k: v for k, v in {"action": action}.items() if v is not None},
1456 data={
1457 k: v
1458 for k, v in {
1459 "curr_position": curr_position,
1460 "curr_ext_joints": curr_ext_joints,
1461 "tool_frame_position": tool_frame_position,
1462 "curr_orientation": curr_orientation,
1463 "tool_frame_orientation": tool_frame_orientation,
1464 "old_rob_joints": old_rob_joints,
1465 "old_ext_joints": old_ext_joints,
1466 "robot_fixed_object": robot_fixed_object,
1467 "robot_configuration": robot_configuration,
1468 "elog_at_error": elog_at_error,
1469 }.items()
1470 if v is not None
1471 },
1472 )
1475async def get_position_from_joints(
1476 client: RWSClient,
1477 mechunit: str,
1478 action: str | None = None,
1479 tool_frame_position: str | None = None,
1480 tool_frame_orientation: str | None = None,
1481 rob_joints: str | None = None,
1482 ext_joints: str | None = None,
1483 robot_fixed_object: str | None = None,
1484 elog_at_error: str | None = None,
1485) -> httpx.Response:
1486 """
1487 Get Position From Joints.
1489 Route: ``POST /rw/motionsystem/mechunits/{mechunit}``
1491 Args:
1492 client: Open RWSClient instance.
1493 mechunit: URL path parameter.
1494 action: Query parameter. Optional.
1495 tool_frame_position: Body parameter. Optional.
1496 tool_frame_orientation: Body parameter. Optional.
1497 rob_joints: Body parameter. Optional.
1498 ext_joints: Body parameter. Optional.
1499 robot_fixed_object: Body parameter. Optional.
1500 elog_at_error: Body parameter. Optional.
1502 Returns:
1503 Raw HTTP response. Expected success: HTTP 200.
1505 Raises:
1506 RWSAuthenticationError: On HTTP 401.
1507 RWSNotFoundError: On HTTP 404.
1508 RWSHTTPError: On any other HTTP >= 400.
1509 # ABB codes: BAD_REQUEST (400)
1511 Example:
1512 ```python
1513 >>> await get_position_from_joints(client, "mechunit_value")
1514 <Response [200]>
1515 ```
1516 """
1517 return await client.post(
1518 f"/rw/motionsystem/mechunits/{mechunit}",
1519 params={k: v for k, v in {"action": action}.items() if v is not None},
1520 data={
1521 k: v
1522 for k, v in {
1523 "tool_frame_position": tool_frame_position,
1524 "tool_frame_orientation": tool_frame_orientation,
1525 "rob_joints": rob_joints,
1526 "ext_joints": ext_joints,
1527 "robot_fixed_object": robot_fixed_object,
1528 "elog_at_error": elog_at_error,
1529 }.items()
1530 if v is not None
1531 },
1532 )
1535async def get_all_joint_solution(
1536 client: RWSClient,
1537 mechunit: str,
1538 action: str | None = None,
1539 curr_position: str | None = None,
1540 curr_ext_joints: str | None = None,
1541 tool_frame_position: str | None = None,
1542 curr_orientation: str | None = None,
1543 tool_frame_orientation: str | None = None,
1544 robot_fixed_object: str | None = None,
1545 robot_configuration: str | None = None,
1546) -> httpx.Response:
1547 """
1548 Get All Joint Solution.
1550 Route: ``POST /rw/motionsystem/mechunits/{mechunit}``
1552 Args:
1553 client: Open RWSClient instance.
1554 mechunit: URL path parameter.
1555 action: Query parameter. Optional.
1556 curr_position: Body parameter. Optional.
1557 curr_ext_joints: Body parameter. Optional.
1558 tool_frame_position: Body parameter. Optional.
1559 curr_orientation: Body parameter. Optional.
1560 tool_frame_orientation: Body parameter. Optional.
1561 robot_fixed_object: Body parameter. Optional.
1562 robot_configuration: Body parameter. Optional.
1564 Returns:
1565 Raw HTTP response. Expected success: HTTP 200.
1567 Raises:
1568 RWSAuthenticationError: On HTTP 401.
1569 RWSNotFoundError: On HTTP 404.
1570 RWSHTTPError: On any other HTTP >= 400.
1571 # ABB codes: BAD_REQUEST (400)
1573 Example:
1574 ```python
1575 >>> await get_all_joint_solution(client, "mechunit_value")
1576 <Response [200]>
1577 ```
1578 """
1579 return await client.post(
1580 f"/rw/motionsystem/mechunits/{mechunit}",
1581 params={k: v for k, v in {"action": action}.items() if v is not None},
1582 data={
1583 k: v
1584 for k, v in {
1585 "curr_position": curr_position,
1586 "curr_ext_joints": curr_ext_joints,
1587 "tool_frame_position": tool_frame_position,
1588 "curr_orientation": curr_orientation,
1589 "tool_frame_orientation": tool_frame_orientation,
1590 "robot_fixed_object": robot_fixed_object,
1591 "robot_configuration": robot_configuration,
1592 }.items()
1593 if v is not None
1594 },
1595 )
1598async def get_joints_from_cartesian(
1599 client: RWSClient,
1600 mechunit: str,
1601 action: str | None = None,
1602 curr_position: str | None = None,
1603 curr_ext_joints: str | None = None,
1604 tool_frame_position: str | None = None,
1605 curr_orientation: str | None = None,
1606 tool_frame_orientation: str | None = None,
1607 old_rob_joints: str | None = None,
1608 old_ext_joints: str | None = None,
1609 robot_fixed_object: str | None = None,
1610 robot_configuration: str | None = None,
1611 elog_at_error: str | None = None,
1612) -> httpx.Response:
1613 """
1614 Get Joints From Cartesian.
1616 Route: ``POST /rw/motionsystem/mechunits/{mechunit}``
1618 Args:
1619 client: Open RWSClient instance.
1620 mechunit: URL path parameter.
1621 action: Query parameter. Optional.
1622 curr_position: Body parameter. Optional.
1623 curr_ext_joints: Body parameter. Optional.
1624 tool_frame_position: Body parameter. Optional.
1625 curr_orientation: Body parameter. Optional.
1626 tool_frame_orientation: Body parameter. Optional.
1627 old_rob_joints: Body parameter. Optional.
1628 old_ext_joints: Body parameter. Optional.
1629 robot_fixed_object: Body parameter. Optional.
1630 robot_configuration: Body parameter. Optional.
1631 elog_at_error: Body parameter. Optional.
1633 Returns:
1634 Raw HTTP response. Expected success: HTTP 200.
1636 Raises:
1637 RWSAuthenticationError: On HTTP 401.
1638 RWSNotFoundError: On HTTP 404.
1639 RWSHTTPError: On any other HTTP >= 400.
1640 # ABB codes: BAD_REQUEST (400)
1642 Example:
1643 ```python
1644 >>> await get_joints_from_cartesian(client, "mechunit_value")
1645 <Response [200]>
1646 ```
1647 """
1648 return await client.post(
1649 f"/rw/motionsystem/mechunits/{mechunit}",
1650 params={k: v for k, v in {"action": action}.items() if v is not None},
1651 data={
1652 k: v
1653 for k, v in {
1654 "curr_position": curr_position,
1655 "curr_ext_joints": curr_ext_joints,
1656 "tool_frame_position": tool_frame_position,
1657 "curr_orientation": curr_orientation,
1658 "tool_frame_orientation": tool_frame_orientation,
1659 "old_rob_joints": old_rob_joints,
1660 "old_ext_joints": old_ext_joints,
1661 "robot_fixed_object": robot_fixed_object,
1662 "robot_configuration": robot_configuration,
1663 "elog_at_error": elog_at_error,
1664 }.items()
1665 if v is not None
1666 },
1667 )
1670async def get_calibration_info(
1671 client: RWSClient,
1672 mechunit: str,
1673) -> httpx.Response:
1674 """
1675 Get Calibration Info.
1677 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/calibrationinfo``
1679 Args:
1680 client: Open RWSClient instance.
1681 mechunit: URL path parameter.
1683 Returns:
1684 Raw HTTP response. Expected success: HTTP 200.
1686 Raises:
1687 RWSAuthenticationError: On HTTP 401.
1688 RWSNotFoundError: On HTTP 404.
1689 RWSHTTPError: On any other HTTP >= 400.
1690 # ABB codes: BAD_REQUEST(400)
1692 Example:
1693 ```python
1694 >>> await get_calibration_info(client, "mechunit_value")
1695 <Response [200]>
1696 ```
1697 """
1698 return await client.get(f"/rw/motionsystem/mechunits/{mechunit}/calibrationinfo")
1701async def post_calibration_for_baseframe(
1702 client: RWSClient,
1703 mechunit: str,
1704 method: str | None = None,
1705 type: str | None = None,
1706 reference: str | None = None,
1707 point1: str | None = None,
1708 point2: str | None = None,
1709 point3: str | None = None,
1710 point4: str | None = None,
1711 point5: str | None = None,
1712 point6: str | None = None,
1713 point7: str | None = None,
1714) -> httpx.Response:
1715 """
1716 Calibration for BaseFrame.
1718 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/calib``
1720 Args:
1721 client: Open RWSClient instance.
1722 mechunit: URL path parameter.
1723 method: Body parameter. Optional.
1724 type: Body parameter. Optional.
1725 reference: Body parameter. Optional.
1726 point1: Body parameter. Optional.
1727 point2: Body parameter. Optional.
1728 point3: Body parameter. Optional.
1729 point4: Body parameter. Optional.
1730 point5: Body parameter. Optional.
1731 point6: Body parameter. Optional.
1732 point7: Body parameter. Optional.
1734 Returns:
1735 Raw HTTP response. Expected success: HTTP 200.
1737 Raises:
1738 RWSAuthenticationError: On HTTP 401.
1739 RWSNotFoundError: On HTTP 404.
1740 RWSHTTPError: On any other HTTP >= 400.
1741 # ABB codes: BAD_REQUEST (400)
1743 Example:
1744 ```python
1745 >>> await post_calibration_for_baseframe(client, "mechunit_value")
1746 <Response [200]>
1747 ```
1748 """
1749 return await client.post(
1750 f"/rw/motionsystem/mechunits/{mechunit}/calib",
1751 data={
1752 k: v
1753 for k, v in {
1754 "method": method,
1755 "type": type,
1756 "reference": reference,
1757 "point1": point1,
1758 "point2": point2,
1759 "point3": point3,
1760 "point4": point4,
1761 "point5": point5,
1762 "point6": point6,
1763 "point7": point7,
1764 }.items()
1765 if v is not None
1766 },
1767 )
1770async def post_calibration_for_baseframemoving(
1771 client: RWSClient,
1772 mechunit: str,
1773 method: str | None = None,
1774 type: str | None = None,
1775 point1: str | None = None,
1776 point2: str | None = None,
1777 point3: str | None = None,
1778 point4: str | None = None,
1779 point5: str | None = None,
1780 point6: str | None = None,
1781 point7: str | None = None,
1782 point8: str | None = None,
1783) -> httpx.Response:
1784 """
1785 Calibration for BaseFrameMoving.
1787 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/calib``
1789 Args:
1790 client: Open RWSClient instance.
1791 mechunit: URL path parameter.
1792 method: Body parameter. Optional.
1793 type: Body parameter. Optional.
1794 point1: Body parameter. Optional.
1795 point2: Body parameter. Optional.
1796 point3: Body parameter. Optional.
1797 point4: Body parameter. Optional.
1798 point5: Body parameter. Optional.
1799 point6: Body parameter. Optional.
1800 point7: Body parameter. Optional.
1801 point8: Body parameter. Optional.
1803 Returns:
1804 Raw HTTP response. Expected success: HTTP 200.
1806 Raises:
1807 RWSAuthenticationError: On HTTP 401.
1808 RWSNotFoundError: On HTTP 404.
1809 RWSHTTPError: On any other HTTP >= 400.
1810 # ABB codes: BAD_REQUEST (400) ,See
1812 Example:
1813 ```python
1814 >>> await post_calibration_for_baseframemoving(client, "mechunit_value")
1815 <Response [200]>
1816 ```
1817 """
1818 return await client.post(
1819 f"/rw/motionsystem/mechunits/{mechunit}/calib",
1820 data={
1821 k: v
1822 for k, v in {
1823 "method": method,
1824 "type": type,
1825 "point1": point1,
1826 "point2": point2,
1827 "point3": point3,
1828 "point4": point4,
1829 "point5": point5,
1830 "point6": point6,
1831 "point7": point7,
1832 "point8": point8,
1833 }.items()
1834 if v is not None
1835 },
1836 )
1839async def post_calibration_for_externalrobotnombasenew(
1840 client: RWSClient,
1841 mechunit: str,
1842 method: str | None = None,
1843 type: str | None = None,
1844 point1: str | None = None,
1845 point2: str | None = None,
1846 point3: str | None = None,
1847 point4: str | None = None,
1848 point5: str | None = None,
1849 point6: str | None = None,
1850 point7: str | None = None,
1851 point8: str | None = None,
1852) -> httpx.Response:
1853 """
1854 Calibration for ExternalRobotNomBaseNew.
1856 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/calib``
1858 Args:
1859 client: Open RWSClient instance.
1860 mechunit: URL path parameter.
1861 method: Body parameter. Optional.
1862 type: Body parameter. Optional.
1863 point1: Body parameter. Optional.
1864 point2: Body parameter. Optional.
1865 point3: Body parameter. Optional.
1866 point4: Body parameter. Optional.
1867 point5: Body parameter. Optional.
1868 point6: Body parameter. Optional.
1869 point7: Body parameter. Optional.
1870 point8: Body parameter. Optional.
1872 Returns:
1873 Raw HTTP response. Expected success: HTTP 200.
1875 Raises:
1876 RWSAuthenticationError: On HTTP 401.
1877 RWSNotFoundError: On HTTP 404.
1878 RWSHTTPError: On any other HTTP >= 400.
1879 # ABB codes: BAD_REQUEST (400)
1881 Example:
1882 ```python
1883 >>> await post_calibration_for_externalrobotnombasenew(client, "mechunit_value")
1884 <Response [200]>
1885 ```
1886 """
1887 return await client.post(
1888 f"/rw/motionsystem/mechunits/{mechunit}/calib",
1889 data={
1890 k: v
1891 for k, v in {
1892 "method": method,
1893 "type": type,
1894 "point1": point1,
1895 "point2": point2,
1896 "point3": point3,
1897 "point4": point4,
1898 "point5": point5,
1899 "point6": point6,
1900 "point7": point7,
1901 "point8": point8,
1902 }.items()
1903 if v is not None
1904 },
1905 )
1908async def post_calibration_for_robotaxisrot(
1909 client: RWSClient,
1910 mechunit: str,
1911 method: str | None = None,
1912 type: str | None = None,
1913 tolerance: str | None = None,
1914 axis: str | None = None,
1915 point1: str | None = None,
1916 point2: str | None = None,
1917 point3: str | None = None,
1918 point4: str | None = None,
1919 point5: str | None = None,
1920 point6: str | None = None,
1921) -> httpx.Response:
1922 """
1923 Calibration for RobotAxisRot.
1925 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/calib``
1927 Args:
1928 client: Open RWSClient instance.
1929 mechunit: URL path parameter.
1930 method: Body parameter. Optional.
1931 type: Body parameter. Optional.
1932 tolerance: Body parameter. Optional.
1933 axis: Body parameter. Optional.
1934 point1: Body parameter. Optional.
1935 point2: Body parameter. Optional.
1936 point3: Body parameter. Optional.
1937 point4: Body parameter. Optional.
1938 point5: Body parameter. Optional.
1939 point6: Body parameter. Optional.
1941 Returns:
1942 Raw HTTP response. Expected success: HTTP 200.
1944 Raises:
1945 RWSAuthenticationError: On HTTP 401.
1946 RWSNotFoundError: On HTTP 404.
1947 RWSHTTPError: On any other HTTP >= 400.
1948 # ABB codes: BAD_REQUEST (400)
1950 Example:
1951 ```python
1952 >>> await post_calibration_for_robotaxisrot(client, "mechunit_value")
1953 <Response [200]>
1954 ```
1955 """
1956 return await client.post(
1957 f"/rw/motionsystem/mechunits/{mechunit}/calib",
1958 data={
1959 k: v
1960 for k, v in {
1961 "method": method,
1962 "type": type,
1963 "tolerance": tolerance,
1964 "axis": axis,
1965 "point1": point1,
1966 "point2": point2,
1967 "point3": point3,
1968 "point4": point4,
1969 "point5": point5,
1970 "point6": point6,
1971 }.items()
1972 if v is not None
1973 },
1974 )
1977async def post_calibration_for_singleuserrotnew(
1978 client: RWSClient,
1979 mechunit: str,
1980 method: str | None = None,
1981 type: str | None = None,
1982 tolerance: str | None = None,
1983 point1: str | None = None,
1984 point2: str | None = None,
1985 point3: str | None = None,
1986 point4: str | None = None,
1987 point5: str | None = None,
1988 point6: str | None = None,
1989 point7: str | None = None,
1990) -> httpx.Response:
1991 """
1992 Calibration for SingleUserRotNew.
1994 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/calib``
1996 Args:
1997 client: Open RWSClient instance.
1998 mechunit: URL path parameter.
1999 method: Body parameter. Optional.
2000 type: Body parameter. Optional.
2001 tolerance: Body parameter. Optional.
2002 point1: Body parameter. Optional.
2003 point2: Body parameter. Optional.
2004 point3: Body parameter. Optional.
2005 point4: Body parameter. Optional.
2006 point5: Body parameter. Optional.
2007 point6: Body parameter. Optional.
2008 point7: Body parameter. Optional.
2010 Returns:
2011 Raw HTTP response. Expected success: HTTP 200.
2013 Raises:
2014 RWSAuthenticationError: On HTTP 401.
2015 RWSNotFoundError: On HTTP 404.
2016 RWSHTTPError: On any other HTTP >= 400.
2017 # ABB codes: BAD_REQUEST (400) ,See
2019 Example:
2020 ```python
2021 >>> await post_calibration_for_singleuserrotnew(client, "mechunit_value")
2022 <Response [200]>
2023 ```
2024 """
2025 return await client.post(
2026 f"/rw/motionsystem/mechunits/{mechunit}/calib",
2027 data={
2028 k: v
2029 for k, v in {
2030 "method": method,
2031 "type": type,
2032 "tolerance": tolerance,
2033 "point1": point1,
2034 "point2": point2,
2035 "point3": point3,
2036 "point4": point4,
2037 "point5": point5,
2038 "point6": point6,
2039 "point7": point7,
2040 }.items()
2041 if v is not None
2042 },
2043 )
2046async def post_calibration_for_rotextctrlzdef(
2047 client: RWSClient,
2048 mechunit: str,
2049 method: str | None = None,
2050 type: str | None = None,
2051 tolerance: str | None = None,
2052 pose: str | None = None,
2053 point1: str | None = None,
2054 point2: str | None = None,
2055 point3: str | None = None,
2056 point4: str | None = None,
2057 point5: str | None = None,
2058 point6: str | None = None,
2059) -> httpx.Response:
2060 """
2061 Calibration for RotExtCtrlZdef.
2063 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/calib``
2065 Args:
2066 client: Open RWSClient instance.
2067 mechunit: URL path parameter.
2068 method: Body parameter. Optional.
2069 type: Body parameter. Optional.
2070 tolerance: Body parameter. Optional.
2071 pose: Body parameter. Optional.
2072 point1: Body parameter. Optional.
2073 point2: Body parameter. Optional.
2074 point3: Body parameter. Optional.
2075 point4: Body parameter. Optional.
2076 point5: Body parameter. Optional.
2077 point6: Body parameter. Optional.
2079 Returns:
2080 Raw HTTP response. Expected success: HTTP 200.
2082 Raises:
2083 RWSAuthenticationError: On HTTP 401.
2084 RWSNotFoundError: On HTTP 404.
2085 RWSHTTPError: On any other HTTP >= 400.
2086 # ABB codes: BAD_REQUEST(400)
2088 Example:
2089 ```python
2090 >>> await post_calibration_for_rotextctrlzdef(client, "mechunit_value")
2091 <Response [200]>
2092 ```
2093 """
2094 return await client.post(
2095 f"/rw/motionsystem/mechunits/{mechunit}/calib",
2096 data={
2097 k: v
2098 for k, v in {
2099 "method": method,
2100 "type": type,
2101 "tolerance": tolerance,
2102 "pose": pose,
2103 "point1": point1,
2104 "point2": point2,
2105 "point3": point3,
2106 "point4": point4,
2107 "point5": point5,
2108 "point6": point6,
2109 }.items()
2110 if v is not None
2111 },
2112 )
2115async def post_calibration_for_singleuserlin(
2116 client: RWSClient,
2117 mechunit: str,
2118 method: str | None = None,
2119 type: str | None = None,
2120 tolerance: str | None = None,
2121 point1: str | None = None,
2122 point2: str | None = None,
2123 point3: str | None = None,
2124 point4: str | None = None,
2125 point5: str | None = None,
2126 point6: str | None = None,
2127 point7: str | None = None,
2128) -> httpx.Response:
2129 """
2130 Calibration for SingleUserLin.
2132 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/calib``
2134 Args:
2135 client: Open RWSClient instance.
2136 mechunit: URL path parameter.
2137 method: Body parameter. Optional.
2138 type: Body parameter. Optional.
2139 tolerance: Body parameter. Optional.
2140 point1: Body parameter. Optional.
2141 point2: Body parameter. Optional.
2142 point3: Body parameter. Optional.
2143 point4: Body parameter. Optional.
2144 point5: Body parameter. Optional.
2145 point6: Body parameter. Optional.
2146 point7: Body parameter. Optional.
2148 Returns:
2149 Raw HTTP response. Expected success: HTTP 200.
2151 Raises:
2152 RWSAuthenticationError: On HTTP 401.
2153 RWSNotFoundError: On HTTP 404.
2154 RWSHTTPError: On any other HTTP >= 400.
2155 # ABB codes: BAD_REQUEST (400) ,See
2157 Example:
2158 ```python
2159 >>> await post_calibration_for_singleuserlin(client, "mechunit_value")
2160 <Response [200]>
2161 ```
2162 """
2163 return await client.post(
2164 f"/rw/motionsystem/mechunits/{mechunit}/calib",
2165 data={
2166 k: v
2167 for k, v in {
2168 "method": method,
2169 "type": type,
2170 "tolerance": tolerance,
2171 "point1": point1,
2172 "point2": point2,
2173 "point3": point3,
2174 "point4": point4,
2175 "point5": point5,
2176 "point6": point6,
2177 "point7": point7,
2178 }.items()
2179 if v is not None
2180 },
2181 )
2184async def post_calibration_for_singletrack(
2185 client: RWSClient,
2186 mechunit: str,
2187 method: str | None = None,
2188 type: str | None = None,
2189 point1: str | None = None,
2190 point2: str | None = None,
2191 point3: str | None = None,
2192 point4: str | None = None,
2193 point5: str | None = None,
2194 point6: str | None = None,
2195 point7: str | None = None,
2196 point8: str | None = None,
2197) -> httpx.Response:
2198 """
2199 Calibration for SingleTrack.
2201 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/calib``
2203 Args:
2204 client: Open RWSClient instance.
2205 mechunit: URL path parameter.
2206 method: Body parameter. Optional.
2207 type: Body parameter. Optional.
2208 point1: Body parameter. Optional.
2209 point2: Body parameter. Optional.
2210 point3: Body parameter. Optional.
2211 point4: Body parameter. Optional.
2212 point5: Body parameter. Optional.
2213 point6: Body parameter. Optional.
2214 point7: Body parameter. Optional.
2215 point8: Body parameter. Optional.
2217 Returns:
2218 Raw HTTP response. Expected success: HTTP 200.
2220 Raises:
2221 RWSAuthenticationError: On HTTP 401.
2222 RWSNotFoundError: On HTTP 404.
2223 RWSHTTPError: On any other HTTP >= 400.
2224 # ABB codes: BAD_REQUEST (400) ,See
2226 Example:
2227 ```python
2228 >>> await post_calibration_for_singletrack(client, "mechunit_value")
2229 <Response [200]>
2230 ```
2231 """
2232 return await client.post(
2233 f"/rw/motionsystem/mechunits/{mechunit}/calib",
2234 data={
2235 k: v
2236 for k, v in {
2237 "method": method,
2238 "type": type,
2239 "point1": point1,
2240 "point2": point2,
2241 "point3": point3,
2242 "point4": point4,
2243 "point5": point5,
2244 "point6": point6,
2245 "point7": point7,
2246 "point8": point8,
2247 }.items()
2248 if v is not None
2249 },
2250 )
2253async def post_calibration_for_robotaxisrot2(
2254 client: RWSClient,
2255 mechunit: str,
2256 method: str | None = None,
2257 type: str | None = None,
2258 tolerance: str | None = None,
2259 axis: str | None = None,
2260 point1: str | None = None,
2261 point2: str | None = None,
2262 point3: str | None = None,
2263 point4: str | None = None,
2264 point5: str | None = None,
2265 point6: str | None = None,
2266) -> httpx.Response:
2267 """
2268 Calibration for RobotAxisRot2.
2270 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/calib``
2272 Args:
2273 client: Open RWSClient instance.
2274 mechunit: URL path parameter.
2275 method: Body parameter. Optional.
2276 type: Body parameter. Optional.
2277 tolerance: Body parameter. Optional.
2278 axis: Body parameter. Optional.
2279 point1: Body parameter. Optional.
2280 point2: Body parameter. Optional.
2281 point3: Body parameter. Optional.
2282 point4: Body parameter. Optional.
2283 point5: Body parameter. Optional.
2284 point6: Body parameter. Optional.
2286 Returns:
2287 Raw HTTP response. Expected success: HTTP 200.
2289 Raises:
2290 RWSAuthenticationError: On HTTP 401.
2291 RWSNotFoundError: On HTTP 404.
2292 RWSHTTPError: On any other HTTP >= 400.
2293 # ABB codes: BAD_REQUEST(400)
2295 Example:
2296 ```python
2297 >>> await post_calibration_for_robotaxisrot2(client, "mechunit_value")
2298 <Response [200]>
2299 ```
2300 """
2301 return await client.post(
2302 f"/rw/motionsystem/mechunits/{mechunit}/calib",
2303 data={
2304 k: v
2305 for k, v in {
2306 "method": method,
2307 "type": type,
2308 "tolerance": tolerance,
2309 "axis": axis,
2310 "point1": point1,
2311 "point2": point2,
2312 "point3": point3,
2313 "point4": point4,
2314 "point5": point5,
2315 "point6": point6,
2316 }.items()
2317 if v is not None
2318 },
2319 )
2322async def get_base_frame(
2323 client: RWSClient,
2324 mechunit: str,
2325) -> httpx.Response:
2326 """
2327 Get Base Frame.
2329 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/baseframe``
2331 Args:
2332 client: Open RWSClient instance.
2333 mechunit: URL path parameter.
2335 Returns:
2336 Raw HTTP response. Expected success: HTTP 200.
2338 Raises:
2339 RWSAuthenticationError: On HTTP 401.
2340 RWSNotFoundError: On HTTP 404.
2341 RWSHTTPError: On any other HTTP >= 400.
2342 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
2344 Example:
2345 ```python
2346 >>> await get_base_frame(client, "mechunit_value")
2347 <Response [200]>
2348 ```
2349 """
2350 return await client.get(f"/rw/motionsystem/mechunits/{mechunit}/baseframe")
2353async def get_base_frame_actions(
2354 client: RWSClient,
2355 mechunit: str,
2356 action: str | None = None,
2357) -> httpx.Response:
2358 """
2359 Get Base Frame actions.
2361 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/baseframe``
2363 Args:
2364 client: Open RWSClient instance.
2365 mechunit: URL path parameter.
2366 action: Query parameter. Optional.
2368 Returns:
2369 Raw HTTP response. Expected success: HTTP 200.
2371 Raises:
2372 RWSAuthenticationError: On HTTP 401.
2373 RWSNotFoundError: On HTTP 404.
2374 RWSHTTPError: On any other HTTP >= 400.
2375 # ABB codes: BAD_REQUEST(400)
2377 Example:
2378 ```python
2379 >>> await get_base_frame_actions(client, "mechunit_value")
2380 <Response [200]>
2381 ```
2382 """
2383 return await client.get(
2384 f"/rw/motionsystem/mechunits/{mechunit}/baseframe",
2385 params={k: v for k, v in {"action": action}.items() if v is not None},
2386 )
2389async def set_base_frame(
2390 client: RWSClient,
2391 mechunit: str,
2392 action: str | None = None,
2393 x: str | None = None,
2394 y: str | None = None,
2395 z: str | None = None,
2396 q1: str | None = None,
2397 q2: str | None = None,
2398 q3: str | None = None,
2399 q4: str | None = None,
2400) -> httpx.Response:
2401 """
2402 Set Base Frame.
2404 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/baseframe``
2406 Args:
2407 client: Open RWSClient instance.
2408 mechunit: URL path parameter.
2409 action: Query parameter. Optional.
2410 x: Body parameter. Optional.
2411 y: Body parameter. Optional.
2412 z: Body parameter. Optional.
2413 q1: Body parameter. Optional.
2414 q2: Body parameter. Optional.
2415 q3: Body parameter. Optional.
2416 q4: Body parameter. Optional.
2418 Returns:
2419 Raw HTTP response. Expected success: HTTP 202.
2421 Raises:
2422 RWSAuthenticationError: On HTTP 401.
2423 RWSNotFoundError: On HTTP 404.
2424 RWSHTTPError: On any other HTTP >= 400.
2425 # ABB codes: BAD_REQUEST(400), Forbidden(403)
2427 Example:
2428 ```python
2429 >>> await set_base_frame(client, "mechunit_value")
2430 <Response [202]>
2431 ```
2432 """
2433 return await client.post(
2434 f"/rw/motionsystem/mechunits/{mechunit}/baseframe",
2435 params={k: v for k, v in {"action": action}.items() if v is not None},
2436 data={
2437 k: v
2438 for k, v in {"x": x, "y": y, "z": z, "q1": q1, "q2": q2, "q3": q3, "q4": q4}.items()
2439 if v is not None
2440 },
2441 )
2444async def get_axes(
2445 client: RWSClient,
2446 mechunit: str,
2447) -> httpx.Response:
2448 """
2449 Get Axes.
2451 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/axes``
2453 Args:
2454 client: Open RWSClient instance.
2455 mechunit: URL path parameter.
2457 Returns:
2458 Raw HTTP response. Expected success: HTTP 200.
2460 Raises:
2461 RWSAuthenticationError: On HTTP 401.
2462 RWSNotFoundError: On HTTP 404.
2463 RWSHTTPError: On any other HTTP >= 400.
2464 # ABB codes: BAD_REQUEST(400)
2466 Example:
2467 ```python
2468 >>> await get_axes(client, "mechunit_value")
2469 <Response [200]>
2470 ```
2471 """
2472 return await client.get(f"/rw/motionsystem/mechunits/{mechunit}/axes")
2475async def get_axis(
2476 client: RWSClient,
2477 mechunit: str,
2478 axis_num: str,
2479) -> httpx.Response:
2480 """
2481 Get Axis.
2483 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}``
2485 Args:
2486 client: Open RWSClient instance.
2487 mechunit: URL path parameter.
2488 axis_num: URL path parameter.
2490 Returns:
2491 Raw HTTP response. Expected success: HTTP 200.
2493 Raises:
2494 RWSAuthenticationError: On HTTP 401.
2495 RWSNotFoundError: On HTTP 404.
2496 RWSHTTPError: On any other HTTP >= 400.
2497 # ABB codes: BAD_REQUEST(400)
2499 Example:
2500 ```python
2501 >>> await get_axis(client, "mechunit_value", "axis_num_value")
2502 <Response [200]>
2503 ```
2504 """
2505 return await client.get(f"/rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}")
2508async def get_axis_actions(
2509 client: RWSClient,
2510 mechunit: str,
2511 axis_num: str,
2512 action: str | None = None,
2513) -> httpx.Response:
2514 """
2515 Get Axis actions.
2517 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}``
2519 Args:
2520 client: Open RWSClient instance.
2521 mechunit: URL path parameter.
2522 axis_num: URL path parameter.
2523 action: Query parameter. Optional.
2525 Returns:
2526 Raw HTTP response. Expected success: HTTP 200.
2528 Raises:
2529 RWSAuthenticationError: On HTTP 401.
2530 RWSNotFoundError: On HTTP 404.
2531 RWSHTTPError: On any other HTTP >= 400.
2532 # ABB codes: BAD_REQUEST(400)
2534 Example:
2535 ```python
2536 >>> await get_axis_actions(client, "mechunit_value", "axis_num_value")
2537 <Response [200]>
2538 ```
2539 """
2540 return await client.get(
2541 f"/rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}",
2542 params={k: v for k, v in {"action": action}.items() if v is not None},
2543 )
2546async def get_axis_pose(
2547 client: RWSClient,
2548 mechunit: str,
2549 axis_num: str,
2550 resource: str | None = None,
2551) -> httpx.Response:
2552 """
2553 Get Axis pose.
2555 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}``
2557 Args:
2558 client: Open RWSClient instance.
2559 mechunit: URL path parameter.
2560 axis_num: URL path parameter.
2561 resource: Query parameter. Optional.
2563 Returns:
2564 Raw HTTP response. Expected success: HTTP 200.
2566 Raises:
2567 RWSAuthenticationError: On HTTP 401.
2568 RWSNotFoundError: On HTTP 404.
2569 RWSHTTPError: On any other HTTP >= 400.
2570 # ABB codes: BAD_REQUEST(400)
2572 Example:
2573 ```python
2574 >>> await get_axis_pose(client, "mechunit_value", "axis_num_value")
2575 <Response [200]>
2576 ```
2577 """
2578 return await client.get(
2579 f"/rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}",
2580 params={k: v for k, v in {"resource": resource}.items() if v is not None},
2581 )
2584async def set_axis_pose(
2585 client: RWSClient,
2586 mechunit: str,
2587 axis_num: str,
2588 action: str | None = None,
2589 x: str | None = None,
2590 y: str | None = None,
2591 z: str | None = None,
2592 q1: str | None = None,
2593 q2: str | None = None,
2594 q3: str | None = None,
2595 q4: str | None = None,
2596) -> httpx.Response:
2597 """
2598 Set Axis pose.
2600 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}``
2602 Args:
2603 client: Open RWSClient instance.
2604 mechunit: URL path parameter.
2605 axis_num: URL path parameter.
2606 action: Query parameter. Optional.
2607 x: Body parameter. Optional.
2608 y: Body parameter. Optional.
2609 z: Body parameter. Optional.
2610 q1: Body parameter. Optional.
2611 q2: Body parameter. Optional.
2612 q3: Body parameter. Optional.
2613 q4: Body parameter. Optional.
2615 Returns:
2616 Raw HTTP response. Expected success: HTTP 204.
2618 Raises:
2619 RWSAuthenticationError: On HTTP 401.
2620 RWSNotFoundError: On HTTP 404.
2621 RWSHTTPError: On any other HTTP >= 400.
2622 # ABB codes: BAD_REQUEST(400), NOT_FOUND(404), FORBIDDEN(403)
2624 Example:
2625 ```python
2626 >>> await set_axis_pose(client, "mechunit_value", "axis_num_value")
2627 <Response [204]>
2628 ```
2629 """
2630 return await client.post(
2631 f"/rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}",
2632 params={k: v for k, v in {"action": action}.items() if v is not None},
2633 data={
2634 k: v
2635 for k, v in {"x": x, "y": y, "z": z, "q1": q1, "q2": q2, "q3": q3, "q4": q4}.items()
2636 if v is not None
2637 },
2638 )
2641async def update_commutate(
2642 client: RWSClient,
2643 mechunit: str,
2644 axis_num: str,
2645 action: str | None = None,
2646) -> httpx.Response:
2647 """
2648 Update Commutate.
2650 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}``
2652 Args:
2653 client: Open RWSClient instance.
2654 mechunit: URL path parameter.
2655 axis_num: URL path parameter.
2656 action: Query parameter. Optional.
2658 Returns:
2659 Raw HTTP response. Expected success: HTTP 204.
2661 Raises:
2662 RWSAuthenticationError: On HTTP 401.
2663 RWSNotFoundError: On HTTP 404.
2664 RWSHTTPError: On any other HTTP >= 400.
2665 # ABB codes: BAD_REQUEST(400)
2667 Example:
2668 ```python
2669 >>> await update_commutate(client, "mechunit_value", "axis_num_value")
2670 <Response [204]>
2671 ```
2672 """
2673 return await client.post(
2674 f"/rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}",
2675 params={k: v for k, v in {"action": action}.items() if v is not None},
2676 data={},
2677 )
2680async def update_sync_revolution_counter(
2681 client: RWSClient,
2682 mechunit: str,
2683 axis_num: str,
2684 action: str | None = None,
2685 synctype: str | None = None,
2686) -> httpx.Response:
2687 """
2688 Update Sync Revolution Counter.
2690 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}``
2692 Args:
2693 client: Open RWSClient instance.
2694 mechunit: URL path parameter.
2695 axis_num: URL path parameter.
2696 action: Query parameter. Optional.
2697 synctype: Body parameter. Optional.
2699 Returns:
2700 Raw HTTP response. Expected success: HTTP 204.
2702 Raises:
2703 RWSAuthenticationError: On HTTP 401.
2704 RWSNotFoundError: On HTTP 404.
2705 RWSHTTPError: On any other HTTP >= 400.
2706 # ABB codes: BAD_REQUEST(400)
2708 Example:
2709 ```python
2710 >>> await update_sync_revolution_counter(client, "mechunit_value", "axis_num_value")
2711 <Response [204]>
2712 ```
2713 """
2714 return await client.post(
2715 f"/rw/motionsystem/mechunits/{mechunit}/axes/{axis_num}",
2716 params={k: v for k, v in {"action": action}.items() if v is not None},
2717 data={k: v for k, v in {"synctype": synctype}.items() if v is not None},
2718 )
2721async def set_smb_data(
2722 client: RWSClient,
2723 mechunit: str,
2724 action: str | None = None,
2725 type: str | None = None,
2726) -> httpx.Response:
2727 """
2728 Set SMB Data.
2730 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/smbdata``
2732 Args:
2733 client: Open RWSClient instance.
2734 mechunit: URL path parameter.
2735 action: Query parameter. Optional.
2736 type: Body parameter. Optional.
2738 Returns:
2739 Raw HTTP response. Expected success: HTTP 204.
2741 Raises:
2742 RWSAuthenticationError: On HTTP 401.
2743 RWSNotFoundError: On HTTP 404.
2744 RWSHTTPError: On any other HTTP >= 400.
2746 Example:
2747 ```python
2748 >>> await set_smb_data(client, "mechunit_value")
2749 <Response [204]>
2750 ```
2751 """
2752 return await client.post(
2753 f"/rw/motionsystem/mechunits/{mechunit}/smbdata",
2754 params={k: v for k, v in {"action": action}.items() if v is not None},
2755 data={k: v for k, v in {"type": type}.items() if v is not None},
2756 )
2759async def post_clear_smb_data(
2760 client: RWSClient,
2761 mechunit: str,
2762 action: str | None = None,
2763 type: str | None = None,
2764) -> httpx.Response:
2765 """
2766 Clear SMB Data.
2768 Route: ``POST /rw/motionsystem/mechunits/{mechunit}/smbdata``
2770 Args:
2771 client: Open RWSClient instance.
2772 mechunit: URL path parameter.
2773 action: Query parameter. Optional.
2774 type: Body parameter. Optional.
2776 Returns:
2777 Raw HTTP response. Expected success: HTTP 204.
2779 Raises:
2780 RWSAuthenticationError: On HTTP 401.
2781 RWSNotFoundError: On HTTP 404.
2782 RWSHTTPError: On any other HTTP >= 400.
2784 Example:
2785 ```python
2786 >>> await post_clear_smb_data(client, "mechunit_value")
2787 <Response [204]>
2788 ```
2789 """
2790 return await client.post(
2791 f"/rw/motionsystem/mechunits/{mechunit}/smbdata",
2792 params={k: v for k, v in {"action": action}.items() if v is not None},
2793 data={k: v for k, v in {"type": type}.items() if v is not None},
2794 )
2797async def get_smb_data(
2798 client: RWSClient,
2799 mechunit: str,
2800) -> httpx.Response:
2801 """
2802 Get SMB Data.
2804 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/smbdata``
2806 Args:
2807 client: Open RWSClient instance.
2808 mechunit: URL path parameter.
2810 Returns:
2811 Raw HTTP response. Expected success: HTTP 200.
2813 Raises:
2814 RWSAuthenticationError: On HTTP 401.
2815 RWSNotFoundError: On HTTP 404.
2816 RWSHTTPError: On any other HTTP >= 400.
2818 Example:
2819 ```python
2820 >>> await get_smb_data(client, "mechunit_value")
2821 <Response [200]>
2822 ```
2823 """
2824 return await client.get(f"/rw/motionsystem/mechunits/{mechunit}/smbdata")
2827async def get_smb_data_actions(
2828 client: RWSClient,
2829 mechunit: str,
2830 action: str | None = None,
2831) -> httpx.Response:
2832 """
2833 Get SMB Data Actions.
2835 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/smbdata``
2837 Args:
2838 client: Open RWSClient instance.
2839 mechunit: URL path parameter.
2840 action: Query parameter. Optional.
2842 Returns:
2843 Raw HTTP response. Expected success: HTTP 200.
2845 Raises:
2846 RWSAuthenticationError: On HTTP 401.
2847 RWSNotFoundError: On HTTP 404.
2848 RWSHTTPError: On any other HTTP >= 400.
2849 # ABB codes: BAD_REQUEST(400)
2851 Example:
2852 ```python
2853 >>> await get_smb_data_actions(client, "mechunit_value")
2854 <Response [200]>
2855 ```
2856 """
2857 return await client.get(
2858 f"/rw/motionsystem/mechunits/{mechunit}/smbdata",
2859 params={k: v for k, v in {"action": action}.items() if v is not None},
2860 )
2863async def get_motor_calib_names(
2864 client: RWSClient,
2865 mechunit: str,
2866) -> httpx.Response:
2867 """
2868 Get Motor Calib Names.
2870 Route: ``GET /rw/motionsystem/mechunits/{mechunit}/motorcalib``
2872 Args:
2873 client: Open RWSClient instance.
2874 mechunit: URL path parameter.
2876 Returns:
2877 Raw HTTP response. Expected success: HTTP 200.
2879 Raises:
2880 RWSAuthenticationError: On HTTP 401.
2881 RWSNotFoundError: On HTTP 404.
2882 RWSHTTPError: On any other HTTP >= 400.
2883 # ABB codes: NOT_FOUND(404), BAD_REQUEST(400)
2885 Example:
2886 ```python
2887 >>> await get_motor_calib_names(client, "mechunit_value")
2888 <Response [200]>
2889 ```
2890 """
2891 return await client.get(f"/rw/motionsystem/mechunits/{mechunit}/motorcalib")