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