赞
踩
L(1)=Link([1,2,3,4],'modified')
L =
theta=q, d= 2, a= 3, alpha= 4, offset= 0 (R,modDH)
L(1).RP
ans =
'R'
L(1).theta
ans =
1
L(1).d
ans =
2
L(1).a
ans =
3
L(1).alpha
ans =
4
L(1).sigma
ans =
0
L(1).mdh
ans =
1
L(1)=Link([0,0,0,0],'modified');
L(2)=Link([1.25,pi/2,0,pi/2],'modified');
L(3)=Link([10.5,0,0,pi/2],'modified');
L(4)=Link([0,pi/2,13,-pi],'modified');
L(5)=Link([0,pi/2,0,-pi],'modified');
L(6)=Link([0,pi/2,10,-pi],'modified');
Six_Link=SerialLink ([L(1),L(2),L(3),L(4),L(5),L(6)]);
Properties (read only)::
n number of joints
config joint configuration string, eg. 'RRRRRR'
mdh kinematic convention boolean (0=DH, 1=MDH)
theta kinematic: joint angles (1xN)
d kinematic: link offsets (1xN)
a kinematic: link lengths (1xN)
alpha kinematic: link twists (1xN)
Properties (read/write)::
links vector of Link objects (1xN)
gravity direction of gravity [gx gy gz]
base pose of robot's base (4x4 homog xform)
tool robot's tool transform, T6 to tool tip (4x4 homog xform)
qlim joint limits, [qmin qmax] (Nx2)
offset kinematic joint coordinate offsets (Nx1)
name name of robot, used for graphical display
manuf annotation, manufacturer's name
comment annotation, general comment
plotopt options for plot() method (cell array)
fast use MEX version of RNE. Can only be set true if the mex
file exists. Default is true.
SerialLink Serial-link robot class A concrete class that represents a serial-link arm-type robot. The mechanism is described using Denavit-Hartenberg parameters, one set per joint. Methods:: plot display graphical representation of robot plot3d display 3D graphical model of robot teach drive the graphical robot getpos get position of graphical robot - jtraj a joint space trajectory - edit display and edit kinematic and dynamic parameters - isspherical test if robot has spherical wrist islimit test if robot at joint limit isconfig test robot joint configuration - fkine forward kinematics A link transforms trchain forward kinematics as a chain of elementary transforms - ikine6s inverse kinematics for 6-axis spherical wrist revolute robot ikine inverse kinematics using iterative numerical method ikunc inverse kinematics using optimisation ikcon inverse kinematics using optimisation with joint limits ikine_sym analytic inverse kinematics obtained symbolically - jacob0 Jacobian matrix in world frame jacobn Jacobian matrix in tool frame jacob_dot Jacobian derivative maniplty manipulability vellipse display velocity ellipsoid fellipse display force ellipsoid qmincon null space motion to centre joints between limits - accel joint acceleration coriolis Coriolis joint force dyn show dynamic properties of links friction friction force gravload gravity joint force inertia joint inertia matrix cinertia Cartesian inertia matrix nofriction set friction parameters to zero rne inverse dynamics fdyn forward dynamics - payload add a payload in end-effector frame perturb randomly perturb link dynamic parameters gravjac gravity load and Jacobian paycap payload capacity pay payload effect - sym a symbolic version of the object gencoords symbolic generalized coordinates genforces symbolic generalized forces issym test if object is symbolic
%参数的设定
a0=10;
a1=20;
d=30;
Theta1=0;
Theta2=0;
Theta3=0;
%使用Link类函数,基于DH法建模(改进型)
L(1)=Link([0,a0,0,0],'modified');
L(2)=Link([0,d,0,-pi/2],'modified');
L(3)=Link([0,a1,0,pi/2],'modified');
%使用Seriallink类函数把我们上面使用Link函数建立的连杆连成一个整体,生成一个串联机械臂模型
Three_Link=SerialLink ([L(1),L(2),L(3)]);
%使用.display显示出我们建立的这个机械臂模型的信息
Three_Link.display
%使用.teach查看我们建立机械臂三维模型,可以对关节变量的值进行修改
Three_Link.teach
%使用.plot绘制出某组关节变量的机械臂三维模型
Three_Link.plot([0,0,0])
%参数的设定 a0=10; a1=20; d=30; Theta1=0; Theta2=0; Theta3=0; %使用Link类函数,基于DH法建模(改进型) L(1)=Link([0,a0,0,0],'modified'); L(2)=Link([0,d,0,-pi/2],'modified'); L(3)=Link([0,a1,0,pi/2],'modified'); %使用Seriallink类函数把我们上面使用Link函数建立的连杆连成一个整体,生成一个串联机械臂模型 Three_Link=SerialLink ([L(1),L(2),L(3)]); %使用.plot绘制出某组关节变量的机械臂三维模型 % Three_Link.plot([0,0,0]) %使用.display显示出我们建立的这个机械臂模型的信息 Three_Link.display %使用.teach查看我们建立机械臂三维模型,可以对关节变量的值进行修改 Three_Link.teach
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。