kuavo-humanoid-sdk 1.1.3a1252__py3-none-any.whl → 1.1.6__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 (43) hide show
  1. kuavo_humanoid_sdk/interfaces/data_types.py +0 -46
  2. kuavo_humanoid_sdk/kuavo/__init__.py +0 -3
  3. kuavo_humanoid_sdk/kuavo/core/core.py +6 -18
  4. kuavo_humanoid_sdk/kuavo/core/ros/control.py +19 -645
  5. kuavo_humanoid_sdk/kuavo/core/ros/param.py +4 -142
  6. kuavo_humanoid_sdk/kuavo/core/ros/state.py +15 -329
  7. kuavo_humanoid_sdk/kuavo/core/ros_env.py +1 -229
  8. kuavo_humanoid_sdk/kuavo/dexterous_hand.py +2 -6
  9. kuavo_humanoid_sdk/kuavo/leju_claw.py +2 -6
  10. kuavo_humanoid_sdk/kuavo/robot.py +22 -43
  11. kuavo_humanoid_sdk/kuavo/robot_info.py +2 -7
  12. kuavo_humanoid_sdk/kuavo/robot_state.py +2 -6
  13. kuavo_humanoid_sdk/msg/kuavo_msgs/msg/__init__.py +0 -7
  14. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/__init__.py +0 -4
  15. kuavo_humanoid_sdk/msg/kuavo_msgs/srv/_playmusic.py +20 -26
  16. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/__init__.py +9 -0
  17. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_armHandPose.py +2 -2
  18. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_handPose.py +2 -2
  19. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_headBodyPose.py +145 -0
  20. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_ikSolveError.py +13 -13
  21. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_ikSolveParam.py +2 -2
  22. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_robotArmQVVD.py +2 -2
  23. kuavo_humanoid_sdk/msg/motion_capture_ik/msg/_robotHandPosition.py +225 -0
  24. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_twoArmHandPose.py +13 -13
  25. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/msg/_twoArmHandPoseCmd.py +15 -15
  26. kuavo_humanoid_sdk/msg/motion_capture_ik/srv/__init__.py +4 -0
  27. kuavo_humanoid_sdk/msg/{kuavo_msgs/srv/_SpeechSynthesis.py → motion_capture_ik/srv/_changeArmCtrlMode.py} +98 -93
  28. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/srv/_changeArmCtrlModeKuavo.py +5 -5
  29. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/srv/_fkSrv.py +13 -13
  30. kuavo_humanoid_sdk/msg/{kuavo_msgs → motion_capture_ik}/srv/_twoArmHandPoseCmdSrv.py +23 -23
  31. {kuavo_humanoid_sdk-1.1.3a1252.dist-info → kuavo_humanoid_sdk-1.1.6.dist-info}/METADATA +1 -2
  32. {kuavo_humanoid_sdk-1.1.3a1252.dist-info → kuavo_humanoid_sdk-1.1.6.dist-info}/RECORD +34 -39
  33. kuavo_humanoid_sdk/common/global_config.py +0 -16
  34. kuavo_humanoid_sdk/common/websocket_kuavo_sdk.py +0 -23
  35. kuavo_humanoid_sdk/kuavo/core/audio.py +0 -36
  36. kuavo_humanoid_sdk/kuavo/core/ros/audio.py +0 -176
  37. kuavo_humanoid_sdk/kuavo/core/ros/tools.py +0 -158
  38. kuavo_humanoid_sdk/kuavo/core/ros/vision.py +0 -522
  39. kuavo_humanoid_sdk/kuavo/robot_audio.py +0 -39
  40. kuavo_humanoid_sdk/kuavo/robot_tool.py +0 -62
  41. kuavo_humanoid_sdk/kuavo/robot_vision.py +0 -90
  42. {kuavo_humanoid_sdk-1.1.3a1252.dist-info → kuavo_humanoid_sdk-1.1.6.dist-info}/WHEEL +0 -0
  43. {kuavo_humanoid_sdk-1.1.3a1252.dist-info → kuavo_humanoid_sdk-1.1.6.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
1
1
  # This Python file uses the following encoding: utf-8
2
- """autogenerated by genpy from kuavo_msgs/SpeechSynthesisRequest.msg. Do not edit."""
2
+ """autogenerated by genpy from motion_capture_ik/changeArmCtrlModeRequest.msg. Do not edit."""
3
3
  import codecs
4
4
  import sys
5
5
  python3 = True if sys.hexversion > 0x03000000 else False
@@ -7,16 +7,14 @@ import genpy
7
7
  import struct
8
8
 
9
9
 
10
- class SpeechSynthesisRequest(genpy.Message):
11
- _md5sum = "32375f7a1df36dcb2da804a90b1edd81"
12
- _type = "kuavo_msgs/SpeechSynthesisRequest"
10
+ class changeArmCtrlModeRequest(genpy.Message):
11
+ _md5sum = "1f5907fdb226711da233100c712cc0eb"
12
+ _type = "motion_capture_ik/changeArmCtrlModeRequest"
13
13
  _has_header = False # flag to mark the presence of a Header object
14
- _full_text = """# 请求部分
15
- string data
16
- float32 volume
14
+ _full_text = """int32 control_mode # 0: keep pose, 1: auto_swing_arm, 2: external_control
17
15
  """
18
- __slots__ = ['data','volume']
19
- _slot_types = ['string','float32']
16
+ __slots__ = ['control_mode']
17
+ _slot_types = ['int32']
20
18
 
21
19
  def __init__(self, *args, **kwds):
22
20
  """
@@ -26,22 +24,19 @@ float32 volume
26
24
  changes. You cannot mix in-order arguments and keyword arguments.
27
25
 
28
26
  The available fields are:
29
- data,volume
27
+ control_mode
30
28
 
31
29
  :param args: complete set of field values, in .msg order
32
30
  :param kwds: use keyword arguments corresponding to message field names
33
31
  to set specific fields.
34
32
  """
35
33
  if args or kwds:
36
- super(SpeechSynthesisRequest, self).__init__(*args, **kwds)
34
+ super(changeArmCtrlModeRequest, self).__init__(*args, **kwds)
37
35
  # message fields cannot be None, assign default values for those that are
38
- if self.data is None:
39
- self.data = ''
40
- if self.volume is None:
41
- self.volume = 0.
36
+ if self.control_mode is None:
37
+ self.control_mode = 0
42
38
  else:
43
- self.data = ''
44
- self.volume = 0.
39
+ self.control_mode = 0
45
40
 
46
41
  def _get_types(self):
47
42
  """
@@ -55,14 +50,8 @@ float32 volume
55
50
  :param buff: buffer, ``StringIO``
56
51
  """
57
52
  try:
58
- _x = self.data
59
- length = len(_x)
60
- if python3 or type(_x) == unicode:
61
- _x = _x.encode('utf-8')
62
- length = len(_x)
63
- buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
64
- _x = self.volume
65
- buff.write(_get_struct_f().pack(_x))
53
+ _x = self.control_mode
54
+ buff.write(_get_struct_i().pack(_x))
66
55
  except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
67
56
  except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
68
57
 
@@ -77,16 +66,7 @@ float32 volume
77
66
  end = 0
78
67
  start = end
79
68
  end += 4
80
- (length,) = _struct_I.unpack(str[start:end])
81
- start = end
82
- end += length
83
- if python3:
84
- self.data = str[start:end].decode('utf-8', 'rosmsg')
85
- else:
86
- self.data = str[start:end]
87
- start = end
88
- end += 4
89
- (self.volume,) = _get_struct_f().unpack(str[start:end])
69
+ (self.control_mode,) = _get_struct_i().unpack(str[start:end])
90
70
  return self
91
71
  except struct.error as e:
92
72
  raise genpy.DeserializationError(e) # most likely buffer underfill
@@ -99,14 +79,8 @@ float32 volume
99
79
  :param numpy: numpy python module
100
80
  """
101
81
  try:
102
- _x = self.data
103
- length = len(_x)
104
- if python3 or type(_x) == unicode:
105
- _x = _x.encode('utf-8')
106
- length = len(_x)
107
- buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
108
- _x = self.volume
109
- buff.write(_get_struct_f().pack(_x))
82
+ _x = self.control_mode
83
+ buff.write(_get_struct_i().pack(_x))
110
84
  except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
111
85
  except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
112
86
 
@@ -122,16 +96,7 @@ float32 volume
122
96
  end = 0
123
97
  start = end
124
98
  end += 4
125
- (length,) = _struct_I.unpack(str[start:end])
126
- start = end
127
- end += length
128
- if python3:
129
- self.data = str[start:end].decode('utf-8', 'rosmsg')
130
- else:
131
- self.data = str[start:end]
132
- start = end
133
- end += 4
134
- (self.volume,) = _get_struct_f().unpack(str[start:end])
99
+ (self.control_mode,) = _get_struct_i().unpack(str[start:end])
135
100
  return self
136
101
  except struct.error as e:
137
102
  raise genpy.DeserializationError(e) # most likely buffer underfill
@@ -140,14 +105,14 @@ _struct_I = genpy.struct_I
140
105
  def _get_struct_I():
141
106
  global _struct_I
142
107
  return _struct_I
143
- _struct_f = None
144
- def _get_struct_f():
145
- global _struct_f
146
- if _struct_f is None:
147
- _struct_f = struct.Struct("<f")
148
- return _struct_f
108
+ _struct_i = None
109
+ def _get_struct_i():
110
+ global _struct_i
111
+ if _struct_i is None:
112
+ _struct_i = struct.Struct("<i")
113
+ return _struct_i
149
114
  # This Python file uses the following encoding: utf-8
150
- """autogenerated by genpy from kuavo_msgs/SpeechSynthesisResponse.msg. Do not edit."""
115
+ """autogenerated by genpy from motion_capture_ik/changeArmCtrlModeResponse.msg. Do not edit."""
151
116
  import codecs
152
117
  import sys
153
118
  python3 = True if sys.hexversion > 0x03000000 else False
@@ -155,16 +120,18 @@ import genpy
155
120
  import struct
156
121
 
157
122
 
158
- class SpeechSynthesisResponse(genpy.Message):
159
- _md5sum = "358e233cde0c8a8bcfea4ce193f8fc15"
160
- _type = "kuavo_msgs/SpeechSynthesisResponse"
123
+ class changeArmCtrlModeResponse(genpy.Message):
124
+ _md5sum = "2f115bf9b7d68ace12ac850b142c1536"
125
+ _type = "motion_capture_ik/changeArmCtrlModeResponse"
161
126
  _has_header = False # flag to mark the presence of a Header object
162
- _full_text = """# 响应部分
163
- bool success
127
+ _full_text = """bool result
128
+ int32 mode
129
+ string message
130
+
164
131
 
165
132
  """
166
- __slots__ = ['success']
167
- _slot_types = ['bool']
133
+ __slots__ = ['result','mode','message']
134
+ _slot_types = ['bool','int32','string']
168
135
 
169
136
  def __init__(self, *args, **kwds):
170
137
  """
@@ -174,19 +141,25 @@ bool success
174
141
  changes. You cannot mix in-order arguments and keyword arguments.
175
142
 
176
143
  The available fields are:
177
- success
144
+ result,mode,message
178
145
 
179
146
  :param args: complete set of field values, in .msg order
180
147
  :param kwds: use keyword arguments corresponding to message field names
181
148
  to set specific fields.
182
149
  """
183
150
  if args or kwds:
184
- super(SpeechSynthesisResponse, self).__init__(*args, **kwds)
151
+ super(changeArmCtrlModeResponse, self).__init__(*args, **kwds)
185
152
  # message fields cannot be None, assign default values for those that are
186
- if self.success is None:
187
- self.success = False
153
+ if self.result is None:
154
+ self.result = False
155
+ if self.mode is None:
156
+ self.mode = 0
157
+ if self.message is None:
158
+ self.message = ''
188
159
  else:
189
- self.success = False
160
+ self.result = False
161
+ self.mode = 0
162
+ self.message = ''
190
163
 
191
164
  def _get_types(self):
192
165
  """
@@ -200,8 +173,14 @@ bool success
200
173
  :param buff: buffer, ``StringIO``
201
174
  """
202
175
  try:
203
- _x = self.success
204
- buff.write(_get_struct_B().pack(_x))
176
+ _x = self
177
+ buff.write(_get_struct_Bi().pack(_x.result, _x.mode))
178
+ _x = self.message
179
+ length = len(_x)
180
+ if python3 or type(_x) == unicode:
181
+ _x = _x.encode('utf-8')
182
+ length = len(_x)
183
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
205
184
  except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
206
185
  except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
207
186
 
@@ -214,10 +193,20 @@ bool success
214
193
  codecs.lookup_error("rosmsg").msg_type = self._type
215
194
  try:
216
195
  end = 0
196
+ _x = self
197
+ start = end
198
+ end += 5
199
+ (_x.result, _x.mode,) = _get_struct_Bi().unpack(str[start:end])
200
+ self.result = bool(self.result)
217
201
  start = end
218
- end += 1
219
- (self.success,) = _get_struct_B().unpack(str[start:end])
220
- self.success = bool(self.success)
202
+ end += 4
203
+ (length,) = _struct_I.unpack(str[start:end])
204
+ start = end
205
+ end += length
206
+ if python3:
207
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
208
+ else:
209
+ self.message = str[start:end]
221
210
  return self
222
211
  except struct.error as e:
223
212
  raise genpy.DeserializationError(e) # most likely buffer underfill
@@ -230,8 +219,14 @@ bool success
230
219
  :param numpy: numpy python module
231
220
  """
232
221
  try:
233
- _x = self.success
234
- buff.write(_get_struct_B().pack(_x))
222
+ _x = self
223
+ buff.write(_get_struct_Bi().pack(_x.result, _x.mode))
224
+ _x = self.message
225
+ length = len(_x)
226
+ if python3 or type(_x) == unicode:
227
+ _x = _x.encode('utf-8')
228
+ length = len(_x)
229
+ buff.write(struct.Struct('<I%ss'%length).pack(length, _x))
235
230
  except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
236
231
  except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
237
232
 
@@ -245,10 +240,20 @@ bool success
245
240
  codecs.lookup_error("rosmsg").msg_type = self._type
246
241
  try:
247
242
  end = 0
243
+ _x = self
244
+ start = end
245
+ end += 5
246
+ (_x.result, _x.mode,) = _get_struct_Bi().unpack(str[start:end])
247
+ self.result = bool(self.result)
248
248
  start = end
249
- end += 1
250
- (self.success,) = _get_struct_B().unpack(str[start:end])
251
- self.success = bool(self.success)
249
+ end += 4
250
+ (length,) = _struct_I.unpack(str[start:end])
251
+ start = end
252
+ end += length
253
+ if python3:
254
+ self.message = str[start:end].decode('utf-8', 'rosmsg')
255
+ else:
256
+ self.message = str[start:end]
252
257
  return self
253
258
  except struct.error as e:
254
259
  raise genpy.DeserializationError(e) # most likely buffer underfill
@@ -257,14 +262,14 @@ _struct_I = genpy.struct_I
257
262
  def _get_struct_I():
258
263
  global _struct_I
259
264
  return _struct_I
260
- _struct_B = None
261
- def _get_struct_B():
262
- global _struct_B
263
- if _struct_B is None:
264
- _struct_B = struct.Struct("<B")
265
- return _struct_B
266
- class SpeechSynthesis(object):
267
- _type = 'kuavo_msgs/SpeechSynthesis'
268
- _md5sum = 'c2d03ac0ff2ddd1cb86a5148ad0f9d5e'
269
- _request_class = SpeechSynthesisRequest
270
- _response_class = SpeechSynthesisResponse
265
+ _struct_Bi = None
266
+ def _get_struct_Bi():
267
+ global _struct_Bi
268
+ if _struct_Bi is None:
269
+ _struct_Bi = struct.Struct("<Bi")
270
+ return _struct_Bi
271
+ class changeArmCtrlMode(object):
272
+ _type = 'motion_capture_ik/changeArmCtrlMode'
273
+ _md5sum = '8a8d154c05ee16e8f5d2b72d9bb51026'
274
+ _request_class = changeArmCtrlModeRequest
275
+ _response_class = changeArmCtrlModeResponse
@@ -1,5 +1,5 @@
1
1
  # This Python file uses the following encoding: utf-8
2
- """autogenerated by genpy from kuavo_msgs/changeArmCtrlModeKuavoRequest.msg. Do not edit."""
2
+ """autogenerated by genpy from motion_capture_ik/changeArmCtrlModeKuavoRequest.msg. Do not edit."""
3
3
  import codecs
4
4
  import sys
5
5
  python3 = True if sys.hexversion > 0x03000000 else False
@@ -9,7 +9,7 @@ import struct
9
9
 
10
10
  class changeArmCtrlModeKuavoRequest(genpy.Message):
11
11
  _md5sum = "14ef2aa2f48bb3f617c9e71fd0bc444e"
12
- _type = "kuavo_msgs/changeArmCtrlModeKuavoRequest"
12
+ _type = "motion_capture_ik/changeArmCtrlModeKuavoRequest"
13
13
  _has_header = False # flag to mark the presence of a Header object
14
14
  _full_text = """bool control_mode
15
15
  """
@@ -114,7 +114,7 @@ def _get_struct_B():
114
114
  _struct_B = struct.Struct("<B")
115
115
  return _struct_B
116
116
  # This Python file uses the following encoding: utf-8
117
- """autogenerated by genpy from kuavo_msgs/changeArmCtrlModeKuavoResponse.msg. Do not edit."""
117
+ """autogenerated by genpy from motion_capture_ik/changeArmCtrlModeKuavoResponse.msg. Do not edit."""
118
118
  import codecs
119
119
  import sys
120
120
  python3 = True if sys.hexversion > 0x03000000 else False
@@ -124,7 +124,7 @@ import struct
124
124
 
125
125
  class changeArmCtrlModeKuavoResponse(genpy.Message):
126
126
  _md5sum = "eb13ac1f1354ccecb7941ee8fa2192e8"
127
- _type = "kuavo_msgs/changeArmCtrlModeKuavoResponse"
127
+ _type = "motion_capture_ik/changeArmCtrlModeKuavoResponse"
128
128
  _has_header = False # flag to mark the presence of a Header object
129
129
  _full_text = """bool result
130
130
 
@@ -230,7 +230,7 @@ def _get_struct_B():
230
230
  _struct_B = struct.Struct("<B")
231
231
  return _struct_B
232
232
  class changeArmCtrlModeKuavo(object):
233
- _type = 'kuavo_msgs/changeArmCtrlModeKuavo'
233
+ _type = 'motion_capture_ik/changeArmCtrlModeKuavo'
234
234
  _md5sum = 'f89438f9d6f48f748eabe64775a22261'
235
235
  _request_class = changeArmCtrlModeKuavoRequest
236
236
  _response_class = changeArmCtrlModeKuavoResponse
@@ -1,5 +1,5 @@
1
1
  # This Python file uses the following encoding: utf-8
2
- """autogenerated by genpy from kuavo_msgs/fkSrvRequest.msg. Do not edit."""
2
+ """autogenerated by genpy from motion_capture_ik/fkSrvRequest.msg. Do not edit."""
3
3
  import codecs
4
4
  import sys
5
5
  python3 = True if sys.hexversion > 0x03000000 else False
@@ -9,7 +9,7 @@ import struct
9
9
 
10
10
  class fkSrvRequest(genpy.Message):
11
11
  _md5sum = "ab94b9bcaaa12f74def43e4b33992df1"
12
- _type = "kuavo_msgs/fkSrvRequest"
12
+ _type = "motion_capture_ik/fkSrvRequest"
13
13
  _has_header = False # flag to mark the presence of a Header object
14
14
  _full_text = """float64[] q # 广义关节角度,如果是虚拟关节ik,则前4维度为躯干虚拟关节的角度,后14维度为手臂关节的角度
15
15
  """
@@ -120,25 +120,25 @@ def _get_struct_I():
120
120
  global _struct_I
121
121
  return _struct_I
122
122
  # This Python file uses the following encoding: utf-8
123
- """autogenerated by genpy from kuavo_msgs/fkSrvResponse.msg. Do not edit."""
123
+ """autogenerated by genpy from motion_capture_ik/fkSrvResponse.msg. Do not edit."""
124
124
  import codecs
125
125
  import sys
126
126
  python3 = True if sys.hexversion > 0x03000000 else False
127
127
  import genpy
128
128
  import struct
129
129
 
130
- import kuavo_msgs.msg
130
+ import motion_capture_ik.msg
131
131
  import std_msgs.msg
132
132
 
133
133
  class fkSrvResponse(genpy.Message):
134
134
  _md5sum = "0989ef9ed6b7b2e5e8a37c79ae6916d9"
135
- _type = "kuavo_msgs/fkSrvResponse"
135
+ _type = "motion_capture_ik/fkSrvResponse"
136
136
  _has_header = False # flag to mark the presence of a Header object
137
137
  _full_text = """bool success
138
138
  twoArmHandPose hand_poses
139
139
 
140
140
  ================================================================================
141
- MSG: kuavo_msgs/twoArmHandPose
141
+ MSG: motion_capture_ik/twoArmHandPose
142
142
  Header header
143
143
  armHandPose left_pose
144
144
  armHandPose right_pose
@@ -159,7 +159,7 @@ time stamp
159
159
  string frame_id
160
160
 
161
161
  ================================================================================
162
- MSG: kuavo_msgs/armHandPose
162
+ MSG: motion_capture_ik/armHandPose
163
163
  float64[3] pos_xyz
164
164
  float64[4] quat_xyzw
165
165
 
@@ -167,7 +167,7 @@ float64[3] elbow_pos_xyz
167
167
 
168
168
  float64[7] joint_angles"""
169
169
  __slots__ = ['success','hand_poses']
170
- _slot_types = ['bool','kuavo_msgs/twoArmHandPose']
170
+ _slot_types = ['bool','motion_capture_ik/twoArmHandPose']
171
171
 
172
172
  def __init__(self, *args, **kwds):
173
173
  """
@@ -189,10 +189,10 @@ float64[7] joint_angles"""
189
189
  if self.success is None:
190
190
  self.success = False
191
191
  if self.hand_poses is None:
192
- self.hand_poses = kuavo_msgs.msg.twoArmHandPose()
192
+ self.hand_poses = motion_capture_ik.msg.twoArmHandPose()
193
193
  else:
194
194
  self.success = False
195
- self.hand_poses = kuavo_msgs.msg.twoArmHandPose()
195
+ self.hand_poses = motion_capture_ik.msg.twoArmHandPose()
196
196
 
197
197
  def _get_types(self):
198
198
  """
@@ -234,7 +234,7 @@ float64[7] joint_angles"""
234
234
  codecs.lookup_error("rosmsg").msg_type = self._type
235
235
  try:
236
236
  if self.hand_poses is None:
237
- self.hand_poses = kuavo_msgs.msg.twoArmHandPose()
237
+ self.hand_poses = motion_capture_ik.msg.twoArmHandPose()
238
238
  end = 0
239
239
  _x = self
240
240
  start = end
@@ -315,7 +315,7 @@ float64[7] joint_angles"""
315
315
  codecs.lookup_error("rosmsg").msg_type = self._type
316
316
  try:
317
317
  if self.hand_poses is None:
318
- self.hand_poses = kuavo_msgs.msg.twoArmHandPose()
318
+ self.hand_poses = motion_capture_ik.msg.twoArmHandPose()
319
319
  end = 0
320
320
  _x = self
321
321
  start = end
@@ -388,7 +388,7 @@ def _get_struct_B3I():
388
388
  _struct_B3I = struct.Struct("<B3I")
389
389
  return _struct_B3I
390
390
  class fkSrv(object):
391
- _type = 'kuavo_msgs/fkSrv'
391
+ _type = 'motion_capture_ik/fkSrv'
392
392
  _md5sum = 'b89cc987a02b6d1c2a1588d5659bf064'
393
393
  _request_class = fkSrvRequest
394
394
  _response_class = fkSrvResponse
@@ -1,29 +1,29 @@
1
1
  # This Python file uses the following encoding: utf-8
2
- """autogenerated by genpy from kuavo_msgs/twoArmHandPoseCmdSrvRequest.msg. Do not edit."""
2
+ """autogenerated by genpy from motion_capture_ik/twoArmHandPoseCmdSrvRequest.msg. Do not edit."""
3
3
  import codecs
4
4
  import sys
5
5
  python3 = True if sys.hexversion > 0x03000000 else False
6
6
  import genpy
7
7
  import struct
8
8
 
9
- import kuavo_msgs.msg
9
+ import motion_capture_ik.msg
10
10
  import std_msgs.msg
11
11
 
12
12
  class twoArmHandPoseCmdSrvRequest(genpy.Message):
13
13
  _md5sum = "2b372ee6cf4101587f773b62c6572c72"
14
- _type = "kuavo_msgs/twoArmHandPoseCmdSrvRequest"
14
+ _type = "motion_capture_ik/twoArmHandPoseCmdSrvRequest"
15
15
  _has_header = False # flag to mark the presence of a Header object
16
16
  _full_text = """twoArmHandPoseCmd twoArmHandPoseCmdRequest
17
17
 
18
18
  ================================================================================
19
- MSG: kuavo_msgs/twoArmHandPoseCmd
19
+ MSG: motion_capture_ik/twoArmHandPoseCmd
20
20
  twoArmHandPose hand_poses
21
21
  # params for the IK solver
22
22
  bool use_custom_ik_param
23
23
  bool joint_angles_as_q0
24
24
  ikSolveParam ik_param
25
25
  ================================================================================
26
- MSG: kuavo_msgs/twoArmHandPose
26
+ MSG: motion_capture_ik/twoArmHandPose
27
27
  Header header
28
28
  armHandPose left_pose
29
29
  armHandPose right_pose
@@ -44,7 +44,7 @@ time stamp
44
44
  string frame_id
45
45
 
46
46
  ================================================================================
47
- MSG: kuavo_msgs/armHandPose
47
+ MSG: motion_capture_ik/armHandPose
48
48
  float64[3] pos_xyz
49
49
  float64[4] quat_xyzw
50
50
 
@@ -52,7 +52,7 @@ float64[3] elbow_pos_xyz
52
52
 
53
53
  float64[7] joint_angles
54
54
  ================================================================================
55
- MSG: kuavo_msgs/ikSolveParam
55
+ MSG: motion_capture_ik/ikSolveParam
56
56
  # snopt params
57
57
  float64 major_optimality_tol
58
58
  float64 major_feasibility_tol
@@ -63,7 +63,7 @@ float64 oritation_constraint_tol
63
63
  float64 pos_constraint_tol # work when pos_cost_weight > 0.0
64
64
  float64 pos_cost_weight"""
65
65
  __slots__ = ['twoArmHandPoseCmdRequest']
66
- _slot_types = ['kuavo_msgs/twoArmHandPoseCmd']
66
+ _slot_types = ['motion_capture_ik/twoArmHandPoseCmd']
67
67
 
68
68
  def __init__(self, *args, **kwds):
69
69
  """
@@ -83,9 +83,9 @@ float64 pos_cost_weight"""
83
83
  super(twoArmHandPoseCmdSrvRequest, self).__init__(*args, **kwds)
84
84
  # message fields cannot be None, assign default values for those that are
85
85
  if self.twoArmHandPoseCmdRequest is None:
86
- self.twoArmHandPoseCmdRequest = kuavo_msgs.msg.twoArmHandPoseCmd()
86
+ self.twoArmHandPoseCmdRequest = motion_capture_ik.msg.twoArmHandPoseCmd()
87
87
  else:
88
- self.twoArmHandPoseCmdRequest = kuavo_msgs.msg.twoArmHandPoseCmd()
88
+ self.twoArmHandPoseCmdRequest = motion_capture_ik.msg.twoArmHandPoseCmd()
89
89
 
90
90
  def _get_types(self):
91
91
  """
@@ -129,7 +129,7 @@ float64 pos_cost_weight"""
129
129
  codecs.lookup_error("rosmsg").msg_type = self._type
130
130
  try:
131
131
  if self.twoArmHandPoseCmdRequest is None:
132
- self.twoArmHandPoseCmdRequest = kuavo_msgs.msg.twoArmHandPoseCmd()
132
+ self.twoArmHandPoseCmdRequest = motion_capture_ik.msg.twoArmHandPoseCmd()
133
133
  end = 0
134
134
  _x = self
135
135
  start = end
@@ -217,7 +217,7 @@ float64 pos_cost_weight"""
217
217
  codecs.lookup_error("rosmsg").msg_type = self._type
218
218
  try:
219
219
  if self.twoArmHandPoseCmdRequest is None:
220
- self.twoArmHandPoseCmdRequest = kuavo_msgs.msg.twoArmHandPoseCmd()
220
+ self.twoArmHandPoseCmdRequest = motion_capture_ik.msg.twoArmHandPoseCmd()
221
221
  end = 0
222
222
  _x = self
223
223
  start = end
@@ -301,19 +301,19 @@ def _get_struct_7d():
301
301
  _struct_7d = struct.Struct("<7d")
302
302
  return _struct_7d
303
303
  # This Python file uses the following encoding: utf-8
304
- """autogenerated by genpy from kuavo_msgs/twoArmHandPoseCmdSrvResponse.msg. Do not edit."""
304
+ """autogenerated by genpy from motion_capture_ik/twoArmHandPoseCmdSrvResponse.msg. Do not edit."""
305
305
  import codecs
306
306
  import sys
307
307
  python3 = True if sys.hexversion > 0x03000000 else False
308
308
  import genpy
309
309
  import struct
310
310
 
311
- import kuavo_msgs.msg
311
+ import motion_capture_ik.msg
312
312
  import std_msgs.msg
313
313
 
314
314
  class twoArmHandPoseCmdSrvResponse(genpy.Message):
315
315
  _md5sum = "7dba8c11b6c3ac9ec243b4520ad906c7"
316
- _type = "kuavo_msgs/twoArmHandPoseCmdSrvResponse"
316
+ _type = "motion_capture_ik/twoArmHandPoseCmdSrvResponse"
317
317
  _has_header = False # flag to mark the presence of a Header object
318
318
  _full_text = """bool success
319
319
  bool with_torso
@@ -325,7 +325,7 @@ float64 time_cost # unit: ms
325
325
  twoArmHandPose hand_poses
326
326
 
327
327
  ================================================================================
328
- MSG: kuavo_msgs/twoArmHandPose
328
+ MSG: motion_capture_ik/twoArmHandPose
329
329
  Header header
330
330
  armHandPose left_pose
331
331
  armHandPose right_pose
@@ -346,7 +346,7 @@ time stamp
346
346
  string frame_id
347
347
 
348
348
  ================================================================================
349
- MSG: kuavo_msgs/armHandPose
349
+ MSG: motion_capture_ik/armHandPose
350
350
  float64[3] pos_xyz
351
351
  float64[4] quat_xyzw
352
352
 
@@ -354,7 +354,7 @@ float64[3] elbow_pos_xyz
354
354
 
355
355
  float64[7] joint_angles"""
356
356
  __slots__ = ['success','with_torso','q_arm','q_torso','time_cost','hand_poses']
357
- _slot_types = ['bool','bool','float64[]','float64[]','float64','kuavo_msgs/twoArmHandPose']
357
+ _slot_types = ['bool','bool','float64[]','float64[]','float64','motion_capture_ik/twoArmHandPose']
358
358
 
359
359
  def __init__(self, *args, **kwds):
360
360
  """
@@ -384,14 +384,14 @@ float64[7] joint_angles"""
384
384
  if self.time_cost is None:
385
385
  self.time_cost = 0.
386
386
  if self.hand_poses is None:
387
- self.hand_poses = kuavo_msgs.msg.twoArmHandPose()
387
+ self.hand_poses = motion_capture_ik.msg.twoArmHandPose()
388
388
  else:
389
389
  self.success = False
390
390
  self.with_torso = False
391
391
  self.q_arm = []
392
392
  self.q_torso = []
393
393
  self.time_cost = 0.
394
- self.hand_poses = kuavo_msgs.msg.twoArmHandPose()
394
+ self.hand_poses = motion_capture_ik.msg.twoArmHandPose()
395
395
 
396
396
  def _get_types(self):
397
397
  """
@@ -443,7 +443,7 @@ float64[7] joint_angles"""
443
443
  codecs.lookup_error("rosmsg").msg_type = self._type
444
444
  try:
445
445
  if self.hand_poses is None:
446
- self.hand_poses = kuavo_msgs.msg.twoArmHandPose()
446
+ self.hand_poses = motion_capture_ik.msg.twoArmHandPose()
447
447
  end = 0
448
448
  _x = self
449
449
  start = end
@@ -555,7 +555,7 @@ float64[7] joint_angles"""
555
555
  codecs.lookup_error("rosmsg").msg_type = self._type
556
556
  try:
557
557
  if self.hand_poses is None:
558
- self.hand_poses = kuavo_msgs.msg.twoArmHandPose()
558
+ self.hand_poses = motion_capture_ik.msg.twoArmHandPose()
559
559
  end = 0
560
560
  _x = self
561
561
  start = end
@@ -655,7 +655,7 @@ def _get_struct_d3I():
655
655
  _struct_d3I = struct.Struct("<d3I")
656
656
  return _struct_d3I
657
657
  class twoArmHandPoseCmdSrv(object):
658
- _type = 'kuavo_msgs/twoArmHandPoseCmdSrv'
658
+ _type = 'motion_capture_ik/twoArmHandPoseCmdSrv'
659
659
  _md5sum = '4cedfbf98f38ce7e92b358cb2d3ef39d'
660
660
  _request_class = twoArmHandPoseCmdSrvRequest
661
661
  _response_class = twoArmHandPoseCmdSrvResponse
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kuavo-humanoid-sdk
3
- Version: 1.1.3a1252
3
+ Version: 1.1.6
4
4
  Summary: A Python SDK for kuavo humanoid robot.
5
5
  Home-page: https://gitee.com/leju-robot/kuavo-ros-opensource/
6
6
  Author: ['lejurobot']
@@ -22,7 +22,6 @@ Requires-Python: >=3.8
22
22
  Description-Content-Type: text/markdown
23
23
  Requires-Dist: numpy
24
24
  Requires-Dist: transitions
25
- Requires-Dist: roslibpy
26
25
 
27
26
  # Kuavo Humanoid SDK
28
27