CSCE 452 Intro to Robotics Inverse Kinematics 1 CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics Forward/Direct Kinematics: CSCE 452 Intro to Robotics X Given x ο a unique q CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics Workspace CSCE 452 Intro to Robotics • Reachable Workspace • Dexterous Workspace CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics X CSCE 452 Intro to Robotics πΎ πΎ Given X Find q=(ο±1, ο±2, ο±3) Algebraic Solution CSCE 452 Intro to Robotics The kinematics of the example seen before are: ο©c123 ο s123 0 l1c1 ο« l2 c12 οΉ οͺs 123 B 0 οͺ T ο½ T ο½ W 3 οͺ 0 οͺ ο« 0 c123 0 0 0 l1s1 ο« l2 s12 οΊοΊ οΊ 1 0 οΊ 0 1 ο» Assume goal point is specified by 3 numbers: ππΎ π πΎ π΅ ππ = 0 0 −π πΎ ππΎ 0 0 0 π₯ 0 π¦ 1 0 0 1 Algebraic Solution (cont.) By comparison, we get the four equations: cο§ ο½ c123 sο§ ο½ s123 CSCE 452 Intro to Robotics x ο½ l1c1 ο« l2 c12 y ο½ l1s1 ο« l2 s12 Summing the square of the last 2 equations: x 2 ο« y 2 ο½ l 2 ο« l 2 ο« 2l l c 1 2 1 2 2 From here we get an expression for c2 x ο« y οl οl c2 ο½ 2l1l2 2 2 2 1 2 2 Algebraic Solution (III) CSCE 452 Intro to Robotics • When does a solution exist? • What is the physical meaning if no solution exists? • Two solutions for ο±2 are possible. Why? Using c12=c1c2-s1s2 and s12= c1s2-c2s1: x ο½ k1c1 ο k 2 s1 y ο½ k1s1 ο« k 2 c1 where k1=l1+l2c2 and k2=l2s2. To solve these eqs, set π = π12 + π22 and φ= π΄ππ΄π2(π2 , π1 ) Algebraic Solution (IV) k1 CSCE 452 Intro to Robotics φ l2 ο±2 k2 l1 Then: k1=r cos φ , k2=r sin φ , and we can write: x/r= cos φ cos ο±1 - sin φ sin ο±1 y/r= cos φ cos ο±1 - sin φ sin ο±1 or: cos(φ +ο±1) = x/r, sin(φ +ο±1) =y/r CSCE 452 Intro to Robotics Algebraic Solution (IV) Therefore: φ+ο±1 = Atan2(y/r,x/r) = Atan2(y,x) and so: ο±1 = Atan2(y,x) - Atan2(k2,k1) Finally, ο±3 can be solved from: ο±1+ ο±2+ ο±3 = γ Geometric Solution IDEA: Decompose spatial geometry into several plane geometry problems CSCE 452 Intro to Robotics y L2 L1 x Applying the “law of cosines.” CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics CSCE 452 Intro to Robotics