-
Notifications
You must be signed in to change notification settings - Fork 4
/
robotproperty.m
60 lines (57 loc) · 1.71 KB
/
robotproperty.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% This file stores parameters for three FANUC robot arms
% LRMate200iD
% LRMate200iD/7L
% M16iB
function robot=robotproperty(id)
robot.name = id;
switch id
case 'LRMate200iD'
robot.nlink=6;
robot.DH=[0,0,0.050,1.5708;
1.5708,0,0.330,0;
0,0,0.035,-1.5708;
0,-0.335,0,1.5708;
0,0,0,-1.5708;
0,-0.080,0,3.1416];%theta,d,a,alpha
robot.base=[0;0;0.329];%origin
case 'LRMate200iD7L'
robot.nlink=6;
robot.DH=[0,0,0.050, -1.5708;
-1.5708,0,0.440,3.1416;
0,0,0.035,-1.5708;
0,-0.42 ,0,1.5708;
0,0,0,-1.5708;
0,-0.080,0,3.1416];%theta,d,a,alpha
robot.base=[0;0;0.329];%origin
case 'M16iB'
%the constants
robot.nlink=6;
robot.DH=[0, 0.65, 0.15, 1.5708;
1.5708, 0, 0.77, 0;
0, 0, 0.1, 1.5708;
0, 0.74, 0, -1.5708;
-pi/2, 0, 0, 1.5708;
pi, 0.1, 0, 0];%theta,d,a,alpha
robot.base=[0;0;0];%origin
case 'KinovaGen3'
%the constants
robot.nlink=6;
q1 = 0;
q2 = 0;
q3 = 0;
q4 = 0;
q5 = 0;
q6 = 0;
q7 = 0;
robot.DH=[
0, (0.1564+0.1284), 0, -pi/2;
pi/8, -(0.0064), 0, -pi/2;
0, -(0.2104+0.2104), 0, pi/2;
pi/4, -(0.0064), 0, pi/2;
pi, -(0.2084+0.1059), 0, pi/2;
-pi/3, 0, 0, -pi/2;
%q7+pi, -(0.1059+0.0615), 0, pi;
];%theta,d,a,alpha
robot.base=[0;0;0];%origin
end
end