@@ -44,40 +44,41 @@ __help() {
4444 echo -e " ${BLACK}${ON_YELLOW} Block 1 ${NC} "
4545 echo " [2]: Check the NFS status"
4646 echo " [3]: Report time difference between TOM and CAT"
47- echo " [4]: Start the Testbed"
48- echo " [5]: Start Minecraft"
49- echo " [6]: Open the Client Map"
50- echo " [7]: Open the Eye-tracker program"
51- echo " [8]: Open the Instructive Video"
52- echo " [9]: Open the CLC Training Video"
53- echo " [10]: Start the Lab Recorder"
54- echo " [11]: Start recording from the Eye-tracker"
55- echo " [12]: Start Face and Screen recordings"
56- echo " [12.1]: Face"
57- echo " [12.2]: Screen"
58- echo " [13]: Start the Baseline Tasks"
59- echo " [14]: End Block 1"
60- echo " [14.1]: Stop Face recordings"
61- echo " [14.2]: Stop Screen recordings"
62- echo " [14.3]: Stop Eye-tracker recordings"
63- echo " [14.4]: Stop LabRecorder"
47+ echo " [4]: Launch Say Announcement Menu"
48+ echo " [5]: Start the Testbed"
49+ echo " [6]: Start Minecraft"
50+ echo " [7]: Open the Client Map"
51+ echo " [8]: Open the Eye-tracker program"
52+ echo " [9]: Open the Instructive Video"
53+ echo " [10]: Open the CLC Training Video"
54+ echo " [11]: Start the Lab Recorder"
55+ echo " [12]: Start recording from the Eye-tracker"
56+ echo " [13]: Start Face and Screen recordings"
57+ echo " [13.1]: Face"
58+ echo " [13.2]: Screen"
59+ echo " [14]: Start the Baseline Tasks"
60+ echo " [15]: End Block 1"
61+ echo " [15.1]: Stop Face recordings"
62+ echo " [15.2]: Stop Screen recordings"
63+ echo " [15.3]: Stop Eye-tracker recordings"
64+ echo " [15.4]: Stop LabRecorder"
6465 echo -e " ${BLACK}${ON_YELLOW} Block 2 ${NC} "
65- echo " [15 ]: Start the Lab Recorder"
66- echo " [16 ]: Start Minecraft Watcher"
67- echo " [16 .1]: Start Data Watcher"
68- echo " [16 .2]: Start Trial ID Watcher"
69- echo " [17 ]: Start the Audio, Face and Screen recordings"
70- echo " [17 .1]: Audio"
71- echo " [17 .2]: Face"
72- echo " [17 .3]: Screen"
73- echo " [18 ]: Start Eye-tracker recordings"
74- echo " [19 ]: Stop Eye-tracker recordings"
75- echo " [20 ]: Open the Final Survey"
76- echo " [21 ]: Stop Audio, Face and Screen recordings"
77- echo " [22 ]: Stop the Lab Recorder"
78- echo " [23 ]: Exports Minecraft data"
79- echo " [24 ]: Extracts Testbed Logs"
80- echo " [25 ]: End the experiment (close remaining applications)"
66+ echo " [16 ]: Start the Lab Recorder"
67+ echo " [17 ]: Start Minecraft Watcher"
68+ echo " [17 .1]: Start Data Watcher"
69+ echo " [17 .2]: Start Trial ID Watcher"
70+ echo " [18 ]: Start the Audio, Face and Screen recordings"
71+ echo " [18 .1]: Audio"
72+ echo " [18 .2]: Face"
73+ echo " [18 .3]: Screen"
74+ echo " [19 ]: Start Eye-tracker recordings"
75+ echo " [20 ]: Stop Eye-tracker recordings"
76+ echo " [21 ]: Open the Final Survey"
77+ echo " [22 ]: Stop Audio, Face and Screen recordings"
78+ echo " [23 ]: Stop the Lab Recorder"
79+ echo " [24 ]: Exports Minecraft data"
80+ echo " [25 ]: Extracts Testbed Logs"
81+ echo " [26 ]: End the experiment (close remaining applications)"
8182 echo
8283 echo " Syntax: run_experiment [-h|a]"
8384 echo " options:"
@@ -197,100 +198,107 @@ fi
197198
198199if [[ $GOTO -le 4 ]]; then
199200 echo " "
200- if yes_no_question " [4] Do you want to start the ${EMPH} Testbed ${NC} ?" ; then
201- source start_testbed " "
201+ if yes_no_question " [4] Do you want to launch ${EMPH} Say Announcement Menu ${NC} ?" ; then
202+ source ../lab_software/say_announcements/say_announcement_menu " "
202203 fi
203204fi
204205
205206if [[ $GOTO -le 5 ]]; then
206207 echo " "
207- if yes_no_question " [5] Do you want to start ${EMPH} Minecraft ${NC} ?" ; then
208- source start_minecraft " "
208+ if yes_no_question " [5] Do you want to start the ${EMPH} Testbed ${NC} ?" ; then
209+ source start_testbed " "
209210 fi
210211fi
211212
212213if [[ $GOTO -le 6 ]]; then
213214 echo " "
214- if yes_no_question " [6] Do you want to open the ${EMPH} Client Map ${NC} ?" ; then
215- source open_client_map " "
215+ if yes_no_question " [6] Do you want to start ${EMPH} Minecraft ${NC} ?" ; then
216+ source start_minecraft " "
216217 fi
217218fi
218219
219220if [[ $GOTO -le 7 ]]; then
220221 echo " "
221- if yes_no_question " [7] Do you want to open the ${EMPH} Eye-tracker ${NC} program ?" ; then
222- source pupil_recording " open " " "
222+ if yes_no_question " [7] Do you want to open the ${EMPH} Client Map ${NC} ?" ; then
223+ source open_client_map " "
223224 fi
224225fi
225226
226227if [[ $GOTO -le 8 ]]; then
227228 echo " "
228- if yes_no_question " [8] Do you want to play the ${EMPH} Instructive Video ${NC} ?" ; then
229- source play_instructive_video " minecraft_instruction_video.mp4 " " "
229+ if yes_no_question " [8] Do you want to open the ${EMPH} Eye-tracker ${NC} program ?" ; then
230+ source pupil_recording " open " " "
230231 fi
231232fi
232233
233234if [[ $GOTO -le 9 ]]; then
234235 echo " "
235- if yes_no_question " [9] Do you want to play the ${EMPH} CLC Training Video${NC} ?" ; then
236+ if yes_no_question " [9] Do you want to play the ${EMPH} Instructive Video${NC} ?" ; then
237+ source play_instructive_video " minecraft_instruction_video.mp4" " "
238+ fi
239+ fi
240+
241+ if [[ $GOTO -le 10 ]]; then
242+ echo " "
243+ if yes_no_question " [10] Do you want to play the ${EMPH} CLC Training Video${NC} ?" ; then
236244 source play_instructive_video " clc_training_video.mp4" " "
237245 fi
238246fi
239247
240248echo " "
241249echo -e " ${BLACK}${ON_CYAN} Wait for Okay from the Social Science team.${NC} "
242250
243- if [[ $GOTO -le 10 ]]; then
251+ if [[ $GOTO -le 11 ]]; then
244252 echo " "
245- if yes_no_question " [10 ] Do you want to start ${EMPH} Lab Recorder${NC} ?" ; then
253+ if yes_no_question " [11 ] Do you want to start ${EMPH} Lab Recorder${NC} ?" ; then
246254 source start_lab_recorder " "
247255 fi
248256fi
249257
250258echo " "
251259echo -e " ${BLACK}${ON_CYAN} Make sure to press the OK button on Lab Recorder to record anyway before proceeding.${NC} "
252260
253- if [[ $GOTO -le 11 ]]; then
261+ if [[ $GOTO -le 12 ]]; then
254262 echo " "
255- if yes_no_question " [11 ] Do you want to start recording from the ${EMPH} Eye-tracker${NC} program?" ; then
263+ if yes_no_question " [12 ] Do you want to start recording from the ${EMPH} Eye-tracker${NC} program?" ; then
256264 source pupil_recording " start" " "
257265 fi
258266fi
259267
260- if [[ $GOTO -le 12 ]]; then
268+ if [[ $GOTO -le 13 ]]; then
261269 echo " "
262- if yes_no_question " [12 ] Do you want to start ${EMPH} Face and Screen${NC} recordings?" ; then
270+ if yes_no_question " [13 ] Do you want to start ${EMPH} Face and Screen${NC} recordings?" ; then
263271 source image_monitoring " start" " "
264- if yes_no_question " [12 .1] Do you want to start ${EMPH} Face${NC} recordings?" ; then
272+ if yes_no_question " [13 .1] Do you want to start ${EMPH} Face${NC} recordings?" ; then
265273 source video_recording " webcam" " start" " "
266274 fi
267- if yes_no_question " [12 .2] Do you want to start ${EMPH} Screen${NC} recordings?" ; then
275+ if yes_no_question " [13 .2] Do you want to start ${EMPH} Screen${NC} recordings?" ; then
268276 source video_recording " screen" " start" " "
269277 fi
270278 fi
271279fi
272280
273- if [[ $GOTO -le 13 ]]; then
281+ if [[ $GOTO -le 14 ]]; then
274282 echo " "
275- if yes_no_question " [13 ] Do you want to start the ${EMPH} Baseline Tasks${NC} ?" ; then
283+ if yes_no_question " [14 ] Do you want to start the ${EMPH} Baseline Tasks${NC} ?" ; then
276284 source start_baseline_tasks " "
277285 fi
278286fi
279287
280- if [[ $GOTO -le 14 ]]; then
288+ if [[ $GOTO -le 15 ]]; then
281289 echo " "
282- if yes_no_question " [14 ] Do you want to finish ${EMPH} Block 1${NC} ?" ; then
283- if yes_no_question " [14 .1] Do you want to stop ${EMPH} Face${NC} recordings?" ; then
290+ if yes_no_question " [15 ] Do you want to finish ${EMPH} Block 1${NC} ?" ; then
291+ if yes_no_question " [15 .1] Do you want to stop ${EMPH} Face${NC} recordings?" ; then
284292 source video_recording " webcam" " stop" " "
285293 fi
286- if yes_no_question " [14 .2] Do you want to stop ${EMPH} Screen${NC} recordings?" ; then
294+ if yes_no_question " [15 .2] Do you want to stop ${EMPH} Screen${NC} recordings?" ; then
287295 source video_recording " screen" " stop" " "
288296 fi
289297 source image_monitoring " stop" " "
290- if yes_no_question " [14 .3] Do you want to stop recording from the ${EMPH} Eye-tracker${NC} program?" ; then
298+ if yes_no_question " [15 .3] Do you want to stop recording from the ${EMPH} Eye-tracker${NC} program?" ; then
291299 source pupil_recording " stop" " "
292300 fi
293- if yes_no_question " [14 .4] Do you want to stop ${EMPH} LabRecorder${NC} and kill its instances on CAT?" ; then
301+ if yes_no_question " [15 .4] Do you want to stop ${EMPH} LabRecorder${NC} and kill its instances on CAT?" ; then
294302 source stop_lab_recorder
295303 fi
296304 fi
@@ -302,113 +310,113 @@ export EXPERIMENT_BLOCK=2
302310echo " "
303311echo -e " ${BLACK}${ON_YELLOW} Block 2 ${NC} "
304312
305- if [[ $GOTO -le 15 ]]; then
313+ if [[ $GOTO -le 16 ]]; then
306314 echo " "
307- if yes_no_question " [15 ] Do you want to start ${EMPH} Lab Recorder${NC} ?" ; then
315+ if yes_no_question " [16 ] Do you want to start ${EMPH} Lab Recorder${NC} ?" ; then
308316 source start_lab_recorder " "
309317 fi
310318fi
311319
312320echo " "
313321echo -e " ${BLACK}${ON_CYAN} Make sure to press the OK button on Lab Recorder to record anyway before proceeding.${NC} "
314322
315- if [[ $GOTO -le 16 ]]; then
323+ if [[ $GOTO -le 17 ]]; then
316324 echo " "
317- if yes_no_question " [16 ] Do you want to start the ${EMPH} Minecraft Watcher${NC} ?" ; then
325+ if yes_no_question " [17 ] Do you want to start the ${EMPH} Minecraft Watcher${NC} ?" ; then
318326 echo -e " ${YELLOW} Watchers will be closed if the Uber Script is interrupted. Make sure to start them again if needed.${NC} "
319- if yes_no_question " [16 .1] Do you want to start the ${EMPH} Data Watcher${NC} ?" ; then
327+ if yes_no_question " [17 .1] Do you want to start the ${EMPH} Data Watcher${NC} ?" ; then
320328 source minecraft_data_watcher " start" " "
321329 fi
322- if yes_no_question " [16 .2] Do you want to start the ${EMPH} Trial ID Watcher${NC} ?" ; then
330+ if yes_no_question " [17 .2] Do you want to start the ${EMPH} Trial ID Watcher${NC} ?" ; then
323331 source minecraft_trial_watcher " start" " "
324332 fi
325333 fi
326334fi
327335
328- if [[ $GOTO -le 17 ]]; then
336+ if [[ $GOTO -le 18 ]]; then
329337 echo " "
330- if yes_no_question " [17 ] Do you want to start ${EMPH} Audio, Face and Screen${NC} recordings?" ; then
338+ if yes_no_question " [18 ] Do you want to start ${EMPH} Audio, Face and Screen${NC} recordings?" ; then
331339 source image_monitoring " start" " "
332- if yes_no_question " [17 .1] Do you want to start ${EMPH} Audio${NC} recordings?" ; then
340+ if yes_no_question " [18 .1] Do you want to start ${EMPH} Audio${NC} recordings?" ; then
333341 source audio_recording " start" " "
334342 fi
335- if yes_no_question " [17 .2] Do you want to start ${EMPH} Face${NC} recordings?" ; then
343+ if yes_no_question " [18 .2] Do you want to start ${EMPH} Face${NC} recordings?" ; then
336344 source video_recording " webcam" " start" " "
337345 fi
338- if yes_no_question " [17 .3] Do you want to start ${EMPH} Screen${NC} recordings?" ; then
346+ if yes_no_question " [18 .3] Do you want to start ${EMPH} Screen${NC} recordings?" ; then
339347 source video_recording " screen" " start" " "
340348 fi
341349 fi
342350fi
343351
344- if [[ $GOTO -le 18 ]]; then
352+ if [[ $GOTO -le 19 ]]; then
345353 echo " "
346- if yes_no_question " [18 ] Do you want to start recording from the ${EMPH} Eye-tracker${NC} program?" ; then
354+ if yes_no_question " [19 ] Do you want to start recording from the ${EMPH} Eye-tracker${NC} program?" ; then
347355 source pupil_recording " start" " "
348356 fi
349357fi
350358
351359echo " "
352360echo -e " ${BLACK}${ON_CYAN} Wait for the end of the Minecraft missions.${NC} "
353361
354- if [[ $GOTO -le 19 ]]; then
362+ if [[ $GOTO -le 20 ]]; then
355363 echo " "
356- if yes_no_question " [19 ] Do you want to stop recording and close the ${EMPH} Eye-tracker${NC} program?" ; then
364+ if yes_no_question " [20 ] Do you want to stop recording and close the ${EMPH} Eye-tracker${NC} program?" ; then
357365 source pupil_recording " stop" " "
358366 source pupil_recording " close" " "
359367 fi
360368fi
361369
362- if [[ $GOTO -le 20 ]]; then
370+ if [[ $GOTO -le 21 ]]; then
363371 echo " "
364- if yes_no_question " [20 ] Do you want to open the ${EMPH} Final Survey${NC} ?" ; then
372+ if yes_no_question " [21 ] Do you want to open the ${EMPH} Final Survey${NC} ?" ; then
365373 source open_final_survey " "
366374 fi
367375fi
368376
369- if [[ $GOTO -le 21 ]]; then
377+ if [[ $GOTO -le 22 ]]; then
370378 echo " "
371- if yes_no_question " [21 ] Do you want to stop ${EMPH} Audio, Face and Screen${NC} recordings?" ; then
372- if yes_no_question " [21 .1] Do you want to stop ${EMPH} Audio${NC} recordings?" ; then
379+ if yes_no_question " [22 ] Do you want to stop ${EMPH} Audio, Face and Screen${NC} recordings?" ; then
380+ if yes_no_question " [22 .1] Do you want to stop ${EMPH} Audio${NC} recordings?" ; then
373381 source audio_recording " stop" " "
374382 fi
375- if yes_no_question " [21 .2] Do you want to stop ${EMPH} Face${NC} recordings?" ; then
383+ if yes_no_question " [22 .2] Do you want to stop ${EMPH} Face${NC} recordings?" ; then
376384 source video_recording " webcam" " stop" " "
377385 fi
378- if yes_no_question " [21 .3] Do you want to stop ${EMPH} Screen${NC} recordings?" ; then
386+ if yes_no_question " [22 .3] Do you want to stop ${EMPH} Screen${NC} recordings?" ; then
379387 source video_recording " screen" " stop" " "
380388 fi
381389 source image_monitoring " stop" " "
382390 fi
383391fi
384392
385- if [[ $GOTO -le 22 ]]; then
393+ if [[ $GOTO -le 23 ]]; then
386394 echo " "
387- if yes_no_question " [22 ] Do you want to stop ${EMPH} LabRecorder${NC} and kill its instances on CAT?" ; then
395+ if yes_no_question " [23 ] Do you want to stop ${EMPH} LabRecorder${NC} and kill its instances on CAT?" ; then
388396 source stop_lab_recorder
389397 fi
390398fi
391399
392- if [[ $GOTO -le 23 ]]; then
400+ if [[ $GOTO -le 24 ]]; then
393401 echo " "
394- if yes_no_question " [23 ] Do you want to export ${EMPH} Minecraft data${NC} for all trials in the experiment?" ; then
402+ if yes_no_question " [24 ] Do you want to export ${EMPH} Minecraft data${NC} for all trials in the experiment?" ; then
395403 source export_minecraft_data " "
396404 fi
397405fi
398406
399- if [[ $GOTO -le 24 ]]; then
407+ if [[ $GOTO -le 25 ]]; then
400408 echo " "
401- if yes_no_question " [24 ] Do you want to extract ${EMPH} Testbed logs${NC} ?" ; then
409+ if yes_no_question " [25 ] Do you want to extract ${EMPH} Testbed logs${NC} ?" ; then
402410 source extract_testbed_logs " "
403411 fi
404412fi
405413
406414echo " "
407415echo -e " ${BLACK}${ON_CYAN} Wait for the participants to fill up the surveys.${NC} "
408416
409- if [[ $GOTO -le 25 ]]; then
417+ if [[ $GOTO -le 26 ]]; then
410418 echo " "
411- text=" [25 ] Type [${EMPH} quit${NC} ] to end the experiment and close remaining applications and processes: "
419+ text=" [26 ] Type [${EMPH} quit${NC} ] to end the experiment and close remaining applications and processes: "
412420 wait_for_key " $text " " quit"
413421 source end_experiment " "
414422
0 commit comments