Skip to main content
. 2023 Nov 15;8(7):549. doi: 10.3390/biomimetics8070549
Algorithm 2: Hybrid A*
1 Initialization of openset, closeset
2 openset.push(start)
3 while openset is not empty do
4 xcurrentopenset.popMinCostNode
5 if exists RS path then
6 return the path
7 end
8 for xnextcalculated by kinematic equation do
9 Collision avoidance
10 if xnext not exists in closeset then
11 gg(xcurrent)+l(xcurrent,xnext)
12 if xnext not exists in openset org<g(xnext)then
13 g(xnext)g
14 h(xnext)Heuristic(xnext,xgoal)
15 Pred(xnext)xcurrent
16 if xnext not exists in openset then
17 openset.push(xnext)
18 else
19 openset.update(next node)
20 end
21 end
22 end
23 end
24 end