kuavo-humanoid-sdk 1.1.5__py3-none-any.whl → 1.1.6__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 kuavo-humanoid-sdk might be problematic. Click here for more details.

Files changed (50) hide show
  1. kuavo_humanoid_sdk/__init__.py +0 -2
  2. kuavo_humanoid_sdk/interfaces/data_types.py +0 -90
  3. kuavo_humanoid_sdk/kuavo/__init__.py +0 -3
  4. kuavo_humanoid_sdk/kuavo/core/core.py +20 -238
  5. kuavo_humanoid_sdk/kuavo/core/ros/control.py +27 -1087
  6. kuavo_humanoid_sdk/kuavo/core/ros/param.py +4 -142
  7. kuavo_humanoid_sdk/kuavo/core/ros/state.py +19 -556
  8. kuavo_humanoid_sdk/kuavo/core/ros_env.py +1 -229
  9. kuavo_humanoid_sdk/kuavo/dexterous_hand.py +2 -6
  10. kuavo_humanoid_sdk/kuavo/leju_claw.py +2 -6
  11. kuavo_humanoid_sdk/kuavo/robot.py +27 -150
  12. kuavo_humanoid_sdk/kuavo/robot_arm.py +7 -53
  13. kuavo_humanoid_sdk/kuavo/robot_head.py +0 -10
  14. kuavo_humanoid_sdk/kuavo/robot_info.py +2 -7
  15. kuavo_humanoid_sdk/kuavo/robot_state.py +4 -41
  16. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/__init__.py +0 -7
  17. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/__init__.py +0 -5
  18. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_playmusic.py +20 -26
  19. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/__init__.py +9 -0
  20. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_armHandPose.py +2 -2
  21. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_handPose.py +2 -2
  22. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_headBodyPose.py +145 -0
  23. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_ikSolveError.py +13 -13
  24. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_ikSolveParam.py +2 -2
  25. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_robotArmQVVD.py +2 -2
  26. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_robotHandPosition.py +225 -0
  27. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_twoArmHandPose.py +13 -13
  28. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_twoArmHandPoseCmd.py +30 -34
  29. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/__init__.py +4 -0
  30. kuavo_humanoid_sdk/msg/{kuavo_msgs/srv/_setMmCtrlFrame.py → motion_capture_ik/srv/_changeArmCtrlMode.py} +37 -35
  31. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/srv/_changeArmCtrlModeKuavo.py +5 -5
  32. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/srv/_fkSrv.py +13 -13
  33. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/srv/_twoArmHandPoseCmdSrv.py +37 -38
  34. {kuavo_humanoid_sdk-1.1.5.dist-info → kuavo_humanoid_sdk-1.1.6.dist-info}/METADATA +1 -2
  35. {kuavo_humanoid_sdk-1.1.5.dist-info → kuavo_humanoid_sdk-1.1.6.dist-info}/RECORD +37 -46
  36. kuavo_humanoid_sdk/common/global_config.py +0 -16
  37. kuavo_humanoid_sdk/common/websocket_kuavo_sdk.py +0 -23
  38. kuavo_humanoid_sdk/kuavo/core/audio.py +0 -36
  39. kuavo_humanoid_sdk/kuavo/core/ros/audio.py +0 -176
  40. kuavo_humanoid_sdk/kuavo/core/ros/tools.py +0 -158
  41. kuavo_humanoid_sdk/kuavo/core/ros/vision.py +0 -283
  42. kuavo_humanoid_sdk/kuavo/robot_audio.py +0 -39
  43. kuavo_humanoid_sdk/kuavo/robot_tool.py +0 -62
  44. kuavo_humanoid_sdk/kuavo/robot_vision.py +0 -90
  45. kuavo_humanoid_sdk/kuavo_strategy/__init__.py +0 -2
  46. kuavo_humanoid_sdk/kuavo_strategy/grasp_box/grasp_box_strategy.py +0 -418
  47. kuavo_humanoid_sdk/kuavo_strategy/kuavo_strategy.py +0 -63
  48. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SpeechSynthesis.py +0 -270
  49. {kuavo_humanoid_sdk-1.1.5.dist-info → kuavo_humanoid_sdk-1.1.6.dist-info}/WHEEL +0 -0
  50. {kuavo_humanoid_sdk-1.1.5.dist-info → kuavo_humanoid_sdk-1.1.6.dist-info}/top_level.txt +0 -0
