%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PARAMETERS Returns a data structure containing the parameters of the bumper cutting machine. The machine is intended to be used as a working environment for robots. Please load it as: robot.tool=load_robot('example/Delta/effector'); Author: Ángel Rodríguez email: arodgre@gmail.com date: 18/12/2013 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0002 % PARAMETERS Returns a data structure containing the parameters of the 0003 % bumper cutting machine. The machine is intended to be used as a working 0004 % environment for robots. Please load it as: 0005 % 0006 % robot.tool=load_robot('example/Delta/effector'); 0007 % 0008 % Author: Ángel Rodríguez 0009 % email: arodgre@gmail.com date: 18/12/2013 0010 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0011 0012 % Copyright (C) 2012, by Arturo Gil Aparicio 0013 % 0014 % This file is part of ARTE (A Robotics Toolbox for Education). 0015 % 0016 % ARTE is free software: you can redistribute it and/or modify 0017 % it under the terms of the GNU Lesser General Public License as published by 0018 % the Free Software Foundation, either version 3 of the License, or 0019 % (at your option) any later version. 0020 % 0021 % ARTE is distributed in the hope that it will be useful, 0022 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0023 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0024 % GNU Lesser General Public License for more details. 0025 % 0026 % You should have received a copy of the GNU Leser General Public License 0027 % along with ARTE. If not, see <http://www.gnu.org/licenses/>. 0028 function robot = parameters() 0029 0030 robot.name= 'Delta´s effector'; 0031 0032 robot.DH.theta= '[]'; 0033 robot.DH.d='[]'; 0034 robot.DH.a='[]'; 0035 robot.DH.alpha= '[]'; 0036 robot.J=[]; 0037 0038 0039 robot.inversekinematic_fn = ''; 0040 0041 %number of degrees of freedom 0042 robot.DOF = 0; 0043 0044 %rotational: 0, translational: 1 0045 robot.kind=[]; 0046 0047 %minimum and maximum rotation angle in rad 0048 robot.maxangle =[]; %Axis 6: Unlimited (800º default) 0049 0050 %maximum absolute speed of each joint rad/s or m/s 0051 robot.velmax = [];%Axis 6, rad/s 0052 % end effectors maximum velocity 0053 robot.linear_velmax = 0; %m/s 0054 0055 %base reference system 0056 robot.T0 = eye(4); 0057 0058 %definition of the tool center point with respect to the last reference 0059 %system. 0060 %for tools, this TCP usually means the transformation from system 0061 %(X_tool0,Y_tool0,Z_tool0) to (X_tool1,Y_tool1,Z_tool1) 0062 robot.TCP = [1 0 0 0; 0063 0 1 0 0; 0064 0 0 1 0; 0065 0 0 0 1]; 0066 0067 % robot.T0 = [1 0 0 -2260; 0068 % 0 1 0 -1250; 0069 % 0 0 1 0; 0070 % 0 0 0 1]; 0071 0072 %INITIALIZATION OF VARIABLES REQUIRED FOR THE SIMULATION 0073 %position, velocity and acceleration 0074 robot=init_sim_variables(robot); 0075 robot.path = pwd; 0076 0077 0078 % GRAPHICS 0079 robot.graphical.has_graphics=1; 0080 robot.graphical.color = [167 182 177]./255; 0081 %for transparency 0082 robot.graphical.draw_transparent=0; 0083 %draw DH systems 0084 robot.graphical.draw_axes=1; 0085 %DH system length and Font size, standard is 1/10. Select 2/20, 3/30 for 0086 %bigger robots 0087 robot.graphical.axes_scale=1; 0088 0089 %adjust for a default view of the robot 0090 robot.axis=[-0.75 0.75 -0.75 0.75 0 1.2]; 0091 %read graphics files 0092 robot = read_graphics(robot); 0093 0094 %DYNAMICS 0095 robot.has_dynamics=0;