wandelbots-api-client 26.2.0.dev60__py3-none-any.whl → 26.2.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.
- 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/trajectory_planning_api.py +296 -0
- wandelbots_api_client/v2/api_client.py +1 -1
- wandelbots_api_client/v2/configuration.py +1 -1
- wandelbots_api_client/v2/models/__init__.py +16 -0
- wandelbots_api_client/v2/models/merge_trajectories422_response.py +108 -0
- wandelbots_api_client/v2/models/merge_trajectories_error.py +97 -0
- wandelbots_api_client/v2/models/merge_trajectories_request.py +114 -0
- wandelbots_api_client/v2/models/merge_trajectories_response.py +114 -0
- wandelbots_api_client/v2/models/merge_trajectories_response_feedback_inner.py +137 -0
- wandelbots_api_client/v2/models/merge_trajectories_segment.py +123 -0
- wandelbots_api_client/v2/models/merge_trajectories_validation_error.py +120 -0
- wandelbots_api_client/v2/models/trajectory_section.py +93 -0
- wandelbots_api_client/v2_pydantic/__init__.py +1 -1
- wandelbots_api_client/v2_pydantic/api/trajectory_planning_api.py +299 -0
- 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.py +87 -1
- {wandelbots_api_client-26.2.0.dev60.dist-info → wandelbots_api_client-26.2.0.dev62.dist-info}/METADATA +2 -2
- {wandelbots_api_client-26.2.0.dev60.dist-info → wandelbots_api_client-26.2.0.dev62.dist-info}/RECORD +26 -18
- {wandelbots_api_client-26.2.0.dev60.dist-info → wandelbots_api_client-26.2.0.dev62.dist-info}/WHEEL +0 -0
- {wandelbots_api_client-26.2.0.dev60.dist-info → wandelbots_api_client-26.2.0.dev62.dist-info}/licenses/LICENSE +0 -0
- {wandelbots_api_client-26.2.0.dev60.dist-info → wandelbots_api_client-26.2.0.dev62.dist-info}/top_level.txt +0 -0
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'Wandelbots-Nova-API-Python-Client/26.2.0.
|
|
94
|
+
self.user_agent = 'Wandelbots-Nova-API-Python-Client/26.2.0.dev62'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
async def __aenter__(self):
|
|
@@ -511,7 +511,7 @@ class Configuration:
|
|
|
511
511
|
"OS: {env}\n"\
|
|
512
512
|
"Python Version: {pyversion}\n"\
|
|
513
513
|
"Version of the API: 1.3.0 dev\n"\
|
|
514
|
-
"SDK Package Version: 26.2.0.
|
|
514
|
+
"SDK Package Version: 26.2.0.dev62".\
|
|
515
515
|
format(env=sys.platform, pyversion=sys.version)
|
|
516
516
|
|
|
517
517
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -24,6 +24,8 @@ from urllib.parse import quote
|
|
|
24
24
|
|
|
25
25
|
from pydantic import Field, StrictStr
|
|
26
26
|
from typing_extensions import Annotated
|
|
27
|
+
from wandelbots_api_client.v2.models.merge_trajectories_request import MergeTrajectoriesRequest
|
|
28
|
+
from wandelbots_api_client.v2.models.merge_trajectories_response import MergeTrajectoriesResponse
|
|
27
29
|
from wandelbots_api_client.v2.models.plan_collision_free_request import PlanCollisionFreeRequest
|
|
28
30
|
from wandelbots_api_client.v2.models.plan_collision_free_response import PlanCollisionFreeResponse
|
|
29
31
|
from wandelbots_api_client.v2.models.plan_trajectory_request import PlanTrajectoryRequest
|
|
@@ -45,6 +47,300 @@ class TrajectoryPlanningApi:
|
|
|
45
47
|
api_client = ApiClient.get_default()
|
|
46
48
|
self.api_client = api_client
|
|
47
49
|
|
|
50
|
+
@validate_call
|
|
51
|
+
async def merge_trajectories(
|
|
52
|
+
self,
|
|
53
|
+
cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")],
|
|
54
|
+
merge_trajectories_request: MergeTrajectoriesRequest,
|
|
55
|
+
_request_timeout: Union[
|
|
56
|
+
None,
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
58
|
+
Tuple[
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
61
|
+
]
|
|
62
|
+
] = None,
|
|
63
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
64
|
+
_content_type: Optional[StrictStr] = None,
|
|
65
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
66
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
67
|
+
) -> MergeTrajectoriesResponse:
|
|
68
|
+
"""Merge Trajectories
|
|
69
|
+
|
|
70
|
+
<!-- theme: danger --> > **Experimental** Merges a list of joint trajectories into a single trajectory with collision-aware blending. This endpoint merges a list of separate trajectories by connecting them via blending. The blending is performed with collision checking to ensure the merged trajectory is safe to execute. Timescaling will be applied to the blended area to ensure all limits are respected.
|
|
71
|
+
|
|
72
|
+
:param cell: Unique identifier addressing a cell in all API calls. (required)
|
|
73
|
+
:type cell: str
|
|
74
|
+
:param merge_trajectories_request: (required)
|
|
75
|
+
:type merge_trajectories_request: MergeTrajectoriesRequest
|
|
76
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
77
|
+
number provided, it will be total request
|
|
78
|
+
timeout. It can also be a pair (tuple) of
|
|
79
|
+
(connection, read) timeouts.
|
|
80
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
81
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
82
|
+
request; this effectively ignores the
|
|
83
|
+
authentication in the spec for a single request.
|
|
84
|
+
:type _request_auth: dict, optional
|
|
85
|
+
:param _content_type: force content-type for the request.
|
|
86
|
+
:type _content_type: str, Optional
|
|
87
|
+
:param _headers: set to override the headers for a single
|
|
88
|
+
request; this effectively ignores the headers
|
|
89
|
+
in the spec for a single request.
|
|
90
|
+
:type _headers: dict, optional
|
|
91
|
+
:param _host_index: set to override the host_index for a single
|
|
92
|
+
request; this effectively ignores the host_index
|
|
93
|
+
in the spec for a single request.
|
|
94
|
+
:type _host_index: int, optional
|
|
95
|
+
:return: Returns the result object.
|
|
96
|
+
""" # noqa: E501
|
|
97
|
+
|
|
98
|
+
_param = self._merge_trajectories_serialize(
|
|
99
|
+
cell=cell,
|
|
100
|
+
merge_trajectories_request=merge_trajectories_request,
|
|
101
|
+
_request_auth=_request_auth,
|
|
102
|
+
_content_type=_content_type,
|
|
103
|
+
_headers=_headers,
|
|
104
|
+
_host_index=_host_index
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
108
|
+
'200': "MergeTrajectoriesResponse",
|
|
109
|
+
'404': None,
|
|
110
|
+
'422': "MergeTrajectories422Response",
|
|
111
|
+
'500': None,
|
|
112
|
+
}
|
|
113
|
+
response_data = await self.api_client.call_api(
|
|
114
|
+
*_param,
|
|
115
|
+
_request_timeout=_request_timeout
|
|
116
|
+
)
|
|
117
|
+
await response_data.read()
|
|
118
|
+
return self.api_client.response_deserialize(
|
|
119
|
+
response_data=response_data,
|
|
120
|
+
response_types_map=_response_types_map,
|
|
121
|
+
).data
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
@validate_call
|
|
125
|
+
async def merge_trajectories_with_http_info(
|
|
126
|
+
self,
|
|
127
|
+
cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")],
|
|
128
|
+
merge_trajectories_request: MergeTrajectoriesRequest,
|
|
129
|
+
_request_timeout: Union[
|
|
130
|
+
None,
|
|
131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
132
|
+
Tuple[
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
134
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
135
|
+
]
|
|
136
|
+
] = None,
|
|
137
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
138
|
+
_content_type: Optional[StrictStr] = None,
|
|
139
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
140
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
141
|
+
) -> ApiResponse[MergeTrajectoriesResponse]:
|
|
142
|
+
"""Merge Trajectories
|
|
143
|
+
|
|
144
|
+
<!-- theme: danger --> > **Experimental** Merges a list of joint trajectories into a single trajectory with collision-aware blending. This endpoint merges a list of separate trajectories by connecting them via blending. The blending is performed with collision checking to ensure the merged trajectory is safe to execute. Timescaling will be applied to the blended area to ensure all limits are respected.
|
|
145
|
+
|
|
146
|
+
:param cell: Unique identifier addressing a cell in all API calls. (required)
|
|
147
|
+
:type cell: str
|
|
148
|
+
:param merge_trajectories_request: (required)
|
|
149
|
+
:type merge_trajectories_request: MergeTrajectoriesRequest
|
|
150
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
151
|
+
number provided, it will be total request
|
|
152
|
+
timeout. It can also be a pair (tuple) of
|
|
153
|
+
(connection, read) timeouts.
|
|
154
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
155
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
156
|
+
request; this effectively ignores the
|
|
157
|
+
authentication in the spec for a single request.
|
|
158
|
+
:type _request_auth: dict, optional
|
|
159
|
+
:param _content_type: force content-type for the request.
|
|
160
|
+
:type _content_type: str, Optional
|
|
161
|
+
:param _headers: set to override the headers for a single
|
|
162
|
+
request; this effectively ignores the headers
|
|
163
|
+
in the spec for a single request.
|
|
164
|
+
:type _headers: dict, optional
|
|
165
|
+
:param _host_index: set to override the host_index for a single
|
|
166
|
+
request; this effectively ignores the host_index
|
|
167
|
+
in the spec for a single request.
|
|
168
|
+
:type _host_index: int, optional
|
|
169
|
+
:return: Returns the result object.
|
|
170
|
+
""" # noqa: E501
|
|
171
|
+
|
|
172
|
+
_param = self._merge_trajectories_serialize(
|
|
173
|
+
cell=cell,
|
|
174
|
+
merge_trajectories_request=merge_trajectories_request,
|
|
175
|
+
_request_auth=_request_auth,
|
|
176
|
+
_content_type=_content_type,
|
|
177
|
+
_headers=_headers,
|
|
178
|
+
_host_index=_host_index
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
182
|
+
'200': "MergeTrajectoriesResponse",
|
|
183
|
+
'404': None,
|
|
184
|
+
'422': "MergeTrajectories422Response",
|
|
185
|
+
'500': None,
|
|
186
|
+
}
|
|
187
|
+
response_data = await self.api_client.call_api(
|
|
188
|
+
*_param,
|
|
189
|
+
_request_timeout=_request_timeout
|
|
190
|
+
)
|
|
191
|
+
await response_data.read()
|
|
192
|
+
return self.api_client.response_deserialize(
|
|
193
|
+
response_data=response_data,
|
|
194
|
+
response_types_map=_response_types_map,
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
@validate_call
|
|
199
|
+
async def merge_trajectories_without_preload_content(
|
|
200
|
+
self,
|
|
201
|
+
cell: Annotated[StrictStr, Field(description="Unique identifier addressing a cell in all API calls. ")],
|
|
202
|
+
merge_trajectories_request: MergeTrajectoriesRequest,
|
|
203
|
+
_request_timeout: Union[
|
|
204
|
+
None,
|
|
205
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
206
|
+
Tuple[
|
|
207
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
208
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
209
|
+
]
|
|
210
|
+
] = None,
|
|
211
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
212
|
+
_content_type: Optional[StrictStr] = None,
|
|
213
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
214
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
215
|
+
) -> RESTResponseType:
|
|
216
|
+
"""Merge Trajectories
|
|
217
|
+
|
|
218
|
+
<!-- theme: danger --> > **Experimental** Merges a list of joint trajectories into a single trajectory with collision-aware blending. This endpoint merges a list of separate trajectories by connecting them via blending. The blending is performed with collision checking to ensure the merged trajectory is safe to execute. Timescaling will be applied to the blended area to ensure all limits are respected.
|
|
219
|
+
|
|
220
|
+
:param cell: Unique identifier addressing a cell in all API calls. (required)
|
|
221
|
+
:type cell: str
|
|
222
|
+
:param merge_trajectories_request: (required)
|
|
223
|
+
:type merge_trajectories_request: MergeTrajectoriesRequest
|
|
224
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
225
|
+
number provided, it will be total request
|
|
226
|
+
timeout. It can also be a pair (tuple) of
|
|
227
|
+
(connection, read) timeouts.
|
|
228
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
229
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
230
|
+
request; this effectively ignores the
|
|
231
|
+
authentication in the spec for a single request.
|
|
232
|
+
:type _request_auth: dict, optional
|
|
233
|
+
:param _content_type: force content-type for the request.
|
|
234
|
+
:type _content_type: str, Optional
|
|
235
|
+
:param _headers: set to override the headers for a single
|
|
236
|
+
request; this effectively ignores the headers
|
|
237
|
+
in the spec for a single request.
|
|
238
|
+
:type _headers: dict, optional
|
|
239
|
+
:param _host_index: set to override the host_index for a single
|
|
240
|
+
request; this effectively ignores the host_index
|
|
241
|
+
in the spec for a single request.
|
|
242
|
+
:type _host_index: int, optional
|
|
243
|
+
:return: Returns the result object.
|
|
244
|
+
""" # noqa: E501
|
|
245
|
+
|
|
246
|
+
_param = self._merge_trajectories_serialize(
|
|
247
|
+
cell=cell,
|
|
248
|
+
merge_trajectories_request=merge_trajectories_request,
|
|
249
|
+
_request_auth=_request_auth,
|
|
250
|
+
_content_type=_content_type,
|
|
251
|
+
_headers=_headers,
|
|
252
|
+
_host_index=_host_index
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
256
|
+
'200': "MergeTrajectoriesResponse",
|
|
257
|
+
'404': None,
|
|
258
|
+
'422': "MergeTrajectories422Response",
|
|
259
|
+
'500': None,
|
|
260
|
+
}
|
|
261
|
+
response_data = await self.api_client.call_api(
|
|
262
|
+
*_param,
|
|
263
|
+
_request_timeout=_request_timeout
|
|
264
|
+
)
|
|
265
|
+
return response_data.response
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
def _merge_trajectories_serialize(
|
|
269
|
+
self,
|
|
270
|
+
cell,
|
|
271
|
+
merge_trajectories_request,
|
|
272
|
+
_request_auth,
|
|
273
|
+
_content_type,
|
|
274
|
+
_headers,
|
|
275
|
+
_host_index,
|
|
276
|
+
) -> RequestSerialized:
|
|
277
|
+
|
|
278
|
+
_host = None
|
|
279
|
+
|
|
280
|
+
_collection_formats: Dict[str, str] = {
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
_path_params: Dict[str, str] = {}
|
|
284
|
+
_query_params: List[Tuple[str, str]] = []
|
|
285
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
286
|
+
_form_params: List[Tuple[str, str]] = []
|
|
287
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
288
|
+
_body_params: Optional[bytes] = None
|
|
289
|
+
|
|
290
|
+
# process the path parameters
|
|
291
|
+
if cell is not None:
|
|
292
|
+
_path_params['cell'] = cell
|
|
293
|
+
# process the query parameters
|
|
294
|
+
# process the header parameters
|
|
295
|
+
# process the form parameters
|
|
296
|
+
# process the body parameter
|
|
297
|
+
if merge_trajectories_request is not None:
|
|
298
|
+
_body_params = merge_trajectories_request
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
# set the HTTP header `Accept`
|
|
302
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
303
|
+
[
|
|
304
|
+
'application/json'
|
|
305
|
+
]
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
# set the HTTP header `Content-Type`
|
|
309
|
+
if _content_type:
|
|
310
|
+
_header_params['Content-Type'] = _content_type
|
|
311
|
+
else:
|
|
312
|
+
_default_content_type = (
|
|
313
|
+
self.api_client.select_header_content_type(
|
|
314
|
+
[
|
|
315
|
+
'application/json'
|
|
316
|
+
]
|
|
317
|
+
)
|
|
318
|
+
)
|
|
319
|
+
if _default_content_type is not None:
|
|
320
|
+
_header_params['Content-Type'] = _default_content_type
|
|
321
|
+
|
|
322
|
+
# authentication setting
|
|
323
|
+
_auth_settings: List[str] = [
|
|
324
|
+
'BearerAuth'
|
|
325
|
+
]
|
|
326
|
+
|
|
327
|
+
return self.api_client.param_serialize(
|
|
328
|
+
method='POST',
|
|
329
|
+
resource_path='/experimental/cells/{cell}/trajectory-planning/merge-trajectories',
|
|
330
|
+
path_params=_path_params,
|
|
331
|
+
query_params=_query_params,
|
|
332
|
+
header_params=_header_params,
|
|
333
|
+
body=_body_params,
|
|
334
|
+
post_params=_form_params,
|
|
335
|
+
files=_files,
|
|
336
|
+
auth_settings=_auth_settings,
|
|
337
|
+
collection_formats=_collection_formats,
|
|
338
|
+
_host=_host,
|
|
339
|
+
_request_auth=_request_auth
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
48
344
|
@validate_call
|
|
49
345
|
async def plan_collision_free(
|
|
50
346
|
self,
|
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'Wandelbots-Nova-API-Python-Client/26.2.0.
|
|
94
|
+
self.user_agent = 'Wandelbots-Nova-API-Python-Client/26.2.0.dev62'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
async def __aenter__(self):
|
|
@@ -511,7 +511,7 @@ class Configuration:
|
|
|
511
511
|
"OS: {env}\n"\
|
|
512
512
|
"Python Version: {pyversion}\n"\
|
|
513
513
|
"Version of the API: 2.2.0 dev\n"\
|
|
514
|
-
"SDK Package Version: 26.2.0.
|
|
514
|
+
"SDK Package Version: 26.2.0.dev62".\
|
|
515
515
|
format(env=sys.platform, pyversion=sys.version)
|
|
516
516
|
|
|
517
517
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -148,6 +148,13 @@ from .limit_set import LimitSet
|
|
|
148
148
|
from .limits_override import LimitsOverride
|
|
149
149
|
from .list_trajectories_response import ListTrajectoriesResponse
|
|
150
150
|
from .manufacturer import Manufacturer
|
|
151
|
+
from .merge_trajectories422_response import MergeTrajectories422Response
|
|
152
|
+
from .merge_trajectories_error import MergeTrajectoriesError
|
|
153
|
+
from .merge_trajectories_request import MergeTrajectoriesRequest
|
|
154
|
+
from .merge_trajectories_response import MergeTrajectoriesResponse
|
|
155
|
+
from .merge_trajectories_response_feedback_inner import MergeTrajectoriesResponseFeedbackInner
|
|
156
|
+
from .merge_trajectories_segment import MergeTrajectoriesSegment
|
|
157
|
+
from .merge_trajectories_validation_error import MergeTrajectoriesValidationError
|
|
151
158
|
from .midpoint_insertion_algorithm import MidpointInsertionAlgorithm
|
|
152
159
|
from .modbus_io import ModbusIO
|
|
153
160
|
from .modbus_io_area import ModbusIOArea
|
|
@@ -254,6 +261,7 @@ from .trajectory_id import TrajectoryId
|
|
|
254
261
|
from .trajectory_paused_by_user import TrajectoryPausedByUser
|
|
255
262
|
from .trajectory_paused_on_io import TrajectoryPausedOnIO
|
|
256
263
|
from .trajectory_running import TrajectoryRunning
|
|
264
|
+
from .trajectory_section import TrajectorySection
|
|
257
265
|
from .trajectory_wait_for_io import TrajectoryWaitForIO
|
|
258
266
|
from .unit_type import UnitType
|
|
259
267
|
from .universalrobots_controller import UniversalrobotsController
|
|
@@ -404,6 +412,13 @@ __all__ = [
|
|
|
404
412
|
"LimitsOverride",
|
|
405
413
|
"ListTrajectoriesResponse",
|
|
406
414
|
"Manufacturer",
|
|
415
|
+
"MergeTrajectories422Response",
|
|
416
|
+
"MergeTrajectoriesError",
|
|
417
|
+
"MergeTrajectoriesRequest",
|
|
418
|
+
"MergeTrajectoriesResponse",
|
|
419
|
+
"MergeTrajectoriesResponseFeedbackInner",
|
|
420
|
+
"MergeTrajectoriesSegment",
|
|
421
|
+
"MergeTrajectoriesValidationError",
|
|
407
422
|
"MidpointInsertionAlgorithm",
|
|
408
423
|
"ModbusIO",
|
|
409
424
|
"ModbusIOArea",
|
|
@@ -510,6 +525,7 @@ __all__ = [
|
|
|
510
525
|
"TrajectoryPausedByUser",
|
|
511
526
|
"TrajectoryPausedOnIO",
|
|
512
527
|
"TrajectoryRunning",
|
|
528
|
+
"TrajectorySection",
|
|
513
529
|
"TrajectoryWaitForIO",
|
|
514
530
|
"UnitType",
|
|
515
531
|
"UniversalrobotsController",
|
|
@@ -0,0 +1,108 @@
|
|
|
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.2.0 dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from wandelbots_api_client.v2.models.merge_trajectories_validation_error import MergeTrajectoriesValidationError
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class MergeTrajectories422Response(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
MergeTrajectories422Response
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
detail: Optional[List[MergeTrajectoriesValidationError]] = None
|
|
31
|
+
__properties: ClassVar[List[str]] = ["detail"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True, exclude_none=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""
|
|
46
|
+
Returns the JSON representation of the model using alias
|
|
47
|
+
|
|
48
|
+
Do not use pydantic v2 .model_dump_json(by_alias=True, exclude_unset=True) here!
|
|
49
|
+
It is unable to resolve nested types generated by openapi-generator.
|
|
50
|
+
"""
|
|
51
|
+
return json.dumps(self.to_dict())
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of MergeTrajectories422Response 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
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of each item in detail (list)
|
|
77
|
+
_items = []
|
|
78
|
+
if self.detail:
|
|
79
|
+
for _item in self.detail:
|
|
80
|
+
# >>> Modified from https://github.com/OpenAPITools/openapi-generator/blob/v7.6.0/modules/openapi-generator/src/main/resources/python/model_generic.mustache
|
|
81
|
+
# to not drop empty elements in lists
|
|
82
|
+
if _item is not None:
|
|
83
|
+
_items.append(_item.to_dict())
|
|
84
|
+
# <<< End modification
|
|
85
|
+
_dict['detail'] = _items
|
|
86
|
+
return _dict
|
|
87
|
+
|
|
88
|
+
@classmethod
|
|
89
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
90
|
+
"""Create an instance of MergeTrajectories422Response from a dict"""
|
|
91
|
+
if obj is None:
|
|
92
|
+
return None
|
|
93
|
+
|
|
94
|
+
if not isinstance(obj, dict):
|
|
95
|
+
return cls.model_validate(obj)
|
|
96
|
+
|
|
97
|
+
_obj = cls.model_validate({
|
|
98
|
+
"detail": [
|
|
99
|
+
# >>> Modified from https://github.com/OpenAPITools/openapi-generator/blob/v7.6.0/modules/openapi-generator/src/main/resources/python/model_generic.mustache
|
|
100
|
+
# to allow dicts in lists
|
|
101
|
+
MergeTrajectoriesValidationError.from_dict(_item) if hasattr(MergeTrajectoriesValidationError, 'from_dict') else _item
|
|
102
|
+
# <<< End modification
|
|
103
|
+
for _item in obj["detail"]
|
|
104
|
+
] if obj.get("detail") is not None else None
|
|
105
|
+
})
|
|
106
|
+
return _obj
|
|
107
|
+
|
|
108
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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.2.0 dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
22
|
+
from wandelbots_api_client.v2.models.plan_trajectory_failed_response_error_feedback import PlanTrajectoryFailedResponseErrorFeedback
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class MergeTrajectoriesError(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
MergeTrajectoriesError
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
error_feedback: PlanTrajectoryFailedResponseErrorFeedback
|
|
31
|
+
error_location_on_trajectory: Union[StrictFloat, StrictInt] = Field(description="- The location is a scalar value that defines a position along a path, typically ranging from 0 to `n`, where `n` denotes the number of motion commands - Each integer value of the location corresponds to a specific motion command, while non-integer values interpolate positions within the segments. - The location is calculated from the joint path ")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["error_feedback", "error_location_on_trajectory"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True, exclude_none=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""
|
|
47
|
+
Returns the JSON representation of the model using alias
|
|
48
|
+
|
|
49
|
+
Do not use pydantic v2 .model_dump_json(by_alias=True, exclude_unset=True) here!
|
|
50
|
+
It is unable to resolve nested types generated by openapi-generator.
|
|
51
|
+
"""
|
|
52
|
+
return json.dumps(self.to_dict())
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
+
"""Create an instance of MergeTrajectoriesError from a JSON string"""
|
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
+
"""Return the dictionary representation of the model using alias.
|
|
61
|
+
|
|
62
|
+
This has the following differences from calling pydantic's
|
|
63
|
+
`self.model_dump(by_alias=True)`:
|
|
64
|
+
|
|
65
|
+
* `None` is only added to the output dict for nullable fields that
|
|
66
|
+
were set at model initialization. Other fields with value `None`
|
|
67
|
+
are ignored.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of error_feedback
|
|
78
|
+
if self.error_feedback:
|
|
79
|
+
_dict['error_feedback'] = self.error_feedback.to_dict()
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of MergeTrajectoriesError from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"error_feedback": PlanTrajectoryFailedResponseErrorFeedback.from_dict(obj["error_feedback"]) if obj.get("error_feedback") is not None else None,
|
|
93
|
+
"error_location_on_trajectory": obj.get("error_location_on_trajectory")
|
|
94
|
+
})
|
|
95
|
+
return _obj
|
|
96
|
+
|
|
97
|
+
|