kuavo-humanoid-sdk 1.2.2__20250922181216-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 (137) hide show
  1. kuavo_humanoid_sdk/__init__.py +6 -0
  2. kuavo_humanoid_sdk/common/logger.py +45 -0
  3. kuavo_humanoid_sdk/interfaces/__init__.py +4 -0
  4. kuavo_humanoid_sdk/interfaces/data_types.py +276 -0
  5. kuavo_humanoid_sdk/interfaces/end_effector.py +62 -0
  6. kuavo_humanoid_sdk/interfaces/robot.py +22 -0
  7. kuavo_humanoid_sdk/interfaces/robot_info.py +56 -0
  8. kuavo_humanoid_sdk/kuavo/__init__.py +11 -0
  9. kuavo_humanoid_sdk/kuavo/core/audio.py +32 -0
  10. kuavo_humanoid_sdk/kuavo/core/core.py +612 -0
  11. kuavo_humanoid_sdk/kuavo/core/dex_hand_control.py +114 -0
  12. kuavo_humanoid_sdk/kuavo/core/leju_claw_control.py +67 -0
  13. kuavo_humanoid_sdk/kuavo/core/ros/audio.py +92 -0
  14. kuavo_humanoid_sdk/kuavo/core/ros/control.py +1309 -0
  15. kuavo_humanoid_sdk/kuavo/core/ros/observation.py +94 -0
  16. kuavo_humanoid_sdk/kuavo/core/ros/param.py +183 -0
  17. kuavo_humanoid_sdk/kuavo/core/ros/sat_utils.py +103 -0
  18. kuavo_humanoid_sdk/kuavo/core/ros/state.py +605 -0
  19. kuavo_humanoid_sdk/kuavo/core/ros/tools.py +219 -0
  20. kuavo_humanoid_sdk/kuavo/core/ros/vision.py +234 -0
  21. kuavo_humanoid_sdk/kuavo/core/ros_env.py +237 -0
  22. kuavo_humanoid_sdk/kuavo/dexterous_hand.py +201 -0
  23. kuavo_humanoid_sdk/kuavo/leju_claw.py +235 -0
  24. kuavo_humanoid_sdk/kuavo/robot.py +465 -0
  25. kuavo_humanoid_sdk/kuavo/robot_arm.py +210 -0
  26. kuavo_humanoid_sdk/kuavo/robot_audio.py +39 -0
  27. kuavo_humanoid_sdk/kuavo/robot_head.py +50 -0
  28. kuavo_humanoid_sdk/kuavo/robot_info.py +113 -0
  29. kuavo_humanoid_sdk/kuavo/robot_observation.py +64 -0
  30. kuavo_humanoid_sdk/kuavo/robot_state.py +299 -0
  31. kuavo_humanoid_sdk/kuavo/robot_tool.py +82 -0
  32. kuavo_humanoid_sdk/kuavo/robot_vision.py +83 -0
  33. kuavo_humanoid_sdk/kuavo_strategy/__init__.py +2 -0
  34. kuavo_humanoid_sdk/kuavo_strategy/grasp_box/grasp_box_strategy.py +1126 -0
  35. kuavo_humanoid_sdk/kuavo_strategy/kuavo_strategy.py +104 -0
  36. kuavo_humanoid_sdk/msg/__init__.py +4 -0
  37. kuavo_humanoid_sdk/msg/kuavo_msgs/__init__.py +7 -0
  38. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_AprilTagDetection.py +306 -0
  39. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_AprilTagDetectionArray.py +437 -0
  40. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_JoySticks.py +191 -0
  41. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_Metadata.py +199 -0
  42. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_RobotActionState.py +112 -0
  43. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_TFArray.py +323 -0
  44. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/__init__.py +48 -0
  45. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armHandPose.py +160 -0
  46. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armHandPoseFree.py +171 -0
  47. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armPoseWithTimeStamp.py +168 -0
  48. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_armTargetPoses.py +151 -0
  49. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_bezierCurveCubicPoint.py +178 -0
  50. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandCommand.py +229 -0
  51. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_dexhandTouchState.py +256 -0
  52. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_endEffectorData.py +227 -0
  53. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPose.py +123 -0
  54. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoseTargetTrajectories.py +301 -0
  55. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_footPoses.py +149 -0
  56. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_fullBodyTargetTrajectories.py +258 -0
  57. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gaitTimeName.py +147 -0
  58. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureInfo.py +218 -0
  59. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_gestureTask.py +149 -0
  60. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_handPose.py +136 -0
  61. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_headBodyPose.py +145 -0
  62. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_ikSolveError.py +171 -0
  63. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_ikSolveParam.py +140 -0
  64. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_imuData.py +165 -0
  65. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointBezierTrajectory.py +201 -0
  66. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointCmd.py +390 -0
  67. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_jointData.py +205 -0
  68. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawCommand.py +320 -0
  69. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_lejuClawState.py +341 -0
  70. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_motorParam.py +122 -0
  71. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_planArmState.py +120 -0
  72. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_questJoySticks.py +191 -0
  73. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_qv.py +121 -0
  74. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotArmQVVD.py +177 -0
  75. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHandPosition.py +225 -0
  76. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotHeadMotionData.py +128 -0
  77. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_robotState.py +222 -0
  78. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_sensorsData.py +495 -0
  79. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_switchGaitByName.py +200 -0
  80. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_touchSensorStatus.py +162 -0
  81. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPose.py +272 -0
  82. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPoseCmd.py +315 -0
  83. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPoseCmdFree.py +338 -0
  84. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_twoArmHandPoseFree.py +299 -0
  85. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloDetection.py +251 -0
  86. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/_yoloOutputData.py +168 -0
  87. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_ExecuteArmAction.py +281 -0
  88. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_RepublishTFs.py +373 -0
  89. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SetJoyTopic.py +282 -0
  90. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_SpeechSynthesis.py +270 -0
  91. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/__init__.py +29 -0
  92. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeArmCtrlMode.py +275 -0
  93. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeArmCtrlModeKuavo.py +236 -0
  94. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeMotorParam.py +299 -0
  95. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_changeTorsoCtrlMode.py +274 -0
  96. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_controlLejuClaw.py +408 -0
  97. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_enableHandTouchSensor.py +304 -0
  98. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_fkSrv.py +394 -0
  99. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_footPoseTargetTrajectoriesSrv.py +409 -0
  100. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecute.py +339 -0
  101. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureExecuteState.py +257 -0
  102. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_gestureList.py +418 -0
  103. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_getCurrentGaitName.py +253 -0
  104. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_getMotorParam.py +299 -0
  105. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_handForceLevel.py +330 -0
  106. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_jointMoveTo.py +302 -0
  107. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_planArmTrajectoryBezierCurve.py +421 -0
  108. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_planArmTrajectoryCubicSpline.py +490 -0
  109. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_playmusic.py +268 -0
  110. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setHwIntialState.py +304 -0
  111. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setMmCtrlFrame.py +273 -0
  112. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setMotorEncoderRoundService.py +283 -0
  113. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_setTagId.py +275 -0
  114. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_singleStepControl.py +444 -0
  115. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_twoArmHandPoseCmdFreeSrv.py +716 -0
  116. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_twoArmHandPoseCmdSrv.py +662 -0
  117. kuavo_humanoid_sdk/msg/motion_capture_ik/__init__.py +7 -0
  118. kuavo_humanoid_sdk/msg/ocs2_msgs/__init__.py +7 -0
  119. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/__init__.py +12 -0
  120. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_constraint.py +142 -0
  121. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_controller_data.py +121 -0
  122. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_lagrangian_metrics.py +148 -0
  123. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mode_schedule.py +150 -0
  124. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_flattened_controller.py +666 -0
  125. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_input.py +122 -0
  126. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_observation.py +209 -0
  127. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_performance_indices.py +140 -0
  128. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_solver_data.py +886 -0
  129. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_state.py +122 -0
  130. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_mpc_target_trajectories.py +239 -0
  131. kuavo_humanoid_sdk/msg/ocs2_msgs/msg/_multiplier.py +148 -0
  132. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/__init__.py +1 -0
  133. kuavo_humanoid_sdk/msg/ocs2_msgs/srv/_reset.py +376 -0
  134. kuavo_humanoid_sdk-1.2.2.dist-info/METADATA +291 -0
  135. kuavo_humanoid_sdk-1.2.2.dist-info/RECORD +137 -0
  136. kuavo_humanoid_sdk-1.2.2.dist-info/WHEEL +6 -0
  137. kuavo_humanoid_sdk-1.2.2.dist-info/top_level.txt +1 -0
