Nav2 Navigation Stack - humble
humble
ROS 2 Navigation Stack
|
Public Member Functions | |
BreadthFirstSearch (std::shared_ptr< nav2_costmap_2d::Costmap2D > costmap) | |
Constructor. More... | |
bool | search (const geometry_msgs::msg::PoseStamped &reference_node, const std::vector< geometry_msgs::msg::PoseStamped > &candidate_nodes, const int max_iterations=std::numeric_limits< int >::max()) |
Search for the closest node to the given reference node. More... | |
std::vector< unsigned int > | getNeighbors (const unsigned int current_id) |
Get the neighbors of a given node. More... | |
bool | inCollision (const unsigned int id) |
Check if a node is in collision with the costmap. More... | |
unsigned int | getClosestNodeIdx () |
Get the output closest node in candidate indices. More... | |
~BreadthFirstSearch ()=default | |
Destructor. | |
Protected Attributes | |
std::shared_ptr< nav2_costmap_2d::Costmap2D > | costmap_ |
unsigned int | closest_node_idx_ {0u} |
Definition at line 46 of file goal_intent_search.hpp.
|
inlineexplicit |
Constructor.
costmap | Costmap to check |
Definition at line 53 of file goal_intent_search.hpp.
|
inline |
Get the output closest node in candidate indices.
Definition at line 192 of file goal_intent_search.hpp.
Referenced by nav2_route::GoalIntentExtractor::findStartandGoal().
|
inline |
Get the neighbors of a given node.
current_id | The current node id |
Definition at line 137 of file goal_intent_search.hpp.
References inCollision().
Referenced by search().
|
inline |
Check if a node is in collision with the costmap.
id | The node id to check |
Definition at line 181 of file goal_intent_search.hpp.
Referenced by getNeighbors().
|
inline |
Search for the closest node to the given reference node.
reference_node | The reference node to search from |
candidate_nodes | The candidate nodes to search for |
max_iterations | The maximum number of iterations to perform |
Definition at line 65 of file goal_intent_search.hpp.
References getNeighbors().
Referenced by nav2_route::GoalIntentExtractor::findStartandGoal().