Skip to content

Commit

Permalink
Remove part of the cost estimator implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ll-nick authored and orzechow committed Nov 19, 2024
1 parent ec26edc commit 4cb1a0c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions demo/src/cost_estimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 (utils.hpp might be helpful)
const int nDotsInRadius = 0; ///@todo (utils.hpp might be helpful)
const int nDots = nDotsAlongPath + nDotsInRadius;

if (nDots == 0) {
return std::numeric_limits<double>::max();
}

const int pathLength = static_cast<int>(absolutePath.size());
const int neighborhoodSize = static_cast<int>(std::pow(2 * parameters_.pathEndNeighborhoodRadius + 1, 2));
const int pathLength = 0; ///@todo
const int neighborhoodSize = 0; ///@todo
const int nCells = pathLength + neighborhoodSize;

// We can define a cost as the inverse of a benefit.
Expand Down

0 comments on commit 4cb1a0c

Please sign in to comment.