@startuml skinparam monochrome true start while () :startRobot?; if (watchdogMode) then (WITH_WATCHDOG) :msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITH_WD)); else (WITHOUT_WATCHDOG) :msgSend = robot.Write(new Message(MESSAGE_ROBOT_START_WITHOUT_WD)); endif if (msgSend->getId()) then (MESSAGE_ANSWER_ACK) :robotStarted = true; endif :messageToMon!msgSend; :stopRobot? :ordre = STOP_MOVE; endwhile stop @enduml