kuavo-humanoid-sdk 1.1.6a1495__20250725110925-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 (134) hide show
  1. kuavo_humanoid_sdk/__init__.py +6 -0
  2. kuavo_humanoid_sdk/common/logger.py +45 -0
  3. kuavo_humanoid_sdk/interfaces/__init__.py +4 -0
  4. kuavo_humanoid_sdk/interfaces/data_types.py +288 -0
  5. kuavo_humanoid_sdk/interfaces/end_effector.py +62 -0
  6. kuavo_humanoid_sdk/interfaces/robot.py +22 -0
  7. kuavo_humanoid_sdk/interfaces/robot_info.py +56 -0
  8. kuavo_humanoid_sdk/kuavo/__init__.py +11 -0
  9. kuavo_humanoid_sdk/kuavo/core/audio.py +32 -0
  10. kuavo_humanoid_sdk/kuavo/core/core.py +620 -0
  11. kuavo_humanoid_sdk/kuavo/core/dex_hand_control.py +114 -0
  12. kuavo_humanoid_sdk/kuavo/core/leju_claw_control.py +67 -0
  13. kuavo_humanoid_sdk/kuavo/core/ros/audio.py +92 -0
  14. kuavo_humanoid_sdk/kuavo/core/ros/control.py +1360 -0
  15. kuavo_humanoid_sdk/kuavo/core/ros/observation.py +94 -0
  16. kuavo_humanoid_sdk/kuavo/core/ros/param.py +183 -0
  17. kuavo_humanoid_sdk/kuavo/core/ros/sat_utils.py +103 -0
  18. kuavo_humanoid_sdk/kuavo/core/ros/state.py +634 -0
  19. kuavo_humanoid_sdk/kuavo/core/ros/tools.py +220 -0
  20. kuavo_humanoid_sdk/kuavo/core/ros/vision.py +234 -0
  21. kuavo_humanoid_sdk/kuavo/core/ros_env.py +237 -0
  22. kuavo_humanoid_sdk/kuavo/dexterous_hand.py +201 -0
  23. kuavo_humanoid_sdk/kuavo/leju_claw.py +235 -0
  24. kuavo_humanoid_sdk/kuavo/robot.py +491 -0
  25. kuavo_humanoid_sdk/kuavo/robot_arm.py +225 -0
  26. kuavo_humanoid_sdk/kuavo/robot_audio.py +39 -0
  27. kuavo_humanoid_sdk/kuavo/robot_head.py +50 -0
  28. kuavo_humanoid_sdk/kuavo/robot_info.py +113 -0
  29. kuavo_humanoid_sdk/kuavo/robot_observation.py +64 -0
  30. kuavo_humanoid_sdk/kuavo/robot_state.py +307 -0
  31. kuavo_humanoid_sdk/kuavo/robot_tool.py +82 -0
  32. kuavo_humanoid_sdk/kuavo/robot_vision.py +81 -0
  33. kuavo_humanoid_sdk/kuavo_strategy/__init__.py +2 -0
  34. kuavo_humanoid_sdk/kuavo_strategy/grasp_box/grasp_box_strategy.py +1324 -0
  35. kuavo_humanoid_sdk/kuavo_strategy/kuavo_strategy.py +106 -0
  36. kuavo_humanoid_sdk/msg/__init__.py +4 -0
  37. kuavo_humanoid_sdk/msg/kuavo_msgs/__init__.py +7 -0
  38. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_AprilTagDetection.py +306 -0
  39. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_AprilTagDetectionArray.py +437 -0
  40. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_Metadata.py +199 -0
  41. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_RobotActionState.py +112 -0
  42. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_TFArray.py +323 -0
  43. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/__init__.py +45 -0
  44. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armHandPose.py +160 -0
  45. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armPoseWithTimeStamp.py +168 -0
  46. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armTargetPoses.py +151 -0
  47. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_bezierCurveCubicPoint.py +178 -0
  48. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandCommand.py +229 -0
  49. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandTouchState.py +256 -0
  50. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_endEffectorData.py +227 -0
  51. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPose.py +123 -0
  52. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoseTargetTrajectories.py +301 -0
  53. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoses.py +149 -0
  54. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_fullBodyTargetTrajectories.py +258 -0
  55. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gaitTimeName.py +147 -0
  56. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureInfo.py +218 -0
  57. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureTask.py +149 -0
  58. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_handPose.py +136 -0
  59. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_headBodyPose.py +145 -0
  60. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_ikSolveError.py +171 -0
  61. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_ikSolveParam.py +140 -0
  62. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_imuData.py +165 -0
  63. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointBezierTrajectory.py +201 -0
  64. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointCmd.py +390 -0
  65. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointData.py +205 -0
  66. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawCommand.py +320 -0
  67. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawState.py +341 -0
  68. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_motorParam.py +122 -0
  69. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_planArmState.py +120 -0
  70. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_questJoySticks.py +191 -0
  71. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_qv.py +121 -0
  72. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotArmQVVD.py +177 -0
  73. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHandPosition.py +225 -0
  74. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHeadMotionData.py +128 -0
  75. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotState.py +222 -0
  76. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_sensorsData.py +495 -0
  77. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_switchGaitByName.py +200 -0
  78. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_tagDataArray.py +216 -0
  79. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_touchSensorStatus.py +162 -0
  80. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPose.py +272 -0
  81. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPoseCmd.py +315 -0
  82. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloDetection.py +251 -0
  83. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloOutputData.py +168 -0
  84. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_ExecuteArmAction.py +281 -0
  85. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_GetTargetPartPoseInCamera.py +298 -0
  86. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_RepublishTFs.py +373 -0
  87. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SetJoyTopic.py +282 -0
  88. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SpeechSynthesis.py +270 -0
  89. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/__init__.py +29 -0
  90. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeArmCtrlMode.py +275 -0
  91. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeArmCtrlModeKuavo.py +236 -0
  92. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeMotorParam.py +299 -0
  93. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeTorsoCtrlMode.py +274 -0
  94. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_controlLejuClaw.py +408 -0
  95. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_enableHandTouchSensor.py +304 -0
  96. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_fkSrv.py +394 -0
  97. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_footPoseTargetTrajectoriesSrv.py +409 -0
  98. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecute.py +339 -0
  99. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecuteState.py +257 -0
  100. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureList.py +418 -0
  101. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_getCurrentGaitName.py +253 -0
  102. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_getMotorParam.py +299 -0
  103. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_handForceLevel.py +330 -0
  104. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_jointMoveTo.py +302 -0
  105. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_planArmTrajectoryBezierCurve.py +421 -0
  106. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_planArmTrajectoryCubicSpline.py +490 -0
  107. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_playmusic.py +268 -0
  108. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setHwIntialState.py +304 -0
  109. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setMmCtrlFrame.py +273 -0
  110. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setMotorEncoderRoundService.py +283 -0
  111. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setTagId.py +275 -0
  112. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_singleStepControl.py +444 -0
  113. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_twoArmHandPoseCmdSrv.py +662 -0
  114. kuavo_humanoid_sdk/msg/motion_capture_ik/__init__.py +7 -0
  115. kuavo_humanoid_sdk/msg/ocs2_msgs/__init__.py +7 -0
  116. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/__init__.py +12 -0
  117. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_constraint.py +142 -0
  118. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_controller_data.py +121 -0
  119. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_lagrangian_metrics.py +148 -0
  120. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mode_schedule.py +150 -0
  121. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_flattened_controller.py +666 -0
  122. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_input.py +122 -0
  123. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_observation.py +209 -0
  124. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_performance_indices.py +140 -0
  125. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_solver_data.py +886 -0
  126. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_state.py +122 -0
  127. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_target_trajectories.py +239 -0
  128. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_multiplier.py +148 -0
  129. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/__init__.py +1 -0
  130. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/_reset.py +376 -0
  131. kuavo_humanoid_sdk-1.1.6a1495.dist-info/METADATA +291 -0
  132. kuavo_humanoid_sdk-1.1.6a1495.dist-info/RECORD +134 -0
  133. kuavo_humanoid_sdk-1.1.6a1495.dist-info/WHEEL +6 -0
  134. kuavo_humanoid_sdk-1.1.6a1495.dist-info/top_level.txt +1 -0
