Skip to content

Commit 18bfd69

Browse files
committed
use new tr2xyt base function
1 parent 09460b1 commit 18bfd69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎spatialmath/pose2d.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ def xyt(self):
497497
- N>1, return an ndarray with shape=(N,3)
498498
"""
499499
if len(self) == 1:
500-
return np.r_[self.t, self.theta()]
500+
return base.tr2xyt(self.A)
501501
else:
502-
return [np.r_[x.t, x.theta()] for x in self]
502+
return [base.tr2xyt(x) for x in self.A]
503503

504504
def inv(self):
505505
r"""

0 commit comments

Comments
 (0)