From 274b5c40f9383c3186f47d49bf936cb3fce51fae Mon Sep 17 00:00:00 2001 From: ll-nick <68419636+ll-nick@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:15:37 +0200 Subject: [PATCH] Remove part of the cost estimator implementation --- demo/src/cost_estimator.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/demo/src/cost_estimator.cpp b/demo/src/cost_estimator.cpp index b3d0894f..0819e2fe 100644 --- a/demo/src/cost_estimator.cpp +++ b/demo/src/cost_estimator.cpp @@ -7,17 +7,16 @@ namespace demo { double CostEstimator::estimateCost(const Command& command, bool /*isActive*/) { Positions absolutePath = environmentModel_->toAbsolutePath(command.path); - const int nDotsAlongPath = utils::dotsAlongPath(absolutePath, environmentModel_); - const int nDotsInRadius = - utils::dotsInRadius(absolutePath.back(), environmentModel_, parameters_.pathEndNeighborhoodRadius); + const int nDotsAlongPath = 0; ///@todo + const int nDotsInRadius = 0; ///@todo const int nDots = nDotsAlongPath + nDotsInRadius; if (nDots == 0) { return std::numeric_limits::max(); } - const int pathLength = static_cast(absolutePath.size()); - const int neighborhoodSize = static_cast(std::pow(2 * parameters_.pathEndNeighborhoodRadius + 1, 2)); + const int pathLength = 0; ///@todo + const int neighborhoodSize = ///@todo const int nCells = pathLength + neighborhoodSize; // We can define a cost as the inverse of a benefit.