forked from petercorke/robotics-toolbox-matlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmdl_phantomx.m
55 lines (50 loc) · 1.9 KB
/
mdl_phantomx.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
%MDL_PHANTOMX Create model of PhantomX pincher manipulator
%
% MDL_PHANTOMX is a script that creates the workspace variable px which
% describes the kinematic characteristics of a PhantomX Pincher Robot, a 4
% joint hobby class manipulator by Trossen Robotics.
%
% Also define the workspace vectors:
% qz zero joint angle configuration
%
% Notes::
% - Uses standard DH conventions.
% - Tool centrepoint is middle of the fingertips.
% - All translational units in mm.
%
% Reference::
%
% - http://www.trossenrobotics.com/productdocs/assemblyguides/phantomx-basic-robot-arm.html
% MODEL: Trossen Robotics, PhantomX Pincher, 4DOF, 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
clear L
L(1) = Revolute('d', 40, 'alpha', -pi/2);
L(2) = Revolute('a', -105, 'alpha', pi, 'offset', pi/2);
L(3) = Revolute('a', -105);
L(4) = Revolute('a', -105);
% Note alpha_2 = pi, needed to account for rotation axes of joints 3 and 4 having
% opposite sign to joint 2.
%
% s='Rz(q1) Tz(L1) Ry(q2) Tz(L2) Ry(q3) Tz(L3) Ry(q4) Tz(L4)'
% DHFactor(s)
px = SerialLink(L, 'name', 'PhantomX', 'manufacturer', 'Trossen Robotics', ...
'plotopt', {'tilesize', 50});
qz = [0 0 0 0];
px.tool = trotz(-pi/2) * trotx(pi/2);