Class PlannerServer
Defined in File planner_server.hpp
Inheritance Relationships
Base Type
public nav2_util::LifecycleNode
Class Documentation
An action server implements the behavior tree’s ComputePathToPose interface and hosts various plugins of different algorithms to compute plans.
Public Types
Public Functions
A constructor for nav2_planner::PlannerServer.
- Parameters:
options – Additional options to control creation of the node.
A destructor for nav2_planner::PlannerServer.
Method to get plan from the desired plugin.
- Parameters:
start – starting pose
goal – goal request
- Returns:
Path
Protected Types
Protected Functions
Configure member variables and initializes planner.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Activate member variables.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Deactivate member variables.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Reset member variables.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Called when in shutdown state.
- Parameters:
state – Reference to LifeCycle node state
- Returns:
SUCCESS or FAILURE
Check if an action server is valid / active.
- Parameters:
action_server – Action server to test
- Returns:
SUCCESS or FAILURE
Check if an action server has a cancellation request pending.
- Parameters:
action_server – Action server to test
- Returns:
SUCCESS or FAILURE
Wait for costmap to be valid with updated sensor data or repopulate after a clearing recovery. Blocks until true without timeout.
Check if an action server has a preemption request and replaces the goal with the new preemption goal.
- Parameters:
action_server – Action server to get updated goal if required
goal – Goal to overwrite
Get the starting pose from costmap or message, if valid.
- Parameters:
action_server – Action server to terminate if required
goal – Goal to find start from
start – The starting pose to use
- Returns:
bool If successful in finding a valid starting pose
Transform start and goal poses into the costmap global frame for path planning plugins to utilize.
- Parameters:
action_server – Action server to terminate if required
start – The starting pose to transform
goal – Goal pose to transform
- Returns:
bool If successful in transforming poses
Validate that the path contains a meaningful path.
- Parameters:
action_server – Action server to terminate if required
goal – Goal Current goal
path – Current path
planner_id – The planner ID used to generate the path
- Returns:
bool If path is valid
The action server callback which calls planner to get the path ComputePathToPose.
The action server callback which calls planner to get the path ComputePathThroughPoses.
The service callback to determine if the path is still valid.
- Parameters:
request – to the service
response – from the service
Publish a path for visualization purposes.
- Parameters:
path – Reference to Global Path
Callback executed when a parameter change is detected.
- Parameters:
event – ParameterEvent message
Protected Attributes