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