Exercises — Gimbal lock — problem with Euler angles at θ = ±90°
3.5.5 · D4· Physics › Guidance, Navigation & Control (GNC) › Gimbal lock — problem with Euler angles at θ = ±90°
Yeh self-test companion hai parent topic ke liye. Har problem ko solution kholne se pehle khud try karo. Difficulty L1 (kya tum ise pehchante ho?) se L5 (kya tum isse nayi cheezein bana sakte ho?) tak badhti hai.
Yahan sab kuch ZYX / yaw–pitch–roll convention use karta hai jo parent note se liya gaya hai: jisme yaw ( ke baare mein), pitch (naye ke baare mein), roll (sabse naye ke baare mein), aur shorthand hai.
Level 1 — Recognition
L1.1 — Singular angle dhundho
Problem. ZYX convention mein, pitch angle ki kis value/values par gimbal lock hota hai? Teen angles () mein se kaunse do wahan redundant ho jaate hain?
Recall Solution
KYA: Hum defining configuration yaad karte hain. KYUN: Gimbal lock woh pitch value hai jahan roll axis, yaw axis par aa jaata hai. Middle rotation last () axis ko first () axis ke relative mein tilt karta hai. Yeh tab poori tarah overlap karta hai jab tilt ek quarter turn hoti hai: ya . Answer: . Yaw aur roll redundant ho jaate hain (yeh ek effective angle mein combine ho jaate hain); pitch abhi bhi meaningful hai.
L1.2 — Diverging terms ka naam batao
Problem. Euler-rate map mein ke functions hain jo lock par blow up karte hain. Kaun se functions, aur par woh kis value tak jaate hain?
Recall Solution
KYA: Parent note se kinematic matrix padhte hain. KYUN: aur ko feed karne wali entries singular functions carry karti hain. Khatarnak terms hain aur . Jaise hi , , toh dono . Answer: aur .
Level 2 — Application
L2.1 — Rate blow-up, numerically
Problem. , body rate , aur ke saath, par calculate karo. Phir par calculate karo. Kis factor se yeh badha?
Recall Solution
KYA: Kinematic map ki yaw-rate row mein plug in karte hain. KYUN: Hum feel karna chahte hain ki lock ke paas coordinate rate kitni tezi se diverge hoti hai. Relevant row hai . ke saath: , toh par: , toh . par: , toh . Answer: phir ; se 10× zyada kareeb aane par 10× ka jump. Ek finite ek exploding maangta hai.
L2.2 — Kaun sa combination bachta hai?
Problem. par tumne set kiya. Ek aur pair do jo identical orientation produce kare.
Recall Solution
KYA: Collapse rule use karo: " sirf par depend karta hai par." KYUN: Koi bhi pair jiska same difference ho woh same matrix dega. Yahan . Koi bhi lo jinka difference ho, jaise ya . Answer: jaise — jaisa hi .
Level 3 — Analysis
L3.1 — ke liye collapse derive karo
Problem. Parent note kehta hai ki par matrix sirf par depend karta hai. Direct multiplication se dikhao ki par yeh sirf par depend karta hai.
Recall Solution
KYA: set karo aur multiply karo. KYUN: Hum doosre singular pitch ko directly test karte hain, symmetry par blindly trust karne ke bajaye. Pehle, . Multiply out karne par (parent ke case jaisi procedure) milta hai
KAISA DIKHTA HAI: har nonzero off-column entry single combination ka function hai. Answer: ko badhane aur ko ghatane se unchanged rehta hai ⇒ effective DOF hai . Confirmed.
L3.2 — se kyun banta hai
Problem. Geometrically explain karo kyun surviving combination ka sign aur ke beech flip hota hai.

Recall Solution
KYA: Compare karo ki pitch ke baad roll axis kahan jaata hai. KYUN: Combination ka sign is baat se set hota hai ki roll axis yaw axis ke saath parallel land karta hai ya anti-parallel. KAISA DIKHTA HAI: Figure mein, pitch karne se body -axis direction mein point karne lagta hai, toh same size ka yaw aur roll same directed axis ke baare mein co-rotations ki tarah add up hote hain — lekin yaw tilt se pehle apply hota hai aur roll baad mein, aur beech ka flip ek sense reverse karta hai, result mein difference bachta hai. pitch karne se -axis ki taraf point karta hai (anti-parallel), woh intervening sense dobara reverse hota hai, toh ab sum bachta hai. Answer: Middle tilt roll axis ko bheijti hai; us landing direction ka sign dono remaining rotations ke relative sense ko flip karta hai, ko mein badal deta hai.
Level 4 — Synthesis
L4.1 — Jacobian determinant se singularity locate karo
Problem. Euler-rate matrix body rates ko mein map karta hai. Iska inverse (Euler rates ko body rates mein map karta hai) ka determinant hai. Iska use karo yeh argue karne ke liye ki forward map ki singularities exactly hain, aur kahan nahi.
Recall Solution
KYA: Map ki singularity ko determinant ke vanishing se relate karo. KYUN (kaun sa tool aur kyun yeh): Ek linear map invertibility kho deta hai ⇔ uske matrix ka zero determinant hota hai. Yeh the algebraic detector hai "ek direction kuch mein squash ho gayi" — exactly woh DOF loss jo hum dhundh rahe hain. Hum determinant use karte hain kyunki yeh ek single scalar hai jiske zeros sare singular configurations ko ek saath pin down karte hain. Kyunki , forward map precisely wahan blow up karta hai jahan . Pitch range par jo ek chart ke liye use hoti hai, sirf par. KAISA DIKHTA HAI: determinant ek smooth cosine bump hai, par (perfectly invertible) aur dono poles par tak pinch karta hai. Answer: Forward Euler-rate map ki singularities exactly hain; map sirf un poles se door well-conditioned hai, unke paas worst.

