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,4 @@
1
+ from . import *
2
+
3
+
4
+
@@ -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,199 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/Metadata.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 std_msgs.msg
10
+
11
+ class Metadata(genpy.Message):
12
+ _md5sum = "4966ca002be16ee67fe4dbfb2f354787"
13
+ _type = "kuavo_msgs/Metadata"
14
+ _has_header = True # flag to mark the presence of a Header object
15
+ _full_text = """std_msgs/Header header
16
+ string json_data
17
+ ================================================================================
18
+ MSG: std_msgs/Header
19
+ # Standard metadata for higher-level stamped data types.
20
+ # This is generally used to communicate timestamped data
21
+ # in a particular coordinate frame.
22
+ #
23
+ # sequence ID: consecutively increasing ID
24
+ uint32 seq
25
+ #Two-integer timestamp that is expressed as:
26
+ # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')
27
+ # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')
28
+ # time-handling sugar is provided by the client library
29
+ time stamp
30
+ #Frame this data is associated with
31
+ string frame_id
32
+ """
33
+ __slots__ = ['header','json_data']
34
+ _slot_types = ['std_msgs/Header','string']
35
+
36
+ def __init__(self, *args, **kwds):
37
+ """
38
+ Constructor. Any message fields that are implicitly/explicitly
39
+ set to None will be assigned a default value. The recommend
40
+ use is keyword arguments as this is more robust to future message
41
+ changes. You cannot mix in-order arguments and keyword arguments.
42
+
43
+ The available fields are:
44
+ header,json_data
45
+
46
+ :param args: complete set of field values, in .msg order
47
+ :param kwds: use keyword arguments corresponding to message field names
48
+ to set specific fields.
49
+ """
50
+ if args or kwds:
51
+ super(Metadata, self).__init__(*args, **kwds)
52
+ # message fields cannot be None, assign default values for those that are
53
+ if self.header is None:
54
+ self.header = std_msgs.msg.Header()
55
+ if self.json_data is None:
56
+ self.json_data = ''
57
+ else:
58
+ self.header = std_msgs.msg.Header()
59
+ self.json_data = ''
60
+
61
+ def _get_types(self):
62
+ """
63
+ internal API method
64
+ """
65
+ return self._slot_types
66
+
67
+ def serialize(self, buff):
68
+ """
69
+ serialize message into buffer
70
+ :param buff: buffer, ``StringIO``
71
+ """
72
+ try:
73
+ _x = self
74
+ buff.write(_get_struct_3I().pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
75
+ _x = self.header.frame_id
76
+ length = len(_x)
77
+ if python3 or type(_x) == unicode:
78
+ _x = _x.encode('utf-8')
79
+ length = len(_x)
80
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
81
+ _x = self.json_data
82
+ length = len(_x)
83
+ if python3 or type(_x) == unicode:
84
+ _x = _x.encode('utf-8')
85
+ length = len(_x)
86
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
87
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
88
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
89
+
90
+ def deserialize(self, str):
91
+ """
92
+ unpack serialized message in str into this message instance
93
+ :param str: byte array of serialized message, ``str``
94
+ """
95
+ if python3:
96
+ codecs.lookup_error("rosmsg").msg_type = self._type
97
+ try:
98
+ if self.header is None:
99
+ self.header = std_msgs.msg.Header()
100
+ end = 0
101
+ _x = self
102
+ start = end
103
+ end += 12
104
+ (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
105
+ start = end
106
+ end += 4
107
+ (length,) = _struct_I.unpack(str[start:end])
108
+ start = end
109
+ end += length
110
+ if python3:
111
+ self.header.frame_id = str[start:end].decode('utf-8', 'rosmsg')
112
+ else:
113
+ self.header.frame_id = str[start:end]
114
+ start = end
115
+ end += 4
116
+ (length,) = _struct_I.unpack(str[start:end])
117
+ start = end
118
+ end += length
119
+ if python3:
120
+ self.json_data = str[start:end].decode('utf-8', 'rosmsg')
121
+ else:
122
+ self.json_data = str[start:end]
123
+ return self
124
+ except struct.error as e:
125
+ raise genpy.DeserializationError(e) # most likely buffer underfill
126
+
127
+
128
+ def serialize_numpy(self, buff, numpy):
129
+ """
130
+ serialize message with numpy array types into buffer
131
+ :param buff: buffer, ``StringIO``
132
+ :param numpy: numpy python module
133
+ """
134
+ try:
135
+ _x = self
136
+ buff.write(_get_struct_3I().pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
137
+ _x = self.header.frame_id
138
+ length = len(_x)
139
+ if python3 or type(_x) == unicode:
140
+ _x = _x.encode('utf-8')
141
+ length = len(_x)
142
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
143
+ _x = self.json_data
144
+ length = len(_x)
145
+ if python3 or type(_x) == unicode:
146
+ _x = _x.encode('utf-8')
147
+ length = len(_x)
148
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
149
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
150
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
151
+
152
+ def deserialize_numpy(self, str, numpy):
153
+ """
154
+ unpack serialized message in str into this message instance using numpy for array types
155
+ :param str: byte array of serialized message, ``str``
156
+ :param numpy: numpy python module
157
+ """
158
+ if python3:
159
+ codecs.lookup_error("rosmsg").msg_type = self._type
160
+ try:
161
+ if self.header is None:
162
+ self.header = std_msgs.msg.Header()
163
+ end = 0
164
+ _x = self
165
+ start = end
166
+ end += 12
167
+ (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
168
+ start = end
169
+ end += 4
170
+ (length,) = _struct_I.unpack(str[start:end])
171
+ start = end
172
+ end += length
173
+ if python3:
174
+ self.header.frame_id = str[start:end].decode('utf-8', 'rosmsg')
175
+ else:
176
+ self.header.frame_id = str[start:end]
177
+ start = end
178
+ end += 4
179
+ (length,) = _struct_I.unpack(str[start:end])
180
+ start = end
181
+ end += length
182
+ if python3:
183
+ self.json_data = str[start:end].decode('utf-8', 'rosmsg')
184
+ else:
185
+ self.json_data = str[start:end]
186
+ return self
187
+ except struct.error as e:
188
+ raise genpy.DeserializationError(e) # most likely buffer underfill
189
+
190
+ _struct_I = genpy.struct_I
191
+ def _get_struct_I():
192
+ global _struct_I
193
+ return _struct_I
194
+ _struct_3I = None
195
+ def _get_struct_3I():
196
+ global _struct_3I
197
+ if _struct_3I is None:
198
+ _struct_3I = struct.Struct("<3I")
199
+ return _struct_3I
@@ -0,0 +1,26 @@
1
+ from ._Metadata import *
2
+ from ._armPoseWithTimeStamp import *
3
+ from ._armTargetPoses import *
4
+ from ._dexhandCommand import *
5
+ from ._dexhandTouchState import *
6
+ from ._endEffectorData import *
7
+ from ._footPose import *
8
+ from ._footPoseTargetTrajectories import *
9
+ from ._gaitTimeName import *
10
+ from ._gestureInfo import *
11
+ from ._gestureTask import *
12
+ from ._headBodyPose import *
13
+ from ._imuData import *
14
+ from ._jointCmd import *
15
+ from ._jointData import *
16
+ from ._lejuClawCommand import *
17
+ from ._lejuClawState import *
18
+ from ._questJoySticks import *
19
+ from ._robotHandPosition import *
20
+ from ._robotHeadMotionData import *
21
+ from ._robotState import *
22
+ from ._sensorsData import *
23
+ from ._switchGaitByName import *
24
+ from ._touchSensorStatus import *
25
+ from ._yoloDetection import *
26
+ from ._yoloOutputData import *
@@ -0,0 +1,168 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/armPoseWithTimeStamp.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 armPoseWithTimeStamp(genpy.Message):
11
+ _md5sum = "3404338b5cb042ac3b3cf3de3f0fcb4f"
12
+ _type = "kuavo_msgs/armPoseWithTimeStamp"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """int32 offset
15
+ float64[] left_hand_pose
16
+ float64[] right_hand_pose"""
17
+ __slots__ = ['offset','left_hand_pose','right_hand_pose']
18
+ _slot_types = ['int32','float64[]','float64[]']
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
+ offset,left_hand_pose,right_hand_pose
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(armPoseWithTimeStamp, self).__init__(*args, **kwds)
36
+ # message fields cannot be None, assign default values for those that are
37
+ if self.offset is None:
38
+ self.offset = 0
39
+ if self.left_hand_pose is None:
40
+ self.left_hand_pose = []
41
+ if self.right_hand_pose is None:
42
+ self.right_hand_pose = []
43
+ else:
44
+ self.offset = 0
45
+ self.left_hand_pose = []
46
+ self.right_hand_pose = []
47
+
48
+ def _get_types(self):
49
+ """
50
+ internal API method
51
+ """
52
+ return self._slot_types
53
+
54
+ def serialize(self, buff):
55
+ """
56
+ serialize message into buffer
57
+ :param buff: buffer, ``StringIO``
58
+ """
59
+ try:
60
+ _x = self.offset
61
+ buff.write(_get_struct_i().pack(_x))
62
+ length = len(self.left_hand_pose)
63
+ buff.write(_struct_I.pack(length))
64
+ pattern = '<%sd'%length
65
+ buff.write(struct.Struct(pattern).pack(*self.left_hand_pose))
66
+ length = len(self.right_hand_pose)
67
+ buff.write(_struct_I.pack(length))
68
+ pattern = '<%sd'%length
69
+ buff.write(struct.Struct(pattern).pack(*self.right_hand_pose))
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 += 4
84
+ (self.offset,) = _get_struct_i().unpack(str[start:end])
85
+ start = end
86
+ end += 4
87
+ (length,) = _struct_I.unpack(str[start:end])
88
+ pattern = '<%sd'%length
89
+ start = end
90
+ s = struct.Struct(pattern)
91
+ end += s.size
92
+ self.left_hand_pose = s.unpack(str[start:end])
93
+ start = end
94
+ end += 4
95
+ (length,) = _struct_I.unpack(str[start:end])
96
+ pattern = '<%sd'%length
97
+ start = end
98
+ s = struct.Struct(pattern)
99
+ end += s.size
100
+ self.right_hand_pose = s.unpack(str[start:end])
101
+ return self
102
+ except struct.error as e:
103
+ raise genpy.DeserializationError(e) # most likely buffer underfill
104
+
105
+
106
+ def serialize_numpy(self, buff, numpy):
107
+ """
108
+ serialize message with numpy array types into buffer
109
+ :param buff: buffer, ``StringIO``
110
+ :param numpy: numpy python module
111
+ """
112
+ try:
113
+ _x = self.offset
114
+ buff.write(_get_struct_i().pack(_x))
115
+ length = len(self.left_hand_pose)
116
+ buff.write(_struct_I.pack(length))
117
+ pattern = '<%sd'%length
118
+ buff.write(self.left_hand_pose.tostring())
119
+ length = len(self.right_hand_pose)
120
+ buff.write(_struct_I.pack(length))
121
+ pattern = '<%sd'%length
122
+ buff.write(self.right_hand_pose.tostring())
123
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
124
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
125
+
126
+ def deserialize_numpy(self, str, numpy):
127
+ """
128
+ unpack serialized message in str into this message instance using numpy for array types
129
+ :param str: byte array of serialized message, ``str``
130
+ :param numpy: numpy python module
131
+ """
132
+ if python3:
133
+ codecs.lookup_error("rosmsg").msg_type = self._type
134
+ try:
135
+ end = 0
136
+ start = end
137
+ end += 4
138
+ (self.offset,) = _get_struct_i().unpack(str[start:end])
139
+ start = end
140
+ end += 4
141
+ (length,) = _struct_I.unpack(str[start:end])
142
+ pattern = '<%sd'%length
143
+ start = end
144
+ s = struct.Struct(pattern)
145
+ end += s.size
146
+ self.left_hand_pose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
147
+ start = end
148
+ end += 4
149
+ (length,) = _struct_I.unpack(str[start:end])
150
+ pattern = '<%sd'%length
151
+ start = end
152
+ s = struct.Struct(pattern)
153
+ end += s.size
154
+ self.right_hand_pose = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
155
+ return self
156
+ except struct.error as e:
157
+ raise genpy.DeserializationError(e) # most likely buffer underfill
158
+
159
+ _struct_I = genpy.struct_I
160
+ def _get_struct_I():
161
+ global _struct_I
162
+ return _struct_I
163
+ _struct_i = None
164
+ def _get_struct_i():
165
+ global _struct_i
166
+ if _struct_i is None:
167
+ _struct_i = struct.Struct("<i")
168
+ return _struct_i
@@ -0,0 +1,151 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/armTargetPoses.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 armTargetPoses(genpy.Message):
11
+ _md5sum = "267055a1a7e685e90c17a3ebf7a8a26c"
12
+ _type = "kuavo_msgs/armTargetPoses"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """# times: times series
15
+ # values: values matrix
16
+ float64[] times
17
+ float64[] values
18
+ """
19
+ __slots__ = ['times','values']
20
+ _slot_types = ['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
+ times,values
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(armTargetPoses, self).__init__(*args, **kwds)
38
+ # message fields cannot be None, assign default values for those that are
39
+ if self.times is None:
40
+ self.times = []
41
+ if self.values is None:
42
+ self.values = []
43
+ else:
44
+ self.times = []
45
+ self.values = []
46
+
47
+ def _get_types(self):
48
+ """
49
+ internal API method
50
+ """
51
+ return self._slot_types
52
+
53
+ def serialize(self, buff):
54
+ """
55
+ serialize message into buffer
56
+ :param buff: buffer, ``StringIO``
57
+ """
58
+ try:
59
+ length = len(self.times)
60
+ buff.write(_struct_I.pack(length))
61
+ pattern = '<%sd'%length
62
+ buff.write(struct.Struct(pattern).pack(*self.times))
63
+ length = len(self.values)
64
+ buff.write(_struct_I.pack(length))
65
+ pattern = '<%sd'%length
66
+ buff.write(struct.Struct(pattern).pack(*self.values))
67
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
68
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
69
+
70
+ def deserialize(self, str):
71
+ """
72
+ unpack serialized message in str into this message instance
73
+ :param str: byte array of serialized message, ``str``
74
+ """
75
+ if python3:
76
+ codecs.lookup_error("rosmsg").msg_type = self._type
77
+ try:
78
+ end = 0
79
+ start = end
80
+ end += 4
81
+ (length,) = _struct_I.unpack(str[start:end])
82
+ pattern = '<%sd'%length
83
+ start = end
84
+ s = struct.Struct(pattern)
85
+ end += s.size
86
+ self.times = s.unpack(str[start:end])
87
+ start = end
88
+ end += 4
89
+ (length,) = _struct_I.unpack(str[start:end])
90
+ pattern = '<%sd'%length
91
+ start = end
92
+ s = struct.Struct(pattern)
93
+ end += s.size
94
+ self.values = s.unpack(str[start:end])
95
+ return self
96
+ except struct.error as e:
97
+ raise genpy.DeserializationError(e) # most likely buffer underfill
98
+
99
+
100
+ def serialize_numpy(self, buff, numpy):
101
+ """
102
+ serialize message with numpy array types into buffer
103
+ :param buff: buffer, ``StringIO``
104
+ :param numpy: numpy python module
105
+ """
106
+ try:
107
+ length = len(self.times)
108
+ buff.write(_struct_I.pack(length))
109
+ pattern = '<%sd'%length
110
+ buff.write(self.times.tostring())
111
+ length = len(self.values)
112
+ buff.write(_struct_I.pack(length))
113
+ pattern = '<%sd'%length
114
+ buff.write(self.values.tostring())
115
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
116
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
117
+
118
+ def deserialize_numpy(self, str, numpy):
119
+ """
120
+ unpack serialized message in str into this message instance using numpy for array types
121
+ :param str: byte array of serialized message, ``str``
122
+ :param numpy: numpy python module
123
+ """
124
+ if python3:
125
+ codecs.lookup_error("rosmsg").msg_type = self._type
126
+ try:
127
+ end = 0
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.times = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
136
+ start = end
137
+ end += 4
138
+ (length,) = _struct_I.unpack(str[start:end])
139
+ pattern = '<%sd'%length
140
+ start = end
141
+ s = struct.Struct(pattern)
142
+ end += s.size
143
+ self.values = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
144
+ return self
145
+ except struct.error as e:
146
+ raise genpy.DeserializationError(e) # most likely buffer underfill
147
+
148
+ _struct_I = genpy.struct_I
149
+ def _get_struct_I():
150
+ global _struct_I
151
+ return _struct_I