提交 c49a2964 编写于 作者: K kechxu 提交者: Jiangtao Hu

Prediction: fix the too short lane sequence leading to cut off prediction trajectory

上级 4234d1af
......@@ -816,11 +816,10 @@ void Obstacle::SetNearbyLanes(Feature* feature) {
void Obstacle::SetLaneGraphFeature(Feature* feature) {
double speed = feature->speed();
double acc = feature->acc();
double road_graph_distance =
double road_graph_distance = std::max(
speed * FLAGS_prediction_duration +
0.5 * acc * FLAGS_prediction_duration * FLAGS_prediction_duration +
FLAGS_min_prediction_length;
0.5 * FLAGS_max_acc * FLAGS_prediction_duration *
FLAGS_prediction_duration, FLAGS_min_prediction_length);
int seq_id = 0;
int curr_lane_count = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册