kuavo-humanoid-sdk 1.2.1b3269__20250911204115-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 (184) 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 +16 -0
  9. kuavo_humanoid_sdk/kuavo/core/audio.py +32 -0
  10. kuavo_humanoid_sdk/kuavo/core/core.py +666 -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/llm_doubao.py +608 -0
  14. kuavo_humanoid_sdk/kuavo/core/microphone.py +192 -0
  15. kuavo_humanoid_sdk/kuavo/core/navigation.py +70 -0
  16. kuavo_humanoid_sdk/kuavo/core/ros/audio.py +110 -0
  17. kuavo_humanoid_sdk/kuavo/core/ros/control.py +1524 -0
  18. kuavo_humanoid_sdk/kuavo/core/ros/microphone.py +38 -0
  19. kuavo_humanoid_sdk/kuavo/core/ros/navigation.py +217 -0
  20. kuavo_humanoid_sdk/kuavo/core/ros/observation.py +94 -0
  21. kuavo_humanoid_sdk/kuavo/core/ros/param.py +201 -0
  22. kuavo_humanoid_sdk/kuavo/core/ros/sat_utils.py +103 -0
  23. kuavo_humanoid_sdk/kuavo/core/ros/state.py +652 -0
  24. kuavo_humanoid_sdk/kuavo/core/ros/tools.py +220 -0
  25. kuavo_humanoid_sdk/kuavo/core/ros/vision.py +234 -0
  26. kuavo_humanoid_sdk/kuavo/core/ros_env.py +238 -0
  27. kuavo_humanoid_sdk/kuavo/demo_climbstair.py +249 -0
  28. kuavo_humanoid_sdk/kuavo/dexterous_hand.py +238 -0
  29. kuavo_humanoid_sdk/kuavo/leju_claw.py +235 -0
  30. kuavo_humanoid_sdk/kuavo/logger_client.py +80 -0
  31. kuavo_humanoid_sdk/kuavo/robot.py +561 -0
  32. kuavo_humanoid_sdk/kuavo/robot_arm.py +299 -0
  33. kuavo_humanoid_sdk/kuavo/robot_audio.py +39 -0
  34. kuavo_humanoid_sdk/kuavo/robot_blockly.py +1162 -0
  35. kuavo_humanoid_sdk/kuavo/robot_climbstair.py +1607 -0
  36. kuavo_humanoid_sdk/kuavo/robot_head.py +74 -0
  37. kuavo_humanoid_sdk/kuavo/robot_info.py +134 -0
  38. kuavo_humanoid_sdk/kuavo/robot_microphone.py +19 -0
  39. kuavo_humanoid_sdk/kuavo/robot_navigation.py +135 -0
  40. kuavo_humanoid_sdk/kuavo/robot_observation.py +64 -0
  41. kuavo_humanoid_sdk/kuavo/robot_speech.py +24 -0
  42. kuavo_humanoid_sdk/kuavo/robot_state.py +310 -0
  43. kuavo_humanoid_sdk/kuavo/robot_tool.py +109 -0
  44. kuavo_humanoid_sdk/kuavo/robot_vision.py +81 -0
  45. kuavo_humanoid_sdk/kuavo_strategy/__init__.py +2 -0
  46. kuavo_humanoid_sdk/kuavo_strategy/grasp_box/grasp_box_strategy.py +1325 -0
  47. kuavo_humanoid_sdk/kuavo_strategy/kuavo_strategy.py +106 -0
  48. kuavo_humanoid_sdk/kuavo_strategy_v2/common/data_type.py +340 -0
  49. kuavo_humanoid_sdk/kuavo_strategy_v2/common/events/base_event.py +215 -0
  50. kuavo_humanoid_sdk/kuavo_strategy_v2/common/robot_sdk.py +25 -0
  51. kuavo_humanoid_sdk/kuavo_strategy_v2/pick_place_box/case.py +331 -0
  52. kuavo_humanoid_sdk/kuavo_strategy_v2/pick_place_box/strategy.py +504 -0
  53. kuavo_humanoid_sdk/kuavo_strategy_v2/utils/logger_setup.py +40 -0
  54. kuavo_humanoid_sdk/kuavo_strategy_v2/utils/utils.py +88 -0
  55. kuavo_humanoid_sdk/msg/__init__.py +4 -0
  56. kuavo_humanoid_sdk/msg/kuavo_msgs/__init__.py +7 -0
  57. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_AprilTagDetection.py +306 -0
  58. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_AprilTagDetectionArray.py +437 -0
  59. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_AudioReceiverData.py +122 -0
  60. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_FTsensorData.py +260 -0
  61. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_JoySticks.py +191 -0
  62. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_Metadata.py +199 -0
  63. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_MmDetectionMsg.py +264 -0
  64. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_RobotActionState.py +112 -0
  65. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_TFArray.py +323 -0
  66. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_TaskPoint.py +175 -0
  67. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/__init__.py +62 -0
  68. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armCollisionCheckInfo.py +160 -0
  69. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armHandPose.py +161 -0
  70. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armHandPoseFree.py +171 -0
  71. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armPoseWithTimeStamp.py +168 -0
  72. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armTargetPoses.py +171 -0
  73. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_bezierCurveCubicPoint.py +178 -0
  74. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandCommand.py +229 -0
  75. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandTouchState.py +256 -0
  76. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_endEffectorData.py +227 -0
  77. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPose.py +123 -0
  78. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPose6D.py +123 -0
  79. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPose6DTargetTrajectories.py +320 -0
  80. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoseTargetTrajectories.py +301 -0
  81. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoseWithVision.py +136 -0
  82. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoseWithVisionArray.py +231 -0
  83. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoses.py +149 -0
  84. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoses6D.py +149 -0
  85. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_fullBodyTargetTrajectories.py +258 -0
  86. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gaitTimeName.py +147 -0
  87. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureInfo.py +218 -0
  88. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureTask.py +149 -0
  89. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_handPose.py +136 -0
  90. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_headBodyPose.py +145 -0
  91. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_ikSolveError.py +171 -0
  92. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_ikSolveParam.py +140 -0
  93. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_imuData.py +165 -0
  94. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointBezierTrajectory.py +201 -0
  95. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointCmd.py +390 -0
  96. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointData.py +205 -0
  97. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_kuavoModeSchedule.py +224 -0
  98. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawCommand.py +320 -0
  99. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawState.py +341 -0
  100. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_motorParam.py +122 -0
  101. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_picoPoseInfo.py +143 -0
  102. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_picoPoseInfoList.py +220 -0
  103. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_planArmState.py +120 -0
  104. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_qv.py +121 -0
  105. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotArmQVVD.py +177 -0
  106. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotBodyMatrices.py +332 -0
  107. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHandPosition.py +225 -0
  108. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHeadMotionData.py +128 -0
  109. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotState.py +222 -0
  110. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_sensorsData.py +655 -0
  111. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_switchGaitByName.py +200 -0
  112. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_tagDataArray.py +216 -0
  113. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_touchSensorStatus.py +162 -0
  114. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPose.py +273 -0
  115. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPoseCmd.py +316 -0
  116. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPoseCmdFree.py +338 -0
  117. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPoseFree.py +299 -0
  118. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloDetection.py +251 -0
  119. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloOutputData.py +168 -0
  120. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_CreatePath.py +581 -0
  121. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_ExecuteArmAction.py +281 -0
  122. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_GetAllMaps.py +241 -0
  123. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_GetCurrentMap.py +225 -0
  124. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_GetTargetPartPoseInCamera.py +298 -0
  125. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_InitialPoseWithTaskPoint.py +281 -0
  126. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_LoadMap.py +281 -0
  127. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_NavigateToTaskPoint.py +281 -0
  128. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_RepublishTFs.py +373 -0
  129. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SetInitialPose.py +394 -0
  130. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SetJoyTopic.py +282 -0
  131. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SetLEDMode.py +468 -0
  132. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SetLEDMode_free.py +289 -0
  133. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SpeechSynthesis.py +270 -0
  134. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_TaskPointOperation.py +536 -0
  135. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/__init__.py +43 -0
  136. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_adjustZeroPoint.py +277 -0
  137. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeArmCtrlMode.py +275 -0
  138. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeArmCtrlModeKuavo.py +236 -0
  139. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeMotorParam.py +299 -0
  140. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeTorsoCtrlMode.py +274 -0
  141. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_controlLejuClaw.py +408 -0
  142. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_enableHandTouchSensor.py +304 -0
  143. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_fkSrv.py +395 -0
  144. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_footPose6DTargetTrajectoriesSrv.py +426 -0
  145. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_footPoseTargetTrajectoriesSrv.py +409 -0
  146. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecute.py +339 -0
  147. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecuteState.py +257 -0
  148. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureList.py +418 -0
  149. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_getCurrentGaitName.py +253 -0
  150. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_getMotorParam.py +299 -0
  151. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_getMotorZeroPoints.py +286 -0
  152. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_handForceLevel.py +330 -0
  153. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_jointMoveTo.py +302 -0
  154. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_planArmTrajectoryBezierCurve.py +422 -0
  155. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_planArmTrajectoryCubicSpline.py +490 -0
  156. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_playmusic.py +268 -0
  157. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setHwIntialState.py +304 -0
  158. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setMmCtrlFrame.py +273 -0
  159. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setMotorEncoderRoundService.py +283 -0
  160. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setTagId.py +275 -0
  161. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_singleStepControl.py +444 -0
  162. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_twoArmHandPoseCmdFreeSrv.py +716 -0
  163. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_twoArmHandPoseCmdSrv.py +664 -0
  164. kuavo_humanoid_sdk/msg/motion_capture_ik/__init__.py +7 -0
  165. kuavo_humanoid_sdk/msg/ocs2_msgs/__init__.py +7 -0
  166. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/__init__.py +12 -0
  167. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_constraint.py +142 -0
  168. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_controller_data.py +121 -0
  169. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_lagrangian_metrics.py +148 -0
  170. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mode_schedule.py +150 -0
  171. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_flattened_controller.py +666 -0
  172. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_input.py +122 -0
  173. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_observation.py +209 -0
  174. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_performance_indices.py +140 -0
  175. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_solver_data.py +886 -0
  176. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_state.py +122 -0
  177. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_target_trajectories.py +239 -0
  178. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_multiplier.py +148 -0
  179. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/__init__.py +1 -0
  180. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/_reset.py +376 -0
  181. kuavo_humanoid_sdk-1.2.1b3269.dist-info/METADATA +296 -0
  182. kuavo_humanoid_sdk-1.2.1b3269.dist-info/RECORD +184 -0
  183. kuavo_humanoid_sdk-1.2.1b3269.dist-info/WHEEL +6 -0
  184. kuavo_humanoid_sdk-1.2.1b3269.dist-info/top_level.txt +1 -0
