【路径规划】基于快速行军树实现风场下无人机航迹规划附matlab代码
【路径规划】基于快速行军树实现风场下无人机航迹规划附matlab代码
TT_Matlab
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,完整matlab代码或者程序定制加qq1575304183。
✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
个人主页: Matlab科研工作室
个人信条:格物致知。
更多Matlab仿真内容点击
智能优化算法 神经网络预测 雷达通信 无线传感器 电力系统
信号处理 图像处理 路径规划 元胞自动机 无人机
⛄ 内容介绍
Engine failures are a large cause of concern for mission planners when dealing with the operation of Unmanned Aerial Vehicles (UAVs). This is primarily due to the lack of a skilled pilot on-board who can deal with the resulting loss of control by assessing the environment around them to perform an emergency landing. This has recently become a growing issue due to the fact UAVs are seeing a huge rise in use ranging from a plethora of civilian and military applications. With more UAVs in operation, the chances of a crash landing or collision from a loss of control increase. Therefore an autonomous system which will allow the vehicle to land safely is highly desirable. The challenge is to produce dynamically feasible routes for the unpowered UAV, which consider spatial constraints from a complex obstacle space, as well as temporal constraints for landing in pre-defifined safety zones. This chapter will begin with the motivation and inherent diffiffifficulty in solving such a problem, followed by a brief description of the proposed solution.
⛄ 部分代码
%% generateRoadmap.m
function [nodes, distMatrix, heuristic] = generate_roadmap(npoints,radius,init,final,obs,radius_obstacle,zone)
nodes = [init,final,zone];
distMatrix = zeros(npoints);
heuristic = zeros(1,npoints);
heuristic(1) = norm(final-init);
heuristic(2) = 0;
offset = 2+length(zone);
for i = 1 : npoints-offset
while true
new = init(1)+(final(1)-init(1))*abs(rand(2,1));
if collision_test(new,obs,radius_obstacle)
break;
end
end
heuristic(i+offset) = norm(new-final);
nodes = [nodes, new];
[idx, D] = rangesearch(nodes’, new’, radius);
idx = idx{1};
if length(idx) == 1
continue;
end
D = D{1};
for k = 2 : length(idx)
if edge_test(new,nodes(:,idx(k)),obs,radius_obstacle);
plot([nodes(1,end), nodes(1,idx(k))], [nodes(2,end), nodes(2,idx(k))], ’c’, ’linewidth’, 0.5); % plot the edge
distMatrix(length(nodes),idx(k)) = D(k); % add in symmetric positions in distMatrix
distMatrix(idx(k),length(nodes)) = D(k);
end
end
end
end
⛄ 运行结果
⛄ 参考文献
⛳️ 代码获取关注我
❤️部分理论引用网络文献,若有侵权联系博主删除
❤️ 关注我领取海量matlab电子书和数学建模资料
-
2023年血糖新标准公布,不是3.9-6.1,快来看看你的血糖正常吗? 2023-02-07
-
2023年各省最新电价一览!8省中午执行谷段电价! 2023-01-03
-
GB 55009-2021《燃气工程项目规范》(含条文说明),2022年1月1日起实施 2021-11-07
-
PPT导出高分辨率图片的四种方法 2022-09-22
-
2023年最新!国家电网27家省级电力公司负责人大盘点 2023-03-14
-
全国消防救援总队主官及简历(2023.2) 2023-02-10
-
盘点 l 中国石油大庆油田现任领导班子 2023-02-28
-
我们的前辈!历届全国工程勘察设计大师完整名单! 2022-11-18
-
关于某送变电公司“4·22”人身死亡事故的快报 2022-04-26
