Template Class GoalManager
Defined in File goal_manager.hpp
Class Documentation
Responsible for managing multiple variables storing information on the goal.
Public Types
Public Functions
Constructor: Initializes empty goal state. sets and coordinate lists.
Destructor for the GoalManager.
Checks if the goals set is empty.
- Returns:
true if the goals set is empty
Adds goal to the goal vector.
- Parameters:
goal – Reference to the NodePtr
Clears all internal goal data, including goals, states, and coordinates.
Populates coarse and fine goal lists for analytic expansion.
- Parameters:
coarse_check_goals – Output list of goals for coarse search expansion.
fine_check_goals – Output list of goals for fine search refinement.
coarse_search_resolution – Number of fine goals per coarse goal.
Filters and marks invalid goals based on collision checking and tolerance thresholds.
Stores only valid (or tolerably infeasible) goals into internal goal sets and coordinates.
- Parameters:
tolerance – Heuristic tolerance allowed for infeasible goals.
collision_checker – Collision checker to validate goal positions.
traverse_unknown – Flag whether traversal through unknown space is allowed.
Check if a given node is part of the goal set.
- Parameters:
node – Node pointer to check.
- Returns:
if node matches any goal in the goal set.
Get pointer reference to goals set vector.
- Returns:
unordered_set of node pointers reference to the goals nodes
Get pointer reference to goals state.
- Returns:
vector of node pointers reference to the goals state
Get pointer reference to goals coordinates.
- Returns:
vector of goals coordinates reference to the goals coordinates
Set the Reference goal coordinate.
- Parameters:
coord – Coordinates to set as Reference goal
Checks whether the Reference goal coordinate has changed.
- Parameters:
coord – Coordinates to compare with the current Reference goal coordinate.
- Returns:
true if the Reference goal coordinate has changed, false otherwise.
Protected Attributes