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