apollo icon indicating copy to clipboard operation
apollo copied to clipboard

typo error on prediction module

Open zezhou opened this issue 8 years ago • 1 comments

HI I'm learning apollo project. I find one typo error on modules/prediction/evaluator/vehicle/rnn_evaluator.cc I think the "break" at "line 228" should be puted after line 224.

https://github.com/ApolloAuto/apollo/blob/a7786714eda6d4ac5593bfa43a0e6fdf61557f67/modules/prediction/evaluator/vehicle/rnn_evaluator.cc#L228

https://github.com/ApolloAuto/apollo/blob/a7786714eda6d4ac5593bfa43a0e6fdf61557f67/modules/prediction/evaluator/vehicle/rnn_evaluator.cc#L224

zezhou avatar Jan 24 '18 14:01 zezhou

@zezhou good catch! Actually the logic is correct as only ONE previous frame of history from the most current frame is needed for setting up features for RNN model. Please pay attention to line 184 that "num" is set to to be <= 3. So the goal is not to iterate the entire history, but seek the previous one from the most recent observation. Of course the code can be more straightforward. If you are interested, please feel free to make your modification and we'd be happy to see if you can contribute to our code repo. Thanks!

jinghaomiao avatar Jan 24 '18 19:01 jinghaomiao