@@ -0,0 +1,282 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/SetJoyTopicRequest.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 SetJoyTopicRequest(genpy.Message):
11
+ _md5sum = "b38cc2f19f45368c2db7867751ce95a9"
12
+ _type = "kuavo_msgs/SetJoyTopicRequest"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """string topic_name # 新的Joy话题名称
15
+ """
16
+ __slots__ = ['topic_name']
17
+ _slot_types = ['string']
18
+
19
+ def __init__(self, *args, **kwds):
20
+ """
21
+ Constructor. Any message fields that are implicitly/explicitly
22
+ set to None will be assigned a default value. The recommend
23
+ use is keyword arguments as this is more robust to future message
24
+ changes. You cannot mix in-order arguments and keyword arguments.
25
+
26
+ The available fields are:
27
+ topic_name
28
+
29
+ :param args: complete set of field values, in .msg order
30
+ :param kwds: use keyword arguments corresponding to message field names
31
+ to set specific fields.
32
+ """
33
+ if args or kwds:
34
+ super(SetJoyTopicRequest, self).__init__(*args, **kwds)
35
+ # message fields cannot be None, assign default values for those that are
36
+ if self.topic_name is None:
37
+ self.topic_name = ''
38
+ else:
39
+ self.topic_name = ''
40
+
41
+ def _get_types(self):
42
+ """
43
+ internal API method
44
+ """
45
+ return self._slot_types
46
+
47
+ def serialize(self, buff):
48
+ """
49
+ serialize message into buffer
50
+ :param buff: buffer, ``StringIO``
51
+ """
52
+ try:
53
+ _x = self.topic_name
54
+ length = len(_x)
55
+ if python3 or type(_x) == unicode:
56
+ _x = _x.encode('utf-8')
57
+ length = len(_x)
58
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
59
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
60
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
61
+
62
+ def deserialize(self, str):
63
+ """
64
+ unpack serialized message in str into this message instance
65
+ :param str: byte array of serialized message, ``str``
66
+ """
67
+ if python3:
68
+ codecs.lookup_error("rosmsg").msg_type = self._type
69
+ try:
70
+ end = 0
71
+ start = end
72
+ end += 4
73
+ (length,) = _struct_I.unpack(str[start:end])
74
+ start = end
75
+ end += length
76
+ if python3:
77
+ self.topic_name = str[start:end].decode('utf-8', 'rosmsg')
78
+ else:
79
+ self.topic_name = str[start:end]
80
+ return self
81
+ except struct.error as e:
82
+ raise genpy.DeserializationError(e) # most likely buffer underfill
83
+
84
+
85
+ def serialize_numpy(self, buff, numpy):
86
+ """
87
+ serialize message with numpy array types into buffer
88
+ :param buff: buffer, ``StringIO``
89
+ :param numpy: numpy python module
90
+ """
91
+ try:
92
+ _x = self.topic_name
93
+ length = len(_x)
94
+ if python3 or type(_x) == unicode:
95
+ _x = _x.encode('utf-8')
96
+ length = len(_x)
97
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
98
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
99
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
100
+
101
+ def deserialize_numpy(self, str, numpy):
102
+ """
103
+ unpack serialized message in str into this message instance using numpy for array types
104
+ :param str: byte array of serialized message, ``str``
105
+ :param numpy: numpy python module
106
+ """
107
+ if python3:
108
+ codecs.lookup_error("rosmsg").msg_type = self._type
109
+ try:
110
+ end = 0
111
+ start = end
112
+ end += 4
113
+ (length,) = _struct_I.unpack(str[start:end])
114
+ start = end
115
+ end += length
116
+ if python3:
117
+ self.topic_name = str[start:end].decode('utf-8', 'rosmsg')
118
+ else:
119
+ self.topic_name = str[start:end]
120
+ return self
121
+ except struct.error as e:
122
+ raise genpy.DeserializationError(e) # most likely buffer underfill
123
+
124
+ _struct_I = genpy.struct_I
125
+ def _get_struct_I():
126
+ global _struct_I
127
+ return _struct_I
128
+ # This Python file uses the following encoding: utf-8
129
+ """autogenerated by genpy from kuavo_msgs/SetJoyTopicResponse.msg. Do not edit."""
130
+ import codecs
131
+ import sys
132
+ python3 = True if sys.hexversion > 0x03000000 else False
133
+ import genpy
134
+ import struct
135
+
136
+
137
+ class SetJoyTopicResponse(genpy.Message):
138
+ _md5sum = "937c9679a518e3a18d831e57125ea522"
139
+ _type = "kuavo_msgs/SetJoyTopicResponse"
140
+ _has_header = False # flag to mark the presence of a Header object
141
+ _full_text = """bool success # 是否成功切换话题
142
+ string message # 详细信息
143
+
144
+ """
145
+ __slots__ = ['success','message']
146
+ _slot_types = ['bool','string']
147
+
148
+ def __init__(self, *args, **kwds):
149
+ """
150
+ Constructor. Any message fields that are implicitly/explicitly
151
+ set to None will be assigned a default value. The recommend
152
+ use is keyword arguments as this is more robust to future message
153
+ changes. You cannot mix in-order arguments and keyword arguments.
154
+
155
+ The available fields are:
156
+ success,message
157
+
158
+ :param args: complete set of field values, in .msg order
159
+ :param kwds: use keyword arguments corresponding to message field names
160
+ to set specific fields.
161
+ """
162
+ if args or kwds:
163
+ super(SetJoyTopicResponse, self).__init__(*args, **kwds)
164
+ # message fields cannot be None, assign default values for those that are
165
+ if self.success is None:
166
+ self.success = False
167
+ if self.message is None:
168
+ self.message = ''
169
+ else:
170
+ self.success = False
171
+ self.message = ''
172
+
173
+ def _get_types(self):
174
+ """
175
+ internal API method
176
+ """
177
+ return self._slot_types
178
+
179
+ def serialize(self, buff):
180
+ """
181
+ serialize message into buffer
182
+ :param buff: buffer, ``StringIO``
183
+ """
184
+ try:
185
+ _x = self.success
186
+ buff.write(_get_struct_B().pack(_x))
187
+ _x = self.message
188
+ length = len(_x)
189
+ if python3 or type(_x) == unicode:
190
+ _x = _x.encode('utf-8')
191
+ length = len(_x)
192
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
193
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
194
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
195
+
196
+ def deserialize(self, str):
197
+ """
198
+ unpack serialized message in str into this message instance
199
+ :param str: byte array of serialized message, ``str``
200
+ """
201
+ if python3:
202
+ codecs.lookup_error("rosmsg").msg_type = self._type
203
+ try:
204
+ end = 0
205
+ start = end
206
+ end += 1
207
+ (self.success,) = _get_struct_B().unpack(str[start:end])
208
+ self.success = bool(self.success)
209
+ start = end
210
+ end += 4
211
+ (length,) = _struct_I.unpack(str[start:end])
212
+ start = end
213
+ end += length
214
+ if python3:
215
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
216
+ else:
217
+ self.message = str[start:end]
218
+ return self
219
+ except struct.error as e:
220
+ raise genpy.DeserializationError(e) # most likely buffer underfill
221
+
222
+
223
+ def serialize_numpy(self, buff, numpy):
224
+ """
225
+ serialize message with numpy array types into buffer
226
+ :param buff: buffer, ``StringIO``
227
+ :param numpy: numpy python module
228
+ """
229
+ try:
230
+ _x = self.success
231
+ buff.write(_get_struct_B().pack(_x))
232
+ _x = self.message
233
+ length = len(_x)
234
+ if python3 or type(_x) == unicode:
235
+ _x = _x.encode('utf-8')
236
+ length = len(_x)
237
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
238
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
239
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
240
+
241
+ def deserialize_numpy(self, str, numpy):
242
+ """
243
+ unpack serialized message in str into this message instance using numpy for array types
244
+ :param str: byte array of serialized message, ``str``
245
+ :param numpy: numpy python module
246
+ """
247
+ if python3:
248
+ codecs.lookup_error("rosmsg").msg_type = self._type
249
+ try:
250
+ end = 0
251
+ start = end
252
+ end += 1
253
+ (self.success,) = _get_struct_B().unpack(str[start:end])
254
+ self.success = bool(self.success)
255
+ start = end
256
+ end += 4
257
+ (length,) = _struct_I.unpack(str[start:end])
258
+ start = end
259
+ end += length
260
+ if python3:
261
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
262
+ else:
263
+ self.message = str[start:end]
264
+ return self
265
+ except struct.error as e:
266
+ raise genpy.DeserializationError(e) # most likely buffer underfill
267
+
268
+ _struct_I = genpy.struct_I
269
+ def _get_struct_I():
270
+ global _struct_I
271
+ return _struct_I
272
+ _struct_B = None
273
+ def _get_struct_B():
274
+ global _struct_B
275
+ if _struct_B is None:
276
+ _struct_B = struct.Struct("<B")
277
+ return _struct_B
278
+ class SetJoyTopic(object):
279
+ _type = 'kuavo_msgs/SetJoyTopic'
280
+ _md5sum = 'cb13deef17f444c30700175c1a250230'
281
+ _request_class = SetJoyTopicRequest
282
+ _response_class = SetJoyTopicResponse
@@ -0,0 +1,270 @@
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
@@ -0,0 +1,29 @@
1
+ from ._ExecuteArmAction import *
2
+ from ._GetTargetPartPoseInCamera import *
3
+ from ._RepublishTFs import *
4
+ from ._SetJoyTopic import *
5
+ from ._SpeechSynthesis import *
6
+ from ._changeArmCtrlMode import *
7
+ from ._changeArmCtrlModeKuavo import *
8
+ from ._changeMotorParam import *
9
+ from ._changeTorsoCtrlMode import *
10
+ from ._controlLejuClaw import *
11
+ from ._enableHandTouchSensor import *
12
+ from ._fkSrv import *
13
+ from ._footPoseTargetTrajectoriesSrv import *
14
+ from ._gestureExecute import *
15
+ from ._gestureExecuteState import *
16
+ from ._gestureList import *
17
+ from ._getCurrentGaitName import *
18
+ from ._getMotorParam import *
19
+ from ._handForceLevel import *
20
+ from ._jointMoveTo import *
21
+ from ._planArmTrajectoryBezierCurve import *
22
+ from ._planArmTrajectoryCubicSpline import *
23
+ from ._playmusic import *
24
+ from ._setHwIntialState import *
25
+ from ._setMmCtrlFrame import *
26
+ from ._setMotorEncoderRoundService import *
27
+ from ._setTagId import *
28
+ from ._singleStepControl import *
29
+ from ._twoArmHandPoseCmdSrv import *