Wiki source code of Design Patterns

Version 9.1 by Marlein Vogels on 2022/04/03 17:23

Hide last authors
Marlein Vogels 8.1 1 == Team design pattern I: Basic ==
Sofia Kostakonti 4.1 2 {{html}}
Sofia Kostakonti 5.1 3 <img src="https://xwiki.ewi.tudelft.nl/xwiki/wiki/sce2022group01/download/Main/WebHome/DesignPattern.png?rev=1.1" alt="Design Patterns" width="750"/>
Sofia Kostakonti 4.1 4 {{/html}}
Marlein Vogels 8.1 5
6 **Overview**
7 The design pattern above demonstrates the interactions between Nao and the PwD. The top pattern concerns UC01, the mealtime discourse. The bottom pattern concerns UC02, the mealtime reminder. In this section, the design pattern will be explained step by step.
8
9 First, it should be mentioned that UC01 and UC02 will follow after one another, meaning: if the conclusion from the mealtime discourse (UC01) is that the PwD has not yet had a certain meal, the mealtime reminder will start (UC02). At the next preprogrammed time, UC01 the mealtime discourse will start again, possibly once again causing the UC02 the mealtime reminder to start.
10
11 **Purpose**
12 The purpose of this design pattern is to show first how the mealtime discourse (UC01) works. Secondly, this design pattern aims to show how the meatime reminder (UC02) works step by step.
13
14 **Steps Breakdown**
15 //UC01: The mealtime discourse//
16
17 1. Robot greets PwD by playing “start music”.
18 This way the robot gets the attention from the PwD, without startling the PwD too much.
19 1. Robot aks if PwD has eaten
20 1. PwD answers question 2) from Robot
21 1. Option a - PwD answers question 2) positively: Robot asks what PwD has eaten & plays “stop music” to finish the interaction
22 Option b - PwD answers question 2) negatively: UC02 starts
23
24
25
26 //UC02: The mealtime reminder//
Marlein Vogels 9.1 27
28 1. Robot encourages PwD to eat something and suggests the PwD to prepare the food. Consequently, the PwD will walk to the kitchen/food preparation area.
29 1. Robot plays “Food preparation music”.
Marlein Vogels 8.1 30 This way, after a couple interaction sessions, the PwD might link the food preparation music to the idea to go and eat something.
Marlein Vogels 9.1 31 1. Robots asks PwD to tap the Robot’s head when the food is prepared.
Marlein Vogels 8.1 32 This way, the robot hands over the lead to the PwD to continue the interaction.
Marlein Vogels 9.1 33 1. PwD prepares the food.
34 1. PwD taps the robot’s head to let the robot know the food is prepared.
Marlein Vogels 8.1 35 This is a que for the robot to go to the next step of the interaction.
Marlein Vogels 9.1 36 1. Robot now stops playing the “Food preparation music”.
37 1. Robot compliments the food and wish the PwD a pleasant meal.
Marlein Vogels 8.1 38 This is a way to reward the PwD’s job and to once again stress that eating is good for you.
Marlein Vogels 9.1 39 1. PwD starts eating the food the PwD just prepared.
40 1. Robot starts playing “Eating playlist”.
Marlein Vogels 8.1 41 This change in music is meant to create the association between the music and the eating. After a given amount of time, the next step in the interaction commences: the water check.
Marlein Vogels 9.1 42 1. Robot asks PwD if he/she is having a drink.
43 1. PwD answers question 10) from robot.
44 1. Option a - PwD answers question 10) positively: Robot compliments PwD for staying healthy and hydrated.
Marlein Vogels 8.1 45 Option b - PwD answers question 10) negatively: Robot encourages PwD to have a drink.
Marlein Vogels 9.1 46 1. PwD drinks his/her drink.
Marlein Vogels 8.1 47 The completion of step 12) and the drinking of the PwD in step 13) are the ques for the robot to commence with the next step in the interaction: the company check.
Marlein Vogels 9.1 48 1. Robot asks PwD asks whether he/she has company.
49 1. Option a - PwD answers question 14) positively: Robot compliments PwD.
Marlein Vogels 8.1 50 Option b - PwD answers question 14) negatively: comforts and supports PwD.
Marlein Vogels 9.1 51 1. Robot salutes PwD and optionally plays “Stop music”.
Marlein Vogels 8.1 52 This way, the PwD is made aware of the fact that the interaction has finished.
53