apollo icon indicating copy to clipboard operation
apollo copied to clipboard

How planning module decide emergency stop or not?

Open levuphuong opened this issue 8 years ago • 2 comments

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.

levuphuong avatar Jul 12 '18 11:07 levuphuong

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()); }

douqian avatar Jul 27 '18 09:07 douqian

@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!

jmtao avatar Aug 30 '18 00:08 jmtao