0
sympyでの回転行列は、右手の法則に準拠していない理由を私は疑問に思う:Sympy方向
import sympy as sym
print(sym.rot_axis3(sym.Symbol('q')))
は出力を生成します。
[[ cos(q), sin(q), 0],
[-sin(q), cos(q), 0],
[0, 0, 1]]
右回転に比較し、どの:
[[cos(q), -sin(q), 0],
[sin(q), cos(q), 0],
[0, 0, 1]]
は、ベクトルを反対方向に回転します。これは問題を認識するまで私の方程式の間違いを探し出すのに数時間かかった。
rot_axis2
およびrot_axis1
についても同様です。
チェックこの:http://mathworld.wolfram.com/RotationMatrix.html、R_z = rot_axis3、http://docs.sympy.org/dev/_modules/sympy/matrices/dense.html – eyllanesc
@eyllanescありがとう!そのような大会については知らなかった。あなたが答えを書くなら私はそれを適用します。 –
私はすでに私の答えを書いています。 – eyllanesc