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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy