We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84f242b commit 2ad9c58Copy full SHA for 2ad9c58
perception/autoware_map_based_prediction/src/path_generator.cpp
@@ -462,8 +462,7 @@ FrenetPoint PathGenerator::getFrenetPoint(
462
// assume it will continue accelerating (reckless driving)
463
const bool object_has_surpassed_limit_already = v > speed_limit;
464
if (terminal_velocity < speed_limit || object_has_surpassed_limit_already)
465
- return v + a * (1.0 / lambda) +
466
- (a / (t_h * std::pow(lambda, 2))) * std::expm1(-lambda * t_h);
+ return v + a * (1.0 / lambda) + (a / (t_h * std::pow(lambda, 2))) * std::expm1(-lambda * t_h);
467
468
// It is assumed the vehicle accelerates until final_speed is reached and
469
// then continues at constant speed for the rest of the time horizon
0 commit comments