10000 Multiplication of q*v returns a vector. · vinjk/robotics-toolbox-python@570699c · GitHub
[go: up one dir, main page]

Skip to content

Commit 570699c

Browse files
committed
Multiplication of q*v returns a vector.
1 parent 0c2260e commit 570699c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

robotics-toolbox-python/robot/Quaternion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ def __mul__(self, q2):
245245

246246
if q2.shape == (1,3) or q2.shape == (3,1):
247247
qr = self * quaternion(q2) * self.inv()
248+
return qr.v;
248249
else:
249250
raise ValueError;
250251

0 commit comments

Comments
 (0)
0