Thread-safe implementation of a frontier-search task for an input costmap.
More...
#include <frontier_search.h>
|
Frontier | buildNewFrontier (unsigned int initial_cell, unsigned int reference, std::vector< bool > &frontier_flag) |
| Starting from an initial cell, build a frontier from valid adjacent cells. More...
|
|
bool | isNewFrontierCell (unsigned int idx, const std::vector< bool > &frontier_flag) |
| isNewFrontierCell Evaluate if candidate cell is a valid candidate for a new frontier. More...
|
|
Thread-safe implementation of a frontier-search task for an input costmap.
Definition at line 12 of file frontier_search.h.
Constructor for search task.
- Parameters
-
costmap | Reference to costmap data to search. |
Definition at line 17 of file frontier_search.cpp.
Frontier frontier_exploration::FrontierSearch::buildNewFrontier |
( |
unsigned int |
initial_cell, |
|
|
unsigned int |
reference, |
|
|
std::vector< bool > & |
frontier_flag |
|
) |
| |
|
protected |
Starting from an initial cell, build a frontier from valid adjacent cells.
- Parameters
-
initial_cell | Index of cell to start frontier building |
reference | Reference index to calculate position from |
frontier_flag | Flag vector indicating which cells are already marked as frontiers |
- Returns
Definition at line 79 of file frontier_search.cpp.
bool frontier_exploration::FrontierSearch::isNewFrontierCell |
( |
unsigned int |
idx, |
|
|
const std::vector< bool > & |
frontier_flag |
|
) |
| |
|
protected |
isNewFrontierCell Evaluate if candidate cell is a valid candidate for a new frontier.
- Parameters
-
idx | Index of candidate cell |
frontier_flag | Flag vector indicating which cells are already marked as frontiers |
- Returns
Definition at line 146 of file frontier_search.cpp.
std::list< Frontier > frontier_exploration::FrontierSearch::searchFrom |
( |
geometry_msgs::Point |
position | ) |
|
Runs search implementation, outward from the start position.
- Parameters
-
position | Initial position to search from |
- Returns
- List of frontiers, if any
Definition at line 19 of file frontier_search.cpp.
unsigned char* frontier_exploration::FrontierSearch::map_ |
|
private |
unsigned int frontier_exploration::FrontierSearch::size_x_ |
|
private |
unsigned int frontier_exploration::FrontierSearch::size_y_ |
|
private |
The documentation for this class was generated from the following files: