apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Prediction: prediction trajectory points sometimes more than prediction_trajectory_time_length defined

Open johnnyleeRH opened this issue 5 years ago • 1 comments

Describe the bug refer to the default configuration prediction_conf.pb.txt, obstacle_conf { obstacle_type: VEHICLE obstacle_status: ON_LANE priority_type: CAUTION evaluator_type: SEMANTIC_LSTM_EVALUATOR predictor_type: EXTRAPOLATION_PREDICTOR } If use lstm evaluator and extrapolation predictor, trajector points size will be 81, when prediction_trajectory_time_length is 8.0 and prediction_trajectory_time_resolution is 0.1

To Reproduce refer to description, cyber recorder bags can reproduce this issue

Expected behavior trajector points size = prediction_trajectory_time_length / prediction_trajectory_time_resolution, about the default case, trajector size shall equal to 80

Desktop (please complete the following information):

  • OS: ubuntu

johnnyleeRH avatar May 08 '21 02:05 johnnyleeRH

point->set_relative_time(static_cast<double>(i) * FLAGS_prediction_trajectory_time_resolution); I think in semantic_lstm_evaluator.cc, it shall be changed to point->set_relative_time(static_cast<double>(i + 1) * FLAGS_prediction_trajectory_time_resolution);

johnnyleeRH avatar May 08 '21 02:05 johnnyleeRH