wandelbots-api-client 25.11.0.dev12__py3-none-any.whl → 26.1.0.dev62__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. wandelbots_api_client/__init__.py +1 -1
  2. wandelbots_api_client/api/motion_api.py +3 -3
  3. wandelbots_api_client/api_client.py +1 -1
  4. wandelbots_api_client/configuration.py +1 -1
  5. wandelbots_api_client/models/__init__.py +3 -1
  6. wandelbots_api_client/models/virtual_controller_types.py +4 -4
  7. wandelbots_api_client/v2/__init__.py +1 -1
  8. wandelbots_api_client/v2/api/__init__.py +2 -0
  9. wandelbots_api_client/v2/api/bus_inputs_outputs_api.py +579 -0
  10. wandelbots_api_client/v2/api/jogging_api.py +1 -1
  11. wandelbots_api_client/v2/api/motion_group_models_api.py +795 -2
  12. wandelbots_api_client/v2/api/program_api.py +12 -12
  13. wandelbots_api_client/v2/api/robot_configurations_api.py +291 -0
  14. wandelbots_api_client/v2/api/trajectory_execution_api.py +1 -1
  15. wandelbots_api_client/v2/api_client.py +1 -1
  16. wandelbots_api_client/v2/configuration.py +1 -1
  17. wandelbots_api_client/v2/models/__init__.py +7 -3
  18. wandelbots_api_client/v2/models/blending_auto.py +1 -1
  19. wandelbots_api_client/v2/models/blending_position.py +15 -1
  20. wandelbots_api_client/v2/models/blending_space.py +37 -0
  21. wandelbots_api_client/v2/models/initialize_jogging_request.py +2 -4
  22. wandelbots_api_client/v2/models/inverse_kinematics_request.py +6 -4
  23. wandelbots_api_client/v2/models/kinematic_model.py +110 -0
  24. wandelbots_api_client/v2/models/motion_group_description.py +4 -2
  25. wandelbots_api_client/v2/models/virtual_controller.py +1 -2
  26. wandelbots_api_client/v2/models/virtual_controller_types.py +1 -1
  27. wandelbots_api_client/v2_pydantic/__init__.py +1 -1
  28. wandelbots_api_client/v2_pydantic/api/__init__.py +2 -0
  29. wandelbots_api_client/v2_pydantic/api/bus_inputs_outputs_api.py +585 -0
  30. wandelbots_api_client/v2_pydantic/api/jogging_api.py +1 -1
  31. wandelbots_api_client/v2_pydantic/api/motion_group_models_api.py +804 -2
  32. wandelbots_api_client/v2_pydantic/api/program_api.py +12 -12
  33. wandelbots_api_client/v2_pydantic/api/robot_configurations_api.py +294 -0
  34. wandelbots_api_client/v2_pydantic/api/trajectory_execution_api.py +1 -1
  35. wandelbots_api_client/v2_pydantic/api_client.py +1 -1
  36. wandelbots_api_client/v2_pydantic/configuration.py +1 -1
  37. wandelbots_api_client/v2_pydantic/models.py +471 -527
  38. wandelbots_api_client/v2_pydantic/virtual_controller_types.py +126 -0
  39. {wandelbots_api_client-25.11.0.dev12.dist-info → wandelbots_api_client-26.1.0.dev62.dist-info}/METADATA +2 -2
  40. {wandelbots_api_client-25.11.0.dev12.dist-info → wandelbots_api_client-26.1.0.dev62.dist-info}/RECORD +43 -38
  41. {wandelbots_api_client-25.11.0.dev12.dist-info → wandelbots_api_client-26.1.0.dev62.dist-info}/WHEEL +0 -0
  42. {wandelbots_api_client-25.11.0.dev12.dist-info → wandelbots_api_client-26.1.0.dev62.dist-info}/licenses/LICENSE +0 -0
  43. {wandelbots_api_client-25.11.0.dev12.dist-info → wandelbots_api_client-26.1.0.dev62.dist-info}/top_level.txt +0 -0
@@ -22,10 +22,11 @@ from typing import Any, AsyncGenerator, Callable, Dict, List, Optional, Tuple, U
22
22
  from typing_extensions import Annotated
23
23
  from urllib.parse import quote
24
24
 
25
- from pydantic import Field, StrictStr
26
- from typing import Dict, List
25
+ from pydantic import Field, StrictBytes, StrictStr
26
+ from typing import Dict, List, Tuple, Union
27
27
  from typing_extensions import Annotated
