Skip to content

Commit

Permalink
fix(route_handler: fix std::accumlation related bug)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc committed May 11, 2024
1 parent c24ad46 commit a108ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/route_handler/src/route_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ double RouteHandler::getTotalLateralDistanceToPreferredLane(
const lanelet::ConstLanelet & lanelet, const Direction direction) const
{
const auto intervals = getLateralIntervalsToPreferredLane(lanelet, direction);
return std::accumulate(intervals.begin(), intervals.end(), 0);
return std::accumulate(intervals.begin(), intervals.end(), 0.0);
}

std::vector<double> RouteHandler::getLateralIntervalsToPreferredLane(
Expand Down

0 comments on commit a108ee6

Please sign in to comment.