91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

機器人避障的matlab仿真實現,有源碼,有動畫效果-Robot obstacle avoidance realize the matlab simulation, has source, has animation effects

資源截圖

代碼片段和文件信息

function?Y=compute_angle(XXsumn)%Y是引力,斥力與x軸的角度向量X是起點坐標,Xsum是目標和障礙的坐標向量是(n+1)*2矩陣
??for?i=1:n+1%n是障礙數目
??????deltaXi=Xsum(i1)-X(1)
??????deltaYi=Xsum(i2)-X(2)
??????ri=sqrt(deltaXi^2+deltaYi^2)
??????if?deltaXi>0
??????????theta=asin(deltaXi/ri)
??????else
??????????theta=pi-asin(deltaXi/ri)
??????end
??????if?i==1%表示是目標
??????????angle=theta
??????else
??????????angle=pi+theta
??????end?????
??????Y(i)=angle%保存每個角度在Y向量里面,第一個元素是與目標的角度,后面都是與障礙的角度
??end
??????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????843536??2006-09-13?14:20??bizhangrobot\1.bmp

?????文件?????836184??2006-09-13?14:20??bizhangrobot\2.bmp

?????文件????????562??2006-09-13?14:20??bizhangrobot\compute_angle.m

?????文件????????463??2006-09-13?14:20??bizhangrobot\compute_Attract.m

?????文件???????1065??2006-09-13?14:20??bizhangrobot\compute_repulsion.m

?????文件???????2955??2006-09-13?14:20??bizhangrobot\main.m

?????目錄??????????0??2008-05-22?07:40??bizhangrobot

-----------?---------??----------?-----??----

??????????????1684983????????????????????8


評論

共有 條評論