@@ -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,112 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/RobotActionState.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 RobotActionState(genpy.Message):
11
+ _md5sum = "800f34bc468def1d86e2d42bea5648c0"
12
+ _type = "kuavo_msgs/RobotActionState"
13
+ _has_header = False # flag to mark the presence of a Header object
14
+ _full_text = """uint8 state """
15
+ __slots__ = ['state']
16
+ _slot_types = ['uint8']
17
+
18
+ def __init__(self, *args, **kwds):
19
+ """
20
+ Constructor. Any message fields that are implicitly/explicitly
21
+ set to None will be assigned a default value. The recommend
22
+ use is keyword arguments as this is more robust to future message
23
+ changes. You cannot mix in-order arguments and keyword arguments.
24
+
25
+ The available fields are:
26
+ state
27
+
28
+ :param args: complete set of field values, in .msg order
29
+ :param kwds: use keyword arguments corresponding to message field names
30
+ to set specific fields.
31
+ """
32
+ if args or kwds:
33
+ super(RobotActionState, self).__init__(*args, **kwds)
34
+ # message fields cannot be None, assign default values for those that are
35
+ if self.state is None:
36
+ self.state = 0
37
+ else:
38
+ self.state = 0
39
+
40
+ def _get_types(self):
41
+ """
42
+ internal API method
43
+ """
44
+ return self._slot_types
45
+
46
+ def serialize(self, buff):
47
+ """
48
+ serialize message into buffer
49
+ :param buff: buffer, ``StringIO``
50
+ """
51
+ try:
52
+ _x = self.state
53
+ buff.write(_get_struct_B().pack(_x))
54
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
55
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
56
+
57
+ def deserialize(self, str):
58
+ """
59
+ unpack serialized message in str into this message instance
60
+ :param str: byte array of serialized message, ``str``
61
+ """
62
+ if python3:
63
+ codecs.lookup_error("rosmsg").msg_type = self._type
64
+ try:
65
+ end = 0
66
+ start = end
67
+ end += 1
68
+ (self.state,) = _get_struct_B().unpack(str[start:end])
69
+ return self
70
+ except struct.error as e:
71
+ raise genpy.DeserializationError(e) # most likely buffer underfill
72
+
73
+
74
+ def serialize_numpy(self, buff, numpy):
75
+ """
76
+ serialize message with numpy array types into buffer
77
+ :param buff: buffer, ``StringIO``
78
+ :param numpy: numpy python module
79
+ """
80
+ try:
81
+ _x = self.state
82
+ buff.write(_get_struct_B().pack(_x))
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
+ start = end
97
+ end += 1
98
+ (self.state,) = _get_struct_B().unpack(str[start:end])
99
+ return self
100
+ except struct.error as e:
101
+ raise genpy.DeserializationError(e) # most likely buffer underfill
102
+
103
+ _struct_I = genpy.struct_I
104
+ def _get_struct_I():
105
+ global _struct_I
106
+ return _struct_I
107
+ _struct_B = None
108
+ def _get_struct_B():
109
+ global _struct_B
110
+ if _struct_B is None:
111
+ _struct_B = struct.Struct("<B")
112
+ return _struct_B
@@ -0,0 +1,323 @@
1
+ # This Python file uses the following encoding: utf-8
2
+ """autogenerated by genpy from kuavo_msgs/TFArray.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 geometry_msgs.msg
10
+ import std_msgs.msg
11
+
12
+ class TFArray(genpy.Message):
13
+ _md5sum = "94810edda583a504dfda3829e70d7eec"
14
+ _type = "kuavo_msgs/TFArray"
15
+ _has_header = False # flag to mark the presence of a Header object
16
+ _full_text = """geometry_msgs/TransformStamped[] transforms
17
+ ================================================================================
18
+ MSG: geometry_msgs/TransformStamped
19
+ # This expresses a transform from coordinate frame header.frame_id
20
+ # to the coordinate frame child_frame_id
21
+ #
22
+ # This message is mostly used by the
23
+ # <a href="http://wiki.ros.org/tf">tf</a> package.
24
+ # See its documentation for more information.
25
+
26
+ Header header
27
+ string child_frame_id # the frame id of the child frame
28
+ Transform transform
29
+
30
+ ================================================================================
31
+ MSG: std_msgs/Header
32
+ # Standard metadata for higher-level stamped data types.
33
+ # This is generally used to communicate timestamped data
34
+ # in a particular coordinate frame.
35
+ #
36
+ # sequence ID: consecutively increasing ID
37
+ uint32 seq
38
+ #Two-integer timestamp that is expressed as:
39
+ # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')
40
+ # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')
41
+ # time-handling sugar is provided by the client library
42
+ time stamp
43
+ #Frame this data is associated with
44
+ string frame_id
45
+
46
+ ================================================================================
47
+ MSG: geometry_msgs/Transform
48
+ # This represents the transform between two coordinate frames in free space.
49
+
50
+ Vector3 translation
51
+ Quaternion rotation
52
+
53
+ ================================================================================
54
+ MSG: geometry_msgs/Vector3
55
+ # This represents a vector in free space.
56
+ # It is only meant to represent a direction. Therefore, it does not
57
+ # make sense to apply a translation to it (e.g., when applying a
58
+ # generic rigid transformation to a Vector3, tf2 will only apply the
59
+ # rotation). If you want your data to be translatable too, use the
60
+ # geometry_msgs/Point message instead.
61
+
62
+ float64 x
63
+ float64 y
64
+ float64 z
65
+ ================================================================================
66
+ MSG: geometry_msgs/Quaternion
67
+ # This represents an orientation in free space in quaternion form.
68
+
69
+ float64 x
70
+ float64 y
71
+ float64 z
72
+ float64 w
73
+ """
74
+ __slots__ = ['transforms']
75
+ _slot_types = ['geometry_msgs/TransformStamped[]']
76
+
77
+ def __init__(self, *args, **kwds):
78
+ """
79
+ Constructor. Any message fields that are implicitly/explicitly
80
+ set to None will be assigned a default value. The recommend
81
+ use is keyword arguments as this is more robust to future message
82
+ changes. You cannot mix in-order arguments and keyword arguments.
83
+
84
+ The available fields are:
85
+ transforms
86
+
87
+ :param args: complete set of field values, in .msg order
88
+ :param kwds: use keyword arguments corresponding to message field names
89
+ to set specific fields.
90
+ """
91
+ if args or kwds:
92
+ super(TFArray, self).__init__(*args, **kwds)
93
+ # message fields cannot be None, assign default values for those that are
94
+ if self.transforms is None:
95
+ self.transforms = []
96
+ else:
97
+ self.transforms = []
98
+
99
+ def _get_types(self):
100
+ """
101
+ internal API method
102
+ """
103
+ return self._slot_types
104
+
105
+ def serialize(self, buff):
106
+ """
107
+ serialize message into buffer
108
+ :param buff: buffer, ``StringIO``
109
+ """
110
+ try:
111
+ length = len(self.transforms)
112
+ buff.write(_struct_I.pack(length))
113
+ for val1 in self.transforms:
114
+ _v1 = val1.header
115
+ _x = _v1.seq
116
+ buff.write(_get_struct_I().pack(_x))
117
+ _v2 = _v1.stamp
118
+ _x = _v2
119
+ buff.write(_get_struct_2I().pack(_x.secs, _x.nsecs))
120
+ _x = _v1.frame_id
121
+ length = len(_x)
122
+ if python3 or type(_x) == unicode:
123
+ _x = _x.encode('utf-8')
124
+ length = len(_x)
125
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
126
+ _x = val1.child_frame_id
127
+ length = len(_x)
128
+ if python3 or type(_x) == unicode:
129
+ _x = _x.encode('utf-8')
130
+ length = len(_x)
131
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
132
+ _v3 = val1.transform
133
+ _v4 = _v3.translation
134
+ _x = _v4
135
+ buff.write(_get_struct_3d().pack(_x.x, _x.y, _x.z))
136
+ _v5 = _v3.rotation
137
+ _x = _v5
138
+ buff.write(_get_struct_4d().pack(_x.x, _x.y, _x.z, _x.w))
139
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
140
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
141
+
142
+ def deserialize(self, str):
143
+ """
144
+ unpack serialized message in str into this message instance
145
+ :param str: byte array of serialized message, ``str``
146
+ """
147
+ if python3:
148
+ codecs.lookup_error("rosmsg").msg_type = self._type
149
+ try:
150
+ if self.transforms is None:
151
+ self.transforms = None
152
+ end = 0
153
+ start = end
154
+ end += 4
155
+ (length,) = _struct_I.unpack(str[start:end])
156
+ self.transforms = []
157
+ for i in range(0, length):
158
+ val1 = geometry_msgs.msg.TransformStamped()
159
+ _v6 = val1.header
160
+ start = end
161
+ end += 4
162
+ (_v6.seq,) = _get_struct_I().unpack(str[start:end])
163
+ _v7 = _v6.stamp
164
+ _x = _v7
165
+ start = end
166
+ end += 8
167
+ (_x.secs, _x.nsecs,) = _get_struct_2I().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
+ _v6.frame_id = str[start:end].decode('utf-8', 'rosmsg')
175
+ else:
176
+ _v6.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
+ val1.child_frame_id = str[start:end].decode('utf-8', 'rosmsg')
184
+ else:
185
+ val1.child_frame_id = str[start:end]
186
+ _v8 = val1.transform
187
+ _v9 = _v8.translation
188
+ _x = _v9
189
+ start = end
190
+ end += 24
191
+ (_x.x, _x.y, _x.z,) = _get_struct_3d().unpack(str[start:end])
192
+ _v10 = _v8.rotation
193
+ _x = _v10
194
+ start = end
195
+ end += 32
196
+ (_x.x, _x.y, _x.z, _x.w,) = _get_struct_4d().unpack(str[start:end])
197
+ self.transforms.append(val1)
198
+ return self
199
+ except struct.error as e:
200
+ raise genpy.DeserializationError(e) # most likely buffer underfill
201
+
202
+
203
+ def serialize_numpy(self, buff, numpy):
204
+ """
205
+ serialize message with numpy array types into buffer
206
+ :param buff: buffer, ``StringIO``
207
+ :param numpy: numpy python module
208
+ """
209
+ try:
210
+ length = len(self.transforms)
211
+ buff.write(_struct_I.pack(length))
212
+ for val1 in self.transforms:
213
+ _v11 = val1.header
214
+ _x = _v11.seq
215
+ buff.write(_get_struct_I().pack(_x))
216
+ _v12 = _v11.stamp
217
+ _x = _v12
218
+ buff.write(_get_struct_2I().pack(_x.secs, _x.nsecs))
219
+ _x = _v11.frame_id
220
+ length = len(_x)
221
+ if python3 or type(_x) == unicode:
222
+ _x = _x.encode('utf-8')
223
+ length = len(_x)
224
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
225
+ _x = val1.child_frame_id
226
+ length = len(_x)
227
+ if python3 or type(_x) == unicode:
228
+ _x = _x.encode('utf-8')
229
+ length = len(_x)
230
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
231
+ _v13 = val1.transform
232
+ _v14 = _v13.translation
233
+ _x = _v14
234
+ buff.write(_get_struct_3d().pack(_x.x, _x.y, _x.z))
235
+ _v15 = _v13.rotation
236
+ _x = _v15
237
+ buff.write(_get_struct_4d().pack(_x.x, _x.y, _x.z, _x.w))
238
+ except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
239
+ except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
240
+
241
+ def deserialize_numpy(self, str, numpy):
242
+ """
243
+ unpack serialized message in str into this message instance using numpy for array types
244
+ :param str: byte array of serialized message, ``str``
245
+ :param numpy: numpy python module
246
+ """
247
+ if python3:
248
+ codecs.lookup_error("rosmsg").msg_type = self._type
249
+ try:
250
+ if self.transforms is None:
251
+ self.transforms = None
252
+ end = 0
253
+ start = end
254
+ end += 4
255
+ (length,) = _struct_I.unpack(str[start:end])
256
+ self.transforms = []
257
+ for i in range(0, length):
258
+ val1 = geometry_msgs.msg.TransformStamped()
259
+ _v16 = val1.header
260
+ start = end
261
+ end += 4
262
+ (_v16.seq,) = _get_struct_I().unpack(str[start:end])
263
+ _v17 = _v16.stamp
264
+ _x = _v17
265
+ start = end
266
+ end += 8
267
+ (_x.secs, _x.nsecs,) = _get_struct_2I().unpack(str[start:end])
268
+ start = end
269
+ end += 4
270
+ (length,) = _struct_I.unpack(str[start:end])
271
+ start = end
272
+ end += length
273
+ if python3:
274
+ _v16.frame_id = str[start:end].decode('utf-8', 'rosmsg')
275
+ else:
276
+ _v16.frame_id = str[start:end]
277
+ start = end
278
+ end += 4
279
+ (length,) = _struct_I.unpack(str[start:end])
280
+ start = end
281
+ end += length
282
+ if python3:
283
+ val1.child_frame_id = str[start:end].decode('utf-8', 'rosmsg')
284
+ else:
285
+ val1.child_frame_id = str[start:end]
286
+ _v18 = val1.transform
287
+ _v19 = _v18.translation
288
+ _x = _v19
289
+ start = end
290
+ end += 24
291
+ (_x.x, _x.y, _x.z,) = _get_struct_3d().unpack(str[start:end])
292
+ _v20 = _v18.rotation
293
+ _x = _v20
294
+ start = end
295
+ end += 32
296
+ (_x.x, _x.y, _x.z, _x.w,) = _get_struct_4d().unpack(str[start:end])
297
+ self.transforms.append(val1)
298
+ return self
299
+ except struct.error as e:
300
+ raise genpy.DeserializationError(e) # most likely buffer underfill
301
+
302
+ _struct_I = genpy.struct_I
303
+ def _get_struct_I():
304
+ global _struct_I
305
+ return _struct_I
306
+ _struct_2I = None
307
+ def _get_struct_2I():
308
+ global _struct_2I
309
+ if _struct_2I is None:
310
+ _struct_2I = struct.Struct("<2I")
311
+ return _struct_2I
312
+ _struct_3d = None
313
+ def _get_struct_3d():
314
+ global _struct_3d
315
+ if _struct_3d is None:
316
+ _struct_3d = struct.Struct("<3d")
317
+ return _struct_3d
318
+ _struct_4d = None
319
+ def _get_struct_4d():
320
+ global _struct_4d
321
+ if _struct_4d is None:
322
+ _struct_4d = struct.Struct("<4d")
323
+ return _struct_4d
@@ -0,0 +1,48 @@
1
+ from ._AprilTagDetection import *
2
+ from ._AprilTagDetectionArray import *
3
+ from ._JoySticks import *
4
+ from ._Metadata import *
5
+ from ._RobotActionState import *
6
+ from ._TFArray import *
7
+ from ._armHandPose import *
8
+ from ._armHandPoseFree import *
9
+ from ._armPoseWithTimeStamp import *
10
+ from ._armTargetPoses import *
11
+ from ._bezierCurveCubicPoint import *
12
+ from ._dexhandCommand import *
13
+ from ._dexhandTouchState import *
14
+ from ._endEffectorData import *
15
+ from ._footPose import *
16
+ from ._footPoseTargetTrajectories import *
17
+ from ._footPoses import *
18
+ from ._fullBodyTargetTrajectories import *
19
+ from ._gaitTimeName import *
20
+ from ._gestureInfo import *
21
+ from ._gestureTask import *
22
+ from ._handPose import *
23
+ from ._headBodyPose import *
24
+ from ._ikSolveError import *
25
+ from ._ikSolveParam import *
26
+ from ._imuData import *
27
+ from ._jointBezierTrajectory import *
28
+ from ._jointCmd import *
29
+ from ._jointData import *
30
+ from ._lejuClawCommand import *
31
+ from ._lejuClawState import *
32
+ from ._motorParam import *
33
+ from ._planArmState import *
34
+ from ._questJoySticks import *
35
+ from ._qv import *
36
+ from ._robotArmQVVD import *
37
+ from ._robotHandPosition import *
38
+ from ._robotHeadMotionData import *
39
+ from ._robotState import *
40
+ from ._sensorsData import *
41
+ from ._switchGaitByName import *
42
+ from ._touchSensorStatus import *
43
+ from ._twoArmHandPose import *
44
+ from ._twoArmHandPoseCmd import *
45
+ from ._twoArmHandPoseCmdFree import *
46
+ from ._twoArmHandPoseFree import *
47
+ from ._yoloDetection import *
48
+ from ._yoloOutputData import *