資源簡(jiǎn)介
本項(xiàng)目是機(jī)器人課程的一個(gè)課程設(shè)計(jì),能利用A星(A*)算法搜索出最有路徑,包括方格地圖和谷歌地圖,采用matlab開(kāi)發(fā),在地圖上設(shè)置起點(diǎn)終點(diǎn),系統(tǒng)可找出最短路徑

代碼片段和文件信息
function?f?=?anim_zzy1(Kki)
t1?=?(0:1000)/1000*10*pi;
x1?=?cos(t1);
y1?=?sin(t1);
z1?=?-t1;
t2?=?(1:10)/10;
x2?=?x1(end)*(1-t2);
y2?=?y1(end)*(1-t2);
z2?=?z1(end)*ones(size(x2));
t3?=?t2;
z3?=?(1?-?t3)*z1(end);
x3?=?zeros(size(z3));
y3?=?x3;
t4?=?t2;
x4?=?t4;
y4?=?zeros(size(x4));
z4?=?y4;
x?=?[x1?x2?x3?x4];
y?=?[y1?y2?y3?y4];
z?=?[z1?z2?z3?z4];
plot3(xyz‘b‘);
axis?off
h?=?line(‘Color‘[0?1?0]‘Marker‘‘.‘‘MarkerSize‘40‘EraseMode‘‘xor‘);
n?=?length(x);
i?=?1;
j?=?1;
while?1
????set(h‘xdata‘x(i)‘ydata‘y(i)‘zdata‘z(i));
????drawnow;
????pause(0.005);
????i?=?i?+?1;
????if?nargin?==?2&nargout?==?1
????????if(i?==?ki&j?==?1);
????????????f?=?getframe(gcf);
????????end
????end
????if?i>n
????????i?=?1;
????????j?=?j+1;
????????if?j>K
????????????break;
????????end
????end
end
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-04-19?10:20??Routing\
?????文件????????1166??2012-03-27?11:25??Routing\456.xm
?????文件?????????752??2012-04-15?18:32??Routing\ClearScreenGoogle.asv
?????文件?????????752??2012-04-15?18:33??Routing\ClearScreenGoogle.m
?????文件?????????910??2012-04-13?15:23??Routing\ClearScreenMyself.m
?????文件?????????457??2012-04-11?09:38??Routing\Connection.asv
?????文件????????1131??2012-04-11?21:20??Routing\ConnectionGPS.asv
?????文件????????2415??2012-04-17?13:33??Routing\ConnectionPair.m
?????文件?????????803??2012-04-12?16:54??Routing\CreatIndex.asv
?????文件?????????810??2012-04-13?15:23??Routing\CreatIndex.m
?????文件?????????185??2012-04-13?15:24??Routing\DataTrans.m
?????文件????????1160??2012-04-14?11:06??Routing\ExpandGoogle.asv
?????文件????????1452??2012-04-17?12:54??Routing\ExpandGoogle.m
?????文件???????32867??2012-04-16?00:45??Routing\GPS_DATA.asv
?????文件???????32870??2012-04-16?09:05??Routing\GPS_DATA.m
?????文件????????1352??2012-04-03?11:51??Routing\GPS_DATA(先不用).m
?????文件?????????687??2012-04-12?15:04??Routing\GetTransPara.asv
?????文件?????????687??2012-04-12?15:06??Routing\GetTransPara.m
?????文件????????1221??2012-04-13?15:25??Routing\LineEndPointGPS.m
?????文件?????????326??2012-04-14?09:21??Routing\MinOpen.asv
?????文件?????????349??2012-04-14?15:13??Routing\MinOpen.m
?????文件???????18110??2012-04-15?18:32??Routing\Routing.asv
?????文件????????8281??2012-04-18?10:55??Routing\Routing.fig
?????文件???????18134??2012-04-17?13:38??Routing\Routing.m
?????文件????????4096??2012-04-07?11:53??Routing\Routing_activex1
?????文件???????16280??2012-03-27?21:44??Routing\Routing基本功能備份.m
?????文件????????2252??2012-04-15?19:21??Routing\SetGoalGoogle.m
?????文件?????????905??2012-04-13?15:25??Routing\SetGoalMyself.m
?????文件????????1961??2012-04-14?08:11??Routing\SetStartGoogle.asv
?????文件????????2262??2012-04-15?19:33??Routing\SetStartGoogle.m
?????文件?????????881??2012-04-13?15:26??Routing\SetStartMyself.m
............此處省略34個(gè)文件信息
- 上一篇:simuli
nk仿真VSG模型圖 - 下一篇:matlab svm工具箱
評(píng)論
共有 條評(píng)論