From 588b91e6c2b8ca978ae01e867c50fe87758be72e Mon Sep 17 00:00:00 2001 From: jmtao Date: Thu, 7 Nov 2019 12:33:19 -0800 Subject: [PATCH] planning: add RESUME CRUISE command to pad_message tool --- modules/planning/tools/pad_terminal.cc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/planning/tools/pad_terminal.cc b/modules/planning/tools/pad_terminal.cc index edd077db21e..7050280079d 100644 --- a/modules/planning/tools/pad_terminal.cc +++ b/modules/planning/tools/pad_terminal.cc @@ -48,6 +48,7 @@ class PadTerminal { AINFO << "\t2: change right"; AINFO << "\t3: pull over"; AINFO << "\t4: stop"; + AINFO << "\t5: resume cruise"; AINFO << "\t10: exit"; AINFO << "\tother number: print help"; } @@ -56,15 +57,17 @@ class PadTerminal { PadMessage pad; pad.set_action(DrivingAction(action)); if (action == DrivingAction::FOLLOW) { - AINFO << "sending follow action command."; + AINFO << "sending FOLLOW action command."; } else if (action == DrivingAction::CHANGE_LEFT) { - AINFO << "sending change left action command."; + AINFO << "sending CHANGE LEFT action command."; } else if (action == DrivingAction::CHANGE_RIGHT) { - AINFO << "sending change right action command."; + AINFO << "sending CHANGE RIGHT action command."; } else if (action == DrivingAction::PULL_OVER) { - AINFO << "sending pull over action command."; + AINFO << "sending PULL OVER action command."; } else if (action == DrivingAction::STOP) { - AINFO << "sending stop action command."; + AINFO << "sending STOP action command."; + } else if (action == DrivingAction::RESUME_CRUISE) { + AINFO << "sending RESUME CRUISE action command."; } apollo::common::util::FillHeader("terminal", &pad); pad_writer_->Write(std::make_shared(pad)); @@ -91,6 +94,9 @@ class PadTerminal { case 4: send(DrivingAction::STOP); break; + case 5: + send(DrivingAction::RESUME_CRUISE); + break; case 10: should_exit = true; break;