Skip to content

Commit 5bd6b71

Browse files
committed
Add information about the kinematics in README.md
1 parent 917a555 commit 5bd6b71

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,55 @@ quat2angle(q, "XYZ")
492492
Rotations.EulerAngles{Float64}(0.7853981633974484, 0.0, -0.0, "XYZ")
493493
```
494494

495+
## Kinematics
496+
497+
### Direction Cosine Matrix
498+
499+
The user can use this function
500+
501+
function ddcm(Dba, wba_b)
502+
503+
to obtain the time-derivative of a DCM. In this case, `Dba` is a DCM that
504+
rotates the reference frame `a` into alignment to reference frame `b` in which
505+
the angular velocity of `b` with respect to `a` and represented in `b` is
506+
`wba_b`.
507+
508+
**Example**
509+
510+
The following code can be used to integrate a DCM by one sampling step Δ:
511+
512+
```julia
513+
dDba = ddcm(Dba,wba_b)
514+
Dba = Dba + dDba*Δ
515+
```
516+
517+
**NOTE**: In this case, the sampling step must be small to avoid numerical
518+
problems. To avoid that, use better integration algorithms.
519+
520+
### Quaternions
521+
522+
The user can use this function
523+
524+
function dquat(qba, wba_b)
525+
526+
to obtain the time-derivative of a quaternion. In this case, `qba` is a
527+
quaternion that rotates the reference frame `a` into alignment to reference
528+
frame `b` in which the angular velocity of `b` with respect to `a` and
529+
represented in `b` is wba_b.
530+
531+
**Example**
532+
533+
The following code can be used to integrate a quaternion by one sampling step Δ:
534+
535+
```julia
536+
dqba = dquat(qba,wba_b)
537+
qba = qba + dqba*Δ
538+
qba = qba/norm(qba)
539+
```
540+
541+
**NOTE**: In this case, the sampling step must be small to avoid numerical
542+
problems. To avoid that, use better integration algorithms.
543+
495544
## Remarks
496545

497546
In other to improve the readability of this document, the methods described here

0 commit comments

Comments
 (0)