We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d745303 commit 4e90378Copy full SHA for 4e90378
perception/autoware_map_based_prediction/src/path_generator.cpp
@@ -443,8 +443,8 @@ FrenetPoint PathGenerator::getFrenetPoint(
443
// if the velocities don't have the same sign, calculate when the vehicle reaches 0 speed ->
444
// time t_stop
445
446
- // 0 = Vo + acc(1/lambda)(1-e^(-lambdat_stop))
447
- // e^(-lambdat_stop) = 1 - (-Vo* lambda)/acc
+ // 0 = Vo + acc(1/lambda)(1-e^(-lambda t_stop))
+ // e^(-lambda t_stop) = 1 - (-Vo* lambda)/acc
448
// t_stop = (-1/lambda)*ln(1 - (-Vo* lambda)/acc)
449
// t_stop = (-1/lambda)*ln(1 + (Vo* lambda)/acc)
450
auto t_stop = (-1.0 / lambda) * std::log(1 + (v * lambda / a));
0 commit comments