What does act
and actInv
do?
#1901
-
I see a lot of code that has lines like data.oMf[bl_id].actInv(data.oMf[id].act(l_sp__F)) and data.oMi[joint.id].actInv(data.oMf[bl_id].act(fext__BL)) I was trying to find more information about Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, I think you understood correctly what those functions do. Using aXb.act() will transform coordinates of point p in frame B into coordinates of point p in frame A. And aXb.actInv() will transform coordinates of point p in frame A into coordinates of point p in frame B. |
Beta Was this translation helpful? Give feedback.
-
If you are not sure about the usage of a concept like
I hope this can additionally help you. |
Beta Was this translation helpful? Give feedback.
Hi,
I think you understood correctly what those functions do.
Using aXb.act() will transform coordinates of point p in frame B into coordinates of point p in frame A.
${}^ay = {}^aM_b{}^bp$
And aXb.actInv() will transform coordinates of point p in frame A into coordinates of point p in frame B.
${}^by = {}^bM_a{}^ap$