当前位置:网站首页>[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
边栏推荐
- Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
- C - minute number V3
- 受限线性表
- Dependency injection
- Traduction gratuite en un clic de plus de 300 pages de documents PDF
- 一键免费翻译300多页的pdf文档
- Live server usage
- gorm 关联关系小结
- Uic564-2 Appendix 4 - flame retardant fire test: flame diffusion
- archery安装测试
猜你喜欢

SAP HR labor contract information 0016

Open source hardware small project: anxinco esp-c3f control ws2812

受限线性表

MongoDB快速入门

Archery installation test

DataGuard active / standby cleanup archive settings

How did a fake offer steal $540million from "axie infinity"?

UIC564-2 附录4 –阻燃防火测试:火焰的扩散

【实验分享】通过Console口登录到Cisco设备

Live server usage
随机推荐
Anti climbing means cracking the second
Take you hand in hand to build Eureka server with idea
Anxinco EC series modules are connected to the multi protocol access products of onenet Internet of things open platform
网上买基金安全么?
Dependency injection 2 advantage lifecycle
HB 5469 combustion test method for non-metallic materials in civil aircraft cabin
FFA与ICGA造影
About the difference between ch32 library function and STM32 library function
AITM3.0005 烟雾毒性测试
蓝桥ROS中使用fishros一键安装
The file format and extension of XLS do not match
May day d-light
10 schemes to ensure interface data security
Chisel tutorial - 01 Introduction to Scala
激光slam学习(2D/3D、偏实践)
2022 certified surveyors are still at a loss when preparing for the exam? Teach you how to take the exam hand in hand?
Flash download setup
C - linear table
mysql8.0 ubuntu20.4
redis缓存工具类,值得拥有~