Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrajectoryEvaluator::Evaluate() , evaluation_horizon ill computed #15270

Open
jjKeyLite opened this issue Jan 12, 2024 · 0 comments
Open

TrajectoryEvaluator::Evaluate() , evaluation_horizon ill computed #15270

jjKeyLite opened this issue Jan 12, 2024 · 0 comments
Labels
Module: Planning Indicates planning module related issue

Comments

@jjKeyLite
Copy link

Describe the bug
in file trajectory_evaluator.cpp, line 136: double evaluation_horizon = std::min(FLAGS_speed_lon_decision_horizon, lon_trajectory->Evaluate(0, lon_trajectory->ParamLength()));

evaluation_horizon should be the s length of lon_trajectory , not the end s of lon_trajectory, so it should be defined like this:
double evaluation_horizon = std::min(FLAGS_speed_lon_decision_horizon,lon_trajectory->Evaluate(0, lon_trajectory->ParamLength())-lon_trajectory->Evaluate(0,0.0));

@daohu527 daohu527 added the Module: Planning Indicates planning module related issue label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Planning Indicates planning module related issue
Projects
None yet
Development

No branches or pull requests

2 participants