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

  • 大小: 18KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-09
  • 語(yǔ)言: 其他
  • 標(biāo)簽: 路徑規(guī)劃??

資源簡(jiǎn)介

非常好的機(jī)遇人工勢(shì)場(chǎng)法編寫(xiě)的路徑規(guī)劃程序,可以實(shí)現(xiàn)自動(dòng)避障功能,很適合初學(xué)者研究學(xué)習(xí)

資源截圖

代碼片段和文件信息

function?Y=compute_angle(XXsumn)%Y是引力,斥力與x軸的角度向量X是起點(diǎn)坐標(biāo),Xsum是目標(biāo)和障礙的坐標(biāo)向量是(n+1)*2矩陣
??for?i=1:n+1%n是障礙數(shù)目
??????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%表示是目標(biāo)
??????????angle=theta
??????else
??????????angle=pi+theta
??????end?????
??????Y(i)=angle%保存每個(gè)角度在Y向量里面,第一個(gè)元素是與目標(biāo)的角度,后面都是與障礙的角度
??end
??????

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

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

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

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

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

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

?????文件???????2966??2010-01-19?09:12??RobotPathPlanningAndAvoidceObstacles\main.m

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

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

??????????????1684776????????????????????7


評(píng)論

共有 條評(píng)論

相關(guān)資源