function [S, G, randVmin, randVmax, L1, L2, threshold] = setParams() %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %function [S, G, randVmin, randVmax, L1, L2] = setParams() % % Task: defines the parameters that are necessary to the running scrpits % so we don't have to define them at the beginning of each scrpit % and we can change them here once, the changes will be taken in account everywhere % % % Inputs: % % Outputs: %-S: x y coordinates of the start point %-G: x y coordinates of the goal point %-randVmin: minimum limit for the random values %-randVmax: maximum limit for the random values %-L1: length of the first link of the 2d planar 2 link robot arm %-L2: length of the second link of the 2d planar 2 link robot arm % % % Thomas OLIVE (thomas.olive@ecam.fr) % 18/12/2021 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% addpath("C:/Users/Admin/Documents/ProjectMotionPlanning/motion_planning"); S = [2, 0]; G = [-2, 0]; randVmin = -180; randVmax = 180; L1 = 2; L2 = 1; threshold =0.000001; endfunction