Class PlannerNode
Defined in File PlannerNode.hpp
Inheritance Relationships
Base Type
public rclcpp_lifecycle::LifecycleNode
Class Documentation
ROS 2 lifecycle node that manages path planning in Easy Navigation.
Handles lifecycle transitions, plugin loading, and invokes the planner to compute paths.
Public Types
Public Functions
Constructor.
- Parameters:
options – Optional node configuration.
Destructor.
Configure the node.
- Parameters:
state – Current lifecycle state.
- Returns:
SUCCESS if configuration succeeded.
Activate the node.
- Parameters:
state – Current lifecycle state.
- Returns:
SUCCESS if activation succeeded.
Deactivate the node.
- Parameters:
state – Current lifecycle state.
- Returns:
SUCCESS if deactivation succeeded.
Clean up the node.
- Parameters:
state – Current lifecycle state.
- Returns:
SUCCESS if cleanup succeeded.
Shutdown the node.
- Parameters:
state – Current lifecycle state.
- Returns:
SUCCESS if shutdown succeeded.
Handle lifecycle transition errors.
- Parameters:
state – Current lifecycle state.
- Returns:
SUCCESS if error handling completed.
Get the current planned path.
- Returns:
Path message with the last computed path.
Execute a non-real-time cycle.
- Parameters:
nav_state – Shared pointer to the navigation state structure.
trigger – If tru, a cycle is executed independently of the frequency set
Get the timestamp of the last real-time execution.
- Returns:
Timestamp of the last RT execution.
Get the timestamp of the last non-RT execution.
- Returns:
Timestamp of the last execution.