ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Pose from point and two vectors

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

liborw gravatar image

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

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 -0600

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 -0600 )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 -0600 )edit

Question Tools

Stats

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

Seen: 484 times

Last updated: Jan 14 '13