Class GoalIntentExtractor
Defined in File goal_intent_extractor.hpp
Class Documentation
Extracts the start and goal nodes in the graph to use for the routing request from the action request. This may use additional information about the environment or simply find the corresponding nodes specified in the request.
Public Functions
Constructor.
Destructor.
Configure extractor.
- Parameters:
node – Node to use to create any interface needed
graph – Graph to populate kD tree using
id_to_graph_map – Remapping vector to correlate nodeIDs
tf – TF buffer for transformations
costmap_subscriber – Costmap subscriber to use for traversability
route_frame – Planning frame
base_frame – Robot reference frame
Sets a new graph when updated.
- Parameters:
graph – Graph to populate kD tree using
graph – id_to_graph_map to get graph IDX for node IDs
Transforms a pose into the route frame.
- Parameters:
pose – Pose to transform (e.g. start, goal)
frame_id – Frame to transform to
Main API to find the start and goal graph IDX (not IDs) for routing.
- Parameters:
goal – Action request goal
- Returns:
start, goal node IDx
Prune the start and end nodes in a route if the start or goal poses, respectively, are already along the route to avoid backtracking.
- Parameters:
inpute_route – Route to prune
goal – Action request goal
first_time – If this is the first time routing
- Returns:
Pruned route
Override the start pose for use in pruning if it is externally overridden Usually by the rerouting logic.
- Parameters:
start_pose – Starting pose of robot to prune using
gets the desired start pose
- Returns:
PoseStamped of start pose
Protected Attributes