How planning module decide emergency stop or not?
Hi
I have a check in modules/planning/planning.cc And I see it will publish planning topic with PublishPlanningPb(&estop, start_timestamp); in some emergency cases. But I don't know how planning make decision for estop reason or not. Can anyone tell me how to reproduce that case?
Thank you.
The following is estop reseason code: ESTOP_REASON_INTERNAL_ERR:1,ESTOP_REASON_COLLISION:2,ESTOP_REASON_ST_FIND_PATH:3,ESTOP_REASON_ST_MAKE_DECISION:4,ESTOP_REASON_SENSOR_ERROR:5
In reference_line_info.cc, according to error code, we set estop decision // check stop decision int error_code = MakeMainStopDecision(decision_result); if (error_code < 0) { MakeEStopDecision(decision_result); } MakeMainMissionCompleteDecision(decision_result); SetObjectDecisions(decision_result->mutable_object_decision()); }
@levuphuong Hope the information answered your question. If you have any follow up question, please leave a comment below. If we did not hear back from you in 72 hours, we will close the issue and we encourage you to open a new issue if you have any more questions.
Thank you for supporting Apollo!