File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
polygon_coverage_solvers/include/polygon_coverage_solvers Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -131,26 +131,6 @@ class GraphBase {
131131 bool is_created_;
132132};
133133
134- // Recursive function to search for largest x between lower and upper bound.
135- inline double searchLargestFeasibleScale (const double low, const double high,
136- const double condition,
137- const double eps = 0.1 ) {
138- // Early abort.
139- if (high < low) return low;
140- // Terminate recursion.
141- if ((high - low) < eps) return low;
142-
143- const double mid = (high + low) / 2.0 ;
144-
145- if (mid < condition) {
146- // mid satisfies condition. Find even higher scale.
147- return searchLargestFeasibleScale (mid, high, condition, eps);
148- } else {
149- // mid does not satisfy condition. Find smaller scale that does.
150- return searchLargestFeasibleScale (low, mid, condition, eps);
151- }
152- }
153-
154134} // namespace polygon_coverage_planning
155135
156136#include " polygon_coverage_solvers/impl/graph_base_impl.h"
You can’t perform that action at this time.
0 commit comments