提交 84371ffd 编写于 作者: J Jiangtao Hu 提交者: Yifei Jiang

planning: fix obstacle test failure.

上级 e7a15aca
......@@ -115,7 +115,8 @@ bool Obstacle::IsStaticObstacle(const PerceptionObstacle& perception_obstacle) {
}
auto moving_speed = std::hypot(perception_obstacle.velocity().x(),
perception_obstacle.velocity().y());
return moving_speed <= FLAGS_static_obstacle_speed_threshold;
return std::isnan(moving_speed) ||
moving_speed <= FLAGS_static_obstacle_speed_threshold;
}
bool Obstacle::IsVirtualObstacle(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册