Skip to content

Commit

Permalink
fix(map_based_prediction): fix search dist (autowarefoundation#1348)
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 yukke42 committed Oct 14, 2022
1 parent 49035dd commit f666c5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ std::vector<PredictedRefPath> MapBasedPredictionNode::getPredictedReferencePath(
const double object_detected_time)
{
const double delta_horizon = 1.0;
const double obj_vel = object.kinematics.twist_with_covariance.twist.linear.x;
const double obj_vel = std::fabs(object.kinematics.twist_with_covariance.twist.linear.x);

std::vector<PredictedRefPath> all_ref_paths;
for (const auto & current_lanelet_data : current_lanelets_data) {
Expand Down

0 comments on commit f666c5b

Please sign in to comment.