From 8fab7ce88a64e8e8fef28c732a5fd71c9a957d9e Mon Sep 17 00:00:00 2001 From: DmytroKushnir Date: Fri, 15 Mar 2019 08:16:20 +0000 Subject: [PATCH] cosmetics --- .../include/explore/frontier_search.h | 2 ++ explore_lite_revised/src/frontier_search.cpp | 27 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/explore_lite_revised/include/explore/frontier_search.h b/explore_lite_revised/include/explore/frontier_search.h index 53ecb3e..2650f7e 100644 --- a/explore_lite_revised/include/explore/frontier_search.h +++ b/explore_lite_revised/include/explore/frontier_search.h @@ -9,7 +9,9 @@ namespace frontier_exploration * @brief Represents a frontier * */ + struct Frontier { + //todo make a class of it, make methods static methods of class // std::uint32_t size{0}; double min_distance{std::numeric_limits::infinity()}; double cost{0.0}; diff --git a/explore_lite_revised/src/frontier_search.cpp b/explore_lite_revised/src/frontier_search.cpp index d5fdbf9..6aee925 100644 --- a/explore_lite_revised/src/frontier_search.cpp +++ b/explore_lite_revised/src/frontier_search.cpp @@ -38,18 +38,18 @@ inline geometry_msgs::Point getClosestPointTo(const std::vector{this_fr.centroid, this_fr.interpolated_line.first, this_fr.interpolated_line.second} ){ -// this_fr.fromReferenceFrame(pt); -// } // todo find the way to iterate over it + this_fr.centroid = this_fr.fromReferenceFrame(this_fr.centroid); this_fr.interpolated_line.first = this_fr.fromReferenceFrame(this_fr.interpolated_line.first); this_fr.interpolated_line.second = this_fr.fromReferenceFrame(this_fr.interpolated_line.second); @@ -131,7 +129,6 @@ FrontierSearch::FrontierSearch(costmap_2d::Costmap2D* costmap, { ROS_DEBUG_STREAM("PERFORM FRONTIER RECURSIVE SPLITTING"); vector_buf = splitFrontier(this_fr); - ROS_DEBUG_STREAM("RECURSIVE SPLITTING PREFORMED OK"); } else{ vector_buf = {this_fr}; }