MotionPlanning/mainPRM.m

18 lines
205 B
Mathematica

clear all
close all
points = []
randV = 360;
L1 = 2; %swap
L2 = 1;
for i=1:10
q1 = randi(randV);
q2 = randi(randV);
[x, y] = buildPRM (q1, q2, L1, L2);
points = [points [x;y]];
endfor
points