kuavo-humanoid-sdk 1.2.1b3279__20250912160921-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.1b3279.dist-info/METADATA +296 -0
  182. kuavo_humanoid_sdk-1.2.1b3279.dist-info/RECORD +184 -0
  183. kuavo_humanoid_sdk-1.2.1b3279.dist-info/WHEEL +6 -0
  184. kuavo_humanoid_sdk-1.2.1b3279.dist-info/top_level.txt +1 -0
@@ -0,0 +1,418 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/gestureListRequest.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 gestureListRequest(genpy.Message):
11
+ _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
12
+ _type = "kuavo_msgs/gestureListRequest"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """# This service returns a list of available gestures.
15
+ # It is used to query the system for all gestures that can be recognized or performed.
16
+ #
17
+ # Request:
18
+ # No input parameters are required.
19
+ #
20
+ # Response:
21
+ # bool success # Indicates whether the request was successful.
22
+ # int32 gesture_count # The number of gestures returned in the list.
23
+ # string message # A message indicating the result of the request.
24
+ # kuavo_msgs/gestureInfo[] gesture_infos # A list of gesture information, each containing the name, alias, and description of a gesture.
25
+
26
+ # Define the GestureInfo message
27
+ # string gesture_name # The name of the gesture.
28
+ # string[] alias # A list of aliases for the gesture.
29
+ # string description # A description of the gesture.
30
+
31
+ """
32
+ __slots__ = []
33
+ _slot_types = []
34
+
35
+ def __init__(self, *args, **kwds):
36
+ """
37
+ Constructor. Any message fields that are implicitly/explicitly
38
+ set to None will be assigned a default value. The recommend
39
+ use is keyword arguments as this is more robust to future message
40
+ changes. You cannot mix in-order arguments and keyword arguments.
41
+
42
+ The available fields are:
43
+
44
+
45
+ :param args: complete set of field values, in .msg order
46
+ :param kwds: use keyword arguments corresponding to message field names
47
+ to set specific fields.
48
+ """
49
+ if args or kwds:
50
+ super(gestureListRequest, self).__init__(*args, **kwds)
51
+
52
+ def _get_types(self):
53
+ """
54
+ internal API method
55
+ """
56
+ return self._slot_types
57
+
58
+ def serialize(self, buff):
59
+ """
60
+ serialize message into buffer
61
+ :param buff: buffer, ``StringIO``
62
+ """
63
+ try:
64
+ pass
65
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
66
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
67
+
68
+ def deserialize(self, str):
69
+ """
70
+ unpack serialized message in str into this message instance
71
+ :param str: byte array of serialized message, ``str``
72
+ """
73
+ if python3:
74
+ codecs.lookup_error("rosmsg").msg_type = self._type
75
+ try:
76
+ end = 0
77
+ return self
78
+ except struct.error as e:
79
+ raise genpy.DeserializationError(e) # most likely buffer underfill
80
+
81
+
82
+ def serialize_numpy(self, buff, numpy):
83
+ """
84
+ serialize message with numpy array types into buffer
85
+ :param buff: buffer, ``StringIO``
86
+ :param numpy: numpy python module
87
+ """
88
+ try:
89
+ pass
90
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
91
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
92
+
93
+ def deserialize_numpy(self, str, numpy):
94
+ """
95
+ unpack serialized message in str into this message instance using numpy for array types
96
+ :param str: byte array of serialized message, ``str``
97
+ :param numpy: numpy python module
98
+ """
99
+ if python3:
100
+ codecs.lookup_error("rosmsg").msg_type = self._type
101
+ try:
102
+ end = 0
103
+ return self
104
+ except struct.error as e:
105
+ raise genpy.DeserializationError(e) # most likely buffer underfill
106
+
107
+ _struct_I = genpy.struct_I
108
+ def _get_struct_I():
109
+ global _struct_I
110
+ return _struct_I
111
+ # This Python file uses the following encoding: utf-8
112
+ """autogenerated by genpy from kuavo_msgs/gestureListResponse.msg. Do not edit."""
113
+ import codecs
114
+ import sys
115
+ python3 = True if sys.hexversion > 0x03000000 else False
116
+ import genpy
117
+ import struct
118
+
119
+ import kuavo_msgs.msg
120
+
121
+ class gestureListResponse(genpy.Message):
122
+ _md5sum = "ee839a0568f441526fe05bf2e2f25572"
123
+ _type = "kuavo_msgs/gestureListResponse"
124
+ _has_header = False # flag to mark the presence of a Header object
125
+ _full_text = """bool success
126
+ int32 gesture_count
127
+ string message
128
+ kuavo_msgs/gestureInfo[] gesture_infos
129
+
130
+ ================================================================================
131
+ MSG: kuavo_msgs/gestureInfo
132
+ # This message defines the information for a single gesture.
133
+ # It includes the name, a list of aliases, and a description of the gesture.
134
+
135
+ # The name of the gesture.
136
+ string gesture_name
137
+
138
+ # A list of aliases for the gesture. These can be alternative names or shortcuts.
139
+ string[] alias
140
+
141
+ # A description of the gesture, providing more detailed information about its purpose and usage.
142
+ string description"""
143
+ __slots__ = ['success','gesture_count','message','gesture_infos']
144
+ _slot_types = ['bool','int32','string','kuavo_msgs/gestureInfo[]']
145
+
146
+ def __init__(self, *args, **kwds):
147
+ """
148
+ Constructor. Any message fields that are implicitly/explicitly
149
+ set to None will be assigned a default value. The recommend
150
+ use is keyword arguments as this is more robust to future message
151
+ changes. You cannot mix in-order arguments and keyword arguments.
152
+
153
+ The available fields are:
154
+ success,gesture_count,message,gesture_infos
155
+
156
+ :param args: complete set of field values, in .msg order
157
+ :param kwds: use keyword arguments corresponding to message field names
158
+ to set specific fields.
159
+ """
160
+ if args or kwds:
161
+ super(gestureListResponse, self).__init__(*args, **kwds)
162
+ # message fields cannot be None, assign default values for those that are
163
+ if self.success is None:
164
+ self.success = False
165
+ if self.gesture_count is None:
166
+ self.gesture_count = 0
167
+ if self.message is None:
168
+ self.message = ''
169
+ if self.gesture_infos is None:
170
+ self.gesture_infos = []
171
+ else:
172
+ self.success = False
173
+ self.gesture_count = 0
174
+ self.message = ''
175
+ self.gesture_infos = []
176
+
177
+ def _get_types(self):
178
+ """
179
+ internal API method
180
+ """
181
+ return self._slot_types
182
+
183
+ def serialize(self, buff):
184
+ """
185
+ serialize message into buffer
186
+ :param buff: buffer, ``StringIO``
187
+ """
188
+ try:
189
+ _x = self
190
+ buff.write(_get_struct_Bi().pack(_x.success, _x.gesture_count))
191
+ _x = self.message
192
+ length = len(_x)
193
+ if python3 or type(_x) == unicode:
194
+ _x = _x.encode('utf-8')
195
+ length = len(_x)
196
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
197
+ length = len(self.gesture_infos)
198
+ buff.write(_struct_I.pack(length))
199
+ for val1 in self.gesture_infos:
200
+ _x = val1.gesture_name
201
+ length = len(_x)
202
+ if python3 or type(_x) == unicode:
203
+ _x = _x.encode('utf-8')
204
+ length = len(_x)
205
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
206
+ length = len(val1.alias)
207
+ buff.write(_struct_I.pack(length))
208
+ for val2 in val1.alias:
209
+ length = len(val2)
210
+ if python3 or type(val2) == unicode:
211
+ val2 = val2.encode('utf-8')
212
+ length = len(val2)
213
+ buff.write(struct.Struct('<I%ss'%length).pack(length, val2))
214
+ _x = val1.description
215
+ length = len(_x)
216
+ if python3 or type(_x) == unicode:
217
+ _x = _x.encode('utf-8')
218
+ length = len(_x)
219
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
220
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
221
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
222
+
223
+ def deserialize(self, str):
224
+ """
225
+ unpack serialized message in str into this message instance
226
+ :param str: byte array of serialized message, ``str``
227
+ """
228
+ if python3:
229
+ codecs.lookup_error("rosmsg").msg_type = self._type
230
+ try:
231
+ if self.gesture_infos is None:
232
+ self.gesture_infos = None
233
+ end = 0
234
+ _x = self
235
+ start = end
236
+ end += 5
237
+ (_x.success, _x.gesture_count,) = _get_struct_Bi().unpack(str[start:end])
238
+ self.success = bool(self.success)
239
+ start = end
240
+ end += 4
241
+ (length,) = _struct_I.unpack(str[start:end])
242
+ start = end
243
+ end += length
244
+ if python3:
245
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
246
+ else:
247
+ self.message = str[start:end]
248
+ start = end
249
+ end += 4
250
+ (length,) = _struct_I.unpack(str[start:end])
251
+ self.gesture_infos = []
252
+ for i in range(0, length):
253
+ val1 = kuavo_msgs.msg.gestureInfo()
254
+ start = end
255
+ end += 4
256
+ (length,) = _struct_I.unpack(str[start:end])
257
+ start = end
258
+ end += length
259
+ if python3:
260
+ val1.gesture_name = str[start:end].decode('utf-8', 'rosmsg')
261
+ else:
262
+ val1.gesture_name = str[start:end]
263
+ start = end
264
+ end += 4
265
+ (length,) = _struct_I.unpack(str[start:end])
266
+ val1.alias = []
267
+ for i in range(0, length):
268
+ start = end
269
+ end += 4
270
+ (length,) = _struct_I.unpack(str[start:end])
271
+ start = end
272
+ end += length
273
+ if python3:
274
+ val2 = str[start:end].decode('utf-8', 'rosmsg')
275
+ else:
276
+ val2 = str[start:end]
277
+ val1.alias.append(val2)
278
+ start = end
279
+ end += 4
280
+ (length,) = _struct_I.unpack(str[start:end])
281
+ start = end
282
+ end += length
283
+ if python3:
284
+ val1.description = str[start:end].decode('utf-8', 'rosmsg')
285
+ else:
286
+ val1.description = str[start:end]
287
+ self.gesture_infos.append(val1)
288
+ return self
289
+ except struct.error as e:
290
+ raise genpy.DeserializationError(e) # most likely buffer underfill
291
+
292
+
293
+ def serialize_numpy(self, buff, numpy):
294
+ """
295
+ serialize message with numpy array types into buffer
296
+ :param buff: buffer, ``StringIO``
297
+ :param numpy: numpy python module
298
+ """
299
+ try:
300
+ _x = self
301
+ buff.write(_get_struct_Bi().pack(_x.success, _x.gesture_count))
302
+ _x = self.message
303
+ length = len(_x)
304
+ if python3 or type(_x) == unicode:
305
+ _x = _x.encode('utf-8')
306
+ length = len(_x)
307
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
308
+ length = len(self.gesture_infos)
309
+ buff.write(_struct_I.pack(length))
310
+ for val1 in self.gesture_infos:
311
+ _x = val1.gesture_name
312
+ length = len(_x)
313
+ if python3 or type(_x) == unicode:
314
+ _x = _x.encode('utf-8')
315
+ length = len(_x)
316
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
317
+ length = len(val1.alias)
318
+ buff.write(_struct_I.pack(length))
319
+ for val2 in val1.alias:
320
+ length = len(val2)
321
+ if python3 or type(val2) == unicode:
322
+ val2 = val2.encode('utf-8')
323
+ length = len(val2)
324
+ buff.write(struct.Struct('<I%ss'%length).pack(length, val2))
325
+ _x = val1.description
326
+ length = len(_x)
327
+ if python3 or type(_x) == unicode:
328
+ _x = _x.encode('utf-8')
329
+ length = len(_x)
330
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
331
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
332
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
333
+
334
+ def deserialize_numpy(self, str, numpy):
335
+ """
336
+ unpack serialized message in str into this message instance using numpy for array types
337
+ :param str: byte array of serialized message, ``str``
338
+ :param numpy: numpy python module
339
+ """
340
+ if python3:
341
+ codecs.lookup_error("rosmsg").msg_type = self._type
342
+ try:
343
+ if self.gesture_infos is None:
344
+ self.gesture_infos = None
345
+ end = 0
346
+ _x = self
347
+ start = end
348
+ end += 5
349
+ (_x.success, _x.gesture_count,) = _get_struct_Bi().unpack(str[start:end])
350
+ self.success = bool(self.success)
351
+ start = end
352
+ end += 4
353
+ (length,) = _struct_I.unpack(str[start:end])
354
+ start = end
355
+ end += length
356
+ if python3:
357
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
358
+ else:
359
+ self.message = str[start:end]
360
+ start = end
361
+ end += 4
362
+ (length,) = _struct_I.unpack(str[start:end])
363
+ self.gesture_infos = []
364
+ for i in range(0, length):
365
+ val1 = kuavo_msgs.msg.gestureInfo()
366
+ start = end
367
+ end += 4
368
+ (length,) = _struct_I.unpack(str[start:end])
369
+ start = end
370
+ end += length
371
+ if python3:
372
+ val1.gesture_name = str[start:end].decode('utf-8', 'rosmsg')
373
+ else:
374
+ val1.gesture_name = str[start:end]
375
+ start = end
376
+ end += 4
377
+ (length,) = _struct_I.unpack(str[start:end])
378
+ val1.alias = []
379
+ for i in range(0, length):
380
+ start = end
381
+ end += 4
382
+ (length,) = _struct_I.unpack(str[start:end])
383
+ start = end
384
+ end += length
385
+ if python3:
386
+ val2 = str[start:end].decode('utf-8', 'rosmsg')
387
+ else:
388
+ val2 = str[start:end]
389
+ val1.alias.append(val2)
390
+ start = end
391
+ end += 4
392
+ (length,) = _struct_I.unpack(str[start:end])
393
+ start = end
394
+ end += length
395
+ if python3:
396
+ val1.description = str[start:end].decode('utf-8', 'rosmsg')
397
+ else:
398
+ val1.description = str[start:end]
399
+ self.gesture_infos.append(val1)
400
+ return self
401
+ except struct.error as e:
402
+ raise genpy.DeserializationError(e) # most likely buffer underfill
403
+
404
+ _struct_I = genpy.struct_I
405
+ def _get_struct_I():
406
+ global _struct_I
407
+ return _struct_I
408
+ _struct_Bi = None
409
+ def _get_struct_Bi():
410
+ global _struct_Bi
411
+ if _struct_Bi is None:
412
+ _struct_Bi = struct.Struct("<Bi")
413
+ return _struct_Bi
414
+ class gestureList(object):
415
+ _type = 'kuavo_msgs/gestureList'
416
+ _md5sum = 'ee839a0568f441526fe05bf2e2f25572'
417
+ _request_class = gestureListRequest
418
+ _response_class = gestureListResponse
@@ -0,0 +1,253 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/getCurrentGaitNameRequest.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 getCurrentGaitNameRequest(genpy.Message):
11
+ _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
12
+ _type = "kuavo_msgs/getCurrentGaitNameRequest"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """# Request: Empty message, no fields needed
15
+
16
+ # Response:
17
+ # success: Whether the service call was successful
18
+ # gait_name: Name of the current gait being executed
19
+ """
20
+ __slots__ = []
21
+ _slot_types = []
22
+
23
+ def __init__(self, *args, **kwds):
24
+ """
25
+ Constructor. Any message fields that are implicitly/explicitly
26
+ set to None will be assigned a default value. The recommend
27
+ use is keyword arguments as this is more robust to future message
28
+ changes. You cannot mix in-order arguments and keyword arguments.
29
+
30
+ The available fields are:
31
+
32
+
33
+ :param args: complete set of field values, in .msg order
34
+ :param kwds: use keyword arguments corresponding to message field names
35
+ to set specific fields.
36
+ """
37
+ if args or kwds:
38
+ super(getCurrentGaitNameRequest, self).__init__(*args, **kwds)
39
+
40
+ def _get_types(self):
41
+ """
42
+ internal API method
43
+ """
44
+ return self._slot_types
45
+
46
+ def serialize(self, buff):
47
+ """
48
+ serialize message into buffer
49
+ :param buff: buffer, ``StringIO``
50
+ """
51
+ try:
52
+ pass
53
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
54
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
55
+
56
+ def deserialize(self, str):
57
+ """
58
+ unpack serialized message in str into this message instance
59
+ :param str: byte array of serialized message, ``str``
60
+ """
61
+ if python3:
62
+ codecs.lookup_error("rosmsg").msg_type = self._type
63
+ try:
64
+ end = 0
65
+ return self
66
+ except struct.error as e:
67
+ raise genpy.DeserializationError(e) # most likely buffer underfill
68
+
69
+
70
+ def serialize_numpy(self, buff, numpy):
71
+ """
72
+ serialize message with numpy array types into buffer
73
+ :param buff: buffer, ``StringIO``
74
+ :param numpy: numpy python module
75
+ """
76
+ try:
77
+ pass
78
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
79
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
80
+
81
+ def deserialize_numpy(self, str, numpy):
82
+ """
83
+ unpack serialized message in str into this message instance using numpy for array types
84
+ :param str: byte array of serialized message, ``str``
85
+ :param numpy: numpy python module
86
+ """
87
+ if python3:
88
+ codecs.lookup_error("rosmsg").msg_type = self._type
89
+ try:
90
+ end = 0
91
+ return self
92
+ except struct.error as e:
93
+ raise genpy.DeserializationError(e) # most likely buffer underfill
94
+
95
+ _struct_I = genpy.struct_I
96
+ def _get_struct_I():
97
+ global _struct_I
98
+ return _struct_I
99
+ # This Python file uses the following encoding: utf-8
100
+ """autogenerated by genpy from kuavo_msgs/getCurrentGaitNameResponse.msg. Do not edit."""
101
+ import codecs
102
+ import sys
103
+ python3 = True if sys.hexversion > 0x03000000 else False
104
+ import genpy
105
+ import struct
106
+
107
+
108
+ class getCurrentGaitNameResponse(genpy.Message):
109
+ _md5sum = "657f58245742fcfc53dd6ab5bfa3063e"
110
+ _type = "kuavo_msgs/getCurrentGaitNameResponse"
111
+ _has_header = False # flag to mark the presence of a Header object
112
+ _full_text = """bool success
113
+ string gait_name
114
+
115
+ """
116
+ __slots__ = ['success','gait_name']
117
+ _slot_types = ['bool','string']
118
+
119
+ def __init__(self, *args, **kwds):
120
+ """
121
+ Constructor. Any message fields that are implicitly/explicitly
122
+ set to None will be assigned a default value. The recommend
123
+ use is keyword arguments as this is more robust to future message
124
+ changes. You cannot mix in-order arguments and keyword arguments.
125
+
126
+ The available fields are:
127
+ success,gait_name
128
+
129
+ :param args: complete set of field values, in .msg order
130
+ :param kwds: use keyword arguments corresponding to message field names
131
+ to set specific fields.
132
+ """
133
+ if args or kwds:
134
+ super(getCurrentGaitNameResponse, self).__init__(*args, **kwds)
135
+ # message fields cannot be None, assign default values for those that are
136
+ if self.success is None:
137
+ self.success = False
138
+ if self.gait_name is None:
139
+ self.gait_name = ''
140
+ else:
141
+ self.success = False
142
+ self.gait_name = ''
143
+
144
+ def _get_types(self):
145
+ """
146
+ internal API method
147
+ """
148
+ return self._slot_types
149
+
150
+ def serialize(self, buff):
151
+ """
152
+ serialize message into buffer
153
+ :param buff: buffer, ``StringIO``
154
+ """
155
+ try:
156
+ _x = self.success
157
+ buff.write(_get_struct_B().pack(_x))
158
+ _x = self.gait_name
159
+ length = len(_x)
160
+ if python3 or type(_x) == unicode:
161
+ _x = _x.encode('utf-8')
162
+ length = len(_x)
163
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
164
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
165
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
166
+
167
+ def deserialize(self, str):
168
+ """
169
+ unpack serialized message in str into this message instance
170
+ :param str: byte array of serialized message, ``str``
171
+ """
172
+ if python3:
173
+ codecs.lookup_error("rosmsg").msg_type = self._type
174
+ try:
175
+ end = 0
176
+ start = end
177
+ end += 1
178
+ (self.success,) = _get_struct_B().unpack(str[start:end])
179
+ self.success = bool(self.success)
180
+ start = end
181
+ end += 4
182
+ (length,) = _struct_I.unpack(str[start:end])
183
+ start = end
184
+ end += length
185
+ if python3:
186
+ self.gait_name = str[start:end].decode('utf-8', 'rosmsg')
187
+ else:
188
+ self.gait_name = str[start:end]
189
+ return self
190
+ except struct.error as e:
191
+ raise genpy.DeserializationError(e) # most likely buffer underfill
192
+
193
+
194
+ def serialize_numpy(self, buff, numpy):
195
+ """
196
+ serialize message with numpy array types into buffer
197
+ :param buff: buffer, ``StringIO``
198
+ :param numpy: numpy python module
199
+ """
200
+ try:
201
+ _x = self.success
202
+ buff.write(_get_struct_B().pack(_x))
203
+ _x = self.gait_name
204
+ length = len(_x)
205
+ if python3 or type(_x) == unicode:
206
+ _x = _x.encode('utf-8')
207
+ length = len(_x)
208
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
209
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
210
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
211
+
212
+ def deserialize_numpy(self, str, numpy):
213
+ """
214
+ unpack serialized message in str into this message instance using numpy for array types
215
+ :param str: byte array of serialized message, ``str``
216
+ :param numpy: numpy python module
217
+ """
218
+ if python3:
219
+ codecs.lookup_error("rosmsg").msg_type = self._type
220
+ try:
221
+ end = 0
222
+ start = end
223
+ end += 1
224
+ (self.success,) = _get_struct_B().unpack(str[start:end])
225
+ self.success = bool(self.success)
226
+ start = end
227
+ end += 4
228
+ (length,) = _struct_I.unpack(str[start:end])
229
+ start = end
230
+ end += length
231
+ if python3:
232
+ self.gait_name = str[start:end].decode('utf-8', 'rosmsg')
233
+ else:
234
+ self.gait_name = str[start:end]
235
+ return self
236
+ except struct.error as e:
237
+ raise genpy.DeserializationError(e) # most likely buffer underfill
238
+
239
+ _struct_I = genpy.struct_I
240
+ def _get_struct_I():
241
+ global _struct_I
242
+ return _struct_I
243
+ _struct_B = None
244
+ def _get_struct_B():
245
+ global _struct_B
246
+ if _struct_B is None:
247
+ _struct_B = struct.Struct("<B")
248
+ return _struct_B
249
+ class getCurrentGaitName(object):
250
+ _type = 'kuavo_msgs/getCurrentGaitName'
251
+ _md5sum = '657f58245742fcfc53dd6ab5bfa3063e'
252
+ _request_class = getCurrentGaitNameRequest
253
+ _response_class = getCurrentGaitNameResponse