亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? main.m

?? 機器人路徑規(guī)劃的matlab程序
?? M
字號:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   Vehicle guidance for obstacle avoidance example
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   Kevin Passino
%   Version: 1/25/01
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

clear                % Initialize memory

xmin=[0; 0];         % Set edges of region want to search in
xmax=[30;40];

Nsteps=500;            % Maximum number of steps to produce

% Next set the parameters of the vehicle:

lambda=0.1;  % Step size to take in chosen direction at each move
Ns=16;        % Number of points on circular pattern to sense
r=1;          % Sensing radius
xs=0*ones(2,Ns); % Initialize
Jo(:,1)=0*ones(Ns,1);
Jg(:,1)=0*ones(Ns,1);
J(:,1)=0*ones(Ns,1);
theta(:,1)=0*ones(Ns,1);
for m=2:Ns  % Compute the angles to be used around the circle
	theta(m,1)=theta(m-1,1)+(pi/180)*(360/Ns); 
end

% Goal position of vehicle
xgoal=[25; 25];

% Initial vehicle position
x=[5; 5];

% Weighting parameters for planning (sets priority for being aggresive
% in the direction of the goal vs. avoiding obstacles
w1=1;
w2=1.0000e-04;

% Allocate memory 

x(:,2:Nsteps)=0*ones(2,Nsteps-1);

% The obstacles:

figure(1)
clf
% Plot initial and final positions
plot(5,5,'s',25,25,'x')
axis([0 30 0 30])
hold on
xlabel('x');
ylabel('y');
title('Obstacles (o), initial vehicle (square) and goal (x) positions');
hold on
% Plot obstacle positions (sets obstaclefunction)
plot(20,15,'o',8,10,'o',10,10,'o',12,10,'o',24,20,'o',18,20,'o')
hold off


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Plot the functions:

xx=0:31/100:30;   % For our function the range of values we are considering
yy=xx;

% Compute the obstacle and goal functions

for jj=1:length(xx)
	for ii=1:length(yy)
		zz(ii,jj)=obstaclefunction([xx(jj);yy(ii)],w1);
	end
end
for jj=1:length(xx)
	for ii=1:length(yy)
		zzz(ii,jj)=goalfunction([xx(jj);yy(ii)],xgoal,w2);
	end
end

figure(2)
clf
surf(xx,yy,zz);
%colormap(jet)
% Use next line for generating plots to put in black and white documents.
colormap(white);
xlabel('x');
ylabel('y');
zlabel('w_1J_o');
title('Function w_1J_o showing (scaled) obstacle function values');


figure(3)
clf
contour(xx,yy,zz,25)
colormap(jet)
% Use next line for generating plots to put in black and white documents.
%colormap(white);
xlabel('x');
ylabel('y');
title('Contour map of w_1J_o and initial (square) and goal (x) positions');
hold on
% Plot initial and final positions
plot(5,5,'s',25,25,'x')
hold off

figure(4)
clf
surf(xx,yy,zzz);
view(82,26);
%colormap(jet)
% Use next line for generating plots to put in black and white documents.
colormap(white);
xlabel('x');
ylabel('y');
zlabel('w_2J_g');
title('Goal function (scaled)');
%rotate3d

figure(5)
clf
contour(xx,yy,zzz,25)
colormap(jet)
% Use next line for generating plots to put in black and white documents.
%colormap(gray);
xlabel('x');
ylabel('y');
title('Contour function of w_2J_g and initial (square) and goal (x) positions');
hold on
% Plot initial and final positions
plot(5,5,'s',25,25,'x')
hold off


figure(6)
clf
contour(xx,yy,zz+zzz,50)
colormap(jet)
% Use next line for generating plots to put in black and white documents.
%colormap(gray);
xlabel('x');
ylabel('y');
title('J=w_1J_o + w_2J_g and initial (square) and goal (x) positions');
hold on

% Plot initial and final positions
plot(5,5,'s',25,25,'x')

hold off

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Start the simulation loop 

for k=1:Nsteps

	% Use projection to keep in boundaries (like hitting a wall and staying at it)
	
	x(:,k)=min(x(:,k),xmax);
	x(:,k)=max(x(:,k),xmin);

	% Sense points on circular pattern

	for m=1:Ns
		xs(:,m)=[x(1,k)+r*cos(theta(m,1)); x(2,k)+r*sin(theta(m,1))]; % Point on circular pattern
		Jo(m,1)=obstaclefunction(xs(:,m),w1); % Compute the obstace function (what is
											% sensed at each sensed point
		Jg(m,1)=goalfunction(xs(:,m),xgoal,w2); % Compute how well each point 
												% moves toward the goal
		J(m,1)=Jo(m,1)+Jg(m,1); % Compute function for opt. in planning
	end

	% Next pick the best direction
	
	[val,bestone]=min(J);
	
	% Then, update the vehicle position (pick best direction and move step of lambda that way)
		
	x(:,k+1)=[x(1,k)+lambda*cos(theta(bestone,1)); x(2,k)+lambda*sin(theta(bestone,1))];
	
	% But the vehicle is in a real environment so when it tries to move to that point it
	% only gets to near that point.  To simulate this we perterb the final position.
	
	Deltalambda=0.1*lambda*(2*rand-1); % Set the length perturbation to be up to 10% of the step size
	Deltatheta=2*pi*(2*rand-1); % Set to be 360deg variation from chosen direction
	x(:,k+1)=[x(1,k+1)+Deltalambda*cos(theta(bestone,1)+Deltatheta); ...
	           x(2,k+1)+Deltalambda*sin(theta(bestone,1)+Deltatheta)];
		
end % End main loop...



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Next, provide some plots of the results of the simulation.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

t=0:Nsteps;  % For use in plotting

figure(7) 
clf
plot(t,x(1,:),'k-',t,x(2,:),'k--')
ylabel('x, y')
xlabel('Iteration, k')
title('Vehicle trajectory (x solid, y dashed)')


figure(8) 
clf
contour(xx,yy,zz,25)
% Use next line for generating plots to put in black and white documents.
%colormap(gray);
xlabel('x');
ylabel('y');
title('Vehicle path to avoid obstacles and reach goal');

hold on

plot(x(1,:),x(2,:),'o')

plot(5,5,'s',25,25,'x')

hold off
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% End of program
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
曰韩精品一区二区| 精品91自产拍在线观看一区| 在线播放国产精品二区一二区四区| 欧美系列日韩一区| 欧美成人aa大片| 国产精品福利电影一区二区三区四区| 亚洲愉拍自拍另类高清精品| 免费成人美女在线观看| 成人性视频免费网站| 精品视频一区三区九区| 久久毛片高清国产| 亚洲欧美日韩小说| 久久精品国产澳门| 91年精品国产| 精品久久一区二区三区| 亚洲色图清纯唯美| 另类综合日韩欧美亚洲| 欧美日韩五月天| 国产精品视频看| 日韩和欧美一区二区三区| 东方欧美亚洲色图在线| 欧美日韩大陆在线| 国产精品不卡一区| 久久精品国产久精国产| 色天使色偷偷av一区二区| 精品国产三级电影在线观看| 一区二区三区四区中文字幕| 国产在线精品免费| 欧美视频在线一区二区三区 | 中文字幕在线一区免费| 青青国产91久久久久久| 99久久99久久免费精品蜜臀| 日韩精品一区二区三区三区免费 | 91视频在线观看| 欧美成人在线直播| 一区二区三区在线视频免费观看| 国产一区二区三区免费| 欧美一区二区在线免费观看| 亚洲人成网站影音先锋播放| 国产一区二区三区在线观看免费| 欧美日本一区二区| 亚洲欧美另类久久久精品2019| 国产精品一区二区你懂的| 日韩视频永久免费| 亚洲成人av福利| 色综合咪咪久久| 国产精品网站在线播放| 久草这里只有精品视频| 678五月天丁香亚洲综合网| 亚洲美女免费在线| 不卡的av中国片| 国产午夜精品一区二区| 麻豆视频一区二区| 欧美日韩1234| 中文字幕一区在线| 国产一区激情在线| 日韩欧美一二区| 日韩中文欧美在线| 欧美精品一卡两卡| 亚洲国产精品影院| 欧美日韩中文精品| 一区二区三区在线观看国产| 94-欧美-setu| 国产精品成人一区二区三区夜夜夜| 91精品国产一区二区三区香蕉 | 欧美午夜寂寞影院| 亚洲少妇最新在线视频| 一本大道久久精品懂色aⅴ | 欧美性欧美巨大黑白大战| 亚洲色图都市小说| 99久久精品一区| 亚洲欧洲无码一区二区三区| 粉嫩嫩av羞羞动漫久久久 | 不卡电影一区二区三区| 中文字幕一区二区不卡| 成人av电影免费观看| 国产精品乱人伦一区二区| 粉嫩av一区二区三区粉嫩| 国产免费观看久久| 国产成人免费视频一区| 中文字幕佐山爱一区二区免费| 色综合久久中文字幕综合网| 一区二区三区电影在线播| 欧美在线影院一区二区| 亚洲成人资源网| 91精品国产91久久久久久一区二区 | 午夜av区久久| 欧美一级片在线| 久久国产精品72免费观看| 亚洲精品一区二区三区影院 | 欧美国产一区视频在线观看| 丁香天五香天堂综合| 亚洲色图在线播放| 色哟哟国产精品免费观看| 五月天国产精品| 精品国产免费人成在线观看| 国产麻豆欧美日韩一区| 国产精品素人视频| 色中色一区二区| 亚洲第一综合色| 欧美一激情一区二区三区| 国产一区二区在线视频| 欧美国产日韩a欧美在线观看 | 亚洲综合一区二区三区| 欧美精品丝袜久久久中文字幕| 久久se这里有精品| 中文字幕中文字幕一区| 欧美日韩另类国产亚洲欧美一级| 麻豆成人在线观看| 中文字幕亚洲视频| 欧美久久久久久蜜桃| 久久精品国产亚洲一区二区三区 | 成人国产精品免费观看| 亚洲综合免费观看高清在线观看| 337p亚洲精品色噜噜噜| 国产精品一区二区在线看| 亚洲精品国产品国语在线app| 欧美精品三级日韩久久| 国产成a人亚洲| 亚洲一区二区三区国产| 精品国产一区二区三区久久久蜜月 | 欧美精品一卡二卡| 成人黄色在线视频| 婷婷一区二区三区| 久久久精品国产免费观看同学| 在线亚洲一区二区| 精品在线播放免费| 一区二区三区加勒比av| 久久综合九色综合欧美就去吻 | 亚洲一区二区三区爽爽爽爽爽| 亚洲一区二区三区四区的 | 暴力调教一区二区三区| 日精品一区二区三区| 国产精品毛片久久久久久| 欧美肥妇bbw| 99re热视频这里只精品| 久久成人免费电影| 一区二区三区欧美激情| 久久久青草青青国产亚洲免观| 欧美影院午夜播放| 成人一级片网址| 日本欧美在线观看| 亚洲精品成a人| 国产丝袜美腿一区二区三区| 欧美性猛交xxxxxx富婆| av电影在线观看完整版一区二区| 麻豆成人免费电影| 午夜伦欧美伦电影理论片| 国产精品久久久久久户外露出| 26uuu久久综合| 日韩一区二区三区视频在线| 色哟哟亚洲精品| 99久久精品国产麻豆演员表| 韩国av一区二区三区在线观看| 婷婷综合五月天| 亚洲国产婷婷综合在线精品| 日韩美女啊v在线免费观看| 国产欧美日韩卡一| 久久久久一区二区三区四区| 欧美大片拔萝卜| 欧美福利电影网| 欧美偷拍一区二区| 色婷婷综合久久久久中文一区二区| 国产91丝袜在线观看| 黑人巨大精品欧美黑白配亚洲| 日韩成人dvd| 日韩国产欧美在线播放| 日日摸夜夜添夜夜添亚洲女人| 亚洲高清在线精品| 一级女性全黄久久生活片免费| 亚洲色图.com| 久久国内精品自在自线400部| 欧美成人一区二区三区片免费| 国产91在线观看丝袜| 亚洲超碰精品一区二区| 一区二区高清免费观看影视大全 | 国产91对白在线观看九色| 精品一二三四区| 日本成人超碰在线观看| 亚洲一区在线视频观看| 亚洲女子a中天字幕| 亚洲欧洲在线观看av| 最近中文字幕一区二区三区| 中文字幕在线不卡| 日韩理论在线观看| 综合精品久久久| 亚洲免费毛片网站| 一区二区三区不卡视频在线观看 | 欧美综合视频在线观看| 99精品在线免费| 色综合一区二区| 91久久一区二区| 欧美视频在线播放| 678五月天丁香亚洲综合网| 成人午夜免费电影| 国产成人啪免费观看软件| 亚洲bt欧美bt精品777| 欧美国产日韩在线观看| 欧美精品乱人伦久久久久久| 欧美一区二区播放|