Skip to content

Commit

Permalink
fix(autoware_freespace_planning_algorithms): fix functionConst (autow…
Browse files Browse the repository at this point in the history
…arefoundation#8281)

fix:functionConst

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 authored and kyoichi-sugahara committed Aug 5, 2024
1 parent 31ad5c9 commit ad90ca5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct AstarNode

struct NodeComparison
{
bool operator()(const AstarNode * lhs, const AstarNode * rhs) { return lhs->fc > rhs->fc; }
bool operator()(const AstarNode * lhs, const AstarNode * rhs) const { return lhs->fc > rhs->fc; }
};

struct NodeUpdate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void AstarSearch::setCollisionFreeDistanceMap()
using Entry = std::pair<IndexXY, double>;
struct CompareEntry
{
bool operator()(const Entry & a, const Entry & b) { return a.second > b.second; }
bool operator()(const Entry & a, const Entry & b) const { return a.second > b.second; }
};
std::priority_queue<Entry, std::vector<Entry>, CompareEntry> heap;
std::vector<bool> closed(col_free_distance_map_.size(), false);
Expand Down

0 comments on commit ad90ca5

Please sign in to comment.