Rodrigues formula is beautiful, but uneven to sine and cosine. (zz Berkeley's Page)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Rodrigues formula is beautiful, but uneven to sine and cosine. (zz Berkeley's Page)相关的知识,希望对你有一定的参考价值。

Notes originally by Laura Downs and by Alex Berg

CS184: Computing Rotations in 3D


Using the Rodrigues Formula to Compute Rotations

Suppose we are rotating a point, p, in space by an angle, b, (later also called theta) about an axis through the origin represented by the unit vector, a.

First, we create the matrix A which is the linear transformation that computes the cross product of the vector a with any other vector, v.

a x v =
ayvz - azvy
azvx - axvz
axvy - ayvx
=
0 -az ay
az 0 -ax
-ay ax 0
vx
vy
vz
= Av, with A =
0 -az ay
az 0 -ax
-ay ax 0

Now, the rotation matrix can be written in terms of A as

Q = eAb = I + A sin(b) + A2 [1 - cos(b)]

A Geometrical Explanation
Rotation as Vector Components in a 2D Subspace

技术分享

Suppose we are rotating a point, p, in space by an angle, b, about an axis through the origin, represented by the unit vector, a. The component of p parallel to a, ppar a, will not change during the transformation. The component of p perpendicular to a, pper a will rotate about the axis in the plane perpendicular to the axis the same as in 2D The vectors pper a and pbiper ar of the correct length and orientation to act as the x and y vectors in this 2D rotation.
p‘ = ppar a + cos(b) pper a + sin(b) pbiper
p‘ = (p + (a x (a x p))) + cos(b) (-(a x (a x p))) + sin(b) (a x p)
p‘ = p + sin(b) (a x p) + [1 - cos(b)] (a x (a x p))
p‘ = (I + sin(b) A + [1 - cos(b)] A2) p


An Algebraic Explanation
Rotation as a Differential Equation

Suppose we are rotating a point, p, in space by an angle, b (called theta in the formatted equations), about an axis through the origin, represented by the unit vector, a. We will form a differential equation describing the motion of the point from time t=0 to time t=b. Let p(t} be the position of the point at time t. The velocity of the point at any time is


p‘(t) = a x p(t)

Now, if we use the matrix formula for cross products in our differential equation, we have a first order, linear system of differential equations, p‘(t) = A p(t). The solution to that system is known to be p(t) = eAtp(0) so the location of the rotated point will be p(b) = eAbp(0).

Taylor Expansions

Now we need to evaluate eAb, so we examine its Taylor expansion.


技术分享

Considering how we constructed A, it is easy to verify that A^3 = -A Every additional application of A turns the plane of ppar aA^2 in the appropriate places, we get


技术分享

Now, we recognize the Taylor expansions for sin(b) and cos(b) in the above expression and find that


eAb = I + A sin(b) + A2 [1 - cos(b)]
with A =
0 -az ay
az 0 -ax
-ay ax 0

gives us the rotation matrix. This formula is known as Rodrigues‘ Formula.


Useful Note Given an arbitrary rotation matrix, can we find the corresponding rotation axis vecto and the angle of rotation
Consider R=eAb then by some algebra based on A =- At we have, R-Rt = 2Acos( b ) Using this and solving for a unit axis, and an angle we can recover the axis (up to a factor of +/-1) and angle up to a factor of +/- 2pi.

References

  • "A Mathematical Introduction to Robotic Manipulation", Richard M. Murray, Zexiang Li, S. Shankar Sastry, pp. 26-28

 

 


 

以上是关于Rodrigues formula is beautiful, but uneven to sine and cosine. (zz Berkeley's Page)的主要内容,如果未能解决你的问题,请参考以下文章

PHP Error: php@7.3 has been disabled because it is a versioned formula!

罗德里格斯公式的证明

stackoverflow: Why the inital capacity of vector is increasing with the formula 2^N? 为什么vector的capac

MATLAB自定义函数Rodrigues

用于在 Unity3D 中定位 3D 对象的 OpenCV 旋转(Rodrigues)和平移向量

java 07 多态强转