@@ -0,0 +1,339 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/gestureExecuteRequest.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
+ import kuavo_msgs.msg
10
+
11
+ class gestureExecuteRequest(genpy.Message):
12
+ _md5sum = "686baa778a78aa01b0a6cc9824ebcd9f"
13
+ _type = "kuavo_msgs/gestureExecuteRequest"
14
+ _has_header = False # flag to mark the presence of a Header object
15
+ _full_text = """# This service executes a specified gesture.
16
+ # It is used to trigger a gesture by providing its name and the side of the hand(s) to use.
17
+ #
18
+ # Request:
19
+ # kuavo_msgs/gestureTask[] gestures # An array of gestures to execute, each with a name and hand side
20
+ #
21
+ # Response:
22
+ # bool success # Indicates whether the gesture execution was successful.
23
+ # string message # A message providing additional information (e.g., error details if the gesture failed).
24
+
25
+ kuavo_msgs/gestureTask[] gestures
26
+
27
+ ================================================================================
28
+ MSG: kuavo_msgs/gestureTask
29
+ # This message is used to specify a gesture to execute.
30
+ # The gesture is triggered by providing its name and the side of the hand(s) to use.
31
+
32
+ string gesture_name # Name of the gesture to execute
33
+ int8 hand_side # Side of the hand to use (e.g., 0 for left, 1 for right, 2 for both)"""
34
+ __slots__ = ['gestures']
35
+ _slot_types = ['kuavo_msgs/gestureTask[]']
36
+
37
+ def __init__(self, *args, **kwds):
38
+ """
39
+ Constructor. Any message fields that are implicitly/explicitly
40
+ set to None will be assigned a default value. The recommend
41
+ use is keyword arguments as this is more robust to future message
42
+ changes. You cannot mix in-order arguments and keyword arguments.
43
+
44
+ The available fields are:
45
+ gestures
46
+
47
+ :param args: complete set of field values, in .msg order
48
+ :param kwds: use keyword arguments corresponding to message field names
49
+ to set specific fields.
50
+ """
51
+ if args or kwds:
52
+ super(gestureExecuteRequest, self).__init__(*args, **kwds)
53
+ # message fields cannot be None, assign default values for those that are
54
+ if self.gestures is None:
55
+ self.gestures = []
56
+ else:
57
+ self.gestures = []
58
+
59
+ def _get_types(self):
60
+ """
61
+ internal API method
62
+ """
63
+ return self._slot_types
64
+
65
+ def serialize(self, buff):
66
+ """
67
+ serialize message into buffer
68
+ :param buff: buffer, ``StringIO``
69
+ """
70
+ try:
71
+ length = len(self.gestures)
72
+ buff.write(_struct_I.pack(length))
73
+ for val1 in self.gestures:
74
+ _x = val1.gesture_name
75
+ length = len(_x)
76
+ if python3 or type(_x) == unicode:
77
+ _x = _x.encode('utf-8')
78
+ length = len(_x)
79
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
80
+ _x = val1.hand_side
81
+ buff.write(_get_struct_b().pack(_x))
82
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
83
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
84
+
85
+ def deserialize(self, str):
86
+ """
87
+ unpack serialized message in str into this message instance
88
+ :param str: byte array of serialized message, ``str``
89
+ """
90
+ if python3:
91
+ codecs.lookup_error("rosmsg").msg_type = self._type
92
+ try:
93
+ if self.gestures is None:
94
+ self.gestures = None
95
+ end = 0
96
+ start = end
97
+ end += 4
98
+ (length,) = _struct_I.unpack(str[start:end])
99
+ self.gestures = []
100
+ for i in range(0, length):
101
+ val1 = kuavo_msgs.msg.gestureTask()
102
+ start = end
103
+ end += 4
104
+ (length,) = _struct_I.unpack(str[start:end])
105
+ start = end
106
+ end += length
107
+ if python3:
108
+ val1.gesture_name = str[start:end].decode('utf-8', 'rosmsg')
109
+ else:
110
+ val1.gesture_name = str[start:end]
111
+ start = end
112
+ end += 1
113
+ (val1.hand_side,) = _get_struct_b().unpack(str[start:end])
114
+ self.gestures.append(val1)
115
+ return self
116
+ except struct.error as e:
117
+ raise genpy.DeserializationError(e) # most likely buffer underfill
118
+
119
+
120
+ def serialize_numpy(self, buff, numpy):
121
+ """
122
+ serialize message with numpy array types into buffer
123
+ :param buff: buffer, ``StringIO``
124
+ :param numpy: numpy python module
125
+ """
126
+ try:
127
+ length = len(self.gestures)
128
+ buff.write(_struct_I.pack(length))
129
+ for val1 in self.gestures:
130
+ _x = val1.gesture_name
131
+ length = len(_x)
132
+ if python3 or type(_x) == unicode:
133
+ _x = _x.encode('utf-8')
134
+ length = len(_x)
135
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
136
+ _x = val1.hand_side
137
+ buff.write(_get_struct_b().pack(_x))
138
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
139
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
140
+
141
+ def deserialize_numpy(self, str, numpy):
142
+ """
143
+ unpack serialized message in str into this message instance using numpy for array types
144
+ :param str: byte array of serialized message, ``str``
145
+ :param numpy: numpy python module
146
+ """
147
+ if python3:
148
+ codecs.lookup_error("rosmsg").msg_type = self._type
149
+ try:
150
+ if self.gestures is None:
151
+ self.gestures = None
152
+ end = 0
153
+ start = end
154
+ end += 4
155
+ (length,) = _struct_I.unpack(str[start:end])
156
+ self.gestures = []
157
+ for i in range(0, length):
158
+ val1 = kuavo_msgs.msg.gestureTask()
159
+ start = end
160
+ end += 4
161
+ (length,) = _struct_I.unpack(str[start:end])
162
+ start = end
163
+ end += length
164
+ if python3:
165
+ val1.gesture_name = str[start:end].decode('utf-8', 'rosmsg')
166
+ else:
167
+ val1.gesture_name = str[start:end]
168
+ start = end
169
+ end += 1
170
+ (val1.hand_side,) = _get_struct_b().unpack(str[start:end])
171
+ self.gestures.append(val1)
172
+ return self
173
+ except struct.error as e:
174
+ raise genpy.DeserializationError(e) # most likely buffer underfill
175
+
176
+ _struct_I = genpy.struct_I
177
+ def _get_struct_I():
178
+ global _struct_I
179
+ return _struct_I
180
+ _struct_b = None
181
+ def _get_struct_b():
182
+ global _struct_b
183
+ if _struct_b is None:
184
+ _struct_b = struct.Struct("<b")
185
+ return _struct_b
186
+ # This Python file uses the following encoding: utf-8
187
+ """autogenerated by genpy from kuavo_msgs/gestureExecuteResponse.msg. Do not edit."""
188
+ import codecs
189
+ import sys
190
+ python3 = True if sys.hexversion > 0x03000000 else False
191
+ import genpy
192
+ import struct
193
+
194
+
195
+ class gestureExecuteResponse(genpy.Message):
196
+ _md5sum = "937c9679a518e3a18d831e57125ea522"
197
+ _type = "kuavo_msgs/gestureExecuteResponse"
198
+ _has_header = False # flag to mark the presence of a Header object
199
+ _full_text = """bool success
200
+ string message
201
+ """
202
+ __slots__ = ['success','message']
203
+ _slot_types = ['bool','string']
204
+
205
+ def __init__(self, *args, **kwds):
206
+ """
207
+ Constructor. Any message fields that are implicitly/explicitly
208
+ set to None will be assigned a default value. The recommend
209
+ use is keyword arguments as this is more robust to future message
210
+ changes. You cannot mix in-order arguments and keyword arguments.
211
+
212
+ The available fields are:
213
+ success,message
214
+
215
+ :param args: complete set of field values, in .msg order
216
+ :param kwds: use keyword arguments corresponding to message field names
217
+ to set specific fields.
218
+ """
219
+ if args or kwds:
220
+ super(gestureExecuteResponse, self).__init__(*args, **kwds)
221
+ # message fields cannot be None, assign default values for those that are
222
+ if self.success is None:
223
+ self.success = False
224
+ if self.message is None:
225
+ self.message = ''
226
+ else:
227
+ self.success = False
228
+ self.message = ''
229
+
230
+ def _get_types(self):
231
+ """
232
+ internal API method
233
+ """
234
+ return self._slot_types
235
+
236
+ def serialize(self, buff):
237
+ """
238
+ serialize message into buffer
239
+ :param buff: buffer, ``StringIO``
240
+ """
241
+ try:
242
+ _x = self.success
243
+ buff.write(_get_struct_B().pack(_x))
244
+ _x = self.message
245
+ length = len(_x)
246
+ if python3 or type(_x) == unicode:
247
+ _x = _x.encode('utf-8')
248
+ length = len(_x)
249
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
250
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
251
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
252
+
253
+ def deserialize(self, str):
254
+ """
255
+ unpack serialized message in str into this message instance
256
+ :param str: byte array of serialized message, ``str``
257
+ """
258
+ if python3:
259
+ codecs.lookup_error("rosmsg").msg_type = self._type
260
+ try:
261
+ end = 0
262
+ start = end
263
+ end += 1
264
+ (self.success,) = _get_struct_B().unpack(str[start:end])
265
+ self.success = bool(self.success)
266
+ start = end
267
+ end += 4
268
+ (length,) = _struct_I.unpack(str[start:end])
269
+ start = end
270
+ end += length
271
+ if python3:
272
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
273
+ else:
274
+ self.message = str[start:end]
275
+ return self
276
+ except struct.error as e:
277
+ raise genpy.DeserializationError(e) # most likely buffer underfill
278
+
279
+
280
+ def serialize_numpy(self, buff, numpy):
281
+ """
282
+ serialize message with numpy array types into buffer
283
+ :param buff: buffer, ``StringIO``
284
+ :param numpy: numpy python module
285
+ """
286
+ try:
287
+ _x = self.success
288
+ buff.write(_get_struct_B().pack(_x))
289
+ _x = self.message
290
+ length = len(_x)
291
+ if python3 or type(_x) == unicode:
292
+ _x = _x.encode('utf-8')
293
+ length = len(_x)
294
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
295
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
296
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
297
+
298
+ def deserialize_numpy(self, str, numpy):
299
+ """
300
+ unpack serialized message in str into this message instance using numpy for array types
301
+ :param str: byte array of serialized message, ``str``
302
+ :param numpy: numpy python module
303
+ """
304
+ if python3:
305
+ codecs.lookup_error("rosmsg").msg_type = self._type
306
+ try:
307
+ end = 0
308
+ start = end
309
+ end += 1
310
+ (self.success,) = _get_struct_B().unpack(str[start:end])
311
+ self.success = bool(self.success)
312
+ start = end
313
+ end += 4
314
+ (length,) = _struct_I.unpack(str[start:end])
315
+ start = end
316
+ end += length
317
+ if python3:
318
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
319
+ else:
320
+ self.message = str[start:end]
321
+ return self
322
+ except struct.error as e:
323
+ raise genpy.DeserializationError(e) # most likely buffer underfill
324
+
325
+ _struct_I = genpy.struct_I
326
+ def _get_struct_I():
327
+ global _struct_I
328
+ return _struct_I
329
+ _struct_B = None
330
+ def _get_struct_B():
331
+ global _struct_B
332
+ if _struct_B is None:
333
+ _struct_B = struct.Struct("<B")
334
+ return _struct_B
335
+ class gestureExecute(object):
336
+ _type = 'kuavo_msgs/gestureExecute'
337
+ _md5sum = 'b599da36839d439975fbac8d4bfbeb7e'
338
+ _request_class = gestureExecuteRequest
339
+ _response_class = gestureExecuteResponse
@@ -0,0 +1,257 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/gestureExecuteStateRequest.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 gestureExecuteStateRequest(genpy.Message):
11
+ _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
12
+ _type = "kuavo_msgs/gestureExecuteStateRequest"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """# This service checks the status of a task.
15
+ # It is used to determine whether a task is currently executing and provides an additional message.
16
+
17
+ # Request:
18
+ # (No request fields for this service)
19
+
20
+ # Response:
21
+ # bool is_executing # Indicates whether the task is currently executing.
22
+ # string message # A message providing additional information (e.g., status details or error messages).
23
+
24
+ """
25
+ __slots__ = []
26
+ _slot_types = []
27
+
28
+ def __init__(self, *args, **kwds):
29
+ """
30
+ Constructor. Any message fields that are implicitly/explicitly
31
+ set to None will be assigned a default value. The recommend
32
+ use is keyword arguments as this is more robust to future message
33
+ changes. You cannot mix in-order arguments and keyword arguments.
34
+
35
+ The available fields are:
36
+
37
+
38
+ :param args: complete set of field values, in .msg order
39
+ :param kwds: use keyword arguments corresponding to message field names
40
+ to set specific fields.
41
+ """
42
+ if args or kwds:
43
+ super(gestureExecuteStateRequest, self).__init__(*args, **kwds)
44
+
45
+ def _get_types(self):
46
+ """
47
+ internal API method
48
+ """
49
+ return self._slot_types
50
+
51
+ def serialize(self, buff):
52
+ """
53
+ serialize message into buffer
54
+ :param buff: buffer, ``StringIO``
55
+ """
56
+ try:
57
+ pass
58
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
59
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
60
+
61
+ def deserialize(self, str):
62
+ """
63
+ unpack serialized message in str into this message instance
64
+ :param str: byte array of serialized message, ``str``
65
+ """
66
+ if python3:
67
+ codecs.lookup_error("rosmsg").msg_type = self._type
68
+ try:
69
+ end = 0
70
+ return self
71
+ except struct.error as e:
72
+ raise genpy.DeserializationError(e) # most likely buffer underfill
73
+
74
+
75
+ def serialize_numpy(self, buff, numpy):
76
+ """
77
+ serialize message with numpy array types into buffer
78
+ :param buff: buffer, ``StringIO``
79
+ :param numpy: numpy python module
80
+ """
81
+ try:
82
+ pass
83
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
84
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
85
+
86
+ def deserialize_numpy(self, str, numpy):
87
+ """
88
+ unpack serialized message in str into this message instance using numpy for array types
89
+ :param str: byte array of serialized message, ``str``
90
+ :param numpy: numpy python module
91
+ """
92
+ if python3:
93
+ codecs.lookup_error("rosmsg").msg_type = self._type
94
+ try:
95
+ end = 0
96
+ return self
97
+ except struct.error as e:
98
+ raise genpy.DeserializationError(e) # most likely buffer underfill
99
+
100
+ _struct_I = genpy.struct_I
101
+ def _get_struct_I():
102
+ global _struct_I
103
+ return _struct_I
104
+ # This Python file uses the following encoding: utf-8
105
+ """autogenerated by genpy from kuavo_msgs/gestureExecuteStateResponse.msg. Do not edit."""
106
+ import codecs
107
+ import sys
108
+ python3 = True if sys.hexversion > 0x03000000 else False
109
+ import genpy
110
+ import struct
111
+
112
+
113
+ class gestureExecuteStateResponse(genpy.Message):
114
+ _md5sum = "340cb7a19883494e0e422f2964927053"
115
+ _type = "kuavo_msgs/gestureExecuteStateResponse"
116
+ _has_header = False # flag to mark the presence of a Header object
117
+ _full_text = """bool is_executing
118
+ string message
119
+ """
120
+ __slots__ = ['is_executing','message']
121
+ _slot_types = ['bool','string']
122
+
123
+ def __init__(self, *args, **kwds):
124
+ """
125
+ Constructor. Any message fields that are implicitly/explicitly
126
+ set to None will be assigned a default value. The recommend
127
+ use is keyword arguments as this is more robust to future message
128
+ changes. You cannot mix in-order arguments and keyword arguments.
129
+
130
+ The available fields are:
131
+ is_executing,message
132
+
133
+ :param args: complete set of field values, in .msg order
134
+ :param kwds: use keyword arguments corresponding to message field names
135
+ to set specific fields.
136
+ """
137
+ if args or kwds:
138
+ super(gestureExecuteStateResponse, self).__init__(*args, **kwds)
139
+ # message fields cannot be None, assign default values for those that are
140
+ if self.is_executing is None:
141
+ self.is_executing = False
142
+ if self.message is None:
143
+ self.message = ''
144
+ else:
145
+ self.is_executing = False
146
+ self.message = ''
147
+
148
+ def _get_types(self):
149
+ """
150
+ internal API method
151
+ """
152
+ return self._slot_types
153
+
154
+ def serialize(self, buff):
155
+ """
156
+ serialize message into buffer
157
+ :param buff: buffer, ``StringIO``
158
+ """
159
+ try:
160
+ _x = self.is_executing
161
+ buff.write(_get_struct_B().pack(_x))
162
+ _x = self.message
163
+ length = len(_x)
164
+ if python3 or type(_x) == unicode:
165
+ _x = _x.encode('utf-8')
166
+ length = len(_x)
167
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
168
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
169
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
170
+
171
+ def deserialize(self, str):
172
+ """
173
+ unpack serialized message in str into this message instance
174
+ :param str: byte array of serialized message, ``str``
175
+ """
176
+ if python3:
177
+ codecs.lookup_error("rosmsg").msg_type = self._type
178
+ try:
179
+ end = 0
180
+ start = end
181
+ end += 1
182
+ (self.is_executing,) = _get_struct_B().unpack(str[start:end])
183
+ self.is_executing = bool(self.is_executing)
184
+ start = end
185
+ end += 4
186
+ (length,) = _struct_I.unpack(str[start:end])
187
+ start = end
188
+ end += length
189
+ if python3:
190
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
191
+ else:
192
+ self.message = str[start:end]
193
+ return self
194
+ except struct.error as e:
195
+ raise genpy.DeserializationError(e) # most likely buffer underfill
196
+
197
+
198
+ def serialize_numpy(self, buff, numpy):
199
+ """
200
+ serialize message with numpy array types into buffer
201
+ :param buff: buffer, ``StringIO``
202
+ :param numpy: numpy python module
203
+ """
204
+ try:
205
+ _x = self.is_executing
206
+ buff.write(_get_struct_B().pack(_x))
207
+ _x = self.message
208
+ length = len(_x)
209
+ if python3 or type(_x) == unicode:
210
+ _x = _x.encode('utf-8')
211
+ length = len(_x)
212
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
213
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
214
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
215
+
216
+ def deserialize_numpy(self, str, numpy):
217
+ """
218
+ unpack serialized message in str into this message instance using numpy for array types
219
+ :param str: byte array of serialized message, ``str``
220
+ :param numpy: numpy python module
221
+ """
222
+ if python3:
223
+ codecs.lookup_error("rosmsg").msg_type = self._type
224
+ try:
225
+ end = 0
226
+ start = end
227
+ end += 1
228
+ (self.is_executing,) = _get_struct_B().unpack(str[start:end])
229
+ self.is_executing = bool(self.is_executing)
230
+ start = end
231
+ end += 4
232
+ (length,) = _struct_I.unpack(str[start:end])
233
+ start = end
234
+ end += length
235
+ if python3:
236
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
237
+ else:
238
+ self.message = str[start:end]
239
+ return self
240
+ except struct.error as e:
241
+ raise genpy.DeserializationError(e) # most likely buffer underfill
242
+
243
+ _struct_I = genpy.struct_I
244
+ def _get_struct_I():
245
+ global _struct_I
246
+ return _struct_I
247
+ _struct_B = None
248
+ def _get_struct_B():
249
+ global _struct_B
250
+ if _struct_B is None:
251
+ _struct_B = struct.Struct("<B")
252
+ return _struct_B
253
+ class gestureExecuteState(object):
254
+ _type = 'kuavo_msgs/gestureExecuteState'
255
+ _md5sum = '340cb7a19883494e0e422f2964927053'
256
+ _request_class = gestureExecuteStateRequest
257
+ _response_class = gestureExecuteStateResponse