8000 fix axes count · Eco-yx/robotics-toolbox-python@9bd463c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bd463c

Browse files
committed
fix axes count
1 parent c05f4ca commit 9bd463c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

roboticstoolbox/tools/urdf/urdf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,9 +1693,7 @@ def __init__(
16931693
rot = joint.rpy
16941694

16951695
# Check if axis of rotation/tanslation is not 1
1696-
if np.sum(np.abs(np.array(joint.axis))) == 1 and 1 in np.abs(
1697-
np.array(joint.axis)
1698-
):
1696+
if np.count_nonzero(joint.axis) < 2:
16991697
childlink._ets = rtb.ETS.SE3(trans, rot)
17001698
else:
17011699
# Normalise the joint axis to be along or about z axis

0 commit comments

Comments
 (0)
0