Skip to content

Commit e553dd2

Browse files
committed
feat:1.Friction force identification is compatible with xarm7T;2.tcp and joint scope compatible with xarm7T
1 parent c828ab6 commit e553dd2

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

xarm/core/config/x_config.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@ class Type:
113113
(-1.692969, math.pi), # (-1.75, math.pi),
114114
(-2 * math.pi, 2 * math.pi)
115115
],
116+
Type.XARM7_X13: [
117+
(-2 * math.pi, 2 * math.pi),
118+
(-2.094395, 2.059488), # (-2.18, 2.18),
119+
(-2 * math.pi, 2 * math.pi),
120+
(-3.92699, 0.191986),
121+
(-2 * math.pi, 2 * math.pi),
122+
(-math.pi, 1.692969),
123+
(-2 * math.pi, 2 * math.pi)
124+
]
116125
}
117126
}
118127
TCP_LIMITS = {
@@ -193,6 +202,14 @@ class Type:
193202
(-math.pi, math.pi),
194203
(-math.pi, math.pi)
195204
],
205+
Type.XARM7_X13: [
206+
(-750, 750),
207+
(-750, 750),
208+
(-400, 1000),
209+
(-math.pi, math.pi),
210+
(-math.pi, math.pi),
211+
(-math.pi, math.pi)
212+
]
196213
}
197214
}
198215

xarm/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.13.18'
1+
__version__ = '1.13.19'

xarm/x3/xarm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,8 +1803,9 @@ def iden_joint_friction(self, sn=None):
18031803
axis_map = {5: 'F', 6: 'I', 7: 'S'}
18041804
valid_850 = self.is_850 and sn[0] == 'F' and sn[1] == 'X'
18051805
valid_lite = self.is_lite6 and sn[0] == 'L' and sn[1] == 'I'
1806+
valid_xarm7t = not self.is_850 and not self.is_lite6 and sn[0] == 'C' and sn[1] == 'S'
18061807
valid_xarm = not self.is_850 and not self.is_lite6 and sn[0] == 'X' and sn[1] == axis_map.get(self.axis, '')
1807-
if not (valid_850 or valid_lite or valid_xarm):
1808+
if not (valid_850 or valid_lite or valid_xarm or valid_xarm7t):
18081809
self.log_api_info('iden_joint_friction, sn is not correct, axis={}, type={}, sn={}'.format(self.axis, self.device_type, sn), code=APIState.API_EXCEPTION)
18091810
return APIState.API_EXCEPTION, -1
18101811

0 commit comments

Comments
 (0)