I want to solve the given 12 equations for finding the joint angles of a manipulator. Is there anyway in matlab to solve them? Here are the equations and code:
syms c1 c2 c3 c4 c5 c6 s1 s2 s3 s4 s5 s6 d2 d3 d6 e1 e2 e3 e4 e5 e6 e7 e8 e9 e10 e11 e12e1=c1*[c2*(c4*c5*c6 - s4*s6) -s2*s5*c6] - s1*(s4*c5*c6 + c4*s6) == 0e2=s1*[c2*(c4*c5*c6 - s4*s6) - s2*s5*c6] + c1*(s4*c5*c6 + c4*s6) == 0e3=-s2*(c4*c5*c6- s4*s6)- c2*s5*c6 == 1e4=c1*[-c2*(c4*c5*s6 + s4*c6) + s2*s5*s6] - s1*(-s4*c5*s6 + c4*c6) == 1e5=s1*[-c2*(c4*c5*s6 + s4*c6) + s2*s5*s6] + c1*(-s4*c5*s6 + c4*c6) == 0e6=s2*(c4*c5*s6 + s4*c6) + c2*s5*s6 == 0e7=c1*(c2*c4*s5 + s2*c5) - s1*s4*s5 == 0e8=s1*(c2*c4*s5 + s2*c5) + c1*s4*s5 == 1e9=-s2*c4*s5 + c2*c5 == 0e10=c1*s2*d3 - s1*0154 + .263*(c1*c2*c4*s5 + c1*c5*s2 -s1*s4*s5) == -0.154e11=s1*s2*d3 + c1*0.154 + .263*(c1*s4*s5 + c2*c4*s1*s5 + c5*s1*s2) == 0.763e12=c2*d3 + .263*(c2*c5 - c4*s2*s5) == 0d6==.253d2==0.154
I tried using solve functions like this:
sol = solve([e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12], [c1, c2, c3, c4, c5, c6, s1, s2, s3, s4, s5, s6, d3]);
But it does not work.
How can I find the values of c1,s1……?
Thank you.
Best Answer