wandelbots-api-client 26.3.0.dev40__py3-none-any.whl → 26.3.0.dev42__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.
- wandelbots_api_client/__init__.py +1 -1
- wandelbots_api_client/api_client.py +1 -1
- wandelbots_api_client/configuration.py +1 -1
- wandelbots_api_client/v2/__init__.py +1 -1
- wandelbots_api_client/v2/api_client.py +1 -1
- wandelbots_api_client/v2/configuration.py +1 -1
- wandelbots_api_client/v2/models/__init__.py +10 -0
- wandelbots_api_client/v2/models/constrained_pose.py +87 -0
- wandelbots_api_client/v2/models/direction_constraint.py +107 -0
- wandelbots_api_client/v2/models/error_direction_constraint_not_met.py +93 -0
- wandelbots_api_client/v2/models/error_direction_constraint_not_normalized.py +96 -0
- wandelbots_api_client/v2/models/error_unsupported_operation.py +90 -0
- wandelbots_api_client/v2/models/feedback_direction_constraint_no_solution_exists.py +93 -0
- wandelbots_api_client/v2/models/feedback_direction_constraint_not_met.py +93 -0
- wandelbots_api_client/v2/models/feedback_direction_constraint_not_normalized.py +96 -0
- wandelbots_api_client/v2/models/motion_command_path.py +85 -8
- wandelbots_api_client/v2/models/path_direction_constrained_cartesian_ptp.py +106 -0
- wandelbots_api_client/v2/models/path_direction_constrained_joint_ptp.py +102 -0
- wandelbots_api_client/v2/models/plan_collision_free_request.py +11 -2
- wandelbots_api_client/v2/models/plan_trajectory_failed_response_error_feedback.py +73 -4
- wandelbots_api_client/v2/models/plan_validation_error_all_of_data.py +100 -8
- wandelbots_api_client/v2_pydantic/__init__.py +1 -1
- wandelbots_api_client/v2_pydantic/api_client.py +1 -1
- wandelbots_api_client/v2_pydantic/configuration.py +1 -1
- wandelbots_api_client/v2_pydantic/models/__init__.py +22 -2
- wandelbots_api_client/v2_pydantic/models/models.py +174 -4
- {wandelbots_api_client-26.3.0.dev40.dist-info → wandelbots_api_client-26.3.0.dev42.dist-info}/METADATA +2 -2
- {wandelbots_api_client-26.3.0.dev40.dist-info → wandelbots_api_client-26.3.0.dev42.dist-info}/RECORD +29 -19
- {wandelbots_api_client-26.3.0.dev40.dist-info → wandelbots_api_client-26.3.0.dev42.dist-info}/WHEEL +0 -0
|
@@ -83,7 +83,7 @@ class ApiClient:
|
|
|
83
83
|
self.default_headers[header_name] = header_value
|
|
84
84
|
self.cookie = cookie
|
|
85
85
|
# Set default User-Agent.
|
|
86
|
-
self.user_agent = "Wandelbots-Nova-API-Python-Client/26.3.0.
|
|
86
|
+
self.user_agent = "Wandelbots-Nova-API-Python-Client/26.3.0.dev42"
|
|
87
87
|
self.client_side_validation = configuration.client_side_validation
|
|
88
88
|
|
|
89
89
|
async def __aenter__(self):
|
|
@@ -512,7 +512,7 @@ class Configuration:
|
|
|
512
512
|
"OS: {env}\n"
|
|
513
513
|
"Python Version: {pyversion}\n"
|
|
514
514
|
"Version of the API: 1.4.0 dev\n"
|
|
515
|
-
"SDK Package Version: 26.3.0.
|
|
515
|
+
"SDK Package Version: 26.3.0.dev42".format(env=sys.platform, pyversion=sys.version)
|
|
516
516
|
)
|
|
517
517
|
|
|
518
518
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -85,7 +85,7 @@ class ApiClient:
|
|
|
85
85
|
self.default_headers[header_name] = header_value
|
|
86
86
|
self.cookie = cookie
|
|
87
87
|
# Set default User-Agent.
|
|
88
|
-
self.user_agent = "Wandelbots-Nova-API-Python-Client/26.3.0.
|
|
88
|
+
self.user_agent = "Wandelbots-Nova-API-Python-Client/26.3.0.dev42"
|
|
89
89
|
self.client_side_validation = configuration.client_side_validation
|
|
90
90
|
|
|
91
91
|
async def __aenter__(self):
|
|
@@ -512,7 +512,7 @@ class Configuration:
|
|
|
512
512
|
"OS: {env}\n"
|
|
513
513
|
"Python Version: {pyversion}\n"
|
|
514
514
|
"Version of the API: 2.3.0 dev\n"
|
|
515
|
-
"SDK Package Version: 26.3.0.
|
|
515
|
+
"SDK Package Version: 26.3.0.dev42".format(env=sys.platform, pyversion=sys.version)
|
|
516
516
|
)
|
|
517
517
|
|
|
518
518
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -89,6 +89,7 @@ from wandelbots_api_client.v2.models.configuration_archive_status_creating impor
|
|
|
89
89
|
from wandelbots_api_client.v2.models.configuration_archive_status_error import ConfigurationArchiveStatusError
|
|
90
90
|
from wandelbots_api_client.v2.models.configuration_archive_status_success import ConfigurationArchiveStatusSuccess
|
|
91
91
|
from wandelbots_api_client.v2.models.configuration_resource import ConfigurationResource
|
|
92
|
+
from wandelbots_api_client.v2.models.constrained_pose import ConstrainedPose
|
|
92
93
|
from wandelbots_api_client.v2.models.container_environment_inner import ContainerEnvironmentInner
|
|
93
94
|
from wandelbots_api_client.v2.models.container_image import ContainerImage
|
|
94
95
|
from wandelbots_api_client.v2.models.container_image_secrets_inner import ContainerImageSecretsInner
|
|
@@ -103,11 +104,15 @@ from wandelbots_api_client.v2.models.cycle_time import CycleTime
|
|
|
103
104
|
from wandelbots_api_client.v2.models.cylinder import Cylinder
|
|
104
105
|
from wandelbots_api_client.v2.models.dh_parameter import DHParameter
|
|
105
106
|
from wandelbots_api_client.v2.models.direction import Direction
|
|
107
|
+
from wandelbots_api_client.v2.models.direction_constraint import DirectionConstraint
|
|
106
108
|
from wandelbots_api_client.v2.models.error import Error
|
|
109
|
+
from wandelbots_api_client.v2.models.error_direction_constraint_not_met import ErrorDirectionConstraintNotMet
|
|
110
|
+
from wandelbots_api_client.v2.models.error_direction_constraint_not_normalized import ErrorDirectionConstraintNotNormalized
|
|
107
111
|
from wandelbots_api_client.v2.models.error_invalid_joint_count import ErrorInvalidJointCount
|
|
108
112
|
from wandelbots_api_client.v2.models.error_joint_limit_exceeded import ErrorJointLimitExceeded
|
|
109
113
|
from wandelbots_api_client.v2.models.error_joint_position_collision import ErrorJointPositionCollision
|
|
110
114
|
from wandelbots_api_client.v2.models.error_max_iterations_exceeded import ErrorMaxIterationsExceeded
|
|
115
|
+
from wandelbots_api_client.v2.models.error_unsupported_operation import ErrorUnsupportedOperation
|
|
111
116
|
from wandelbots_api_client.v2.models.execute import Execute
|
|
112
117
|
from wandelbots_api_client.v2.models.execute_details import ExecuteDetails
|
|
113
118
|
from wandelbots_api_client.v2.models.execute_jogging_request import ExecuteJoggingRequest
|
|
@@ -118,6 +123,9 @@ from wandelbots_api_client.v2.models.external_joint_stream_datapoint import Exte
|
|
|
118
123
|
from wandelbots_api_client.v2.models.external_joint_stream_request import ExternalJointStreamRequest
|
|
119
124
|
from wandelbots_api_client.v2.models.fanuc_controller import FanucController
|
|
120
125
|
from wandelbots_api_client.v2.models.feedback_collision import FeedbackCollision
|
|
126
|
+
from wandelbots_api_client.v2.models.feedback_direction_constraint_no_solution_exists import FeedbackDirectionConstraintNoSolutionExists
|
|
127
|
+
from wandelbots_api_client.v2.models.feedback_direction_constraint_not_met import FeedbackDirectionConstraintNotMet
|
|
128
|
+
from wandelbots_api_client.v2.models.feedback_direction_constraint_not_normalized import FeedbackDirectionConstraintNotNormalized
|
|
121
129
|
from wandelbots_api_client.v2.models.feedback_joint_limit_exceeded import FeedbackJointLimitExceeded
|
|
122
130
|
from wandelbots_api_client.v2.models.feedback_no_solution_in_current_configuration import FeedbackNoSolutionInCurrentConfiguration
|
|
123
131
|
from wandelbots_api_client.v2.models.feedback_out_of_workspace import FeedbackOutOfWorkspace
|
|
@@ -223,6 +231,8 @@ from wandelbots_api_client.v2.models.orientation_type import OrientationType
|
|
|
223
231
|
from wandelbots_api_client.v2.models.path_cartesian_ptp import PathCartesianPTP
|
|
224
232
|
from wandelbots_api_client.v2.models.path_circle import PathCircle
|
|
225
233
|
from wandelbots_api_client.v2.models.path_cubic_spline import PathCubicSpline
|
|
234
|
+
from wandelbots_api_client.v2.models.path_direction_constrained_cartesian_ptp import PathDirectionConstrainedCartesianPTP
|
|
235
|
+
from wandelbots_api_client.v2.models.path_direction_constrained_joint_ptp import PathDirectionConstrainedJointPTP
|
|
226
236
|
from wandelbots_api_client.v2.models.path_joint_ptp import PathJointPTP
|
|
227
237
|
from wandelbots_api_client.v2.models.path_line import PathLine
|
|
228
238
|
from wandelbots_api_client.v2.models.pause_jogging_request import PauseJoggingRequest
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wandelbots NOVA API
|
|
5
|
+
|
|
6
|
+
Interact with robots in an easy and intuitive way.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.3.0 dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
20
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ConstrainedPose(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
Defines a rotationally constrained pose in 3D space. The orientation is constrained to rotations around a single axis.
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
|
|
32
|
+
position: Annotated[List[Union[StrictFloat, StrictInt]], Field(min_length=3, max_length=3)] = Field(
|
|
33
|
+
description="A three-dimensional vector [x, y, z] with double precision. "
|
|
34
|
+
)
|
|
35
|
+
orientation: Union[StrictFloat, StrictInt]
|
|
36
|
+
__properties: ClassVar[List[str]] = ["position", "orientation"]
|
|
37
|
+
|
|
38
|
+
model_config = ConfigDict(
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
41
|
+
validate_assignment=True,
|
|
42
|
+
protected_namespaces=(),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
def to_str(self) -> str:
|
|
46
|
+
"""Returns the string representation of the model using alias"""
|
|
47
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
+
|
|
49
|
+
def to_json(self) -> str:
|
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of ConstrainedPose from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of ConstrainedPose from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return cls.model_validate(obj)
|
|
85
|
+
|
|
86
|
+
_obj = cls.model_validate({"position": obj.get("position"), "orientation": obj.get("orientation")})
|
|
87
|
+
return _obj
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wandelbots NOVA API
|
|
5
|
+
|
|
6
|
+
Interact with robots in an easy and intuitive way.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.3.0 dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
|
|
20
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class DirectionConstraint(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
A direction constraint is defined by a vector in world frame and a vector in the TCP frame. The direction constraint is satisfied when the vectors are aligned with each other, which the planner attempts to achieve. Example: If the world vector is [0, 0, 1] and the TCP vector is [0, 0, -1], the planner will try to keep the TCP facing downward during the motion. The constraint vectors must be normalized.
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
|
|
32
|
+
world: Annotated[List[Union[StrictFloat, StrictInt]], Field(min_length=3, max_length=3)] = Field(
|
|
33
|
+
description="The direction constraint vector in world frame."
|
|
34
|
+
)
|
|
35
|
+
tcp: Annotated[List[Union[StrictFloat, StrictInt]], Field(min_length=3, max_length=3)] = Field(
|
|
36
|
+
description="The direction constraint vector in the TCP frame."
|
|
37
|
+
)
|
|
38
|
+
tolerance: Union[StrictFloat, StrictInt] = Field(
|
|
39
|
+
description="The tolerance in degrees for the direction constraint. The planner will try to satisfy the constraint within this tolerance. Start and target orientations must also satisfy it within this tolerance. "
|
|
40
|
+
)
|
|
41
|
+
constraint_name: StrictStr
|
|
42
|
+
__properties: ClassVar[List[str]] = ["world", "tcp", "tolerance", "constraint_name"]
|
|
43
|
+
|
|
44
|
+
@field_validator("constraint_name")
|
|
45
|
+
def constraint_name_validate_enum(cls, value):
|
|
46
|
+
"""Validates the enum"""
|
|
47
|
+
if value not in set(["DirectionConstraint"]):
|
|
48
|
+
raise ValueError("must be one of enum values ('DirectionConstraint')")
|
|
49
|
+
return value
|
|
50
|
+
|
|
51
|
+
model_config = ConfigDict(
|
|
52
|
+
validate_by_name=True,
|
|
53
|
+
validate_by_alias=True,
|
|
54
|
+
validate_assignment=True,
|
|
55
|
+
protected_namespaces=(),
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
def to_str(self) -> str:
|
|
59
|
+
"""Returns the string representation of the model using alias"""
|
|
60
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
61
|
+
|
|
62
|
+
def to_json(self) -> str:
|
|
63
|
+
"""Returns the JSON representation of the model using alias"""
|
|
64
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
68
|
+
"""Create an instance of DirectionConstraint from a JSON string"""
|
|
69
|
+
return cls.from_dict(json.loads(json_str))
|
|
70
|
+
|
|
71
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
72
|
+
"""Return the dictionary representation of the model using alias.
|
|
73
|
+
|
|
74
|
+
This has the following differences from calling pydantic's
|
|
75
|
+
`self.model_dump(by_alias=True)`:
|
|
76
|
+
|
|
77
|
+
* `None` is only added to the output dict for nullable fields that
|
|
78
|
+
were set at model initialization. Other fields with value `None`
|
|
79
|
+
are ignored.
|
|
80
|
+
"""
|
|
81
|
+
excluded_fields: Set[str] = set([])
|
|
82
|
+
|
|
83
|
+
_dict = self.model_dump(
|
|
84
|
+
by_alias=True,
|
|
85
|
+
exclude=excluded_fields,
|
|
86
|
+
exclude_none=True,
|
|
87
|
+
)
|
|
88
|
+
return _dict
|
|
89
|
+
|
|
90
|
+
@classmethod
|
|
91
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
92
|
+
"""Create an instance of DirectionConstraint from a dict"""
|
|
93
|
+
if obj is None:
|
|
94
|
+
return None
|
|
95
|
+
|
|
96
|
+
if not isinstance(obj, dict):
|
|
97
|
+
return cls.model_validate(obj)
|
|
98
|
+
|
|
99
|
+
_obj = cls.model_validate(
|
|
100
|
+
{
|
|
101
|
+
"world": obj.get("world"),
|
|
102
|
+
"tcp": obj.get("tcp"),
|
|
103
|
+
"tolerance": obj.get("tolerance"),
|
|
104
|
+
"constraint_name": obj.get("constraint_name"),
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
return _obj
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wandelbots NOVA API
|
|
5
|
+
|
|
6
|
+
Interact with robots in an easy and intuitive way.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.3.0 dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
|
|
20
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
21
|
+
from typing import Optional, Set
|
|
22
|
+
from typing_extensions import Self
|
|
23
|
+
from pydantic_core import to_jsonable_python
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class ErrorDirectionConstraintNotMet(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
A reference joint position (start or target) violates the direction constraint.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
|
|
31
|
+
joint_position: Optional[List[Union[StrictFloat, StrictInt]]] = Field(
|
|
32
|
+
default=None, description="The joint position violating the direction constraint. "
|
|
33
|
+
)
|
|
34
|
+
error_feedback_name: StrictStr
|
|
35
|
+
__properties: ClassVar[List[str]] = ["joint_position", "error_feedback_name"]
|
|
36
|
+
|
|
37
|
+
@field_validator("error_feedback_name")
|
|
38
|
+
def error_feedback_name_validate_enum(cls, value):
|
|
39
|
+
"""Validates the enum"""
|
|
40
|
+
if value not in set(["ErrorDirectionConstraintNotMet"]):
|
|
41
|
+
raise ValueError("must be one of enum values ('ErrorDirectionConstraintNotMet')")
|
|
42
|
+
return value
|
|
43
|
+
|
|
44
|
+
model_config = ConfigDict(
|
|
45
|
+
validate_by_name=True,
|
|
46
|
+
validate_by_alias=True,
|
|
47
|
+
validate_assignment=True,
|
|
48
|
+
protected_namespaces=(),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
def to_str(self) -> str:
|
|
52
|
+
"""Returns the string representation of the model using alias"""
|
|
53
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
54
|
+
|
|
55
|
+
def to_json(self) -> str:
|
|
56
|
+
"""Returns the JSON representation of the model using alias"""
|
|
57
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
61
|
+
"""Create an instance of ErrorDirectionConstraintNotMet from a JSON string"""
|
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
|
63
|
+
|
|
64
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
65
|
+
"""Return the dictionary representation of the model using alias.
|
|
66
|
+
|
|
67
|
+
This has the following differences from calling pydantic's
|
|
68
|
+
`self.model_dump(by_alias=True)`:
|
|
69
|
+
|
|
70
|
+
* `None` is only added to the output dict for nullable fields that
|
|
71
|
+
were set at model initialization. Other fields with value `None`
|
|
72
|
+
are ignored.
|
|
73
|
+
"""
|
|
74
|
+
excluded_fields: Set[str] = set([])
|
|
75
|
+
|
|
76
|
+
_dict = self.model_dump(
|
|
77
|
+
by_alias=True,
|
|
78
|
+
exclude=excluded_fields,
|
|
79
|
+
exclude_none=True,
|
|
80
|
+
)
|
|
81
|
+
return _dict
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
+
"""Create an instance of ErrorDirectionConstraintNotMet from a dict"""
|
|
86
|
+
if obj is None:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
if not isinstance(obj, dict):
|
|
90
|
+
return cls.model_validate(obj)
|
|
91
|
+
|
|
92
|
+
_obj = cls.model_validate({"joint_position": obj.get("joint_position"), "error_feedback_name": obj.get("error_feedback_name")})
|
|
93
|
+
return _obj
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wandelbots NOVA API
|
|
5
|
+
|
|
6
|
+
Interact with robots in an easy and intuitive way.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.3.0 dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
|
|
20
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ErrorDirectionConstraintNotNormalized(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
The provided direction constraint is not normalized.
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
|
|
32
|
+
direction_constraint: Optional[Annotated[List[Union[StrictFloat, StrictInt]], Field(min_length=3, max_length=3)]] = Field(
|
|
33
|
+
default=None, description="The direction constraint that is not normalized. "
|
|
34
|
+
)
|
|
35
|
+
error_feedback_name: StrictStr
|
|
36
|
+
__properties: ClassVar[List[str]] = ["direction_constraint", "error_feedback_name"]
|
|
37
|
+
|
|
38
|
+
@field_validator("error_feedback_name")
|
|
39
|
+
def error_feedback_name_validate_enum(cls, value):
|
|
40
|
+
"""Validates the enum"""
|
|
41
|
+
if value not in set(["ErrorDirectionConstraintNotNormalized"]):
|
|
42
|
+
raise ValueError("must be one of enum values ('ErrorDirectionConstraintNotNormalized')")
|
|
43
|
+
return value
|
|
44
|
+
|
|
45
|
+
model_config = ConfigDict(
|
|
46
|
+
validate_by_name=True,
|
|
47
|
+
validate_by_alias=True,
|
|
48
|
+
validate_assignment=True,
|
|
49
|
+
protected_namespaces=(),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
def to_str(self) -> str:
|
|
53
|
+
"""Returns the string representation of the model using alias"""
|
|
54
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
55
|
+
|
|
56
|
+
def to_json(self) -> str:
|
|
57
|
+
"""Returns the JSON representation of the model using alias"""
|
|
58
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
59
|
+
|
|
60
|
+
@classmethod
|
|
61
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
62
|
+
"""Create an instance of ErrorDirectionConstraintNotNormalized from a JSON string"""
|
|
63
|
+
return cls.from_dict(json.loads(json_str))
|
|
64
|
+
|
|
65
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
66
|
+
"""Return the dictionary representation of the model using alias.
|
|
67
|
+
|
|
68
|
+
This has the following differences from calling pydantic's
|
|
69
|
+
`self.model_dump(by_alias=True)`:
|
|
70
|
+
|
|
71
|
+
* `None` is only added to the output dict for nullable fields that
|
|
72
|
+
were set at model initialization. Other fields with value `None`
|
|
73
|
+
are ignored.
|
|
74
|
+
"""
|
|
75
|
+
excluded_fields: Set[str] = set([])
|
|
76
|
+
|
|
77
|
+
_dict = self.model_dump(
|
|
78
|
+
by_alias=True,
|
|
79
|
+
exclude=excluded_fields,
|
|
80
|
+
exclude_none=True,
|
|
81
|
+
)
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of ErrorDirectionConstraintNotNormalized from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate(
|
|
94
|
+
{"direction_constraint": obj.get("direction_constraint"), "error_feedback_name": obj.get("error_feedback_name")}
|
|
95
|
+
)
|
|
96
|
+
return _obj
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wandelbots NOVA API
|
|
5
|
+
|
|
6
|
+
Interact with robots in an easy and intuitive way.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.3.0 dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
|
|
20
|
+
from typing import Any, ClassVar, Dict, List
|
|
21
|
+
from typing import Optional, Set
|
|
22
|
+
from typing_extensions import Self
|
|
23
|
+
from pydantic_core import to_jsonable_python
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class ErrorUnsupportedOperation(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
The operation requested is not supported.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
|
|
31
|
+
error_feedback_name: StrictStr
|
|
32
|
+
__properties: ClassVar[List[str]] = ["error_feedback_name"]
|
|
33
|
+
|
|
34
|
+
@field_validator("error_feedback_name")
|
|
35
|
+
def error_feedback_name_validate_enum(cls, value):
|
|
36
|
+
"""Validates the enum"""
|
|
37
|
+
if value not in set(["ErrorUnsupportedOperation"]):
|
|
38
|
+
raise ValueError("must be one of enum values ('ErrorUnsupportedOperation')")
|
|
39
|
+
return value
|
|
40
|
+
|
|
41
|
+
model_config = ConfigDict(
|
|
42
|
+
validate_by_name=True,
|
|
43
|
+
validate_by_alias=True,
|
|
44
|
+
validate_assignment=True,
|
|
45
|
+
protected_namespaces=(),
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
def to_str(self) -> str:
|
|
49
|
+
"""Returns the string representation of the model using alias"""
|
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
51
|
+
|
|
52
|
+
def to_json(self) -> str:
|
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
|
54
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
+
"""Create an instance of ErrorUnsupportedOperation from a JSON string"""
|
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
"""Return the dictionary representation of the model using alias.
|
|
63
|
+
|
|
64
|
+
This has the following differences from calling pydantic's
|
|
65
|
+
`self.model_dump(by_alias=True)`:
|
|
66
|
+
|
|
67
|
+
* `None` is only added to the output dict for nullable fields that
|
|
68
|
+
were set at model initialization. Other fields with value `None`
|
|
69
|
+
are ignored.
|
|
70
|
+
"""
|
|
71
|
+
excluded_fields: Set[str] = set([])
|
|
72
|
+
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude=excluded_fields,
|
|
76
|
+
exclude_none=True,
|
|
77
|
+
)
|
|
78
|
+
return _dict
|
|
79
|
+
|
|
80
|
+
@classmethod
|
|
81
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
82
|
+
"""Create an instance of ErrorUnsupportedOperation from a dict"""
|
|
83
|
+
if obj is None:
|
|
84
|
+
return None
|
|
85
|
+
|
|
86
|
+
if not isinstance(obj, dict):
|
|
87
|
+
return cls.model_validate(obj)
|
|
88
|
+
|
|
89
|
+
_obj = cls.model_validate({"error_feedback_name": obj.get("error_feedback_name")})
|
|
90
|
+
return _obj
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Wandelbots NOVA API
|
|
5
|
+
|
|
6
|
+
Interact with robots in an easy and intuitive way.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.3.0 dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr, field_validator
|
|
20
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
21
|
+
from typing import Optional, Set
|
|
22
|
+
from typing_extensions import Self
|
|
23
|
+
from pydantic_core import to_jsonable_python
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class FeedbackDirectionConstraintNoSolutionExists(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
No ptp motion to the target exists that fulfills the direction constraint.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
|
|
31
|
+
target_joint_position: Optional[List[Union[StrictFloat, StrictInt]]] = None
|
|
32
|
+
error_feedback_name: StrictStr
|
|
33
|
+
__properties: ClassVar[List[str]] = ["target_joint_position", "error_feedback_name"]
|
|
34
|
+
|
|
35
|
+
@field_validator("error_feedback_name")
|
|
36
|
+
def error_feedback_name_validate_enum(cls, value):
|
|
37
|
+
"""Validates the enum"""
|
|
38
|
+
if value not in set(["FeedbackDirectionConstraintNoSolutionExists"]):
|
|
39
|
+
raise ValueError("must be one of enum values ('FeedbackDirectionConstraintNoSolutionExists')")
|
|
40
|
+
return value
|
|
41
|
+
|
|
42
|
+
model_config = ConfigDict(
|
|
43
|
+
validate_by_name=True,
|
|
44
|
+
validate_by_alias=True,
|
|
45
|
+
validate_assignment=True,
|
|
46
|
+
protected_namespaces=(),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
def to_str(self) -> str:
|
|
50
|
+
"""Returns the string representation of the model using alias"""
|
|
51
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
+
|
|
53
|
+
def to_json(self) -> str:
|
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
|
55
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
+
"""Create an instance of FeedbackDirectionConstraintNoSolutionExists from a JSON string"""
|
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
|
61
|
+
|
|
62
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
63
|
+
"""Return the dictionary representation of the model using alias.
|
|
64
|
+
|
|
65
|
+
This has the following differences from calling pydantic's
|
|
66
|
+
`self.model_dump(by_alias=True)`:
|
|
67
|
+
|
|
68
|
+
* `None` is only added to the output dict for nullable fields that
|
|
69
|
+
were set at model initialization. Other fields with value `None`
|
|
70
|
+
are ignored.
|
|
71
|
+
"""
|
|
72
|
+
excluded_fields: Set[str] = set([])
|
|
73
|
+
|
|
74
|
+
_dict = self.model_dump(
|
|
75
|
+
by_alias=True,
|
|
76
|
+
exclude=excluded_fields,
|
|
77
|
+
exclude_none=True,
|
|
78
|
+
)
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of FeedbackDirectionConstraintNoSolutionExists from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate(
|
|
91
|
+
{"target_joint_position": obj.get("target_joint_position"), "error_feedback_name": obj.get("error_feedback_name")}
|
|
92
|
+
)
|
|
93
|
+
return _obj
|