Skip to content

Commit a0b8c2d

Browse files
committed
make trplot supports list of T - SE3 only
1 parent ca5bb36 commit a0b8c2d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎spatialmath/base/animate.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,11 @@ def trplot(self, end, start=None, **kwargs):
106106
:seealso: :func:`run`
107107
108108
"""
109-
if isinstance(end, Iterable):
109+
if not isinstance(end, (np.ndarray, np.generic) ) and isinstance(end, Iterable):
110110
if len(end) == 1:
111111
end = end[0]
112112
elif len(end) >= 2:
113113
self.trajectory = end
114-
start = self.trajectory[0]
115-
end = self.trajectory[-1]
116114

117115
# stash the final value
118116
if base.isrot(end):

0 commit comments

Comments
 (0)