Code covered by the BSD License
Highlights from
scm
-
geo(a,b)
GEO(A,B) Geometric Operator
-
h2j(H,v,o)
H2J(H, Manipulator, Option) Homogeneous Transformation to Jacobian Matrix
-
hrx (c,o)
HRX(ANGLE) or HRX(ANGLE,"OPTION") Homogeneous Rotation over X-axis.
-
hry (b,o)
HRY(ANGLE) or HRY(ANGLE,"OPTION") Homogeneous Rotation over Y-axis.
-
hrz (a,o)
HRZ(ANGLE) or HRZ(ANGLE,"OPTION") Homogeneous Rotation over Z-axis.
-
htx (x)
HTX(x) Homogeneous translation over X-axis
-
hty (y)
HTY(y) Homogeneous translation over Y-axis
-
htz (z)
HTZ(z) Homogeneous translation over Z-axis
-
ik2q (M,o)
IK2Q(M, OPTION) Auxiliary: Inverse Kinematics
-
qrand (n,q)
QRAND(Manipulator, Option(numeric joint variables))
-
s2d (matrix,q,o)
-
scm (robot,op1,op2)
SCM (MANIPULATOR,OPTION1,OPTION2) - Sistema Coordenado Movel - (Mobile Coordinate System)
-
scm2dh(manipulator)
SCM2DH(MANIPULATOR) SCM parameters to modified D&H parameters.
-
scm_cloos.m
-
scm_kr100p.m
-
scm_kr125.m
-
scm_kr2150k.m
-
scm_kr2150s.m
-
scm_menu1.m
-
scm_menu2.m
-
scm_menu3.m
-
scm_onelink.m
-
scm_puma560.m
-
scm_puma560x.m
-
scm_puma600.m
-
scm_scara.m
-
scm_scorbot.m
-
scm_stanford.m
-
scm_uw.m
-
scm_yosokawa.m
-
scmdemo.m
-
View all files
from
scm
by Reinaldo Mauricio do Nascimento
Robotic Manipulator Kinematics
|
| ik2q (M,o)
|
function d = ik2q (M,o)
%IK2Q(M, OPTION) Auxiliary: Inverse Kinematics
%July ~ December 2005, by Reinaldo M. do Nascimento
for i=1:size(M,1)
d(i)=double(M(i,2));
if (nargin==2) & (M(i,3)=='R') & (o=='rad' | o=='deg')
d(i)=mod(d(i),2*pi)';
if o=='rad'
if d(i)>pi,d(i)=d(i)-2*pi;end
elseif o=='deg'
try,d(i)=rad2deg(d(i));catch,d(i)=d(i)*180/pi;end
if d(i)>180,d(i)=d(i)-360;end
end
end
end
|
|
Contact us at files@mathworks.com