Class RouteTracker
Defined in File route_tracker.hpp
Class Documentation
Takes a processing route request and tracks it for progress in accordance with executing behavioral operations.
Public Types
Public Functions
A constructor for nav2_route::RouteTracker.
A constructor for nav2_route::RouteTracker.
Configure route tracker.
- Parameters:
node – Node to grab info from
route_frame – Frame of route navigation
Determine if a node is to be considered achieved at the current position.
- Parameters:
pose – Current robot pose to query
state – Tracker state
route – Route to check against
- Returns:
bool if node is achieved
Determine if a node is the start or last node in the route.
- Parameters:
idx – Idx of the current edge being tracked
route – Route to check
- Returns:
bool if this node is the last node
Get the current robot’s base_frame pose in route_frame.
- Returns:
Robot pose
A utility to publish feedback for the action on important changes.
- Parameters:
rerouted – If the route has been rerouted
next_node_id – Id of the next node the route is to pass
last_node_id – Id of the last node the route passed
edge_id – Id of the current edge being processed
operations – A set of operations which were performed this iteration
Main function to track route, manage state, and trigger operations.
- Parameters:
route – Route to track progress of
path – Path that comprises this route for publication of feedback messages
blocked_ids – A set of blocked IDs to modify if rerouting is necessary
- Returns:
TrackerResult if the route is completed, should be rerouted, or was interrupted
Protected Attributes