当前位置:网站首页>[path planning] use the vertical distance limit method and Bessel to optimize the path of a star
[path planning] use the vertical distance limit method and Bessel to optimize the path of a star
2022-07-07 23:47:00 【Chinchilla slightly】
Before using general A* Algorithm to plan the path , It can be found that there are many redundant points on the path , As shown in the figure below :
It is obvious from the above figure that some bending points are redundant , Therefore, this section introduces the use of vertical distance limit method to optimize redundant points .
Vertical distance limit method
The idea of vertical distance limit method is also relatively simple , To sum up, it is : Calculate the distance from the current node to the upper node and the lower node , If it exceeds a certain threshold, the current point is deleted from the total set . The general idea is just like its name .
Here I write a function Vertical_distance_limit:
Of course , In this function, I encapsulate another function , That is, the function of calculating the vertical distance compute_vertical_distance
Vertical distance calculation
About vertical distance calculation , We can use vector method , As shown in the figure below :
Use Vector method The steps of calculating the vertical distance can be carried out as follows :
1) First calculate the vector last_to_next Unit vector u_last_to_next
2) Calculate the vector last_to_pos, Calculated after last_to_pos And vector u_last_to_next Dot product of , That is to say last_to_pos To vector u_last_to_next The projection length on the surface L
3) Using vectors u_last_to_next multiply L That's the vector last_to_closest
4) Use last Coordinates of plus last_to_closest You can find out. closest Coordinates of
5) And then you can figure out pos And closest Distance of
The effect of using the vertical distance limit method
After adding the vertical distance optimization, the following effects can be obtained :
The red connecting point in the above figure is the initial A* Algorithm path point , The green connection point is the optimized path point
Use fifth order Bessel to optimize the path
After optimizing the path , We can further use Bezier curve to plan a smoother curve :
Add motion trajectory model
Then we can do as before RRT like that , Increase the speed S Trajectory model of curve , The end result is this :
A* Algorithm + Vertical distance limit method + Bessel + Motion model trajectory
边栏推荐
- C - linear table
- How did a fake offer steal $540million from "axie infinity"?
- SQL 使用in关键字查询多个字段
- C language greedy snake
- Data analysis series 3 σ Rule / eliminate outliers according to laida criterion
- 企业应用需求导向开发之人力部门,员工考勤记录和实发工资业务程序案例
- BSS 7230 flame retardant performance test of aviation interior materials
- BSS 7230 航空内饰材料阻燃性能测试
- SAP HR labor contract information 0016
- C语言学习
猜你喜欢
One click free translation of more than 300 pages of PDF documents
神奇快速幂
SAP HR reward and punishment information export
Take you hand in hand to build Eureka server with idea
MySQL Architecture
DataGuard active / standby cleanup archive settings
Anxin can internally test offline voice module vb-01 to communicate with esp-c3-12f
Arbre binaire équilibré [Arbre AVL] - Insérer et supprimer
[stm32+esp8266 connects to Tencent cloud IOT development platform 3] stm32+esp8266-01s dynamically registers devices on Tencent cloud (at instruction mode) -- with source code
Take you hand in hand to build feign with idea
随机推荐
Uic564-2 Appendix 4 - flame retardant fire test: flame diffusion
C simple question 2
Chisel tutorial - 04 Control flow in chisel
ASP. Net core middleware request processing pipeline
@Detailed introduction of configuration annotation
95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
一份假Offer如何盗走了「Axie infinity」5.4亿美元?
Aitm3.0005 smoke toxicity test
串联二极管,提高耐压
平衡二叉树【AVL树】——插入、删除
通达信买基金安全吗?
Ora-02437 failed to verify the primary key violation
P1055 [noip2008 popularization group] ISBN number
postgres timestamp转人眼时间字符串或者毫秒值
postgis学习
Alibaba cloud MySQL cannot connect
P2141 [noip2014 popularization group] abacus mental arithmetic test
SAP HR family member information
SAP HR social work experience 0023
受限线性表