#include <AStarSearch.h>
Collaboration diagram for AStarSearch< N, P, U >:

Public Member Functions | |
| AStarSearch (long minCacheSize, long maxTreeSize, P parameterSet) | |
| Constructor. | |
| N | search (const N &start, const N &goal, const P ¶meterSet, U &pathLength) |
| The main search function. | |
Private Member Functions | |
| unsigned int | findIndexOfNextNode () |
| Finds the next node to be expanded. | |
| int | testNewNodesAgainstGoal (unsigned int firstNode, unsigned int lastNode, const N &goal) |
| Tests if any node has reached the goal. | |
| N | backtraceNode (unsigned int indexOfBestNode, U &pathLength) |
| Backtraces the best node found to the first node after the start node. | |
| void | draw (unsigned int indexOfBestNode) |
| Draw all expanded paths and the selected path on the RobotControl field view. | |
Private Attributes | |
| std::vector< N > | searchTree |
| A container for all nodes. | |
| std::vector< unsigned int > | expandedNodes |
| Indizes of all expanded nodes. | |
| long | maxTreeSize |
| The maximum number of nodes to expand. | |
| P | parameterSet |
| The parameter set. | |
Works with any appropriate type N of nodes, type P of parameter sets and type U of unit
Definition at line 241 of file AStarSearch.h.
|
||||||||||||||||||||
|
Constructor.
Definition at line 249 of file AStarSearch.h. |
|
||||||||||||||||||||||||
|
The main search function.
Definition at line 274 of file AStarSearch.h. Referenced by Motionfield::getFieldVecFromAStarSearch(). |
|
|||||||||
|
Finds the next node to be expanded.
Definition at line 333 of file AStarSearch.h. Referenced by AStarSearch< PotentialfieldAStarNode, PotentialfieldAStarParameterSet, double >::search(). |
|
||||||||||||||||||||
|
Tests if any node has reached the goal.
Definition at line 360 of file AStarSearch.h. Referenced by AStarSearch< PotentialfieldAStarNode, PotentialfieldAStarParameterSet, double >::search(). |
|
||||||||||||||||
|
Backtraces the best node found to the first node after the start node.
Definition at line 379 of file AStarSearch.h. Referenced by AStarSearch< PotentialfieldAStarNode, PotentialfieldAStarParameterSet, double >::search(). |
|
||||||||||
|
Draw all expanded paths and the selected path on the RobotControl field view.
Definition at line 395 of file AStarSearch.h. Referenced by AStarSearch< PotentialfieldAStarNode, PotentialfieldAStarParameterSet, double >::search(). |
|
|||||
|
A container for all nodes.
Definition at line 321 of file AStarSearch.h. |
|
|||||
|
Indizes of all expanded nodes.
Definition at line 323 of file AStarSearch.h. |
|
|||||
|
The maximum number of nodes to expand.
Definition at line 325 of file AStarSearch.h. |
|
|||||
|
The parameter set.
Definition at line 327 of file AStarSearch.h. |
1.3.6