kuavo-humanoid-sdk 1.1.2a921__py3-none-any.whl → 1.1.2a924__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 (82) hide show
  1. kuavo_humanoid_sdk/msg/__init__.py +4 -0
  2. kuavo_humanoid_sdk/msg/kuavo_msgs/__init__.py +7 -0
  3. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_Metadata.py +199 -0
  4. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/__init__.py +26 -0
  5. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armPoseWithTimeStamp.py +168 -0
  6. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armTargetPoses.py +151 -0
  7. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandCommand.py +229 -0
  8. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandTouchState.py +256 -0
  9. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_endEffectorData.py +227 -0
  10. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPose.py +122 -0
  11. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoseTargetTrajectories.py +203 -0
  12. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gaitTimeName.py +147 -0
  13. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureInfo.py +218 -0
  14. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureTask.py +149 -0
  15. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_headBodyPose.py +145 -0
  16. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_imuData.py +165 -0
  17. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointCmd.py +390 -0
  18. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointData.py +205 -0
  19. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawCommand.py +320 -0
  20. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawState.py +341 -0
  21. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_questJoySticks.py +191 -0
  22. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHandPosition.py +225 -0
  23. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHeadMotionData.py +128 -0
  24. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotState.py +222 -0
  25. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_sensorsData.py +495 -0
  26. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_switchGaitByName.py +200 -0
  27. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_touchSensorStatus.py +162 -0
  28. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloDetection.py +251 -0
  29. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloOutputData.py +168 -0
  30. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/__init__.py +15 -0
  31. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeArmCtrlMode.py +275 -0
  32. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeTorsoCtrlMode.py +274 -0
  33. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_controlLejuClaw.py +408 -0
  34. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_enableHandTouchSensor.py +304 -0
  35. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_footPoseTargetTrajectoriesSrv.py +321 -0
  36. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecute.py +339 -0
  37. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecuteState.py +257 -0
  38. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureList.py +418 -0
  39. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_getCurrentGaitName.py +253 -0
  40. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_handForceLevel.py +330 -0
  41. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_jointMoveTo.py +302 -0
  42. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setHwIntialState.py +304 -0
  43. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setMotorEncoderRoundService.py +283 -0
  44. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setTagId.py +275 -0
  45. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_singleStepControl.py +356 -0
  46. kuavo_humanoid_sdk/msg/motion_capture_ik/__init__.py +7 -0
  47. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/__init__.py +9 -0
  48. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_armHandPose.py +160 -0
  49. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_handPose.py +136 -0
  50. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_headBodyPose.py +145 -0
  51. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_ikSolveError.py +171 -0
  52. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_ikSolveParam.py +140 -0
  53. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_robotArmQVVD.py +177 -0
  54. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_robotHandPosition.py +225 -0
  55. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_twoArmHandPose.py +272 -0
  56. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_twoArmHandPoseCmd.py +311 -0
  57. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/__init__.py +4 -0
  58. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/_changeArmCtrlMode.py +275 -0
  59. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/_changeArmCtrlModeKuavo.py +236 -0
  60. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/_fkSrv.py +394 -0
  61. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/_twoArmHandPoseCmdSrv.py +661 -0
  62. kuavo_humanoid_sdk/msg/ocs2_msgs/__init__.py +7 -0
  63. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/__init__.py +12 -0
  64. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_constraint.py +142 -0
  65. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_controller_data.py +121 -0
  66. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_lagrangian_metrics.py +148 -0
  67. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mode_schedule.py +150 -0
  68. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_flattened_controller.py +666 -0
  69. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_input.py +122 -0
  70. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_observation.py +209 -0
  71. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_performance_indices.py +140 -0
  72. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_solver_data.py +886 -0
  73. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_state.py +122 -0
  74. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_target_trajectories.py +239 -0
  75. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_multiplier.py +148 -0
  76. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/__init__.py +1 -0
  77. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/_reset.py +376 -0
  78. {kuavo_humanoid_sdk-1.1.2a921.dist-info → kuavo_humanoid_sdk-1.1.2a924.dist-info}/METADATA +1 -1
  79. kuavo_humanoid_sdk-1.1.2a924.dist-info/RECORD +104 -0
  80. kuavo_humanoid_sdk-1.1.2a921.dist-info/RECORD +0 -27
  81. {kuavo_humanoid_sdk-1.1.2a921.dist-info → kuavo_humanoid_sdk-1.1.2a924.dist-info}/WHEEL +0 -0
  82. {kuavo_humanoid_sdk-1.1.2a921.dist-info → kuavo_humanoid_sdk-1.1.2a924.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,356 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/singleStepControlRequest.msg. Do not edit."""
3
+ import codecs
4
+ import sys
5
+ python3 = True if sys.hexversion > 0x03000000 else False
6
+ import genpy
7
+ import struct
8
+
9
+ import kuavo_msgs.msg
10
+
11
+ class singleStepControlRequest(genpy.Message):
12
+ _md5sum = "17f130f2bf33453ad92f340f67992d0e"
13
+ _type = "kuavo_msgs/singleStepControlRequest"
14
+ _has_header = False # flag to mark the presence of a Header object
15
+ _full_text = """footPoseTargetTrajectories foot_pose_target_trajectories
16
+
17
+ ================================================================================
18
+ MSG: kuavo_msgs/footPoseTargetTrajectories
19
+ float64[] timeTrajectory
20
+ int32[] footIndexTrajectory
21
+ footPose[] footPoseTrajectory
22
+ ================================================================================
23
+ MSG: kuavo_msgs/footPose
24
+ float64[4] footPose # x, y, z, yaw
25
+ float64[4] torsoPose # x, y, z, yaw"""
26
+ __slots__ = ['foot_pose_target_trajectories']
27
+ _slot_types = ['kuavo_msgs/footPoseTargetTrajectories']
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
+ foot_pose_target_trajectories
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(singleStepControlRequest, self).__init__(*args, **kwds)
45
+ # message fields cannot be None, assign default values for those that are
46
+ if self.foot_pose_target_trajectories is None:
47
+ self.foot_pose_target_trajectories = kuavo_msgs.msg.footPoseTargetTrajectories()
48
+ else:
49
+ self.foot_pose_target_trajectories = kuavo_msgs.msg.footPoseTargetTrajectories()
50
+
51
+ def _get_types(self):
52
+ """
53
+ internal API method
54
+ """
55
+ return self._slot_types
56
+
57
+ def serialize(self, buff):
58
+ """
59
+ serialize message into buffer
60
+ :param buff: buffer, ``StringIO``
61
+ """
62
+ try:
63
+ length = len(self.foot_pose_target_trajectories.timeTrajectory)
64
+ buff.write(_struct_I.pack(length))
65
+ pattern = '<%sd'%length
66
+ buff.write(struct.Struct(pattern).pack(*self.foot_pose_target_trajectories.timeTrajectory))
67
+ length = len(self.foot_pose_target_trajectories.footIndexTrajectory)
68
+ buff.write(_struct_I.pack(length))
69
+ pattern = '<%si'%length
70
+ buff.write(struct.Struct(pattern).pack(*self.foot_pose_target_trajectories.footIndexTrajectory))
71
+ length = len(self.foot_pose_target_trajectories.footPoseTrajectory)
72
+ buff.write(_struct_I.pack(length))
73
+ for val1 in self.foot_pose_target_trajectories.footPoseTrajectory:
74
+ buff.write(_get_struct_4d().pack(*val1.footPose))
75
+ buff.write(_get_struct_4d().pack(*val1.torsoPose))
76
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
77
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
78
+
79
+ def deserialize(self, str):
80
+ """
81
+ unpack serialized message in str into this message instance
82
+ :param str: byte array of serialized message, ``str``
83
+ """
84
+ if python3:
85
+ codecs.lookup_error("rosmsg").msg_type = self._type
86
+ try:
87
+ if self.foot_pose_target_trajectories is None:
88
+ self.foot_pose_target_trajectories = kuavo_msgs.msg.footPoseTargetTrajectories()
89
+ end = 0
90
+ start = end
91
+ end += 4
92
+ (length,) = _struct_I.unpack(str[start:end])
93
+ pattern = '<%sd'%length
94
+ start = end
95
+ s = struct.Struct(pattern)
96
+ end += s.size
97
+ self.foot_pose_target_trajectories.timeTrajectory = s.unpack(str[start:end])
98
+ start = end
99
+ end += 4
100
+ (length,) = _struct_I.unpack(str[start:end])
101
+ pattern = '<%si'%length
102
+ start = end
103
+ s = struct.Struct(pattern)
104
+ end += s.size
105
+ self.foot_pose_target_trajectories.footIndexTrajectory = s.unpack(str[start:end])
106
+ start = end
107
+ end += 4
108
+ (length,) = _struct_I.unpack(str[start:end])
109
+ self.foot_pose_target_trajectories.footPoseTrajectory = []
110
+ for i in range(0, length):
111
+ val1 = kuavo_msgs.msg.footPose()
112
+ start = end
113
+ end += 32
114
+ val1.footPose = _get_struct_4d().unpack(str[start:end])
115
+ start = end
116
+ end += 32
117
+ val1.torsoPose = _get_struct_4d().unpack(str[start:end])
118
+ self.foot_pose_target_trajectories.footPoseTrajectory.append(val1)
119
+ return self
120
+ except struct.error as e:
121
+ raise genpy.DeserializationError(e) # most likely buffer underfill
122
+
123
+
124
+ def serialize_numpy(self, buff, numpy):
125
+ """
126
+ serialize message with numpy array types into buffer
127
+ :param buff: buffer, ``StringIO``
128
+ :param numpy: numpy python module
129
+ """
130
+ try:
131
+ length = len(self.foot_pose_target_trajectories.timeTrajectory)
132
+ buff.write(_struct_I.pack(length))
133
+ pattern = '<%sd'%length
134
+ buff.write(self.foot_pose_target_trajectories.timeTrajectory.tostring())
135
+ length = len(self.foot_pose_target_trajectories.footIndexTrajectory)
136
+ buff.write(_struct_I.pack(length))
137
+ pattern = '<%si'%length
138
+ buff.write(self.foot_pose_target_trajectories.footIndexTrajectory.tostring())
139
+ length = len(self.foot_pose_target_trajectories.footPoseTrajectory)
140
+ buff.write(_struct_I.pack(length))
141
+ for val1 in self.foot_pose_target_trajectories.footPoseTrajectory:
142
+ buff.write(val1.footPose.tostring())
143
+ buff.write(val1.torsoPose.tostring())
144
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
145
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
146
+
147
+ def deserialize_numpy(self, str, numpy):
148
+ """
149
+ unpack serialized message in str into this message instance using numpy for array types
150
+ :param str: byte array of serialized message, ``str``
151
+ :param numpy: numpy python module
152
+ """
153
+ if python3:
154
+ codecs.lookup_error("rosmsg").msg_type = self._type
155
+ try:
156
+ if self.foot_pose_target_trajectories is None:
157
+ self.foot_pose_target_trajectories = kuavo_msgs.msg.footPoseTargetTrajectories()
158
+ end = 0
159
+ start = end
160
+ end += 4
161
+ (length,) = _struct_I.unpack(str[start:end])
162
+ pattern = '<%sd'%length
163
+ start = end
164
+ s = struct.Struct(pattern)
165
+ end += s.size
166
+ self.foot_pose_target_trajectories.timeTrajectory = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
167
+ start = end
168
+ end += 4
169
+ (length,) = _struct_I.unpack(str[start:end])
170
+ pattern = '<%si'%length
171
+ start = end
172
+ s = struct.Struct(pattern)
173
+ end += s.size
174
+ self.foot_pose_target_trajectories.footIndexTrajectory = numpy.frombuffer(str[start:end], dtype=numpy.int32, count=length)
175
+ start = end
176
+ end += 4
177
+ (length,) = _struct_I.unpack(str[start:end])
178
+ self.foot_pose_target_trajectories.footPoseTrajectory = []
179
+ for i in range(0, length):
180
+ val1 = kuavo_msgs.msg.footPose()
181
+ start = end
182
+ end += 32
183
+ val1.footPose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=4)
184
+ start = end
185
+ end += 32
186
+ val1.torsoPose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=4)
187
+ self.foot_pose_target_trajectories.footPoseTrajectory.append(val1)
188
+ return self
189
+ except struct.error as e:
190
+ raise genpy.DeserializationError(e) # most likely buffer underfill
191
+
192
+ _struct_I = genpy.struct_I
193
+ def _get_struct_I():
194
+ global _struct_I
195
+ return _struct_I
196
+ _struct_4d = None
197
+ def _get_struct_4d():
198
+ global _struct_4d
199
+ if _struct_4d is None:
200
+ _struct_4d = struct.Struct("<4d")
201
+ return _struct_4d
202
+ # This Python file uses the following encoding: utf-8
203
+ """autogenerated by genpy from kuavo_msgs/singleStepControlResponse.msg. Do not edit."""
204
+ import codecs
205
+ import sys
206
+ python3 = True if sys.hexversion > 0x03000000 else False
207
+ import genpy
208
+ import struct
209
+
210
+
211
+ class singleStepControlResponse(genpy.Message):
212
+ _md5sum = "937c9679a518e3a18d831e57125ea522"
213
+ _type = "kuavo_msgs/singleStepControlResponse"
214
+ _has_header = False # flag to mark the presence of a Header object
215
+ _full_text = """bool success
216
+ string message
217
+
218
+ """
219
+ __slots__ = ['success','message']
220
+ _slot_types = ['bool','string']
221
+
222
+ def __init__(self, *args, **kwds):
223
+ """
224
+ Constructor. Any message fields that are implicitly/explicitly
225
+ set to None will be assigned a default value. The recommend
226
+ use is keyword arguments as this is more robust to future message
227
+ changes. You cannot mix in-order arguments and keyword arguments.
228
+
229
+ The available fields are:
230
+ success,message
231
+
232
+ :param args: complete set of field values, in .msg order
233
+ :param kwds: use keyword arguments corresponding to message field names
234
+ to set specific fields.
235
+ """
236
+ if args or kwds:
237
+ super(singleStepControlResponse, self).__init__(*args, **kwds)
238
+ # message fields cannot be None, assign default values for those that are
239
+ if self.success is None:
240
+ self.success = False
241
+ if self.message is None:
242
+ self.message = ''
243
+ else:
244
+ self.success = False
245
+ self.message = ''
246
+
247
+ def _get_types(self):
248
+ """
249
+ internal API method
250
+ """
251
+ return self._slot_types
252
+
253
+ def serialize(self, buff):
254
+ """
255
+ serialize message into buffer
256
+ :param buff: buffer, ``StringIO``
257
+ """
258
+ try:
259
+ _x = self.success
260
+ buff.write(_get_struct_B().pack(_x))
261
+ _x = self.message
262
+ length = len(_x)
263
+ if python3 or type(_x) == unicode:
264
+ _x = _x.encode('utf-8')
265
+ length = len(_x)
266
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
267
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
268
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
269
+
270
+ def deserialize(self, str):
271
+ """
272
+ unpack serialized message in str into this message instance
273
+ :param str: byte array of serialized message, ``str``
274
+ """
275
+ if python3:
276
+ codecs.lookup_error("rosmsg").msg_type = self._type
277
+ try:
278
+ end = 0
279
+ start = end
280
+ end += 1
281
+ (self.success,) = _get_struct_B().unpack(str[start:end])
282
+ self.success = bool(self.success)
283
+ start = end
284
+ end += 4
285
+ (length,) = _struct_I.unpack(str[start:end])
286
+ start = end
287
+ end += length
288
+ if python3:
289
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
290
+ else:
291
+ self.message = str[start:end]
292
+ return self
293
+ except struct.error as e:
294
+ raise genpy.DeserializationError(e) # most likely buffer underfill
295
+
296
+
297
+ def serialize_numpy(self, buff, numpy):
298
+ """
299
+ serialize message with numpy array types into buffer
300
+ :param buff: buffer, ``StringIO``
301
+ :param numpy: numpy python module
302
+ """
303
+ try:
304
+ _x = self.success
305
+ buff.write(_get_struct_B().pack(_x))
306
+ _x = self.message
307
+ length = len(_x)
308
+ if python3 or type(_x) == unicode:
309
+ _x = _x.encode('utf-8')
310
+ length = len(_x)
311
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
312
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
313
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
314
+
315
+ def deserialize_numpy(self, str, numpy):
316
+ """
317
+ unpack serialized message in str into this message instance using numpy for array types
318
+ :param str: byte array of serialized message, ``str``
319
+ :param numpy: numpy python module
320
+ """
321
+ if python3:
322
+ codecs.lookup_error("rosmsg").msg_type = self._type
323
+ try:
324
+ end = 0
325
+ start = end
326
+ end += 1
327
+ (self.success,) = _get_struct_B().unpack(str[start:end])
328
+ self.success = bool(self.success)
329
+ start = end
330
+ end += 4
331
+ (length,) = _struct_I.unpack(str[start:end])
332
+ start = end
333
+ end += length
334
+ if python3:
335
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
336
+ else:
337
+ self.message = str[start:end]
338
+ return self
339
+ except struct.error as e:
340
+ raise genpy.DeserializationError(e) # most likely buffer underfill
341
+
342
+ _struct_I = genpy.struct_I
343
+ def _get_struct_I():
344
+ global _struct_I
345
+ return _struct_I
346
+ _struct_B = None
347
+ def _get_struct_B():
348
+ global _struct_B
349
+ if _struct_B is None:
350
+ _struct_B = struct.Struct("<B")
351
+ return _struct_B
352
+ class singleStepControl(object):
353
+ _type = 'kuavo_msgs/singleStepControl'
354
+ _md5sum = '9a5a8ad57a17963a16bf197fc7a66fa4'
355
+ _request_class = singleStepControlRequest
356
+ _response_class = singleStepControlResponse
@@ -0,0 +1,7 @@
1
+ import os
2
+ import sys
3
+
4
+ # Add package path to sys.path if not already there
5
+ package_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
6
+ if package_path not in sys.path:
7
+ sys.path.append(package_path)
@@ -0,0 +1,9 @@
1
+ from ._armHandPose import *
2
+ from ._handPose import *
3
+ from ._headBodyPose import *
4
+ from ._ikSolveError import *
5
+ from ._ikSolveParam import *
6
+ from ._robotArmQVVD import *
7
+ from ._robotHandPosition import *
8
+ from ._twoArmHandPose import *
9
+ from ._twoArmHandPoseCmd import *
@@ -0,0 +1,160 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from motion_capture_ik/armHandPose.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 armHandPose(genpy.Message):
11
+ _md5sum = "4f28a253cb60d59c6491569369f38f4d"
12
+ _type = "motion_capture_ik/armHandPose"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """float64[3] pos_xyz
15
+ float64[4] quat_xyzw
16
+
17
+ float64[3] elbow_pos_xyz
18
+
19
+ float64[7] joint_angles"""
20
+ __slots__ = ['pos_xyz','quat_xyzw','elbow_pos_xyz','joint_angles']
21
+ _slot_types = ['float64[3]','float64[4]','float64[3]','float64[7]']
22
+
23
+ def __init__(self, *args, **kwds):
24
+ """
25
+ Constructor. Any message fields that are implicitly/explicitly
26
+ set to None will be assigned a default value. The recommend
27
+ use is keyword arguments as this is more robust to future message
28
+ changes. You cannot mix in-order arguments and keyword arguments.
29
+
30
+ The available fields are:
31
+ pos_xyz,quat_xyzw,elbow_pos_xyz,joint_angles
32
+
33
+ :param args: complete set of field values, in .msg order
34
+ :param kwds: use keyword arguments corresponding to message field names
35
+ to set specific fields.
36
+ """
37
+ if args or kwds:
38
+ super(armHandPose, self).__init__(*args, **kwds)
39
+ # message fields cannot be None, assign default values for those that are
40
+ if self.pos_xyz is None:
41
+ self.pos_xyz = [0.] * 3
42
+ if self.quat_xyzw is None:
43
+ self.quat_xyzw = [0.] * 4
44
+ if self.elbow_pos_xyz is None:
45
+ self.elbow_pos_xyz = [0.] * 3
46
+ if self.joint_angles is None:
47
+ self.joint_angles = [0.] * 7
48
+ else:
49
+ self.pos_xyz = [0.] * 3
50
+ self.quat_xyzw = [0.] * 4
51
+ self.elbow_pos_xyz = [0.] * 3
52
+ self.joint_angles = [0.] * 7
53
+
54
+ def _get_types(self):
55
+ """
56
+ internal API method
57
+ """
58
+ return self._slot_types
59
+
60
+ def serialize(self, buff):
61
+ """
62
+ serialize message into buffer
63
+ :param buff: buffer, ``StringIO``
64
+ """
65
+ try:
66
+ buff.write(_get_struct_3d().pack(*self.pos_xyz))
67
+ buff.write(_get_struct_4d().pack(*self.quat_xyzw))
68
+ buff.write(_get_struct_3d().pack(*self.elbow_pos_xyz))
69
+ buff.write(_get_struct_7d().pack(*self.joint_angles))
70
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
71
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
72
+
73
+ def deserialize(self, str):
74
+ """
75
+ unpack serialized message in str into this message instance
76
+ :param str: byte array of serialized message, ``str``
77
+ """
78
+ if python3:
79
+ codecs.lookup_error("rosmsg").msg_type = self._type
80
+ try:
81
+ end = 0
82
+ start = end
83
+ end += 24
84
+ self.pos_xyz = _get_struct_3d().unpack(str[start:end])
85
+ start = end
86
+ end += 32
87
+ self.quat_xyzw = _get_struct_4d().unpack(str[start:end])
88
+ start = end
89
+ end += 24
90
+ self.elbow_pos_xyz = _get_struct_3d().unpack(str[start:end])
91
+ start = end
92
+ end += 56
93
+ self.joint_angles = _get_struct_7d().unpack(str[start:end])
94
+ return self
95
+ except struct.error as e:
96
+ raise genpy.DeserializationError(e) # most likely buffer underfill
97
+
98
+
99
+ def serialize_numpy(self, buff, numpy):
100
+ """
101
+ serialize message with numpy array types into buffer
102
+ :param buff: buffer, ``StringIO``
103
+ :param numpy: numpy python module
104
+ """
105
+ try:
106
+ buff.write(self.pos_xyz.tostring())
107
+ buff.write(self.quat_xyzw.tostring())
108
+ buff.write(self.elbow_pos_xyz.tostring())
109
+ buff.write(self.joint_angles.tostring())
110
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
111
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
112
+
113
+ def deserialize_numpy(self, str, numpy):
114
+ """
115
+ unpack serialized message in str into this message instance using numpy for array types
116
+ :param str: byte array of serialized message, ``str``
117
+ :param numpy: numpy python module
118
+ """
119
+ if python3:
120
+ codecs.lookup_error("rosmsg").msg_type = self._type
121
+ try:
122
+ end = 0
123
+ start = end
124
+ end += 24
125
+ self.pos_xyz = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=3)
126
+ start = end
127
+ end += 32
128
+ self.quat_xyzw = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=4)
129
+ start = end
130
+ end += 24
131
+ self.elbow_pos_xyz = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=3)
132
+ start = end
133
+ end += 56
134
+ self.joint_angles = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=7)
135
+ return self
136
+ except struct.error as e:
137
+ raise genpy.DeserializationError(e) # most likely buffer underfill
138
+
139
+ _struct_I = genpy.struct_I
140
+ def _get_struct_I():
141
+ global _struct_I
142
+ return _struct_I
143
+ _struct_3d = None
144
+ def _get_struct_3d():
145
+ global _struct_3d
146
+ if _struct_3d is None:
147
+ _struct_3d = struct.Struct("<3d")
148
+ return _struct_3d
149
+ _struct_4d = None
150
+ def _get_struct_4d():
151
+ global _struct_4d
152
+ if _struct_4d is None:
153
+ _struct_4d = struct.Struct("<4d")
154
+ return _struct_4d
155
+ _struct_7d = None
156
+ def _get_struct_7d():
157
+ global _struct_7d
158
+ if _struct_7d is None:
159
+ _struct_7d = struct.Struct("<7d")
160
+ return _struct_7d
@@ -0,0 +1,136 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from motion_capture_ik/handPose.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 handPose(genpy.Message):
11
+ _md5sum = "1a83f0bdabe750ce0cfb45a14ec63457"
12
+ _type = "motion_capture_ik/handPose"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """# pos
15
+ float64 x
16
+ float64 y
17
+ float64 z
18
+ # rpy
19
+ float64 roll
20
+ float64 pitch
21
+ float64 yaw"""
22
+ __slots__ = ['x','y','z','roll','pitch','yaw']
23
+ _slot_types = ['float64','float64','float64','float64','float64','float64']
24
+
25
+ def __init__(self, *args, **kwds):
26
+ """
27
+ Constructor. Any message fields that are implicitly/explicitly
28
+ set to None will be assigned a default value. The recommend
29
+ use is keyword arguments as this is more robust to future message
30
+ changes. You cannot mix in-order arguments and keyword arguments.
31
+
32
+ The available fields are:
33
+ x,y,z,roll,pitch,yaw
34
+
35
+ :param args: complete set of field values, in .msg order
36
+ :param kwds: use keyword arguments corresponding to message field names
37
+ to set specific fields.
38
+ """
39
+ if args or kwds:
40
+ super(handPose, self).__init__(*args, **kwds)
41
+ # message fields cannot be None, assign default values for those that are
42
+ if self.x is None:
43
+ self.x = 0.
44
+ if self.y is None:
45
+ self.y = 0.
46
+ if self.z is None:
47
+ self.z = 0.
48
+ if self.roll is None:
49
+ self.roll = 0.
50
+ if self.pitch is None:
51
+ self.pitch = 0.
52
+ if self.yaw is None:
53
+ self.yaw = 0.
54
+ else:
55
+ self.x = 0.
56
+ self.y = 0.
57
+ self.z = 0.
58
+ self.roll = 0.
59
+ self.pitch = 0.
60
+ self.yaw = 0.
61
+
62
+ def _get_types(self):
63
+ """
64
+ internal API method
65
+ """
66
+ return self._slot_types
67
+
68
+ def serialize(self, buff):
69
+ """
70
+ serialize message into buffer
71
+ :param buff: buffer, ``StringIO``
72
+ """
73
+ try:
74
+ _x = self
75
+ buff.write(_get_struct_6d().pack(_x.x, _x.y, _x.z, _x.roll, _x.pitch, _x.yaw))
76
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
77
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
78
+
79
+ def deserialize(self, str):
80
+ """
81
+ unpack serialized message in str into this message instance
82
+ :param str: byte array of serialized message, ``str``
83
+ """
84
+ if python3:
85
+ codecs.lookup_error("rosmsg").msg_type = self._type
86
+ try:
87
+ end = 0
88
+ _x = self
89
+ start = end
90
+ end += 48
91
+ (_x.x, _x.y, _x.z, _x.roll, _x.pitch, _x.yaw,) = _get_struct_6d().unpack(str[start:end])
92
+ return self
93
+ except struct.error as e:
94
+ raise genpy.DeserializationError(e) # most likely buffer underfill
95
+
96
+
97
+ def serialize_numpy(self, buff, numpy):
98
+ """
99
+ serialize message with numpy array types into buffer
100
+ :param buff: buffer, ``StringIO``
101
+ :param numpy: numpy python module
102
+ """
103
+ try:
104
+ _x = self
105
+ buff.write(_get_struct_6d().pack(_x.x, _x.y, _x.z, _x.roll, _x.pitch, _x.yaw))
106
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
107
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
108
+
109
+ def deserialize_numpy(self, str, numpy):
110
+ """
111
+ unpack serialized message in str into this message instance using numpy for array types
112
+ :param str: byte array of serialized message, ``str``
113
+ :param numpy: numpy python module
114
+ """
115
+ if python3:
116
+ codecs.lookup_error("rosmsg").msg_type = self._type
117
+ try:
118
+ end = 0
119
+ _x = self
120
+ start = end
121
+ end += 48
122
+ (_x.x, _x.y, _x.z, _x.roll, _x.pitch, _x.yaw,) = _get_struct_6d().unpack(str[start:end])
123
+ return self
124
+ except struct.error as e:
125
+ raise genpy.DeserializationError(e) # most likely buffer underfill
126
+
127
+ _struct_I = genpy.struct_I
128
+ def _get_struct_I():
129
+ global _struct_I
130
+ return _struct_I
131
+ _struct_6d = None
132
+ def _get_struct_6d():
133
+ global _struct_6d
134
+ if _struct_6d is None:
135
+ _struct_6d = struct.Struct("<6d")
136
+ return _struct_6d