standardbots 2.20241003.40__py3-none-any.whl → 2.20241003.42__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.
Potentially problematic release.
This version of standardbots might be problematic. Click here for more details.
- standardbots/auto_generated/apis.py +10 -3
- standardbots/auto_generated/models.py +18 -1
- {standardbots-2.20241003.40.dist-info → standardbots-2.20241003.42.dist-info}/METADATA +1 -1
- standardbots-2.20241003.42.dist-info/RECORD +8 -0
- standardbots-2.20241003.40.dist-info/RECORD +0 -8
- {standardbots-2.20241003.40.dist-info → standardbots-2.20241003.42.dist-info}/WHEEL +0 -0
- {standardbots-2.20241003.40.dist-info → standardbots-2.20241003.42.dist-info}/top_level.txt +0 -0
|
@@ -482,13 +482,17 @@ class Movement:
|
|
|
482
482
|
position: models.Position,
|
|
483
483
|
orientation: models.Orientation,
|
|
484
484
|
reference_frame: str = 'base',
|
|
485
|
-
axis_alignment: str = 'base'
|
|
485
|
+
axis_alignment: str = 'base',
|
|
486
|
+
local_accuracy_calibration: str | None = None,
|
|
487
|
+
movement_kind: models.MovementKindEnum | None = models.MovementKindEnum.Joint,
|
|
486
488
|
):
|
|
487
489
|
return self.move_tooltip(
|
|
488
490
|
position=position,
|
|
489
491
|
orientation=orientation,
|
|
490
492
|
reference_frame=reference_frame,
|
|
491
|
-
axis_alignment=axis_alignment
|
|
493
|
+
axis_alignment=axis_alignment,
|
|
494
|
+
local_accuracy_calibration=local_accuracy_calibration,
|
|
495
|
+
movement_kind=movement_kind
|
|
492
496
|
)
|
|
493
497
|
|
|
494
498
|
def move_tooltip(
|
|
@@ -496,7 +500,9 @@ class Movement:
|
|
|
496
500
|
position: models.Position,
|
|
497
501
|
orientation: models.Orientation,
|
|
498
502
|
reference_frame: str = 'base',
|
|
499
|
-
axis_alignment: str = 'base'
|
|
503
|
+
axis_alignment: str = 'base',
|
|
504
|
+
local_accuracy_calibration: str | None = None,
|
|
505
|
+
movement_kind: models.MovementKindEnum | None = models.MovementKindEnum.Joint
|
|
500
506
|
):
|
|
501
507
|
"""Move tooltip of robot to specified position
|
|
502
508
|
"""
|
|
@@ -506,6 +512,7 @@ class Movement:
|
|
|
506
512
|
position=position,
|
|
507
513
|
orientation=orientation,
|
|
508
514
|
reference_frame=reference_frame,
|
|
515
|
+
local_accuracy_calibration=local_accuracy_calibration,
|
|
509
516
|
axis_alignment=axis_alignment,
|
|
510
517
|
),
|
|
511
518
|
)
|
|
@@ -889,6 +889,8 @@ class ErrorEnum(Enum):
|
|
|
889
889
|
"""Recovery error occurred"""
|
|
890
890
|
NotFound = "not_found"
|
|
891
891
|
"""Requested resource not found"""
|
|
892
|
+
InvalidSpaceSpecified = "invalid_space_specified"
|
|
893
|
+
"""Space specified was invalid or not found"""
|
|
892
894
|
|
|
893
895
|
def parse_error_enum(data: object) -> ErrorEnum:
|
|
894
896
|
return ErrorEnum(data)
|
|
@@ -1930,7 +1932,7 @@ class ErrorResponse:
|
|
|
1930
1932
|
if value is None:
|
|
1931
1933
|
return [False, "error is required for ErrorResponse"]
|
|
1932
1934
|
|
|
1933
|
-
if not ((isinstance(value, str) and ErrorEnum in ['authorization_required', 'routine_must_be_running', 'api_control_required', 'robot_brakes_disengage_failed', 'robot_brakes_engage_failed', 'request_failed_validation', 'robot_not_idle', 'brakes_must_be_engaged', 'brakes_must_be_disengaged', 'equipment_no_matching', 'service_initializing', 'camera_disconnected', 'settings_validation_error', 'settings_timeout', 'internal_server_error', 'recovery_error', 'not_found']) or isinstance(value, ErrorEnum)):
|
|
1935
|
+
if not ((isinstance(value, str) and ErrorEnum in ['authorization_required', 'routine_must_be_running', 'api_control_required', 'robot_brakes_disengage_failed', 'robot_brakes_engage_failed', 'request_failed_validation', 'robot_not_idle', 'brakes_must_be_engaged', 'brakes_must_be_disengaged', 'equipment_no_matching', 'service_initializing', 'camera_disconnected', 'settings_validation_error', 'settings_timeout', 'internal_server_error', 'recovery_error', 'not_found', 'invalid_space_specified']) or isinstance(value, ErrorEnum)):
|
|
1934
1936
|
return [False, "error must be of type ErrorEnum for ErrorResponse, got " + type(value).__name__]
|
|
1935
1937
|
|
|
1936
1938
|
return [True, ""]
|
|
@@ -4048,6 +4050,7 @@ class PositionAndOrientation:
|
|
|
4048
4050
|
"""Position of the arm tooltip"""
|
|
4049
4051
|
axis_alignment: Union[str, None] = None
|
|
4050
4052
|
reference_frame: Union[str, None] = None
|
|
4053
|
+
local_accuracy_calibration: Union[str, None] = None
|
|
4051
4054
|
position: Union[Position, None] = None
|
|
4052
4055
|
orientation: Union[Orientation, None] = None
|
|
4053
4056
|
|
|
@@ -4069,6 +4072,15 @@ class PositionAndOrientation:
|
|
|
4069
4072
|
|
|
4070
4073
|
return [True, ""]
|
|
4071
4074
|
|
|
4075
|
+
def validate_local_accuracy_calibration(self, value: str) -> Tuple[bool, str]:
|
|
4076
|
+
if value is None:
|
|
4077
|
+
return [True, ""]
|
|
4078
|
+
|
|
4079
|
+
if not isinstance(value, str):
|
|
4080
|
+
return [False, "local_accuracy_calibration must be of type str for PositionAndOrientation, got " + type(value).__name__]
|
|
4081
|
+
|
|
4082
|
+
return [True, ""]
|
|
4083
|
+
|
|
4072
4084
|
def validate_position(self, value: Position) -> Tuple[bool, str]:
|
|
4073
4085
|
if value is None:
|
|
4074
4086
|
return [False, "position is required for PositionAndOrientation"]
|
|
@@ -4093,6 +4105,9 @@ class PositionAndOrientation:
|
|
|
4093
4105
|
if not is_valid:
|
|
4094
4106
|
raise TypeError(error_str)
|
|
4095
4107
|
is_valid, error_str = self.validate_reference_frame(self.reference_frame)
|
|
4108
|
+
if not is_valid:
|
|
4109
|
+
raise TypeError(error_str)
|
|
4110
|
+
is_valid, error_str = self.validate_local_accuracy_calibration(self.local_accuracy_calibration)
|
|
4096
4111
|
if not is_valid:
|
|
4097
4112
|
raise TypeError(error_str)
|
|
4098
4113
|
is_valid, error_str = self.validate_position(self.position)
|
|
@@ -4106,6 +4121,7 @@ def parse_position_and_orientation(data: object):
|
|
|
4106
4121
|
return PositionAndOrientation(
|
|
4107
4122
|
axis_alignment=parse_str(data["axis_alignment"]) if "axis_alignment" in data else None,
|
|
4108
4123
|
reference_frame=parse_str(data["reference_frame"]) if "reference_frame" in data else None,
|
|
4124
|
+
local_accuracy_calibration=parse_str(data["local_accuracy_calibration"]) if "local_accuracy_calibration" in data else None,
|
|
4109
4125
|
position=parse_position(data["position"]) if "position" in data else None,
|
|
4110
4126
|
orientation=parse_orientation(data["orientation"]) if "orientation" in data else None,
|
|
4111
4127
|
)
|
|
@@ -4114,6 +4130,7 @@ def serialize_position_and_orientation(data: PositionAndOrientation) -> object:
|
|
|
4114
4130
|
return {
|
|
4115
4131
|
"axis_alignment": None if data.axis_alignment is None else serialize_str(data.axis_alignment),
|
|
4116
4132
|
"reference_frame": None if data.reference_frame is None else serialize_str(data.reference_frame),
|
|
4133
|
+
"local_accuracy_calibration": None if data.local_accuracy_calibration is None else serialize_str(data.local_accuracy_calibration),
|
|
4117
4134
|
"position": serialize_position(data.position),
|
|
4118
4135
|
"orientation": serialize_orientation(data.orientation),
|
|
4119
4136
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
standardbots/__init__.py,sha256=PT6Z2HPama2fb6SaNhF3J1skpYABQWGgDzKEtQY6BDM,29
|
|
2
|
+
standardbots/auto_generated/__init__.py,sha256=PZtDUzYcjIO6R-gE-0NzY0vFXk1Je1tJ3je0ivV5o-k,98
|
|
3
|
+
standardbots/auto_generated/apis.py,sha256=kM4zHhg9FLzpnH9AFfZ4GWYauccWCvpgIzMiC1l-1oE,44694
|
|
4
|
+
standardbots/auto_generated/models.py,sha256=ATn3CjJI1D5GPIa3UqijLwQtsuAXOdg_6fteFEWlS84,188408
|
|
5
|
+
standardbots-2.20241003.42.dist-info/METADATA,sha256=msmeAOwrwX4Yd80UjHhq-TtjphUwXayxA0OLxzFWNyU,552
|
|
6
|
+
standardbots-2.20241003.42.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
7
|
+
standardbots-2.20241003.42.dist-info/top_level.txt,sha256=8Cb2uu5PLn7ayueFHSdWnFlKJzvSezDEKTHiup_bxH0,13
|
|
8
|
+
standardbots-2.20241003.42.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
standardbots/__init__.py,sha256=PT6Z2HPama2fb6SaNhF3J1skpYABQWGgDzKEtQY6BDM,29
|
|
2
|
-
standardbots/auto_generated/__init__.py,sha256=PZtDUzYcjIO6R-gE-0NzY0vFXk1Je1tJ3je0ivV5o-k,98
|
|
3
|
-
standardbots/auto_generated/apis.py,sha256=6GKDzPEQxlZq9Fd6FZ9AtLxCtUjz2YvlRJubhHoqtN0,44252
|
|
4
|
-
standardbots/auto_generated/models.py,sha256=8iCxLKk9yMTpDAK3iGb_Cm4dSC9Zgi5QGG06RhrUHcM,187495
|
|
5
|
-
standardbots-2.20241003.40.dist-info/METADATA,sha256=inMJ-1HFIR7MFvTRNFOyYFS5jnu7ojvbkCpnp2l6LvI,552
|
|
6
|
-
standardbots-2.20241003.40.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
7
|
-
standardbots-2.20241003.40.dist-info/top_level.txt,sha256=8Cb2uu5PLn7ayueFHSdWnFlKJzvSezDEKTHiup_bxH0,13
|
|
8
|
-
standardbots-2.20241003.40.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|