forked from petercorke/robotics-toolbox-matlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmdl_p8.m
57 lines (51 loc) · 1.86 KB
/
mdl_p8.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
%MDL_P8 Create model of Puma robot on an XY base
%
% MDL_P8 is a script that creates the workspace variable p8 which is an
% 8-axis robot comprising a Puma 560 robot on an XY base. Joints 1 and 2
% are the base, joints 3-8 are the robot arm.
%
% Also define the workspace vectors:
% qz zero joint angle configuration
% qr vertical 'READY' configuration
% qstretch arm is stretched out in the X direction
% qn arm is at a nominal non-singular configuration
%
% Notes::
% - SI units of metres are used.
%
% References::
% - Robotics, Vision & Control, Sec 7.3.4,
% P. Corke, Springer 2011.
%
% See also SerialLink, mdl_puma560.
% MODEL: Unimation, Puma560, on XY base, redundant, 8DOF, standard_DH
% Copyright (C) 1993-2015, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% RTB is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU Lesser General Public License for more details.
%
% You should have received a copy of the GNU Leser General Public License
% along with RTB. If not, see <http://www.gnu.org/licenses/>.
%
% http://www.petercorke.com
% create the base
platform = SerialLink( [0 0 0 -pi/2 1; -pi/2 0 0 pi/2 1], ...
'base', troty(pi/2), 'name', 'platform' );
% load the standard Puma
mdl_puma560;
% add the pedestal height to link 1
p560.links(1).d = 30 * 0.0254;
% compose the two robots
p8 = SerialLink( [platform, p560], 'name', 'P8');
% set the range for the prismatic links
p8.links(1).qlim=[-1 1]
p8.links(2).qlim=[-1 1]