Ask Your Question
0

Pose from point and two vectors

asked 2013-01-14 02:12:07 -0500

liborw gravatar image

updated 2013-01-14 02:42:01 -0500

Hi,

I have point p, normal n and vector v, which is orthogonal to n. I want to compute the gripper Pose perpendicular with the normal and rotated based on v. In other words the resulting frame should have z axis perpendicular to n and x or y perpendicular to v. How can I compute the orientation quaternion?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-01-14 02:24:50 -0500

dornhege gravatar image

If I understand you correctly you want an orientation/a new coordinate frame that is perpendicular to n, and "directed with v" (but v is not necessarily perpendicular to n).

The easiest might be to create a rotation matrix. n is one entry. A second one can be derived by n cross v. This should make sure that this entry is perpendicular to n and directed from v. The third one should be the cross of the other two.

My guess is that n cross v should go to column 1 and n to column 2, but not guarantees.

edit flag offensive delete link more

Comments

The v is actually orthogonal to n, I have edited the question.

liborw gravatar image liborw  ( 2013-01-14 02:40:55 -0500 )edit

This should make it easier. If I'm not mistaken, just take n, v, n cross v to build the rotation matrix.

dornhege gravatar image dornhege  ( 2013-01-14 02:53:20 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-01-14 02:12:07 -0500

Seen: 304 times

Last updated: Jan 14 '13