Kinematics
Currently, only the kinematics of Direction Cosine Matrices and Quaternions are implemented.
Direction Cosine Matrices
Let A and B be two reference frames in which the angular velocity of B with respect to A, and represented in B, is given by
If $\mathbf{D}_{b}^{a}$ is the DCM that rotates the reference frame A into alignment with the reference frame B, then its time-derivative is
In this package, the time-derivative of this DCM can be computed using the function:
function ddcm(Dba, wba_b)
julia> wba_b = [0.01;0;0];
julia> Dba = angle2dcm(0.5,0,0,:XYZ)
3×3 StaticArrays.SArray{Tuple{3,3},Float64,2,9}:
1.0 0.0 0.0
-0.0 0.877583 0.479426
0.0 -0.479426 0.877583
julia> ddcm(Dba,wba_b)
3×3 StaticArrays.SArray{Tuple{3,3},Float64,2,9}:
-0.0 0.0 0.0
0.0 -0.00479426 0.00877583
0.0 -0.00877583 -0.00479426
Quaternions
Let A and B be two reference frames in which the angular velocity of B with respect to A, and represented in B, is given by
If $\mathbf{q}_{ba}$ is the quaternion that rotates the reference frame A into alignment with the reference frame B, then its time-derivative is
In this package, the time-derivative of this quaternion can be computed using the function:
function dquat(qba, wba_b)
julia> wba_b = [0.01;0;0];
julia> qba = angle2quat(0.5,0,0,:XYZ);
julia> dquat(qba,wba_b)
Quaternion{Float64}:
- 0.0012370197962726147 + 0.004844562108553224.i + 0.0.j + 0.0.k