提交 2322ce44 编写于 作者: K kechxu 提交者: Xiangquan Xiao

Prediction: make ComputeExtraplationSpeed return simpler

上级 c70ddec5
......@@ -212,9 +212,7 @@ double ExtrapolationPredictor::ComputeExtraplationSpeed(
trajectory.trajectory_point(num_trajectory_point - num_tail_point);
double diff_x = last_point.path_point().x() - mid_point.path_point().x();
double diff_y = last_point.path_point().y() - mid_point.path_point().y();
double speed =
std::hypot(diff_x, diff_y) / (num_tail_point * time_resolution);
return speed;
return std::hypot(diff_x, diff_y) / (num_tail_point * time_resolution);
}
} // namespace prediction
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册