L4.2 — Ek "gimbal-lock detector" banao
Problem. Tumhe ek rotation matrix diya gaya hai aur bataya gaya hai ki yeh ZYX Euler angles se aaya hai. Parent ki general ZYX matrix se, pitch recover hoti hai (row 3, column 1) ke through. Explain karo ki directly se kaise detect karo ki tum lock par ho ya paas ho, aur wahan extract karne mein kya galat hota hai.
Recall Solution
KYA: Woh single entry padho jo pitch encode karti hai. KYUN: General ZYX matrix mein entry equal hoti hai ke, doosre do angles se pitch alag karti hai. Lock hai ⇔ ⇔ . Toh lock flag karo jab ek tolerance se ke andar ho, jaise ( ek pole ke andar hai). KYUN yeh toota hai: usual formulas aur woh entries read karte hain jo lock par zero ho gayi hain (parent ki matrix dekho: ). Tum paate ho — undefined. Sirf combination recoverable hai, surviving entries se. Answer: Lock detect karo se; lock ke paas, ambiguity ko convention se split karo (jaise set karo aur solve karo), kyunki sirf uniquely defined hai.
Level 5 — Mastery
L5.1 — Prove karo ki quaternions mein aisi koi singularity nahi hai
Problem. Ek unit quaternion jisme hai, rotation matrix mein map hota hai jisme saari entries mein polynomial hain (koi division nahi). Argue karo ki is representation mein koi orientation nahi hai jahan degree of freedom lost ho, aur iska ek hi redundancy identify karo.
Recall Solution
KYA: Quaternion→ map ki algebraic form ko Euler map se contrast karo. KYUN (kaun sa tool aur kyun): Ek coordinate map ki singularities vanishing quantity se division ya rank-dropping Jacobian ki tarah appear hoti hain. Toh hum map ke formula mein koi bhi aisa denominator inspect karte hain jo zero hit kar sake. Ek unit quaternion se rotation, jaise pehli row ke liye, — pure polynomials, koi nahi, koi denominator nahi. Unit sphere par ki koi value nahi hai jo koi entry blow up kare. Redundancy: aur identical dete hain (dono rows mein , , aur squares jaise products hain, jo sign flip karne par invariant rehte hain). Yeh ek two-to-one cover hai — lekin yeh kabhi ek direction nahi khoता: map ka Jacobian par har jagah full rank rehta hai. KAISA DIKHTA HAI: ko smoothly aur doubly rotation group par bina kisi pinch points ke wrap hota imagine karo — Euler chart ke mukable, jo dono poles par pinch ho jaata hai. Answer: Koi singular orientation nahi (koi lost DOF nahi); ek hi quirk hai woh harmless sign ambiguity . Quaternions aur Singularities of coordinate charts dekho.
L5.2 — Unavoidable-singularity theorem (conceptual)
Problem. Yeh ek topological fact hai ki koi bhi teen angles ka set (ek 3-parameter chart) rotation group ko smoothly har jagah cover nahi kar sakta. Isko dekte hue, kya "better Euler-like set" of three angles design karna possible hai jisme koi gimbal lock kahin na ho? Actual escape kya hai?
Recall Solution
KYA: "Hairy sphere"-style obstruction apply karo: globally 3 parameters se bina singularity ke chartable nahi hai. KYUN: ka ek curved global topology hai (yeh hai); koi bhi single 3-angle chart gol Dharti ke flat map ki tarah hai — yeh zaroor kahin tear ya pinch karega. Tum singularity ko move kar sakte ho (alag axis order lock ko alag pitch par rakhta hai) par kabhi delete nahi kar sakte. Escape: 3-parameter chart par insist mat karo. Ek 4-parameter, one-constraint representation use karo (quaternions: 4 numbers, ) ya -number rotation matrix ( with 6 constraints). Extra parameters tumhe ek smooth global description dete hain redundancy ki cost par — lekin redundancy lost DOF. Answer: Nahi — har 3-angle set mein kahin na kahin lock hogi; fix yeh hai ki internal computation ke liye "three-angle" family se poori tarah bahar niklo (quaternions / rotation matrices), Euler angles sirf human display ke liye convert karo, exactly jaisa parent note ka engineer's fix prescribe karta hai. Rotation matrices SO(3) aur Attitude determination and control dekho.
Flashcards
ZYX gimbal lock kis pitch par hota hai, aur kaun se angles fuse hote hain?
ke paas, body rate se kya milta hai ( ke saath)?
Euler-rate map ke liye kya hai, aur yeh lock kyun locate karta hai?
Quaternions mein gimbal lock kyun nahi hota?
Kya koi 3-angle chart ko singularity-free cover kar sakta hai?
Connections
- Euler angles — yahan exercise ki gayi representation
- Quaternions — L5 mein prove ki gayi singularity-free fix
- Rotation matrices SO(3) — woh group jise parametrise kiya ja raha hai
- Angular velocity kinematics — rate blow-up ka source (L2, L4)
- Attitude determination and control — jahan GNC mein yeh traps bite karte hain
- Singularities of coordinate charts — L5 ke peeche topological obstruction
- Apollo Guidance Computer — woh historic system jise lock ke around design karna pada