Class GoalManager
Defined in File GoalManager.hpp
Nested Relationships
Nested Types
Class Documentation
Handles navigation goals, their lifecycle, and command interface.
Manages goal state, handles external control messages, and interacts with navigation components.
Public Types
Current internal goal state.
Values:
No active goal.
A goal is currently being pursued.
Public Functions
Constructor.
- Parameters:
nav_state – Shared pointer to navigation state.
parent_node – Lifecycle node for parameter and interface management.
Get current goals.
- Returns:
Goals message.
Get current internal goal state.
- Returns:
GoalManager::State value.
Mark the current goal as successfully completed.
Mark the current goal as failed.
- Parameters:
reason – Textual explanation.
Mark the system as in error state.
- Parameters:
reason – Textual explanation.
Update internal logic, including preemption and timeout checks.
Check if the robot is currently at the first goal.
Compares the current pose against the first target in the list using positional and angular tolerances.
- Parameters:
current_pose – Current pose of the robot.
goal_tolerance – Maximum allowed error for the goal position and orientation.
A structure to represent the goal tolerances.
Public Members
Positional tolerance for x/y in meters.
Positional tolerance for z axis in meters. Very big number as default.
Angular tolerance in radians for the yaw angle.