Rotation Matrix notaion

Simbody is useful for internal coordinate and coarse grained molecule modeling, large scale mechanical models like skeletons, and anything else that can be modeled as bodies interconnected by joints, acted upon by forces, and restricted by constraints.
POST REPLY
User avatar
Amit Misra
Posts: 9
Joined: Sat Dec 03, 2022 9:34 pm

Rotation Matrix notaion

Post by Amit Misra » Sat Oct 14, 2023 2:57 am

Hi,
I've been studying the notation used in Simbody, and I've encountered confusion regarding the transform notation. X_BG is "the transform from frame B to frame G."
Vec3 v_B = ~X_GB.R()*v_G;
Vec3 v_B = X_BG*v_G ;

It seems to suggest that X_BG is a transform from frame B to frame G. Yet, in the calculation, it appears to transform from frame G to frame B.
Could you please provide clarity on this notation and its application? I'm trying to understand the underlying logic and consistency in the notation.

Thank you for your time and assistance.

User avatar
Michael Sherman
Posts: 812
Joined: Fri Apr 01, 2005 6:05 pm

Re: Rotation Matrix notaion

Post by Michael Sherman » Sat Oct 14, 2023 4:11 pm

Hi, Amit. Good question!

Terminology for transforms and rotation matrices is tricky, because they serve as both "verb" and "noun" depending on your point of view. As a verb, we have v_B=R_BG * v_G, mapping G to B (as long as you multiply from the left!). The notation ensures you get that correct because you can match the frame letters, BB GG. As a noun, R_BG is the columns of the G frame expressed in the B frame, which you could think of as mapping from B to G. IMO it is better to avoid such ambiguous terminology and stick to disambiguating with unambiguous notation.

For a complete discussion of this notation (we call it "monogram notation") see the documentation Paul Mitiguy and I wrote for Drake, which uses the same notation as we developed for Simbody and OpenSim.

Regards,
Sherm

User avatar
Amit Misra
Posts: 9
Joined: Sat Dec 03, 2022 9:34 pm

Re: Rotation Matrix notaion

Post by Amit Misra » Sat Oct 14, 2023 10:08 pm

Hi Michael,

Thanks for explanation .

POST REPLY