Skip to content

Commit

Permalink
Update sleepMode.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hairygael authored Nov 16, 2024
1 parent 324bdea commit f164df3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions life/sleepMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ def sleepModeInsult():
def welcomeMessage():
if runtime.isStarted('i01.mouth'):
initMouth()
if runtime.isStarted('i01.fsm'):
i01_fsm.fire("wake")
if runtime.isStarted('i01.ear'):
i01_ear.setAwake(True)
i01_ear.startRecording()
if runtime.isStarted('i01.chatBot'):
if str(i01_chatBot.getPredicate("human","firstinit"))=="unknown" or str(i01_chatBot.getPredicate("human","firstinit"))=="started":
i01_chatBot.setPredicate("human","topic","default")
Expand All @@ -223,9 +228,6 @@ def welcomeMessage():
else:
if runtime.isStarted('i01'):
runtime.info("i01 is ready")
#RobotIsStarted=True
if runtime.isStarted('i01.fsm'):
i01_fsm.fire("wake")

global WaitXsecondBeforeRelaunchTracking
WaitXsecondBeforeRelaunchTracking=-10
Expand Down

0 comments on commit f164df3

Please sign in to comment.