Skip to content

Commit 719a7c9

Browse files
authored
pass tolerance value when calling sub-routines (#99)
1 parent e7715fa commit 719a7c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spatialmath/base/transforms3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ def trlog(
13291329
:seealso: :func:`~trexp` :func:`~spatialmath.base.transformsNd.vex` :func:`~spatialmath.base.transformsNd.vexa`
13301330
"""
13311331

1332-
if ishom(T, check=check, tol=10):
1332+
if ishom(T, check=check, tol=tol):
13331333
# SE(3) matrix
13341334

13351335
[R, t] = tr2rt(T)
@@ -1357,7 +1357,7 @@ def trlog(
13571357
else:
13581358
return Ab2M(S, v)
13591359

1360-
elif isrot(T, check=check):
1360+
elif isrot(T, check=check, tol=tol):
13611361
# deal with rotation matrix
13621362
R = T
13631363
if abs(np.trace(R) + 1) < tol * _eps:

0 commit comments

Comments
 (0)