3.5.6 · D4 · HinglishGuidance, Navigation & Control (GNC)

ExercisesQuaternions — definition q = (q₀, q₁, q₂, q₃), unit quaternion constraint

2,362 words11 min read↑ Read in English

3.5.6 · D4 · Physics › Guidance, Navigation & Control (GNC) › Quaternions — definition q = (q₀, q₁, q₂, q₃), unit quaterni

Shuru karne se pehle, ek picture jo poori game tumhare dimag mein fix kar de. Ek unit quaternion ek aisa point hai jo 4-dimensional space mein centre se bilkul ek unit door baithta hai — yeh ek aisi sphere par rehta hai jise hum poori tarah draw nahi kar sakte, isliye hum uska ek slice draw karte hain.

Figure — Quaternions — definition q = (q₀, q₁, q₂, q₃), unit quaternion constraint

Blue circle dekho: yeh unit 3-sphere ki 2D shadow hai. Yellow dot ek valid rotation quaternion hai (yeh circle par baitha hai). Red dot drift ho gaya hai — uske chaar squares ab mein add nahi hote, isliye yeh rotation nahi hai jab tak hum ise renormalize nahi karte (red arrow use snap back karta hai).


L1 — Recognition

Yeh test karta hai ki kya tum ek quaternion ko padh sakte ho aur woh ek law check kar sakte ho jo use obey karna zaroori hai.

Recall Solution 1.1

Test hai unit constraint: . Har ek ke squares ka sum compute karo.

  • (a) valid ✔ (yeh identity hai, "kuch mat karo").
  • (b) valid ✔.
  • (c) valid ✔.
  • (d) valid nahi ✗ (norm hai, pehle normalize karna padega).
Recall Solution 1.2
  • Scalar part = (yeh "kitna twist" wala piece hai).
  • Vector part (yeh "kaunsi axis" wala piece hai).
  • Conjugate sirf vector part ko flip karta hai: .

L2 — Application

Ab tum angle aur axis se quaternions build karte ho, half-angle rule use karke.

Recall Solution 2.1

Formula: . Half-angle isliye use hota hai kyunki vector ko rotate karna ko do baar sandwich mein apply karta hai. Half-angle: , toh , . Norm check: ✔.

Recall Solution 2.2

se match karo.

  • Scalar: .
  • Vector part , aur uski length ke barabar honi chahiye. Hai bhi. Toh unit axis hai , -axis. Yeh ke baare mein rotation hai. (General mein reverse conversion ke liye Axis-Angle Representation dekho.)

L3 — Analysis

Quaternions ko todho: conjugates, inverses, aur non-commuting product.

Recall Solution 3.1

Kyunki ek unit quaternion hai, , isliye — bas vector signs flip karo: Kyun yeh conjugate hona chahiye: exactly tab jab norm ho. ke baare mein rotation ko undo karna ke baare mein rotation hai, jo -component ko negate karne se yahi keh raha hai. ✔

Recall Solution 3.2

Hamilton product: . Yahan , , .

  • Scalar: .
  • Vector: . Ab swap karo. Cross product sign flip karta hai: . Yeh sign se alag hain — lekin ki seedhi picture. term exactly isliye hai kyun rotations bhi commute nahi karte.

L4 — Synthesis

Kayi ideas ek saath combine karo: rotations compose karna, double cover, aur ek chain mein renormalization.

Recall Solution 4.1

Step 1 — har factor banao (half-angle, , ): Step 2 — Hamilton product , ke saath. Maano , toh . , .

  • Scalar: .
  • .
  • .
  • . Vector parts ka sum: . Step 3 — sanity check norm: ✔. Composed object ab bhi ek valid unit quaternion hai, isliye yeh ek legal single rotation hai — Euler angles chain karne ke mukable yeh ek bada advantage hai (Euler Angles and Gimbal Lock).
Recall Solution 4.2

Dono ka ✔, toh dono unit quaternions hain. ke liye: axis ke baare mein, yaani . ke liye: axis ke baare mein. ke baare mein ka turn wahi hai jo ke baare mein ka turn hai (ulti direction mein lambe raaste se jaana tumhe usi jagah pahunchata hai). Sandwich mein, do minus signs cancel ho jaate hain: . Same physical rotation. Yahi double cover hai.


L5 — Mastery

Exactly wahi karo jo ek flight computer har timestep karta hai: integrate karo, drift karo, aur repair karo.

Recall Solution 5.1

(a) Squares ka sum: . . (b) Har component ko norm se divide karo: Naya squares ka sum by construction ✔. (c) Discrete integration rounding error accumulate karta hai, isliye dheere dheere unit sphere se bahar jaata hai; norm se divide karna ise seedha par wapas project karta hai, aur ise ek valid rotation rakhta hai agले Rotation Matrices SO(3) conversion ke liye jo guidance loop ko chahiye.

Recall Solution 5.2

(a) Half-angle : , . Norm: ✔ (ek "pure" quaternion, scalar part , kyunki turns mein hamesha hota hai). (b) Unit ⇒ . (c) = identity ✔. ki ek curiosity note karo: yahan aur , toh yeh rotation apna khud ka inverse hai — do baar ghumane se tum wapas aa jaate ho.


Active Recall

Recall Ek line mein: tum kaise test karoge ki

ek rotation quaternion hai? Check karo .

Recall Ek line mein:

aur diye hain, likho. — aadha angle.

Recall Ek line mein: unit quaternion ka inverse aur kyun.

(vector part flip karo), kyunki .