%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PARAMETERS Returns a data structure containing the parameters of a car bodywork. The bodywork is intended to be used is intended to be used as a working environment for robots. Please load it as: robot.environment = load_robot('environment','bodywork') Author: Arturo Gil. Universidad Miguel Hernández de Elche. email: arturo.gil@umh.es date: 05/12/2012 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0002 % PARAMETERS Returns a data structure containing the parameters of a car 0003 % bodywork. The bodywork is intended to be used is intended to be used as a working 0004 % environment for robots. Please load it as: 0005 % 0006 % robot.environment = load_robot('environment','bodywork') 0007 % 0008 % Author: Arturo Gil. Universidad Miguel Hernández de Elche. 0009 % email: arturo.gil@umh.es date: 05/12/2012 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= 'CAR BODYWORK'; 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 robot.T0 = [1 0 0 2; 0058 0 1 0 0; 0059 0 0 1 0; 0060 0 0 0 1]; 0061 0062 %definition of the tool center point with respect to the last reference 0063 %system. 0064 %for tools, this TCP usually means the transformation from system 0065 %(X_tool0,Y_tool0,Z_tool0) to (X_tool1,Y_tool1,Z_tool1) 0066 robot.TCP = [1 0 0 0; 0067 0 1 0 0; 0068 0 0 1 0; 0069 0 0 0 1]; 0070 0071 %INITIALIZATION OF VARIABLES REQUIRED FOR THE SIMULATION 0072 %position, velocity and acceleration 0073 robot=init_sim_variables(robot); 0074 robot.path = pwd; 0075 0076 % GRAPHICS 0077 robot.graphical.has_graphics=1; 0078 robot.graphical.color = [80 80 85]./255; 0079 %for transparency 0080 robot.graphical.draw_transparent=0; 0081 %draw DH systems 0082 robot.graphical.draw_axes=1; 0083 %DH system length and Font size, standard is 1/10. Select 2/20, 3/30 for 0084 %bigger robots 0085 robot.graphical.axes_scale=1; 0086 %adjust for a default view of the robot 0087 robot.axis=[-2.75 2.75 -2.75 2.75 0 3.2]; 0088 %read graphics files 0089 robot = read_graphics(robot); 0090 0091 %DYNAMICS 0092 robot.has_dynamics=0;