8000 fix code for .ad method · flyinger/spatialmath-python@d7a60a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7a60a6

Browse files
committed
fix code for .ad method
1 parent 5369ed8 commit d7a60a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spatialmath/pose3d.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,10 @@ def Ad(self):
260260
:seealso: Twist.ad.
261261
262262
"""
263-
264-
return self.R
263+
return np.array([
264+
[self.R, tr.skew(self.t) @ self.R],
265+
[np.zeros((3, 3)), self.R]
266+
])
265267
# ------------------------------------------------------------------------ #
266268

267269
@staticmethod

0 commit comments

Comments
 (0)
0