28
28
  from wandelbots_api_client.v2_pydantic.models import Collider
29
+ from wandelbots_api_client.v2_pydantic.models import KinematicModel
29
30
 
30
31
  from wandelbots_api_client.v2_pydantic.api_client import ApiClient, RequestSerialized
31
32
  from wandelbots_api_client.v2_pydantic.api_response import ApiResponse
@@ -310,6 +311,540 @@ class MotionGroupModelsApi:
310
311
 
311
312
 
312
313
 
314
+ @validate_call
315
+ async def get_motion_group_glb_model(
316
+ self,
317
+ motion_group_model: Annotated[StrictStr, Field(description="Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). ")],
318
+ _request_timeout: Union[
319
+ None,
320
+ Annotated[StrictFloat, Field(gt=0)],
321
+ Tuple[
322
+ Annotated[StrictFloat, Field(gt=0)],
323
+ Annotated[StrictFloat, Field(gt=0)]
324
+ ]
325
+ ] = None,
326
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
327
+ _content_type: Optional[StrictStr] = None,
328
+ _headers: Optional[Dict[StrictStr, Any]] = None,
329
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
330
+ ) -> bytearray:
331
+ """Download GLB Model
332
+
333
+ Returns the GLB asset for the specified motion group model. See [getMotionGroupModels](getMotionGroupModels) for supported identifiers.
334
+
335
+ :param motion_group_model: Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). (required)
336
+ :type motion_group_model: str
337
+ :param _request_timeout: timeout setting for this request. If one
338
+ number provided, it will be total request
339
+ timeout. It can also be a pair (tuple) of
340
+ (connection, read) timeouts.
341
+ :type _request_timeout: int, tuple(int, int), optional
342
+ :param _request_auth: set to override the auth_settings for an a single
343
+ request; this effectively ignores the
344
+ authentication in the spec for a single request.
345
+ :type _request_auth: dict, optional
346
+ :param _content_type: force content-type for the request.
347
+ :type _content_type: str, Optional
348
+ :param _headers: set to override the headers for a single
349
+ request; this effectively ignores the headers
350
+ in the spec for a single request.
351
+ :type _headers: dict, optional
352
+ :param _host_index: set to override the host_index for a single
353
+ request; this effectively ignores the host_index
354
+ in the spec for a single request.
355
+ :type _host_index: int, optional
356
+ :return: Returns the result object.
357
+ """ # noqa: E501
358
+
359
+ _param = self._get_motion_group_glb_model_serialize(
360
+ motion_group_model=motion_group_model,
361
+ _request_auth=_request_auth,
362
+ _content_type=_content_type,
363
+ _headers=_headers,
364
+ _host_index=_host_index
365
+ )
366
+
367
+ _response_types_map: Dict[str, Optional[str]] = {
368
+ '200': "bytearray",
369
+ '404': None,
370
+ '500': None,
371
+ }
372
+
373
+ response_data = await self.api_client.call_api(
374
+ *_param,
375
+ _request_timeout=_request_timeout
376
+ )
377
+ await response_data.read()
378
+ return self.api_client.response_deserialize(
379
+ response_data=response_data,
380
+ response_types_map=_response_types_map,
381
+ ).data
382
+
383
+
384
+ @validate_call
385
+ async def get_motion_group_glb_model_with_http_info(
386
+ self,
387
+ motion_group_model: Annotated[StrictStr, Field(description="Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). ")],
388
+ _request_timeout: Union[
389
+ None,
390
+ Annotated[StrictFloat, Field(gt=0)],
391
+ Tuple[
392
+ Annotated[StrictFloat, Field(gt=0)],
393
+ Annotated[StrictFloat, Field(gt=0)]
394
+ ]
395
+ ] = None,
396
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
397
+ _content_type: Optional[StrictStr] = None,
398
+ _headers: Optional[Dict[StrictStr, Any]] = None,
399
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
400
+ ) -> ApiResponse[bytearray]:
401
+ """Download GLB Model
402
+
403
+ Returns the GLB asset for the specified motion group model. See [getMotionGroupModels](getMotionGroupModels) for supported identifiers.
404
+
405
+ :param motion_group_model: Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). (required)
406
+ :type motion_group_model: str
407
+ :param _request_timeout: timeout setting for this request. If one
408
+ number provided, it will be total request
409
+ timeout. It can also be a pair (tuple) of
410
+ (connection, read) timeouts.
411
+ :type _request_timeout: int, tuple(int, int), optional
412
+ :param _request_auth: set to override the auth_settings for an a single
413
+ request; this effectively ignores the
414
+ authentication in the spec for a single request.
415
+ :type _request_auth: dict, optional
416
+ :param _content_type: force content-type for the request.
417
+ :type _content_type: str, Optional
418
+ :param _headers: set to override the headers for a single
419
+ request; this effectively ignores the headers
420
+ in the spec for a single request.
421
+ :type _headers: dict, optional
422
+ :param _host_index: set to override the host_index for a single
423
+ request; this effectively ignores the host_index
424
+ in the spec for a single request.
425
+ :type _host_index: int, optional
426
+ :return: Returns the result object.
427
+ """ # noqa: E501
428
+
429
+ _param = self._get_motion_group_glb_model_serialize(
430
+ motion_group_model=motion_group_model,
431
+ _request_auth=_request_auth,
432
+ _content_type=_content_type,
433
+ _headers=_headers,
434
+ _host_index=_host_index
435
+ )
436
+
437
+ _response_types_map: Dict[str, Optional[str]] = {
438
+ '200': "bytearray",
439
+ '404': None,
440
+ '500': None,
441
+ }
442
+
443
+ response_data = await self.api_client.call_api(
444
+ *_param,
445
+ _request_timeout=_request_timeout
446
+ )
447
+ await response_data.read()
448
+ return self.api_client.response_deserialize(
449
+ response_data=response_data,
450
+ response_types_map=_response_types_map,
451
+ )
452
+
453
+
454
+ @validate_call
455
+ async def get_motion_group_glb_model_without_preload_content(
456
+ self,
457
+ motion_group_model: Annotated[StrictStr, Field(description="Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). ")],
458
+ _request_timeout: Union[
459
+ None,
460
+ Annotated[StrictFloat, Field(gt=0)],
461
+ Tuple[
462
+ Annotated[StrictFloat, Field(gt=0)],
463
+ Annotated[StrictFloat, Field(gt=0)]
464
+ ]
465
+ ] = None,
466
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
467
+ _content_type: Optional[StrictStr] = None,
468
+ _headers: Optional[Dict[StrictStr, Any]] = None,
469
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
470
+ ) -> RESTResponseType:
471
+ """Download GLB Model
472
+
473
+ Returns the GLB asset for the specified motion group model. See [getMotionGroupModels](getMotionGroupModels) for supported identifiers.
474
+
475
+ :param motion_group_model: Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). (required)
476
+ :type motion_group_model: str
477
+ :param _request_timeout: timeout setting for this request. If one
478
+ number provided, it will be total request
479
+ timeout. It can also be a pair (tuple) of
480
+ (connection, read) timeouts.
481
+ :type _request_timeout: int, tuple(int, int), optional
482
+ :param _request_auth: set to override the auth_settings for an a single
483
+ request; this effectively ignores the
484
+ authentication in the spec for a single request.
485
+ :type _request_auth: dict, optional
486
+ :param _content_type: force content-type for the request.
487
+ :type _content_type: str, Optional
488
+ :param _headers: set to override the headers for a single
489
+ request; this effectively ignores the headers
490
+ in the spec for a single request.
491
+ :type _headers: dict, optional
492
+ :param _host_index: set to override the host_index for a single
493
+ request; this effectively ignores the host_index
494
+ in the spec for a single request.
495
+ :type _host_index: int, optional
496
+ :return: Returns the result object.
497
+ """ # noqa: E501
498
+
499
+ _param = self._get_motion_group_glb_model_serialize(
500
+ motion_group_model=motion_group_model,
501
+ _request_auth=_request_auth,
502
+ _content_type=_content_type,
503
+ _headers=_headers,
504
+ _host_index=_host_index
505
+ )
506
+
507
+ _response_types_map: Dict[str, Optional[str]] = {
508
+ '200': "bytearray",
509
+ '404': None,
510
+ '500': None,
511
+ }
512
+
513
+ response_data = await self.api_client.call_api(
514
+ *_param,
515
+ _request_timeout=_request_timeout
516
+ )
517
+ return response_data.response
518
+
519
+
520
+ def _get_motion_group_glb_model_serialize(
521
+ self,
522
+ motion_group_model,
523
+ _request_auth,
524
+ _content_type,
525
+ _headers,
526
+ _host_index,
527
+ ) -> RequestSerialized:
528
+
529
+ _host = None
530
+
531
+ _collection_formats: Dict[str, str] = {
532
+ }
533
+
534
+ _path_params: Dict[str, str] = {}
535
+ _query_params: List[Tuple[str, str]] = []
536
+ _header_params: Dict[str, Optional[str]] = _headers or {}
537
+ _form_params: List[Tuple[str, str]] = []
538
+ _files: Dict[str, Union[str, bytes]] = {}
539
+ _body_params: Optional[bytes] = None
540
+
541
+ # process the path parameters
542
+ if motion_group_model is not None:
543
+ _path_params['motion-group-model'] = motion_group_model
544
+ # process the query parameters
545
+ # process the header parameters
546
+ # process the form parameters
547
+ # process the body parameter
548
+
549
+
550
+ # set the HTTP header `Accept`
551
+ _header_params['Accept'] = self.api_client.select_header_accept(
552
+ [
553
+ 'application/octet-stream'
554
+ ]
555
+ )
556
+
557
+
558
+ # authentication setting
559
+ _auth_settings: List[str] = [
560
+ 'BasicAuth',
561
+ 'BearerAuth'
562
+ ]
563
+
564
+ return self.api_client.param_serialize(
565
+ method='GET',
566
+ resource_path='/motion-group-models/{motion-group-model}/glb',
567
+ path_params=_path_params,
568
+ query_params=_query_params,
569
+ header_params=_header_params,
570
+ body=_body_params,
571
+ post_params=_form_params,
572
+ files=_files,
573
+ auth_settings=_auth_settings,
574
+ collection_formats=_collection_formats,
575
+ _host=_host,
576
+ _request_auth=_request_auth
577
+ )
578
+
579
+
580
+
581
+ @validate_call
582
+ async def get_motion_group_kinematic_model(
583
+ self,
584
+ motion_group_model: Annotated[StrictStr, Field(description="Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). ")],
585
+ _request_timeout: Union[
586
+ None,
587
+ Annotated[StrictFloat, Field(gt=0)],
588
+ Tuple[
589
+ Annotated[StrictFloat, Field(gt=0)],
590
+ Annotated[StrictFloat, Field(gt=0)]
591
+ ]
592
+ ] = None,
593
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
594
+ _content_type: Optional[StrictStr] = None,
595
+ _headers: Optional[Dict[StrictStr, Any]] = None,
596
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
597
+ ) -> KinematicModel:
598
+ """Get Kinematics
599
+
600
+ Returns the kinematics model (DH parameters) for the given motion group model. See [getMotionGroupModels](getMotionGroupModels) for supported motion group models.
601
+
602
+ :param motion_group_model: Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). (required)
603
+ :type motion_group_model: str
604
+ :param _request_timeout: timeout setting for this request. If one
605
+ number provided, it will be total request
606
+ timeout. It can also be a pair (tuple) of
607
+ (connection, read) timeouts.
608
+ :type _request_timeout: int, tuple(int, int), optional
609
+ :param _request_auth: set to override the auth_settings for an a single
610
+ request; this effectively ignores the
611
+ authentication in the spec for a single request.
612
+ :type _request_auth: dict, optional
613
+ :param _content_type: force content-type for the request.
614
+ :type _content_type: str, Optional
615
+ :param _headers: set to override the headers for a single
616
+ request; this effectively ignores the headers
617
+ in the spec for a single request.
618
+ :type _headers: dict, optional
619
+ :param _host_index: set to override the host_index for a single
620
+ request; this effectively ignores the host_index
621
+ in the spec for a single request.
622
+ :type _host_index: int, optional
623
+ :return: Returns the result object.
624
+ """ # noqa: E501
625
+
626
+ _param = self._get_motion_group_kinematic_model_serialize(
627
+ motion_group_model=motion_group_model,
628
+ _request_auth=_request_auth,
629
+ _content_type=_content_type,
630
+ _headers=_headers,
631
+ _host_index=_host_index
632
+ )
633
+
634
+ _response_types_map: Dict[str, Optional[str]] = {
635
+ '200': "KinematicModel",
636
+ '404': None,
637
+ '500': None,
638
+ }
639
+
640
+ response_data = await self.api_client.call_api(
641
+ *_param,
642
+ _request_timeout=_request_timeout
643
+ )
644
+ await response_data.read()
645
+ return self.api_client.response_deserialize(
646
+ response_data=response_data,
647
+ response_types_map=_response_types_map,
648
+ ).data
649
+
650
+
651
+ @validate_call
652
+ async def get_motion_group_kinematic_model_with_http_info(
653
+ self,
654
+ motion_group_model: Annotated[StrictStr, Field(description="Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). ")],
655
+ _request_timeout: Union[
656
+ None,
657
+ Annotated[StrictFloat, Field(gt=0)],
658
+ Tuple[
659
+ Annotated[StrictFloat, Field(gt=0)],
660
+ Annotated[StrictFloat, Field(gt=0)]
661
+ ]
662
+ ] = None,
663
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
664
+ _content_type: Optional[StrictStr] = None,
665
+ _headers: Optional[Dict[StrictStr, Any]] = None,
666
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
667
+ ) -> ApiResponse[KinematicModel]:
668
+ """Get Kinematics
669
+
670
+ Returns the kinematics model (DH parameters) for the given motion group model. See [getMotionGroupModels](getMotionGroupModels) for supported motion group models.
671
+
672
+ :param motion_group_model: Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). (required)
673
+ :type motion_group_model: str
674
+ :param _request_timeout: timeout setting for this request. If one
675
+ number provided, it will be total request
676
+ timeout. It can also be a pair (tuple) of
677
+ (connection, read) timeouts.
678
+ :type _request_timeout: int, tuple(int, int), optional
679
+ :param _request_auth: set to override the auth_settings for an a single
680
+ request; this effectively ignores the
681
+ authentication in the spec for a single request.
682
+ :type _request_auth: dict, optional
683
+ :param _content_type: force content-type for the request.
684
+ :type _content_type: str, Optional
685
+ :param _headers: set to override the headers for a single
686
+ request; this effectively ignores the headers
687
+ in the spec for a single request.
688
+ :type _headers: dict, optional
689
+ :param _host_index: set to override the host_index for a single
690
+ request; this effectively ignores the host_index
691
+ in the spec for a single request.
692
+ :type _host_index: int, optional
693
+ :return: Returns the result object.
694
+ """ # noqa: E501
695
+
696
+ _param = self._get_motion_group_kinematic_model_serialize(
697
+ motion_group_model=motion_group_model,
698
+ _request_auth=_request_auth,
699
+ _content_type=_content_type,
700
+ _headers=_headers,
701
+ _host_index=_host_index
702
+ )
703
+
704
+ _response_types_map: Dict[str, Optional[str]] = {
705
+ '200': "KinematicModel",
706
+ '404': None,
707
+ '500': None,
708
+ }
709
+
710
+ response_data = await self.api_client.call_api(
711
+ *_param,
712
+ _request_timeout=_request_timeout
713
+ )
714
+ await response_data.read()
715
+ return self.api_client.response_deserialize(
716
+ response_data=response_data,
717
+ response_types_map=_response_types_map,
718
+ )
719
+
720
+
721
+ @validate_call
722
+ async def get_motion_group_kinematic_model_without_preload_content(
723
+ self,
724
+ motion_group_model: Annotated[StrictStr, Field(description="Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). ")],
725
+ _request_timeout: Union[
726
+ None,
727
+ Annotated[StrictFloat, Field(gt=0)],
728
+ Tuple[
729
+ Annotated[StrictFloat, Field(gt=0)],
730
+ Annotated[StrictFloat, Field(gt=0)]
731
+ ]
732
+ ] = None,
733
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
734
+ _content_type: Optional[StrictStr] = None,
735
+ _headers: Optional[Dict[StrictStr, Any]] = None,
736
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
737
+ ) -> RESTResponseType:
738
+ """Get Kinematics
739
+
740
+ Returns the kinematics model (DH parameters) for the given motion group model. See [getMotionGroupModels](getMotionGroupModels) for supported motion group models.
741
+
742
+ :param motion_group_model: Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). (required)
743
+ :type motion_group_model: str
744
+ :param _request_timeout: timeout setting for this request. If one
745
+ number provided, it will be total request
746
+ timeout. It can also be a pair (tuple) of
747
+ (connection, read) timeouts.
748
+ :type _request_timeout: int, tuple(int, int), optional
749
+ :param _request_auth: set to override the auth_settings for an a single
750
+ request; this effectively ignores the
751
+ authentication in the spec for a single request.
752
+ :type _request_auth: dict, optional
753
+ :param _content_type: force content-type for the request.
754
+ :type _content_type: str, Optional
755
+ :param _headers: set to override the headers for a single
756
+ request; this effectively ignores the headers
757
+ in the spec for a single request.
758
+ :type _headers: dict, optional
759
+ :param _host_index: set to override the host_index for a single
760
+ request; this effectively ignores the host_index
761
+ in the spec for a single request.
762
+ :type _host_index: int, optional
763
+ :return: Returns the result object.
764
+ """ # noqa: E501
765
+
766
+ _param = self._get_motion_group_kinematic_model_serialize(
767
+ motion_group_model=motion_group_model,
768
+ _request_auth=_request_auth,
769
+ _content_type=_content_type,
770
+ _headers=_headers,
771
+ _host_index=_host_index
772
+ )
773
+
774
+ _response_types_map: Dict[str, Optional[str]] = {
775
+ '200': "KinematicModel",
776
+ '404': None,
777
+ '500': None,
778
+ }
779
+
780
+ response_data = await self.api_client.call_api(
781
+ *_param,
782
+ _request_timeout=_request_timeout
783
+ )
784
+ return response_data.response
785
+
786
+
787
+ def _get_motion_group_kinematic_model_serialize(
788
+ self,
789
+ motion_group_model,
790
+ _request_auth,
791
+ _content_type,
792
+ _headers,
793
+ _host_index,
794
+ ) -> RequestSerialized:
795
+
796
+ _host = None
797
+
798
+ _collection_formats: Dict[str, str] = {
799
+ }
800
+
801
+ _path_params: Dict[str, str] = {}
802
+ _query_params: List[Tuple[str, str]] = []
803
+ _header_params: Dict[str, Optional[str]] = _headers or {}
804
+ _form_params: List[Tuple[str, str]] = []
805
+ _files: Dict[str, Union[str, bytes]] = {}
806
+ _body_params: Optional[bytes] = None
807
+
808
+ # process the path parameters
809
+ if motion_group_model is not None:
810
+ _path_params['motion-group-model'] = motion_group_model
811
+ # process the query parameters
812
+ # process the header parameters
813
+ # process the form parameters
814
+ # process the body parameter
815
+
816
+
817
+ # set the HTTP header `Accept`
818
+ _header_params['Accept'] = self.api_client.select_header_accept(
819
+ [
820
+ 'application/json'
821
+ ]
822
+ )
823
+
824
+
825
+ # authentication setting
826
+ _auth_settings: List[str] = [
827
+ 'BasicAuth',
828
+ 'BearerAuth'
829
+ ]
830
+
831
+ return self.api_client.param_serialize(
832
+ method='GET',
833
+ resource_path='/motion-group-models/{motion-group-model}/kinematic',
834
+ path_params=_path_params,
835
+ query_params=_query_params,
836
+ header_params=_header_params,
837
+ body=_body_params,
838
+ post_params=_form_params,
839
+ files=_files,
840
+ auth_settings=_auth_settings,
841
+ collection_formats=_collection_formats,
842
+ _host=_host,
843
+ _request_auth=_request_auth
844
+ )
845
+
846
+
847
+
313
848
  @validate_call
