apollo
apollo copied to clipboard
MPC controller full stop condition error
Full stop condition judgement in mpc_controller.cc [here] in Apollo 10.0.1
if (std::abs(debug->path_remain()) < FLAGS_max_acceleration_when_stopped) {
debug->set_is_full_stop(true);
ADEBUG << "Into full stop within path remain, "
<< "is_full_stop is " << debug->is_full_stop();
}
should be
if (std::abs(debug->path_remain()) < FLAGS_max_path_remain_when_stopped) { // corrected
debug->set_is_full_stop(true);
ADEBUG << "Into full stop within path remain, "
<< "is_full_stop is " << debug->is_full_stop();
}
Got,thx for your feedback ~