You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* speed up spacetime astar
* forgot to include hash impl on Position
* add condition to test on node expansions
* remove heuristic from Node __hash__ impl
* update rst with note about optimization
Copy file name to clipboardexpand all lines: docs/modules/5_path_planning/time_based_grid_search/time_based_grid_search_main.rst
+17
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,23 @@ Using a time-based cost and heuristic ensures the path found is optimal in terms
16
16
The cost is the amount of time it takes to reach a given node, and the heuristic is the minimum amount of time it could take to reach the goal from that node, disregarding all obstacles.
17
17
For a simple scenario where the robot can move 1 cell per time step and stop and go as it pleases, the heuristic for time is equivalent to the heuristic for distance.
18
18
19
+
One optimization that was added in `this PR <https://github.com/AtsushiSakai/PythonRobotics/pull/1183>`__ was to add an expanded set to the algorithm. The algorithm will not expand nodes that are already in that set. This greatly reduces the number of node expansions needed to find a path, since no duplicates are expanded. It also helps to reduce the amount of memory the algorithm uses.
20
+
21
+
Before::
22
+
23
+
Found path to goal after 204490 expansions
24
+
Planning took: 1.72464 seconds
25
+
Memory usage (RSS): 68.19 MB
26
+
27
+
28
+
After::
29
+
30
+
Found path to goal after 2348 expansions
31
+
Planning took: 0.01550 seconds
32
+
Memory usage (RSS): 64.85 MB
33
+
34
+
When starting at (1, 11) in the structured obstacle arrangement (second of the two gifs above).
0 commit comments