314
849
  async def get_motion_group_models(
315
850
  self,
@@ -561,3 +1096,270 @@ class MotionGroupModelsApi:
561
1096
  )
562
1097
 
563
1098
 
1099
+
1100
+ @validate_call
1101
+ async def get_motion_group_usd_model(
1102
+ self,
1103
+ motion_group_model: Annotated[StrictStr, Field(description="Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). ")],
1104
+ _request_timeout: Union[
1105
+ None,
1106
+ Annotated[StrictFloat, Field(gt=0)],
1107
+ Tuple[
1108
+ Annotated[StrictFloat, Field(gt=0)],
1109
+ Annotated[StrictFloat, Field(gt=0)]
1110
+ ]
1111
+ ] = None,
1112
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1113
+ _content_type: Optional[StrictStr] = None,
1114
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1115
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1116
+ ) -> bytearray:
1117
+ """Download USD Model
1118
+
1119
+ Returns the USD scene model for the specified motion group model. See [getMotionGroupModels](getMotionGroupModels) for supported identifiers.
1120
+
1121
+ :param motion_group_model: Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). (required)
1122
+ :type motion_group_model: str
1123
+ :param _request_timeout: timeout setting for this request. If one
1124
+ number provided, it will be total request
1125
+ timeout. It can also be a pair (tuple) of
1126
+ (connection, read) timeouts.
1127
+ :type _request_timeout: int, tuple(int, int), optional
1128
+ :param _request_auth: set to override the auth_settings for an a single
1129
+ request; this effectively ignores the
1130
+ authentication in the spec for a single request.
1131
+ :type _request_auth: dict, optional
1132
+ :param _content_type: force content-type for the request.
1133
+ :type _content_type: str, Optional
1134
+ :param _headers: set to override the headers for a single
1135
+ request; this effectively ignores the headers
1136
+ in the spec for a single request.
1137
+ :type _headers: dict, optional
1138
+ :param _host_index: set to override the host_index for a single
1139
+ request; this effectively ignores the host_index
1140
+ in the spec for a single request.
1141
+ :type _host_index: int, optional
1142
+ :return: Returns the result object.
1143
+ """ # noqa: E501
1144
+
1145
+ _param = self._get_motion_group_usd_model_serialize(
1146
+ motion_group_model=motion_group_model,
1147
+ _request_auth=_request_auth,
1148
+ _content_type=_content_type,
1149
+ _headers=_headers,
1150
+ _host_index=_host_index
1151
+ )
1152
+
1153
+ _response_types_map: Dict[str, Optional[str]] = {
1154
+ '200': "bytearray",
1155
+ '404': None,
1156
+ '500': None,
1157
+ }
1158
+
1159
+ response_data = await self.api_client.call_api(
1160
+ *_param,
1161
+ _request_timeout=_request_timeout
1162
+ )
1163
+ await response_data.read()
1164
+ return self.api_client.response_deserialize(
1165
+ response_data=response_data,
1166
+ response_types_map=_response_types_map,
1167
+ ).data
1168
+
1169
+
1170
+ @validate_call
1171
+ async def get_motion_group_usd_model_with_http_info(
1172
+ self,
1173
+ motion_group_model: Annotated[StrictStr, Field(description="Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). ")],
1174
+ _request_timeout: Union[
1175
+ None,
1176
+ Annotated[StrictFloat, Field(gt=0)],
1177
+ Tuple[
1178
+ Annotated[StrictFloat, Field(gt=0)],
1179
+ Annotated[StrictFloat, Field(gt=0)]
1180
+ ]
1181
+ ] = None,
1182
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1183
+ _content_type: Optional[StrictStr] = None,
1184
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1185
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1186
+ ) -> ApiResponse[bytearray]:
1187
+ """Download USD Model
1188
+
1189
+ Returns the USD scene model for the specified motion group model. See [getMotionGroupModels](getMotionGroupModels) for supported identifiers.
1190
+
1191
+ :param motion_group_model: Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). (required)
1192
+ :type motion_group_model: str
1193
+ :param _request_timeout: timeout setting for this request. If one
1194
+ number provided, it will be total request
1195
+ timeout. It can also be a pair (tuple) of
1196
+ (connection, read) timeouts.
1197
+ :type _request_timeout: int, tuple(int, int), optional
1198
+ :param _request_auth: set to override the auth_settings for an a single
1199
+ request; this effectively ignores the
1200
+ authentication in the spec for a single request.
1201
+ :type _request_auth: dict, optional
1202
+ :param _content_type: force content-type for the request.
1203
+ :type _content_type: str, Optional
1204
+ :param _headers: set to override the headers for a single
1205
+ request; this effectively ignores the headers
1206
+ in the spec for a single request.
1207
+ :type _headers: dict, optional
1208
+ :param _host_index: set to override the host_index for a single
1209
+ request; this effectively ignores the host_index
1210
+ in the spec for a single request.
1211
+ :type _host_index: int, optional
1212
+ :return: Returns the result object.
1213
+ """ # noqa: E501
1214
+
1215
+ _param = self._get_motion_group_usd_model_serialize(
1216
+ motion_group_model=motion_group_model,
1217
+ _request_auth=_request_auth,
1218
+ _content_type=_content_type,
1219
+ _headers=_headers,
1220
+ _host_index=_host_index
1221
+ )
1222
+
1223
+ _response_types_map: Dict[str, Optional[str]] = {
1224
+ '200': "bytearray",
1225
+ '404': None,
1226
+ '500': None,
1227
+ }
1228
+
1229
+ response_data = await self.api_client.call_api(
1230
+ *_param,
1231
+ _request_timeout=_request_timeout
1232
+ )
1233
+ await response_data.read()
1234
+ return self.api_client.response_deserialize(
1235
+ response_data=response_data,
1236
+ response_types_map=_response_types_map,
1237
+ )
1238
+
1239
+
1240
+ @validate_call
1241
+ async def get_motion_group_usd_model_without_preload_content(
1242
+ self,
1243
+ motion_group_model: Annotated[StrictStr, Field(description="Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). ")],
1244
+ _request_timeout: Union[
1245
+ None,
1246
+ Annotated[StrictFloat, Field(gt=0)],
1247
+ Tuple[
1248
+ Annotated[StrictFloat, Field(gt=0)],
1249
+ Annotated[StrictFloat, Field(gt=0)]
1250
+ ]
1251
+ ] = None,
1252
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1253
+ _content_type: Optional[StrictStr] = None,
1254
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1255
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1256
+ ) -> RESTResponseType:
1257
+ """Download USD Model
1258
+
1259
+ Returns the USD scene model for the specified motion group model. See [getMotionGroupModels](getMotionGroupModels) for supported identifiers.
1260
+
1261
+ :param motion_group_model: Unique identifier for the model of a motion group, e.g., `UniversalRobots_UR10e`. Get the `model` of a configured motion group with [getOptimizerConfiguration](getOptimizerConfiguration). (required)
1262
+ :type motion_group_model: str
1263
+ :param _request_timeout: timeout setting for this request. If one
1264
+ number provided, it will be total request
1265
+ timeout. It can also be a pair (tuple) of
1266
+ (connection, read) timeouts.
1267
+ :type _request_timeout: int, tuple(int, int), optional
1268
+ :param _request_auth: set to override the auth_settings for an a single
1269
+ request; this effectively ignores the
1270
+ authentication in the spec for a single request.
1271
+ :type _request_auth: dict, optional
1272
+ :param _content_type: force content-type for the request.
1273
+ :type _content_type: str, Optional
1274
+ :param _headers: set to override the headers for a single
1275
+ request; this effectively ignores the headers
1276
+ in the spec for a single request.
1277
+ :type _headers: dict, optional
1278
+ :param _host_index: set to override the host_index for a single
1279
+ request; this effectively ignores the host_index
1280
+ in the spec for a single request.
1281
+ :type _host_index: int, optional
1282
+ :return: Returns the result object.
1283
+ """ # noqa: E501
1284
+
1285
+ _param = self._get_motion_group_usd_model_serialize(
1286
+ motion_group_model=motion_group_model,
1287
+ _request_auth=_request_auth,
1288
+ _content_type=_content_type,
1289
+ _headers=_headers,
1290
+ _host_index=_host_index
1291
+ )
1292
+
1293
+ _response_types_map: Dict[str, Optional[str]] = {
1294
+ '200': "bytearray",
1295
+ '404': None,
1296
+ '500': None,
1297
+ }
1298
+
1299
+ response_data = await self.api_client.call_api(
1300
+ *_param,
1301
+ _request_timeout=_request_timeout
1302
+ )
1303
+ return response_data.response
1304
+
1305
+
1306
+ def _get_motion_group_usd_model_serialize(
1307
+ self,
1308
+ motion_group_model,
1309
+ _request_auth,
1310
+ _content_type,
1311
+ _headers,
1312
+ _host_index,
1313
+ ) -> RequestSerialized:
1314
+
1315
+ _host = None
1316
+
1317
+ _collection_formats: Dict[str, str] = {
1318
+ }
1319
+
1320
+ _path_params: Dict[str, str] = {}
1321
+ _query_params: List[Tuple[str, str]] = []
1322
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1323
+ _form_params: List[Tuple[str, str]] = []
1324
+ _files: Dict[str, Union[str, bytes]] = {}
1325
+ _body_params: Optional[bytes] = None
1326
+
1327
+ # process the path parameters
1328
+ if motion_group_model is not None:
1329
+ _path_params['motion-group-model'] = motion_group_model
1330
+ # process the query parameters
1331
+ # process the header parameters
1332
+ # process the form parameters
1333
+ # process the body parameter
1334
+
1335
+
1336
+ # set the HTTP header `Accept`
1337
+ _header_params['Accept'] = self.api_client.select_header_accept(
1338
+ [
1339
+ 'application/octet-stream'
1340
+ ]
1341
+ )
1342
+
1343
+
1344
+ # authentication setting
1345
+ _auth_settings: List[str] = [
1346
+ 'BasicAuth',
1347
+ 'BearerAuth'
1348
+ ]
1349
+
1350
+ return self.api_client.param_serialize(
1351
+ method='GET',
1352
+ resource_path='/motion-group-models/{motion-group-model}/usd',
1353
+ path_params=_path_params,
1354
+ query_params=_query_params,
1355
+ header_params=_header_params,
1356
+ body=_body_params,
1357
+ post_params=_form_params,
1358
+ files=_files,
1359
+ auth_settings=_auth_settings,
1360
+ collection_formats=_collection_formats,
1361
+ _host=_host,
1362
+ _request_auth=_request_auth
1363
+ )
1364
+
1365
+