Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 767 Bytes

README.md

File metadata and controls

26 lines (23 loc) · 767 Bytes

ROS2_Frontier_Detector

target-with-frontiers-3

Usage

Include frontier_detector.h header in your file:

#include "frontier_detector.h"

Dynamically create a frontier detector object:

frontier_detector = std::make_shared<WavefrontFrontierDetector>();

Create a vector to hold the detected frontier segements:

std::vector<FrontierSegment> frontier_segments;

Search for the frontiers:

frontier_detector->searchFrontierSegments(frontier_segments,current_robot_pose,costmap);

You can access the centroid of the detected frontier segments i by:

geometry_msgs::msg::Point centroid = frontier_segments[i].centroid;