kuavo-humanoid-sdk 1.1.2a692__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 (83) hide show
  1. kuavo_humanoid_sdk/kuavo/core/ros/state.py +1 -1
  2. kuavo_humanoid_sdk/msg/__init__.py +4 -0
  3. kuavo_humanoid_sdk/msg/kuavo_msgs/__init__.py +7 -0
  4. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_Metadata.py +199 -0
  5. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/__init__.py +26 -0
  6. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armPoseWithTimeStamp.py +168 -0
  7. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armTargetPoses.py +151 -0
  8. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandCommand.py +229 -0
  9. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandTouchState.py +256 -0
  10. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_endEffectorData.py +227 -0
  11. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPose.py +122 -0
  12. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoseTargetTrajectories.py +203 -0
  13. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gaitTimeName.py +147 -0
  14. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureInfo.py +218 -0
  15. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureTask.py +149 -0
  16. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_headBodyPose.py +145 -0
  17. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_imuData.py +165 -0
  18. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointCmd.py +390 -0
  19. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointData.py +205 -0
  20. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawCommand.py +320 -0
  21. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawState.py +341 -0
  22. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_questJoySticks.py +191 -0
  23. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHandPosition.py +225 -0
  24. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHeadMotionData.py +128 -0
  25. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotState.py +222 -0
  26. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_sensorsData.py +495 -0
  27. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_switchGaitByName.py +200 -0
  28. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_touchSensorStatus.py +162 -0
  29. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloDetection.py +251 -0
  30. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloOutputData.py +168 -0
  31. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/__init__.py +15 -0
  32. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeArmCtrlMode.py +275 -0
  33. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeTorsoCtrlMode.py +274 -0
  34. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_controlLejuClaw.py +408 -0
  35. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_enableHandTouchSensor.py +304 -0
  36. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_footPoseTargetTrajectoriesSrv.py +321 -0
  37. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecute.py +339 -0
  38. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecuteState.py +257 -0
  39. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureList.py +418 -0
  40. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_getCurrentGaitName.py +253 -0
  41. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_handForceLevel.py +330 -0
  42. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_jointMoveTo.py +302 -0
  43. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setHwIntialState.py +304 -0
  44. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setMotorEncoderRoundService.py +283 -0
  45. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setTagId.py +275 -0
  46. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_singleStepControl.py +356 -0
  47. kuavo_humanoid_sdk/msg/motion_capture_ik/__init__.py +7 -0
  48. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/__init__.py +9 -0
  49. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_armHandPose.py +160 -0
  50. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_handPose.py +136 -0
  51. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_headBodyPose.py +145 -0
  52. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_ikSolveError.py +171 -0
  53. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_ikSolveParam.py +140 -0
  54. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_robotArmQVVD.py +177 -0
  55. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_robotHandPosition.py +225 -0
  56. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_twoArmHandPose.py +272 -0
  57. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_twoArmHandPoseCmd.py +311 -0
  58. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/__init__.py +4 -0
  59. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/_changeArmCtrlMode.py +275 -0
  60. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/_changeArmCtrlModeKuavo.py +236 -0
  61. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/_fkSrv.py +394 -0
  62. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/_twoArmHandPoseCmdSrv.py +661 -0
  63. kuavo_humanoid_sdk/msg/ocs2_msgs/__init__.py +7 -0
  64. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/__init__.py +12 -0
  65. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_constraint.py +142 -0
  66. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_controller_data.py +121 -0
  67. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_lagrangian_metrics.py +148 -0
  68. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mode_schedule.py +150 -0
  69. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_flattened_controller.py +666 -0
  70. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_input.py +122 -0
  71. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_observation.py +209 -0
  72. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_performance_indices.py +140 -0
  73. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_solver_data.py +886 -0
  74. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_state.py +122 -0
  75. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_target_trajectories.py +239 -0
  76. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_multiplier.py +148 -0
  77. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/__init__.py +1 -0
  78. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/_reset.py +376 -0
  79. {kuavo_humanoid_sdk-1.1.2a692.dist-info → kuavo_humanoid_sdk-1.1.2a922.dist-info}/METADATA +2 -2
  80. kuavo_humanoid_sdk-1.1.2a922.dist-info/RECORD +104 -0
  81. kuavo_humanoid_sdk-1.1.2a692.dist-info/RECORD +0 -27
  82. {kuavo_humanoid_sdk-1.1.2a692.dist-info → kuavo_humanoid_sdk-1.1.2a922.dist-info}/WHEEL +0 -0
  83. {kuavo_humanoid_sdk-1.1.2a692.dist-info → kuavo_humanoid_sdk-1.1.2a922.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,227 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/endEffectorData.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 endEffectorData(genpy.Message):
11
+ _md5sum = "5703dc153b077fbca188a602cb8df8ed"
12
+ _type = "kuavo_msgs/endEffectorData"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """string[] name
15
+ float64[] position
16
+ float64[] velocity
17
+ float64[] effort
18
+ """
19
+ __slots__ = ['name','position','velocity','effort']
20
+ _slot_types = ['string[]','float64[]','float64[]','float64[]']
21
+
22
+ def __init__(self, *args, **kwds):
23
+ """
24
+ Constructor. Any message fields that are implicitly/explicitly
25
+ set to None will be assigned a default value. The recommend
26
+ use is keyword arguments as this is more robust to future message
27
+ changes. You cannot mix in-order arguments and keyword arguments.
28
+
29
+ The available fields are:
30
+ name,position,velocity,effort
31
+
32
+ :param args: complete set of field values, in .msg order
33
+ :param kwds: use keyword arguments corresponding to message field names
34
+ to set specific fields.
35
+ """
36
+ if args or kwds:
37
+ super(endEffectorData, self).__init__(*args, **kwds)
38
+ # message fields cannot be None, assign default values for those that are
39
+ if self.name is None:
40
+ self.name = []
41
+ if self.position is None:
42
+ self.position = []
43
+ if self.velocity is None:
44
+ self.velocity = []
45
+ if self.effort is None:
46
+ self.effort = []
47
+ else:
48
+ self.name = []
49
+ self.position = []
50
+ self.velocity = []
51
+ self.effort = []
52
+
53
+ def _get_types(self):
54
+ """
55
+ internal API method
56
+ """
57
+ return self._slot_types
58
+
59
+ def serialize(self, buff):
60
+ """
61
+ serialize message into buffer
62
+ :param buff: buffer, ``StringIO``
63
+ """
64
+ try:
65
+ length = len(self.name)
66
+ buff.write(_struct_I.pack(length))
67
+ for val1 in self.name:
68
+ length = len(val1)
69
+ if python3 or type(val1) == unicode:
70
+ val1 = val1.encode('utf-8')
71
+ length = len(val1)
72
+ buff.write(struct.Struct('<I%ss'%length).pack(length, val1))
73
+ length = len(self.position)
74
+ buff.write(_struct_I.pack(length))
75
+ pattern = '<%sd'%length
76
+ buff.write(struct.Struct(pattern).pack(*self.position))
77
+ length = len(self.velocity)
78
+ buff.write(_struct_I.pack(length))
79
+ pattern = '<%sd'%length
80
+ buff.write(struct.Struct(pattern).pack(*self.velocity))
81
+ length = len(self.effort)
82
+ buff.write(_struct_I.pack(length))
83
+ pattern = '<%sd'%length
84
+ buff.write(struct.Struct(pattern).pack(*self.effort))
85
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
86
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
87
+
88
+ def deserialize(self, str):
89
+ """
90
+ unpack serialized message in str into this message instance
91
+ :param str: byte array of serialized message, ``str``
92
+ """
93
+ if python3:
94
+ codecs.lookup_error("rosmsg").msg_type = self._type
95
+ try:
96
+ end = 0
97
+ start = end
98
+ end += 4
99
+ (length,) = _struct_I.unpack(str[start:end])
100
+ self.name = []
101
+ for i in range(0, length):
102
+ start = end
103
+ end += 4
104
+ (length,) = _struct_I.unpack(str[start:end])
105
+ start = end
106
+ end += length
107
+ if python3:
108
+ val1 = str[start:end].decode('utf-8', 'rosmsg')
109
+ else:
110
+ val1 = str[start:end]
111
+ self.name.append(val1)
112
+ start = end
113
+ end += 4
114
+ (length,) = _struct_I.unpack(str[start:end])
115
+ pattern = '<%sd'%length
116
+ start = end
117
+ s = struct.Struct(pattern)
118
+ end += s.size
119
+ self.position = s.unpack(str[start:end])
120
+ start = end
121
+ end += 4
122
+ (length,) = _struct_I.unpack(str[start:end])
123
+ pattern = '<%sd'%length
124
+ start = end
125
+ s = struct.Struct(pattern)
126
+ end += s.size
127
+ self.velocity = s.unpack(str[start:end])
128
+ start = end
129
+ end += 4
130
+ (length,) = _struct_I.unpack(str[start:end])
131
+ pattern = '<%sd'%length
132
+ start = end
133
+ s = struct.Struct(pattern)
134
+ end += s.size
135
+ self.effort = s.unpack(str[start:end])
136
+ return self
137
+ except struct.error as e:
138
+ raise genpy.DeserializationError(e) # most likely buffer underfill
139
+
140
+
141
+ def serialize_numpy(self, buff, numpy):
142
+ """
143
+ serialize message with numpy array types into buffer
144
+ :param buff: buffer, ``StringIO``
145
+ :param numpy: numpy python module
146
+ """
147
+ try:
148
+ length = len(self.name)
149
+ buff.write(_struct_I.pack(length))
150
+ for val1 in self.name:
151
+ length = len(val1)
152
+ if python3 or type(val1) == unicode:
153
+ val1 = val1.encode('utf-8')
154
+ length = len(val1)
155
+ buff.write(struct.Struct('<I%ss'%length).pack(length, val1))
156
+ length = len(self.position)
157
+ buff.write(_struct_I.pack(length))
158
+ pattern = '<%sd'%length
159
+ buff.write(self.position.tostring())
160
+ length = len(self.velocity)
161
+ buff.write(_struct_I.pack(length))
162
+ pattern = '<%sd'%length
163
+ buff.write(self.velocity.tostring())
164
+ length = len(self.effort)
165
+ buff.write(_struct_I.pack(length))
166
+ pattern = '<%sd'%length
167
+ buff.write(self.effort.tostring())
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_numpy(self, str, numpy):
172
+ """
173
+ unpack serialized message in str into this message instance using numpy for array types
174
+ :param str: byte array of serialized message, ``str``
175
+ :param numpy: numpy python module
176
+ """
177
+ if python3:
178
+ codecs.lookup_error("rosmsg").msg_type = self._type
179
+ try:
180
+ end = 0
181
+ start = end
182
+ end += 4
183
+ (length,) = _struct_I.unpack(str[start:end])
184
+ self.name = []
185
+ for i in range(0, length):
186
+ start = end
187
+ end += 4
188
+ (length,) = _struct_I.unpack(str[start:end])
189
+ start = end
190
+ end += length
191
+ if python3:
192
+ val1 = str[start:end].decode('utf-8', 'rosmsg')
193
+ else:
194
+ val1 = str[start:end]
195
+ self.name.append(val1)
196
+ start = end
197
+ end += 4
198
+ (length,) = _struct_I.unpack(str[start:end])
199
+ pattern = '<%sd'%length
200
+ start = end
201
+ s = struct.Struct(pattern)
202
+ end += s.size
203
+ self.position = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
204
+ start = end
205
+ end += 4
206
+ (length,) = _struct_I.unpack(str[start:end])
207
+ pattern = '<%sd'%length
208
+ start = end
209
+ s = struct.Struct(pattern)
210
+ end += s.size
211
+ self.velocity = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
212
+ start = end
213
+ end += 4
214
+ (length,) = _struct_I.unpack(str[start:end])
215
+ pattern = '<%sd'%length
216
+ start = end
217
+ s = struct.Struct(pattern)
218
+ end += s.size
219
+ self.effort = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
220
+ return self
221
+ except struct.error as e:
222
+ raise genpy.DeserializationError(e) # most likely buffer underfill
223
+
224
+ _struct_I = genpy.struct_I
225
+ def _get_struct_I():
226
+ global _struct_I
227
+ return _struct_I
@@ -0,0 +1,122 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/footPose.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 footPose(genpy.Message):
11
+ _md5sum = "b0acb7ad1ed1ee5a0a630b91b650f49a"
12
+ _type = "kuavo_msgs/footPose"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """float64[4] footPose # x, y, z, yaw
15
+ float64[4] torsoPose # x, y, z, yaw"""
16
+ __slots__ = ['footPose','torsoPose']
17
+ _slot_types = ['float64[4]','float64[4]']
18
+
19
+ def __init__(self, *args, **kwds):
20
+ """
21
+ Constructor. Any message fields that are implicitly/explicitly
22
+ set to None will be assigned a default value. The recommend
23
+ use is keyword arguments as this is more robust to future message
24
+ changes. You cannot mix in-order arguments and keyword arguments.
25
+
26
+ The available fields are:
27
+ footPose,torsoPose
28
+
29
+ :param args: complete set of field values, in .msg order
30
+ :param kwds: use keyword arguments corresponding to message field names
31
+ to set specific fields.
32
+ """
33
+ if args or kwds:
34
+ super(footPose, self).__init__(*args, **kwds)
35
+ # message fields cannot be None, assign default values for those that are
36
+ if self.footPose is None:
37
+ self.footPose = [0.] * 4
38
+ if self.torsoPose is None:
39
+ self.torsoPose = [0.] * 4
40
+ else:
41
+ self.footPose = [0.] * 4
42
+ self.torsoPose = [0.] * 4
43
+
44
+ def _get_types(self):
45
+ """
46
+ internal API method
47
+ """
48
+ return self._slot_types
49
+
50
+ def serialize(self, buff):
51
+ """
52
+ serialize message into buffer
53
+ :param buff: buffer, ``StringIO``
54
+ """
55
+ try:
56
+ buff.write(_get_struct_4d().pack(*self.footPose))
57
+ buff.write(_get_struct_4d().pack(*self.torsoPose))
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
+ start = end
71
+ end += 32
72
+ self.footPose = _get_struct_4d().unpack(str[start:end])
73
+ start = end
74
+ end += 32
75
+ self.torsoPose = _get_struct_4d().unpack(str[start:end])
76
+ return self
77
+ except struct.error as e:
78
+ raise genpy.DeserializationError(e) # most likely buffer underfill
79
+
80
+
81
+ def serialize_numpy(self, buff, numpy):
82
+ """
83
+ serialize message with numpy array types into buffer
84
+ :param buff: buffer, ``StringIO``
85
+ :param numpy: numpy python module
86
+ """
87
+ try:
88
+ buff.write(self.footPose.tostring())
89
+ buff.write(self.torsoPose.tostring())
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
+ start = end
104
+ end += 32
105
+ self.footPose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=4)
106
+ start = end
107
+ end += 32
108
+ self.torsoPose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=4)
109
+ return self
110
+ except struct.error as e:
111
+ raise genpy.DeserializationError(e) # most likely buffer underfill
112
+
113
+ _struct_I = genpy.struct_I
114
+ def _get_struct_I():
115
+ global _struct_I
116
+ return _struct_I
117
+ _struct_4d = None
118
+ def _get_struct_4d():
119
+ global _struct_4d
120
+ if _struct_4d is None:
121
+ _struct_4d = struct.Struct("<4d")
122
+ return _struct_4d
@@ -0,0 +1,203 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/footPoseTargetTrajectories.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 footPoseTargetTrajectories(genpy.Message):
12
+ _md5sum = "6854923406c37831b40979cd2570e027"
13
+ _type = "kuavo_msgs/footPoseTargetTrajectories"
14
+ _has_header = False # flag to mark the presence of a Header object
15
+ _full_text = """float64[] timeTrajectory
16
+ int32[] footIndexTrajectory
17
+ footPose[] footPoseTrajectory
18
+ ================================================================================
19
+ MSG: kuavo_msgs/footPose
20
+ float64[4] footPose # x, y, z, yaw
21
+ float64[4] torsoPose # x, y, z, yaw"""
22
+ __slots__ = ['timeTrajectory','footIndexTrajectory','footPoseTrajectory']
23
+ _slot_types = ['float64[]','int32[]','kuavo_msgs/footPose[]']
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
+ timeTrajectory,footIndexTrajectory,footPoseTrajectory
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(footPoseTargetTrajectories, self).__init__(*args, **kwds)
41
+ # message fields cannot be None, assign default values for those that are
42
+ if self.timeTrajectory is None:
43
+ self.timeTrajectory = []
44
+ if self.footIndexTrajectory is None:
45
+ self.footIndexTrajectory = []
46
+ if self.footPoseTrajectory is None:
47
+ self.footPoseTrajectory = []
48
+ else:
49
+ self.timeTrajectory = []
50
+ self.footIndexTrajectory = []
51
+ self.footPoseTrajectory = []
52
+
53
+ def _get_types(self):
54
+ """
55
+ internal API method
56
+ """
57
+ return self._slot_types
58
+
59
+ def serialize(self, buff):
60
+ """
61
+ serialize message into buffer
62
+ :param buff: buffer, ``StringIO``
63
+ """
64
+ try:
65
+ length = len(self.timeTrajectory)
66
+ buff.write(_struct_I.pack(length))
67
+ pattern = '<%sd'%length
68
+ buff.write(struct.Struct(pattern).pack(*self.timeTrajectory))
69
+ length = len(self.footIndexTrajectory)
70
+ buff.write(_struct_I.pack(length))
71
+ pattern = '<%si'%length
72
+ buff.write(struct.Struct(pattern).pack(*self.footIndexTrajectory))
73
+ length = len(self.footPoseTrajectory)
74
+ buff.write(_struct_I.pack(length))
75
+ for val1 in self.footPoseTrajectory:
76
+ buff.write(_get_struct_4d().pack(*val1.footPose))
77
+ buff.write(_get_struct_4d().pack(*val1.torsoPose))
78
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
79
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
80
+
81
+ def deserialize(self, str):
82
+ """
83
+ unpack serialized message in str into this message instance
84
+ :param str: byte array of serialized message, ``str``
85
+ """
86
+ if python3:
87
+ codecs.lookup_error("rosmsg").msg_type = self._type
88
+ try:
89
+ if self.footPoseTrajectory is None:
90
+ self.footPoseTrajectory = None
91
+ end = 0
92
+ start = end
93
+ end += 4
94
+ (length,) = _struct_I.unpack(str[start:end])
95
+ pattern = '<%sd'%length
96
+ start = end
97
+ s = struct.Struct(pattern)
98
+ end += s.size
99
+ self.timeTrajectory = s.unpack(str[start:end])
100
+ start = end
101
+ end += 4
102
+ (length,) = _struct_I.unpack(str[start:end])
103
+ pattern = '<%si'%length
104
+ start = end
105
+ s = struct.Struct(pattern)
106
+ end += s.size
107
+ self.footIndexTrajectory = s.unpack(str[start:end])
108
+ start = end
109
+ end += 4
110
+ (length,) = _struct_I.unpack(str[start:end])
111
+ self.footPoseTrajectory = []
112
+ for i in range(0, length):
113
+ val1 = kuavo_msgs.msg.footPose()
114
+ start = end
115
+ end += 32
116
+ val1.footPose = _get_struct_4d().unpack(str[start:end])
117
+ start = end
118
+ end += 32
119
+ val1.torsoPose = _get_struct_4d().unpack(str[start:end])
120
+ self.footPoseTrajectory.append(val1)
121
+ return self
122
+ except struct.error as e:
123
+ raise genpy.DeserializationError(e) # most likely buffer underfill
124
+
125
+
126
+ def serialize_numpy(self, buff, numpy):
127
+ """
128
+ serialize message with numpy array types into buffer
129
+ :param buff: buffer, ``StringIO``
130
+ :param numpy: numpy python module
131
+ """
132
+ try:
133
+ length = len(self.timeTrajectory)
134
+ buff.write(_struct_I.pack(length))
135
+ pattern = '<%sd'%length
136
+ buff.write(self.timeTrajectory.tostring())
137
+ length = len(self.footIndexTrajectory)
138
+ buff.write(_struct_I.pack(length))
139
+ pattern = '<%si'%length
140
+ buff.write(self.footIndexTrajectory.tostring())
141
+ length = len(self.footPoseTrajectory)
142
+ buff.write(_struct_I.pack(length))
143
+ for val1 in self.footPoseTrajectory:
144
+ buff.write(val1.footPose.tostring())
145
+ buff.write(val1.torsoPose.tostring())
146
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
147
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
148
+
149
+ def deserialize_numpy(self, str, numpy):
150
+ """
151
+ unpack serialized message in str into this message instance using numpy for array types
152
+ :param str: byte array of serialized message, ``str``
153
+ :param numpy: numpy python module
154
+ """
155
+ if python3:
156
+ codecs.lookup_error("rosmsg").msg_type = self._type
157
+ try:
158
+ if self.footPoseTrajectory is None:
159
+ self.footPoseTrajectory = None
160
+ end = 0
161
+ start = end
162
+ end += 4
163
+ (length,) = _struct_I.unpack(str[start:end])
164
+ pattern = '<%sd'%length
165
+ start = end
166
+ s = struct.Struct(pattern)
167
+ end += s.size
168
+ self.timeTrajectory = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
169
+ start = end
170
+ end += 4
171
+ (length,) = _struct_I.unpack(str[start:end])
172
+ pattern = '<%si'%length
173
+ start = end
174
+ s = struct.Struct(pattern)
175
+ end += s.size
176
+ self.footIndexTrajectory = numpy.frombuffer(str[start:end], dtype=numpy.int32, count=length)
177
+ start = end
178
+ end += 4
179
+ (length,) = _struct_I.unpack(str[start:end])
180
+ self.footPoseTrajectory = []
181
+ for i in range(0, length):
182
+ val1 = kuavo_msgs.msg.footPose()
183
+ start = end
184
+ end += 32
185
+ val1.footPose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=4)
186
+ start = end
187
+ end += 32
188
+ val1.torsoPose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=4)
189
+ self.footPoseTrajectory.append(val1)
190
+ return self
191
+ except struct.error as e:
192
+ raise genpy.DeserializationError(e) # most likely buffer underfill
193
+
194
+ _struct_I = genpy.struct_I
195
+ def _get_struct_I():
196
+ global _struct_I
197
+ return _struct_I
198
+ _struct_4d = None
199
+ def _get_struct_4d():
200
+ global _struct_4d
201
+ if _struct_4d is None:
202
+ _struct_4d = struct.Struct("<4d")
203
+ return _struct_4d
@@ -0,0 +1,147 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/gaitTimeName.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 gaitTimeName(genpy.Message):
11
+ _md5sum = "c694c8dbb2e8c9d73614407bfe314692"
12
+ _type = "kuavo_msgs/gaitTimeName"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """float32 start_time
15
+ string gait_name
16
+ """
17
+ __slots__ = ['start_time','gait_name']
18
+ _slot_types = ['float32','string']
19
+
20
+ def __init__(self, *args, **kwds):
21
+ """
22
+ Constructor. Any message fields that are implicitly/explicitly
23
+ set to None will be assigned a default value. The recommend
24
+ use is keyword arguments as this is more robust to future message
25
+ changes. You cannot mix in-order arguments and keyword arguments.
26
+
27
+ The available fields are:
28
+ start_time,gait_name
29
+
30
+ :param args: complete set of field values, in .msg order
31
+ :param kwds: use keyword arguments corresponding to message field names
32
+ to set specific fields.
33
+ """
34
+ if args or kwds:
35
+ super(gaitTimeName, self).__init__(*args, **kwds)
36
+ # message fields cannot be None, assign default values for those that are
37
+ if self.start_time is None:
38
+ self.start_time = 0.
39
+ if self.gait_name is None:
40
+ self.gait_name = ''
41
+ else:
42
+ self.start_time = 0.
43
+ self.gait_name = ''
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
+ _x = self.start_time
58
+ buff.write(_get_struct_f().pack(_x))
59
+ _x = self.gait_name
60
+ length = len(_x)
61
+ if python3 or type(_x) == unicode:
62
+ _x = _x.encode('utf-8')
63
+ length = len(_x)
64
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
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
+ start = end
78
+ end += 4
79
+ (self.start_time,) = _get_struct_f().unpack(str[start:end])
80
+ start = end
81
+ end += 4
82
+ (length,) = _struct_I.unpack(str[start:end])
83
+ start = end
84
+ end += length
85
+ if python3:
86
+ self.gait_name = str[start:end].decode('utf-8', 'rosmsg')
87
+ else:
88
+ self.gait_name = str[start:end]
89
+ return self
90
+ except struct.error as e:
91
+ raise genpy.DeserializationError(e) # most likely buffer underfill
92
+
93
+
94
+ def serialize_numpy(self, buff, numpy):
95
+ """
96
+ serialize message with numpy array types into buffer
97
+ :param buff: buffer, ``StringIO``
98
+ :param numpy: numpy python module
99
+ """
100
+ try:
101
+ _x = self.start_time
102
+ buff.write(_get_struct_f().pack(_x))
103
+ _x = self.gait_name
104
+ length = len(_x)
105
+ if python3 or type(_x) == unicode:
106
+ _x = _x.encode('utf-8')
107
+ length = len(_x)
108
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
109
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
110
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
111
+
112
+ def deserialize_numpy(self, str, numpy):
113
+ """
114
+ unpack serialized message in str into this message instance using numpy for array types
115
+ :param str: byte array of serialized message, ``str``
116
+ :param numpy: numpy python module
117
+ """
118
+ if python3:
119
+ codecs.lookup_error("rosmsg").msg_type = self._type
120
+ try:
121
+ end = 0
122
+ start = end
123
+ end += 4
124
+ (self.start_time,) = _get_struct_f().unpack(str[start:end])
125
+ start = end
126
+ end += 4
127
+ (length,) = _struct_I.unpack(str[start:end])
128
+ start = end
129
+ end += length
130
+ if python3:
131
+ self.gait_name = str[start:end].decode('utf-8', 'rosmsg')
132
+ else:
133
+ self.gait_name = str[start:end]
134
+ return self
135
+ except struct.error as e:
136
+ raise genpy.DeserializationError(e) # most likely buffer underfill
137
+
138
+ _struct_I = genpy.struct_I
139
+ def _get_struct_I():
140
+ global _struct_I
141
+ return _struct_I
142
+ _struct_f = None
143
+ def _get_struct_f():
144
+ global _struct_f
145
+ if _struct_f is None:
146
+ _struct_f = struct.Struct("<f")
147
+ return _struct_f