wandelbots-api-client 26.3.0.dev44__py3-none-any.whl → 26.3.0.dev45__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 +8 -0
- wandelbots_api_client/v2/models/feedback_commands_missing.py +90 -0
- wandelbots_api_client/v2/models/feedback_cubic_spline_is_not_increasing.py +100 -0
- wandelbots_api_client/v2/models/feedback_cubic_spline_not_at_start_pose.py +105 -0
- wandelbots_api_client/v2/models/feedback_invalid_dof.py +101 -0
- wandelbots_api_client/v2/models/feedback_invalid_nan_value.py +91 -0
- wandelbots_api_client/v2/models/feedback_invalid_sampling_time.py +91 -0
- wandelbots_api_client/v2/models/feedback_start_joints_missing.py +98 -0
- wandelbots_api_client/v2/models/feedback_torque_exceeded.py +98 -0
- wandelbots_api_client/v2/models/plan_trajectory_failed_response_error_feedback.py +214 -30
- 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 +18 -2
- wandelbots_api_client/v2_pydantic/models/models.py +111 -18
- {wandelbots_api_client-26.3.0.dev44.dist-info → wandelbots_api_client-26.3.0.dev45.dist-info}/METADATA +2 -2
- {wandelbots_api_client-26.3.0.dev44.dist-info → wandelbots_api_client-26.3.0.dev45.dist-info}/RECORD +24 -16
- {wandelbots_api_client-26.3.0.dev44.dist-info → wandelbots_api_client-26.3.0.dev45.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.dev45"
|
|
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.dev45".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.dev45"
|
|
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.dev45".format(env=sys.platform, pyversion=sys.version)
|
|
516
516
|
)
|
|
517
517
|
|
|
518
518
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -125,13 +125,21 @@ from wandelbots_api_client.v2.models.external_joint_stream_datapoint import Exte
|
|
|
125
125
|
from wandelbots_api_client.v2.models.external_joint_stream_request import ExternalJointStreamRequest
|
|
126
126
|
from wandelbots_api_client.v2.models.fanuc_controller import FanucController
|
|
127
127
|
from wandelbots_api_client.v2.models.feedback_collision import FeedbackCollision
|
|
128
|
+
from wandelbots_api_client.v2.models.feedback_commands_missing import FeedbackCommandsMissing
|
|
129
|
+
from wandelbots_api_client.v2.models.feedback_cubic_spline_is_not_increasing import FeedbackCubicSplineIsNotIncreasing
|
|
130
|
+
from wandelbots_api_client.v2.models.feedback_cubic_spline_not_at_start_pose import FeedbackCubicSplineNotAtStartPose
|
|
128
131
|
from wandelbots_api_client.v2.models.feedback_direction_constraint_no_solution_exists import FeedbackDirectionConstraintNoSolutionExists
|
|
129
132
|
from wandelbots_api_client.v2.models.feedback_direction_constraint_not_met import FeedbackDirectionConstraintNotMet
|
|
130
133
|
from wandelbots_api_client.v2.models.feedback_direction_constraint_not_normalized import FeedbackDirectionConstraintNotNormalized
|
|
134
|
+
from wandelbots_api_client.v2.models.feedback_invalid_dof import FeedbackInvalidDof
|
|
135
|
+
from wandelbots_api_client.v2.models.feedback_invalid_nan_value import FeedbackInvalidNanValue
|
|
136
|
+
from wandelbots_api_client.v2.models.feedback_invalid_sampling_time import FeedbackInvalidSamplingTime
|
|
131
137
|
from wandelbots_api_client.v2.models.feedback_joint_limit_exceeded import FeedbackJointLimitExceeded
|
|
132
138
|
from wandelbots_api_client.v2.models.feedback_no_solution_in_current_configuration import FeedbackNoSolutionInCurrentConfiguration
|
|
133
139
|
from wandelbots_api_client.v2.models.feedback_out_of_workspace import FeedbackOutOfWorkspace
|
|
134
140
|
from wandelbots_api_client.v2.models.feedback_singularity import FeedbackSingularity
|
|
141
|
+
from wandelbots_api_client.v2.models.feedback_start_joints_missing import FeedbackStartJointsMissing
|
|
142
|
+
from wandelbots_api_client.v2.models.feedback_torque_exceeded import FeedbackTorqueExceeded
|
|
135
143
|
from wandelbots_api_client.v2.models.flag import Flag
|
|
136
144
|
from wandelbots_api_client.v2.models.flange_payload import FlangePayload
|
|
137
145
|
from wandelbots_api_client.v2.models.float_value import FloatValue
|
|
@@ -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 FeedbackCommandsMissing(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
No commands have been provided in the plan request.
|
|
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(["FeedbackCommandsMissing"]):
|
|
38
|
+
raise ValueError("must be one of enum values ('FeedbackCommandsMissing')")
|
|
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 FeedbackCommandsMissing 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 FeedbackCommandsMissing 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,100 @@
|
|
|
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 FeedbackCubicSplineIsNotIncreasing(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
The path parameter provided in the cubic spline command is not increasing at a certain index.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
|
|
31
|
+
index: Optional[StrictInt] = None
|
|
32
|
+
previous_value: Optional[Union[StrictFloat, StrictInt]] = None
|
|
33
|
+
current_value: Optional[Union[StrictFloat, StrictInt]] = None
|
|
34
|
+
error_feedback_name: StrictStr
|
|
35
|
+
__properties: ClassVar[List[str]] = ["index", "previous_value", "current_value", "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(["FeedbackCubicSplineIsNotIncreasing"]):
|
|
41
|
+
raise ValueError("must be one of enum values ('FeedbackCubicSplineIsNotIncreasing')")
|
|
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 FeedbackCubicSplineIsNotIncreasing 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 FeedbackCubicSplineIsNotIncreasing 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(
|
|
93
|
+
{
|
|
94
|
+
"index": obj.get("index"),
|
|
95
|
+
"previous_value": obj.get("previous_value"),
|
|
96
|
+
"current_value": obj.get("current_value"),
|
|
97
|
+
"error_feedback_name": obj.get("error_feedback_name"),
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
return _obj
|
|
@@ -0,0 +1,105 @@
|
|
|
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, Optional
|
|
21
|
+
from wandelbots_api_client.v2.models.pose import Pose
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class FeedbackCubicSplineNotAtStartPose(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
The first pose provided in the cubic spline command is not the same as the end pose of the preceeding command.
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
|
|
32
|
+
first_spline_pose: Optional[Pose] = None
|
|
33
|
+
start_pose: Optional[Pose] = None
|
|
34
|
+
error_feedback_name: StrictStr
|
|
35
|
+
__properties: ClassVar[List[str]] = ["first_spline_pose", "start_pose", "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(["FeedbackCubicSplineNotAtStartPose"]):
|
|
41
|
+
raise ValueError("must be one of enum values ('FeedbackCubicSplineNotAtStartPose')")
|
|
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 FeedbackCubicSplineNotAtStartPose 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
|
+
# override the default output from pydantic by calling `to_dict()` of first_spline_pose
|
|
82
|
+
if self.first_spline_pose:
|
|
83
|
+
_dict["first_spline_pose"] = self.first_spline_pose.to_dict()
|
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of start_pose
|
|
85
|
+
if self.start_pose:
|
|
86
|
+
_dict["start_pose"] = self.start_pose.to_dict()
|
|
87
|
+
return _dict
|
|
88
|
+
|
|
89
|
+
@classmethod
|
|
90
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
91
|
+
"""Create an instance of FeedbackCubicSplineNotAtStartPose from a dict"""
|
|
92
|
+
if obj is None:
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
if not isinstance(obj, dict):
|
|
96
|
+
return cls.model_validate(obj)
|
|
97
|
+
|
|
98
|
+
_obj = cls.model_validate(
|
|
99
|
+
{
|
|
100
|
+
"first_spline_pose": Pose.from_dict(obj["first_spline_pose"]) if obj.get("first_spline_pose") is not None else None,
|
|
101
|
+
"start_pose": Pose.from_dict(obj["start_pose"]) if obj.get("start_pose") is not None else None,
|
|
102
|
+
"error_feedback_name": obj.get("error_feedback_name"),
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
return _obj
|
|
@@ -0,0 +1,101 @@
|
|
|
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 FeedbackInvalidDof(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Some vector provided in the plan command has an invalid number of entries.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
|
|
31
|
+
joint_position: Optional[List[Union[StrictFloat, StrictInt]]] = Field(
|
|
32
|
+
default=None,
|
|
33
|
+
description="This structure describes a set of joint values, e.g., positions, currents, torques, of a motion group. Float precision is the default. ",
|
|
34
|
+
)
|
|
35
|
+
motion_group_dof: Optional[StrictInt] = None
|
|
36
|
+
error_feedback_name: StrictStr
|
|
37
|
+
__properties: ClassVar[List[str]] = ["joint_position", "motion_group_dof", "error_feedback_name"]
|
|
38
|
+
|
|
39
|
+
@field_validator("error_feedback_name")
|
|
40
|
+
def error_feedback_name_validate_enum(cls, value):
|
|
41
|
+
"""Validates the enum"""
|
|
42
|
+
if value not in set(["FeedbackInvalidDof"]):
|
|
43
|
+
raise ValueError("must be one of enum values ('FeedbackInvalidDof')")
|
|
44
|
+
return value
|
|
45
|
+
|
|
46
|
+
model_config = ConfigDict(
|
|
47
|
+
validate_by_name=True,
|
|
48
|
+
validate_by_alias=True,
|
|
49
|
+
validate_assignment=True,
|
|
50
|
+
protected_namespaces=(),
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
def to_str(self) -> str:
|
|
54
|
+
"""Returns the string representation of the model using alias"""
|
|
55
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
56
|
+
|
|
57
|
+
def to_json(self) -> str:
|
|
58
|
+
"""Returns the JSON representation of the model using alias"""
|
|
59
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
63
|
+
"""Create an instance of FeedbackInvalidDof from a JSON string"""
|
|
64
|
+
return cls.from_dict(json.loads(json_str))
|
|
65
|
+
|
|
66
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
67
|
+
"""Return the dictionary representation of the model using alias.
|
|
68
|
+
|
|
69
|
+
This has the following differences from calling pydantic's
|
|
70
|
+
`self.model_dump(by_alias=True)`:
|
|
71
|
+
|
|
72
|
+
* `None` is only added to the output dict for nullable fields that
|
|
73
|
+
were set at model initialization. Other fields with value `None`
|
|
74
|
+
are ignored.
|
|
75
|
+
"""
|
|
76
|
+
excluded_fields: Set[str] = set([])
|
|
77
|
+
|
|
78
|
+
_dict = self.model_dump(
|
|
79
|
+
by_alias=True,
|
|
80
|
+
exclude=excluded_fields,
|
|
81
|
+
exclude_none=True,
|
|
82
|
+
)
|
|
83
|
+
return _dict
|
|
84
|
+
|
|
85
|
+
@classmethod
|
|
86
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
+
"""Create an instance of FeedbackInvalidDof from a dict"""
|
|
88
|
+
if obj is None:
|
|
89
|
+
return None
|
|
90
|
+
|
|
91
|
+
if not isinstance(obj, dict):
|
|
92
|
+
return cls.model_validate(obj)
|
|
93
|
+
|
|
94
|
+
_obj = cls.model_validate(
|
|
95
|
+
{
|
|
96
|
+
"joint_position": obj.get("joint_position"),
|
|
97
|
+
"motion_group_dof": obj.get("motion_group_dof"),
|
|
98
|
+
"error_feedback_name": obj.get("error_feedback_name"),
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
return _obj
|
|
@@ -0,0 +1,91 @@
|
|
|
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 FeedbackInvalidNanValue(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Some vector provided in the plan command contains not-a-number (NaN).
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
|
|
31
|
+
value: Optional[List[Union[StrictFloat, StrictInt]]] = None
|
|
32
|
+
error_feedback_name: StrictStr
|
|
33
|
+
__properties: ClassVar[List[str]] = ["value", "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(["FeedbackInvalidNanValue"]):
|
|
39
|
+
raise ValueError("must be one of enum values ('FeedbackInvalidNanValue')")
|
|
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 FeedbackInvalidNanValue 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 FeedbackInvalidNanValue 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({"value": obj.get("value"), "error_feedback_name": obj.get("error_feedback_name")})
|
|
91
|
+
return _obj
|
|
@@ -0,0 +1,91 @@
|
|
|
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 FeedbackInvalidSamplingTime(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
The provided sampling time is invalid. It has to be a positive number.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
|
|
31
|
+
sampling_time: Optional[Union[StrictFloat, StrictInt]] = None
|
|
32
|
+
error_feedback_name: StrictStr
|
|
33
|
+
__properties: ClassVar[List[str]] = ["sampling_time", "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(["FeedbackInvalidSamplingTime"]):
|
|
39
|
+
raise ValueError("must be one of enum values ('FeedbackInvalidSamplingTime')")
|
|
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 FeedbackInvalidSamplingTime 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 FeedbackInvalidSamplingTime 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({"sampling_time": obj.get("sampling_time"), "error_feedback_name": obj.get("error_feedback_name")})
|
|
91
|
+
return _obj
|