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