3.5.11 · D4Guidance, Navigation & Control (GNC)

Exercises — Modified Rodrigues parameters — singularity-free, compact

2,743 words12 min readBack to topic

Quick reference (everything you need lives here):

Here is shorthand for (the squared length). The symbol is the skew-symmetric matrix that turns a cross product into a matrix multiply — spelled out fully in L3 below, so don't panic if it looks foreign now.

Figure — Modified Rodrigues parameters — singularity-free, compact

Read figure s01 like this — it is your compass for the whole page. The horizontal axis is the rotation angle ; the blue curve is . Trace it left to right and watch three things: (1) inside the green safe zone () the curve stays below — small, well-behaved numbers; (2) at the orange switch line () it touches exactly — the boundary from the definition above; (3) approaching the red danger wall at it rockets to infinity — the singularity. Every "should I switch?" question below reduces to which side of the orange line does my point sit on?


Level 1 — Recognition

L1.1

State, from memory, the MRP vector in terms of the axis and rotation angle . What is the numerical value of when ?

Recall Solution

WHAT: The definition is . WHY: The direction is the rotation axis itself; the length stores the angle, squeezed through . At : quarter-angle , and . So . On figure s01: this is the single point where the blue curve meets the orange switch line — the boundary case, where (per the policy above) you do not yet switch.

L1.2

Where does the MRP description become singular (blow up)? Give the angle and the corresponding quaternion scalar .

Recall Solution

Singularity at . Then , making the denominator . Dividing by zero → blow-up. On figure s01 this is the red vertical wall the blue curve races toward.

L1.3

True or false: MRPs are mathematically free of any singularity, exactly like quaternions.

Recall Solution

False. MRPs have one singularity, at . What makes them practical is that this singularity is avoidable via the shadow set. Only quaternions and the DCM are globally nonsingular.


Level 2 — Application

L2.1

Rotate about . Compute and confirm you are in the safe zone.

Recall Solution

Step 1 — magnitude. . Why: magnitude is the quarter-angle tangent. Step 2 — direction. Attach that length to the axis: . Step 3 — safety check. , so we are left of the orange line on figure s01 — safe, no switch.

L2.2

Given , find the rotation angle it represents.

Recall Solution

WHY invert: magnitude tells us the quarter-angle. . WHAT: , so . The axis is .

L2.3

Compute from the quaternion route for a rotation about , and verify it matches the axis–angle route.

Recall Solution

Quaternion route. ; . . Axis–angle route. . ✅ Same answer — the two definitions are one and the same.


Level 3 — Analysis

L3.1

Attitude is about . (a) Compute the direct MRP. (b) Decide whether to switch. (c) Compute the shadow set and report its equivalent angle.

Recall Solution

(a) . So . (b) → right of the orange line, heading toward the red wall. Switch. (c) . Component: , so . Equivalent angle: , so . ✅ Same attitude, tiny magnitude.

L3.2

Write out the skew-symmetric matrix explicitly for a general , then evaluate it for .

Recall Solution

WHAT the skew matrix is: for any 3-vector , the matrix is built so that — it turns a cross product into a plain matrix multiply. WHY we want it: the kinematics matrix needs cross-product coupling between axes, and a matrix is what we can multiply and invert. For : Notice the diagonal is always zero and — that is what "skew-symmetric" means.

L3.3

For and body rate rad/s, compute .

Recall Solution

Step 1 — build . , so .

  • Identity term: .
  • Skew term: from L3.2.
  • Outer-product term: has only the entry nonzero: . Step 2 — apply to . Since points along and also points along , the skew term (a cross product of parallel vectors) gives zero. Only the third component survives: third entry . Step 3 — the quarter factor. per second.

Level 4 — Synthesis

L4.1

A controller measures and wants the body rate that produces a desired . Use the inverse kinematics to find .

Recall Solution

WHY the inverse form: control laws prescribe how should move; we must back out the command. The parent note gives with . Step 1. . So . Step 2 — build . . Step 3 — inverse-multiply. . Why the next move is legal — the matrix–vector rule. A matrix times a vector produces a new vector whose entries are 's columns weighted by 's entries: . Here has only its first entry nonzero, so only the first column of survives, scaled by . And the first column of is by definition the first row of , namely . Hence:

L4.2

Show algebraically that the shadow-set switch never increases the magnitude when you cross : prove .

Recall Solution

Start from where . Take the norm: . Interpretation: the switch is a reciprocal map on magnitude. If , the shadow has . The two magnitudes multiply to exactly , and is the fixed point where original and shadow meet — exactly the orange line on figure s01, and exactly why the boundary policy leaves that point alone.


Level 5 — Mastery

L5.1

A spacecraft slews from rest through a large maneuver. Its attitude angle grows steadily: about a fixed axis . Track across these, state exactly when the control law should trigger the shadow switch, and give the magnitude the estimator actually stores immediately after the switch.

Recall Solution

Compute at each waypoint:

  • : → safe.
  • : → safe.
  • : exceeds 1 → switch here.
  • : → would be even larger; already switched. Trigger: the switch fires the first sample where (strict inequality — the boundary does not trigger, per the policy up top), i.e. as crosses — between the and samples. Stored magnitude after switch (at ): , which equals . The estimator now carries a small vector describing the equivalent short-way rotation — smoothly, no blow-up.
Figure — Modified Rodrigues parameters — singularity-free, compact

Read figure s02 like this: it zooms into the window of the same curve. The two green dots on the left are the safe samples (); the two red dots on the right () show where the raw magnitude would keep climbing above the orange line. The gray arrows are the reciprocal hop the switch performs — dropping each red point down to its green diamond shadow, which sits safely back below . That downward hop is the singularity avoidance, made visible.

L5.2

Design question. Suppose you never switched sets and integrated the raw MRP through a full tumble. Describe qualitatively what your integrator would compute near , and contrast with how Euler angles fail at . Which failure is "worse" operationally, and why do MRPs win?

Recall Solution

MRP without switch: as , . The state vector's components explode; the matrix entries (quadratic in ) explode too, and numerical integration diverges. But this is a removable failure — one reciprocal switch keeps forever. Euler angles: gimbal lock at is a structural rank loss — two rotation axes align, a degree of freedom vanishes, and no coordinate relabeling within Euler angles removes it. You must change parameterization entirely. Which is worse: gimbal lock is worse operationally, for two reasons. First, pitch is a routine, frequently visited attitude, whereas a full turn is a rare extreme. Second, the Euler failure is unavoidable inside the representation — the singularity is baked into the geometry — while the MRP failure is dodgeable by a single dot-product test and a reciprocal switch that cost almost nothing. Why MRPs win overall: they combine the minimum parameter count (3, tying Euler angles) with a singularity relocated to (far from normal operation) and rendered unreachable by the shadow set. You get the compactness of Euler angles without gimbal lock, and nearly the robustness of quaternions without the redundant fourth number or its sign ambiguity. That balance — compact, smooth over , singularity avoidable for free — is exactly why MRPs are the preferred small attitude state for many modern control laws.