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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy