You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
318 B

xg = [5 5 pi/2];
clf
axis([0 10 0 10]);
hold on
xyzlabel
grid on
xc = 5; yc = 5;
N = 8;
radius = 4;
for i=1:N
th = (i-1)*2*pi/N;
x0 = [xc+radius*cos(th) yc+radius*sin(th) 0];
plot_vehicle(x0, 'r');
r = sim('sl_drivepose');
y = r.find('yout');
plot(y(:,1), y(:,2));
end
plot_vehicle(xg, 'r');