@@ -1,270 +0,0 @@
1
- # This Python file uses the following encoding: utf-8
2
- """autogenerated by genpy from kuavo_msgs/SpeechSynthesisRequest.msg. Do not edit."""
3
- import codecs
4
- import sys
5
- python3 = True if sys.hexversion > 0x03000000 else False
6
- import genpy
7
- import struct
8
-
9
-
10
- class SpeechSynthesisRequest(genpy.Message):
11
- _md5sum = "32375f7a1df36dcb2da804a90b1edd81"
12
- _type = "kuavo_msgs/SpeechSynthesisRequest"
13
- _has_header = False # flag to mark the presence of a Header object
14
- _full_text = """# 请求部分
15
- string data
16
- float32 volume
17
- """
18
- __slots__ = ['data','volume']
19
- _slot_types = ['string','float32']
20
-
21
- def __init__(self, *args, **kwds):
22
- """
23
- Constructor. Any message fields that are implicitly/explicitly
24
- set to None will be assigned a default value. The recommend
25
- use is keyword arguments as this is more robust to future message
26
- changes. You cannot mix in-order arguments and keyword arguments.
27
-
28
- The available fields are:
29
- data,volume
30
-
31
- :param args: complete set of field values, in .msg order
32
- :param kwds: use keyword arguments corresponding to message field names
33
- to set specific fields.
34
- """
35
- if args or kwds:
36
- super(SpeechSynthesisRequest, self).__init__(*args, **kwds)
37
- # message fields cannot be None, assign default values for those that are
38
- if self.data is None:
39
- self.data = ''
40
- if self.volume is None:
41
- self.volume = 0.
42
- else:
43
- self.data = ''
44
- self.volume = 0.
45
-
46
- def _get_types(self):
47
- """
48
- internal API method
49
- """
50
- return self._slot_types
51
-
52
- def serialize(self, buff):
53
- """
54
- serialize message into buffer
55
- :param buff: buffer, ``StringIO``
56
- """
57
- try:
58
- _x = self.data
59
- length = len(_x)
60
- if python3 or type(_x) == unicode:
61
- _x = _x.encode('utf-8')
62
- length = len(_x)
63
- buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
64
- _x = self.volume
65
- buff.write(_get_struct_f().pack(_x))
66
- except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
67
- except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
68
-
69
- def deserialize(self, str):
70
- """
71
- unpack serialized message in str into this message instance
72
- :param str: byte array of serialized message, ``str``
73
- """
74
- if python3:
75
- codecs.lookup_error("rosmsg").msg_type = self._type
76
- try:
77
- end = 0
78
- start = end
79
- end += 4
80
- (length,) = _struct_I.unpack(str[start:end])
81
- start = end
82
- end += length
83
- if python3:
84
- self.data = str[start:end].decode('utf-8', 'rosmsg')
85
- else:
86
- self.data = str[start:end]
87
- start = end
88
- end += 4
89
- (self.volume,) = _get_struct_f().unpack(str[start:end])
90
- return self
91
- except struct.error as e:
92
- raise genpy.DeserializationError(e) # most likely buffer underfill
93
-
94
-
95
- def serialize_numpy(self, buff, numpy):
96
- """
97
- serialize message with numpy array types into buffer
98
- :param buff: buffer, ``StringIO``
99
- :param numpy: numpy python module
100
- """
101
- try:
102
- _x = self.data
103
- length = len(_x)
104
- if python3 or type(_x) == unicode:
105
- _x = _x.encode('utf-8')
106
- length = len(_x)
107
- buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
108
- _x = self.volume
109
- buff.write(_get_struct_f().pack(_x))
110
- except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
111
- except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
112
-
113
- def deserialize_numpy(self, str, numpy):
114
- """
115
- unpack serialized message in str into this message instance using numpy for array types
116
- :param str: byte array of serialized message, ``str``
117
- :param numpy: numpy python module
118
- """
119
- if python3:
120
- codecs.lookup_error("rosmsg").msg_type = self._type
121
- try:
122
- end = 0
123
- start = end
124
- end += 4
125
- (length,) = _struct_I.unpack(str[start:end])
126
- start = end
127
- end += length
128
- if python3:
129
- self.data = str[start:end].decode('utf-8', 'rosmsg')
130
- else:
131
- self.data = str[start:end]
132
- start = end
133
- end += 4
134
- (self.volume,) = _get_struct_f().unpack(str[start:end])
135
- return self
136
- except struct.error as e:
137
- raise genpy.DeserializationError(e) # most likely buffer underfill
138
-
139
- _struct_I = genpy.struct_I
140
- def _get_struct_I():
141
- global _struct_I
142
- return _struct_I
143
- _struct_f = None
144
- def _get_struct_f():
145
- global _struct_f
146
- if _struct_f is None:
147
- _struct_f = struct.Struct("<f")
148
- return _struct_f
149
- # This Python file uses the following encoding: utf-8
150
- """autogenerated by genpy from kuavo_msgs/SpeechSynthesisResponse.msg. Do not edit."""
151
- import codecs
152
- import sys
153
- python3 = True if sys.hexversion > 0x03000000 else False
154
- import genpy
155
- import struct
156
-
157
-
158
- class SpeechSynthesisResponse(genpy.Message):
159
- _md5sum = "358e233cde0c8a8bcfea4ce193f8fc15"
160
- _type = "kuavo_msgs/SpeechSynthesisResponse"
161
- _has_header = False # flag to mark the presence of a Header object
162
- _full_text = """# 响应部分
163
- bool success
164
-
165
- """
166
- __slots__ = ['success']
167
- _slot_types = ['bool']
168
-
169
- def __init__(self, *args, **kwds):
170
- """
171
- Constructor. Any message fields that are implicitly/explicitly
172
- set to None will be assigned a default value. The recommend
173
- use is keyword arguments as this is more robust to future message
174
- changes. You cannot mix in-order arguments and keyword arguments.
175
-
176
- The available fields are:
177
- success
178
-
179
- :param args: complete set of field values, in .msg order
180
- :param kwds: use keyword arguments corresponding to message field names
181
- to set specific fields.
182
- """
183
- if args or kwds:
184
- super(SpeechSynthesisResponse, self).__init__(*args, **kwds)
185
- # message fields cannot be None, assign default values for those that are
186
- if self.success is None:
187
- self.success = False
188
- else:
189
- self.success = False
190
-
191
- def _get_types(self):
192
- """
193
- internal API method
194
- """
195
- return self._slot_types
196
-
197
- def serialize(self, buff):
198
- """
199
- serialize message into buffer
200
- :param buff: buffer, ``StringIO``
201
- """
202
- try:
203
- _x = self.success
204
- buff.write(_get_struct_B().pack(_x))
205
- except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
206
- except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
207
-
208
- def deserialize(self, str):
209
- """
210
- unpack serialized message in str into this message instance
211
- :param str: byte array of serialized message, ``str``
212
- """
213
- if python3:
214
- codecs.lookup_error("rosmsg").msg_type = self._type
215
- try:
216
- end = 0
217
- start = end
218
- end += 1
219
- (self.success,) = _get_struct_B().unpack(str[start:end])
220
- self.success = bool(self.success)
221
- return self
222
- except struct.error as e:
223
- raise genpy.DeserializationError(e) # most likely buffer underfill
224
-
225
-
226
- def serialize_numpy(self, buff, numpy):
227
- """
228
- serialize message with numpy array types into buffer
229
- :param buff: buffer, ``StringIO``
230
- :param numpy: numpy python module
231
- """
232
- try:
233
- _x = self.success
234
- buff.write(_get_struct_B().pack(_x))
235
- except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
236
- except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
237
-
238
- def deserialize_numpy(self, str, numpy):
239
- """
240
- unpack serialized message in str into this message instance using numpy for array types
241
- :param str: byte array of serialized message, ``str``
242
- :param numpy: numpy python module
243
- """
244
- if python3:
245
- codecs.lookup_error("rosmsg").msg_type = self._type
246
- try:
247
- end = 0
248
- start = end
249
- end += 1
250
- (self.success,) = _get_struct_B().unpack(str[start:end])
251
- self.success = bool(self.success)
252
- return self
253
- except struct.error as e:
254
- raise genpy.DeserializationError(e) # most likely buffer underfill
255
-
256
- _struct_I = genpy.struct_I
257
- def _get_struct_I():
258
- global _struct_I
259
- return _struct_I
260
- _struct_B = None
261
- def _get_struct_B():
262
- global _struct_B
263
- if _struct_B is None:
264
- _struct_B = struct.Struct("<B")
265
- return _struct_B
266
- class SpeechSynthesis(object):
267
- _type = 'kuavo_msgs/SpeechSynthesis'
268
- _md5sum = 'c2d03ac0ff2ddd1cb86a5148ad0f9d5e'
269
- _request_class = SpeechSynthesisRequest
270
- _response_class = SpeechSynthesisResponse