Class RouteServer
Defined in File route_server.hpp
Inheritance Relationships
Base Type
public nav2_util::LifecycleNode
Class Documentation
An action server implements a Navigation Route-Graph planner to compliment free-space planning in the Planner Server.
Public Types
Public Functions
A constructor for nav2_route::RouteServer.
- Parameters:
options – Additional options to control creation of the node.
A destructor for nav2_route::RouteServer.
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
Main route action server callbacks for computing and tracking a route.
Abstract method combining finding the starting/ending nodes and the route planner to find the Node locations of interest and route to the goal.
- Parameters:
goal – The request goal information
blocked_ids – The IDs of blocked graphs / edges
updated_start_id – The nodeID of an updated starting point when tracking a route that corresponds to the next point to route to from to continue progress
- Returns:
A route of the request
Main processing called by both action server callbacks to centralize the great deal of shared code between them.
Find the planning duration of the request and log warnings.
- Parameters:
start_time – Start of planning time
- Returns:
Duration of planning time
Find the routing request is valid (action server OK and not cancelled)
- Parameters:
action_server – Actions server to check
- Returns:
if the request is valid
Populate result for compute route action.
- Parameters:
result – Result to populate
route – Route to use to populate result
path – Path to use to populate result
planning_duration – Time to create a valid route
Populate result for compute and track route action.
- Parameters:
result – Result to populate
route – Route to use to populate result
path – Path to use to populate result
planning_duration – Time to create a valid route
The service callback to set a new route graph.
- Parameters:
request_header – to the service
request – to the service
response – from the service
Log exception warnings, templated by action message type.
- Parameters:
goal – Goal that failed
exception – Exception message
Protected Attributes