Skip to content

Commit

Permalink
fix(behavior_path_planner): fix utility function (autowarefoundation#434
Browse files Browse the repository at this point in the history
)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
  • Loading branch information
tkimura4 authored and satoshi-ota committed May 31, 2022
1 parent dbc1d9c commit 43c009a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/behavior_path_planner/src/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ bool lerpByTimeStamp(const PredictedPath & path, const double t_query, Pose * le
return false;
}

const double t_final = time_step.seconds() * static_cast<double>(path.path.size());
const double t_final = time_step.seconds() * static_cast<double>(path.path.size() - 1);
if (t_query > t_final) {
RCLCPP_DEBUG_STREAM(
rclcpp::get_logger("behavior_path_planner").get_child("utilities"),
Expand Down

0 comments on commit 43c009a

Please sign in to comment.