From 7307438e3f409ad109b6320cd91acd2307e12c67 Mon Sep 17 00:00:00 2001 From: Gavin Suddrey <38273521+suddrey-qut@users.noreply.github.com> Date: Wed, 24 Nov 2021 10:50:49 +1000 Subject: [PATCH] Update pose3d.py Fixing an issue where passing check=False to SE3.Rt still results in invalid constructor errors for certain rotation matrices. --- spatialmath/pose3d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spatialmath/pose3d.py b/spatialmath/pose3d.py index bfa63c94..7abeddfd 100644 --- a/spatialmath/pose3d.py +++ b/spatialmath/pose3d.py @@ -1567,7 +1567,7 @@ def Rt(cls, R, t, check=True): else: raise ValueError('expecting SO3 or rotation matrix') - return cls(base.rt2tr(R, t)) + return cls(base.rt2tr(R, t, check=check), check=check) def angdist(self, other, metric=6): r"""