scieee AI-readable full text Open interactive document viewer

Receptionist robot: the role of human-robot interaction in package receival plan negotiation

Arnal Llunell, Estel

Abstract

This thesis explores human-robot interaction (HRI) in the context of a package delivery sce- nario, aiming to evaluate factors such as interaction fluency, likeability, perceived intelligence, understanding of the robot’s task priorities, and overall user satisfaction. The primary objective was to design and execute an experiment that would assess these variables, utilising a com- bination of PDDL planning, and a tele-operator interface integrated into ROS2. Although the experimental design and implementation were successfully executed, the results indicated no statistically significant effects across the examined variables.

Full text

Treball de Fi de Grau Grau en Enginyeria en Tecnologies Industrials (GETI) Receptionist Robot: The Role of Human-Robot Interaction in Package Receival Plan Negotiation REPORT September 11, 2024 Autor: Estel Arnal Llunell Director: Anaís Garrell Zulueta Co-director: Marc Dalmasso Blanch Call: June 2024 Escola Tècnica Superior d’Enginyeria Industrial de Barcelona Exploring Human-Robot Interaction page 1 Abstract This thesis explores human-robot interaction (HRI) in the context of a package delivery scenario, aiming to evaluate factors such as interaction fluency, likeability, perceived intelligence, understanding of the robot’s task priorities, and overall user satisfaction. The primary objective was to design and execute an experiment that would assess these variables, utilising a combination of PDDL planning, and a tele-operator interface integrated into ROS2. Although the experimental design and implementation were successfully executed, the results indicated no statistically significant effects across the examined variables. Resum Aquest treball explora la interacció humà-robot (HRI) en el context d’un escenari de lliurament de paquets, amb l’objectiu d’avaluar factors com la fluïdesa de la interacció, la simpatia, la intel·ligència percebuda, la comprensió de les prioritats de tasca del robot i la satisfacció general de l’usuari. L’objectiu principal era dissenyar i executar un experiment que avalués aquestes variables, utilitzant una combinació de planificació amb PDDL i una interfície de tele-operador integrada en ROS2. Encara que el disseny experimental i la implementació es van executar amb èxit, els resultats no van indicar efectes estadísticament significatius entre les variables examinades. Resumen Este trabajo explora la interacción humano-robot (HRI) en el contexto de un escenario de entrega de paquetes, con el objetivo de evaluar factores como la fluidez de la interacción, la simpatía, la inteligencia percibida, la comprensión de las prioridades de tarea del robot y la satisfacción general del usuario. El objetivo principal era diseñar y ejecutar un experimento que evaluara estas variables, utilizando una combinación de planificación con PDDL y una interfaz de tele-operador integrada en ROS2. Aunque el diseño experimental y la implementación se ejecutaron con éxito, los resultados no indicaron efectos estadísticamente significativos entre las variables examinadas. Contents Abbreviations and symbols 7 1 Introduction 9 1.1 Motivation ......................................... 9 1.2 Prerequisites ........................................ 10 1.3 Objectives ......................................... 11 2 Previous Work 13 3 State of art 15 4 Planning and System Integration 21 4.1 Planning .......................................... 21 4.1.1 Mathematical model ............................... 21 4.1.2 Implementation .................................. 22 4.2 Programming ....................................... 25 5 Experiment design 31 5.1 Data collection ....................................... 31 5.2 Scenario Development .................................. 32 5.3 Documentation ...................................... 33 5.4 Experiment Execution Logistics ............................. 34 5.5 Hypothesis ......................................... 36 6 Results 37 7 Planification 43 8 Budget 45 9 Environmental Impact 47 10 Social and gender equality impact 49 Conclusions 51 A Experiment manual 55 A.1 Experiment Manual for the Operator .......................... 55 A.1.1 PD1 case ...................................... 58 A.1.2 PD2, PA1 case ................................... 59 A.1.3 PD2, PA2 case ................................... 60 A.1.4 PD3, PA1 case ................................... 61 A.1.5 PD3, PA2 case ................................... 62 A.2 Experiment manual for the delivery person ...................... 63 A.2.1 Case A ....................................... 63 A.2.2 Case B ....................................... 63 A.2.3 Case C ....................................... 63 B Data analysis scripts in Python 65 3 B.1 Of every python script .import ............................. 65 B.2 Sorting the data obtained ................................. 66 B.3 Plotting all data. ...................................... 70 B.4 Statistics .......................................... 71 C Research protocol, information sheet and informed consent. 76 C.1 Research protocol ..................................... 76 C.2 Information sheet ..................................... 80 C.3 Informed consent ..................................... 84 List of Figures 1 Representation of the experiment. ........................... 10 2 Robot used for the experiment. ............................. 11 3 SOTA Robot used in experiments both in Japan and Spain. ............. 13 4 Unimate robot. ....................................... 15 5 Pepper robot utilised to interact with humans. .................... 17 6 Jibo robot for speech recognition. ............................ 17 7 Polaris user interface, which includes (a) the Drawing Board and (b) the Plan Visualiser. ......................................... 18 8 Different modes of plan disambiguation in Lemming. The green highlight indicates the next choice point for the user. ......................... 18 9 LTS++ IDE. ........................................ 19 10 The planning task for this project. ............................ 22 11 PlanSys2 design. ...................................... 26 12 PlanSys2 instructions for using TFD plugin. ...................... 26 13 Output transformation to be shown in the interface. ................. 27 14 Buttons used to add restrictions. ............................ 28 15 Interface design. ...................................... 29 16 Sequence of actions the robot can do. .......................... 32 17 Different profiles involved. ................................ 33 18 Example of case P2 instructions provided to the delivery person, detailing role and priorities. ....................................... 34 19 The experimental setup location. ............................ 36 20 Percentages of demographic data. ............................ 37 21 Analysis of "Likeability" and "Perceived intelligence" blocks of the Godspeed, based on the operator involvement. ........................... 39 22 Analysis of Fluency questionnaire results, based on the operator involvement. . . 39 23 Analysis of "Anger", "Confusion", "Fatigue" and "Tension", from POMS questionnaire, results based on the operator involvement. ................... 40 24 Analysis of "Likeability" and "Perceived intelligence" blocks of the Godspeed, based on the number of interactions between the volunteer and the robot during the conversation. ................................... 41 25 Analysis of Fluency questionnaire results and the accuracy of volunteers’ understanding of the robot’s priorities, based on the number of interactions between the volunteer and the robot during the conversation. ................. 41 26 Analysis of "Anger", "Confusion", "Fatigue" and "Tension", from POMS questionnaire, results based on the number of interactions between the volunteer and the robot during the conversation. .............................. 42 4 27 Initial moment of the interface. ............................. 56 28 Interface with the initial plan. .............................. 56 29 Interface with disabled actions. ............................. 57 30 Research protocol page 1. ................................ 76 31 Research protocol page 2. ................................ 77 32 Research protocol page 3. ................................ 78 33 Information sheet page 1. ................................ 80 34 Information sheet page 2. ................................ 81 35 Information sheet page 3. ................................ 82 36 Informed consent page 1. ................................. 84 37 Informed consent page 2. ................................. 85 38 Informed consent page 3. ................................. 86 List of Tables 1 Example of a planner output. .............................. 27 2 Table of equivalences of domain action. ........................ 28 3 Equivalents between each button and the constrain added or removed. . . . . . . 29 4 Summary of Scenarios Used in the Experiments, with detailed explanations provided in Figure 17. .................................... 33 5 Percentages of interactions and operator presence. The en dash indicates that the operator’s appearance is possible but depends on the actions of the delivery person. 35 6 Number of cases related with the appearance of the tele-operator and the number of interactions. ....................................... 35 7 Gantt diagram. ...................................... 43 8 Material used cost. .................................... 45 9 Energy cost. ........................................ 45 10 Summary of Authors by Gender and Nationality. ................... 49 5 Exploring Human-Robot Interaction page 7 Abbreviations and symbols AI Artificial Intelligence EUP End-User Programming HRI Human-Robot Interaction IDE Integrated Development Environment IDE Integrated Development Environment IRI Institut de Robòtica i Informàtica Industrial LTL Linear Temporal Logic NL Natural Language PDDL Planning Domain Definition Language PlanSys2 ROS2 Planning System POMS Profile of Mood States POPF Forward-Chaining Partial-Order Planning ROS2 Robot Operating System 2 TFD Temporal Fast Downward page 14 Report In their case, they deployed the tele-operated robot in a supermarket to hand out recipe flyers, adjusting its social presence according to the three forms. Their findings revealed that customer behaviour depended significantly based on the robot’s social presence. The robot with a moderate level of social presence (costume form) achieved the best overall performance in terms of customer engagement and effectiveness. In the case conducted at IRI, the tele-operated robot was put in the entrance of the faculty cafeteria and provided information about weekly offers. Using the same forms of social presence, the objective was to determine if similar conclusions could be drawn from the data collected in this new cultural context. The experience of participating in this round of experiments helped understand how to design and conduct experiments. While working at IRI, the opportunity of being on the other end also arose, to be a participant of some experiments, which helped understanding the necessary amount of information that should be given to the participants of the experiments. Exploring Human-Robot Interaction page 15 3 State of art Initially, robots were deployed primarily in industrial settings, such as manufacturing floors, where they operated in highly controlled environments, separated from humans for safety reasons. These early robots were designed to perform repetitive, precise tasks, often in isolation, following pre-programmed scripts with limited adaptability. The first significant implementations, such as Unimate in the 1960s (Figure 4), transformed industries like automotive manufacturing by automating welding and assembly tasks. However, these robots were inflexible, posed a safety risk to humans, and lacked any form of interaction beyond their fixed programming. Figure 4: Unimate robot. As technology advanced, particularly in the late 20th century, there was a growing interest in developing robots that could work alongside humans. This led to the emergence of collaborative robots, or "cobots", which are designed to work safely alongside humans in shared workspace. They are capable of sharing workspace with humans and adjusting their actions based on feedback. One of the earliest successful collaborative robots was developed by General Motors and Northwestern University in the 1990s. Its purpose was to assist workers with tasks by sharing physical space without the need for extensive safety barriers. This represented a significant shift from isolated, task-specific machines to interactive partners capable of supporting human efforts. The turn of the 21st century saw rapid advancements in artificial intelligence, sensor technologies, and machine learning, further driving the development of robots that could interact more naturally with humans. Robots like ASIMO by Honda demonstrated the potential for robots to navigate human environments, recognise faces, and respond to simple commands. However, these early interactive robots were still limited in their capacity to understand human behaviour. When humans and robots cooperate to achieve a common objective, the planning framework must generate plans that consider the human behaviour, allocating the suitable complementing actions, and customising them to the participants’ capacities. With the rising popularity of planning tasks, planning languages such as PDDL (Planning Domain Definition Language) [23] or RDDL (Relational Dynamic Influence Diagram Language) [18] were developed to provide a common foundation for integrating planning algorithms. These languages offer a common framework for defining and executing plans in various contexts, such as robotics, logistics, and autonomous systems. However, traditional planning languages like PDDL have limitations, particularly in expressing complex hierarchical structures. This led to the developement of HDDL (Hierarchical Domain Definition Language) [11]. HDDL is an extension of PDDL to support hierarchical planning systems, offering a standardised language and feature set for representing multi-level planning scenarios. This extension facilitates better comparison and integration of different planning models by providing a common input language and feature set for different systems. HDDL is page 16 Report especially useful in hierarchical task networks (HTNs), where tasks can be broken down into subtasks, allowing planners to handle more sophisticated and structured problem domains. Frameworks for planning have been integrated into ROS2 [5], the latest version of the standard robotics software development platform, to facilitate planning within the robot control program. In this project, we utilise PlanSys2 [9], which aims to become the reference task planning framework, akin to the role RosPlan [15] played in ROS [21], the previous version of ROS2. In PlanSys2, there are two planner plugins: POPF (Forward-Chaining Partial-Order Planning) [7] and TFD (Temporal Fast Downward) [20]. These plugins generate plans based on PDDL domain and problem specifications. However, as PlanSys2 is limited to PDDL version 2.1 [17], it imposes some restrictions on the extensions that can be used, in addition to the limitations inherent in the planners themselves. When planning, various factors must be considered, including environment variables, action execution time, and surrounding conditions. In HRI and cooperative tasks, the human behaviour is a complex factor, but what is even more complex is understanding the priorities the person has and adapting to them correctly. Thus, it is essential to set priorities based on the most probable human behaviour so the robot follows a plan that aligns with human expectations. To address this complexity, some researchers have demonstrated that an agent’s state (determined by capacity, knowledge, and motivation) can significantly impact robot behaviour, reflecting human capabilities [4]. Probabilistic planning is another method that has been employed, particularly useful in dynamic and uncertain domains where actions may have nondeterministic effects or a high probability of failure [14]. This approach seeks to maximise the probability of plan success by incorporating uncertainty and variability in action outcomes, allowing for adaptability to changing conditions. Human-robot collaborative planning is increasingly applied in various domains, such as manufacturing, healthcare, and service robotics. In manufacturing, robots are programmed to work alongside humans, performing complementary tasks such as assembly, inspection, and quality control. Planning frameworks like HDDL enable robots to understand task hierarchies and human roles, ensuring safe and efficient collaboration. In healthcare, robots assist in tasks like patient monitoring, medication delivery, and surgery support, where planning must adapt to the dynamic conditions of the human environment and patient needs. Service robots, such as those used in hospitality or domestic assistance, utilise planning systems to interact effectively with users, predict human needs, and respond accordingly. Advanced planning approaches are being explored to enhance human-robot interaction further. These include multi-agent planning, where multiple robots or agents work together to achieve a common goal, and learning-based planning, which incorporates machine learning techniques to adapt plans based on past experiences. Another promising direction is integrating cognitive models of human behaviour into planning systems, allowing robots to anticipate and adapt to human actions more effectively. Moreover, the development of more expressive planning languages and frameworks that integrate temporal, probabilistic, and hierarchical aspects could lead to more robust and flexible planning solutions. In conclusion, the integration of advanced planning languages and frameworks plays a critical role in enhancing human-robot collaboration by allowing robots to generate plans that are context-aware, adaptable, and aligned with human behaviour. Exploring Human-Robot Interaction page 17 The next phase in the evolution of human-robot interaction is now underway. It is characterised by robots with enhanced cognitive abilities and user-friendly interfaces. For example, service robots such as Pepper (Figure 5) and social robots like Jibo (Figure 6) utilise speech recognition, facial expressions and gestures to interact with humans in a more intuitive and responsive ways. Figure 5: Pepper robot utilised to interact with humans. It is anticipated that future systems will incorporate sophisticated models of human behaviour, enabling robots to predict and respond to human needs with greater accuracy. To illustrate, in the healthcare sector, robots could provide assistance to elderly patients not only by carrying out tasks, but also by adapting their approach based on the patient’s mood or physical condition. In the field of education, robots could provide personalised tutoring, adjusting their teaching strategies in real time according to the student’s performance and engagement level. Figure 6: Jibo robot for speech recognition. As robots become more autonomous and capable, it will become increasingly important to address questions of trust, control, and collaboration. There is an increasing requirement for research into the ethical, social, and psychological implications of these interactions. It is essential to address issues such as privacy, safety, and the potential for dependency or over-reliance on robots in order to ensure that these technologies are beneficial and accepted by society. This project’s experiment involved the Wizard of Oz robot presence, as used in [6]. This setup required accurate adherence to the provided plan, meaning that the tele-operator needed to understand and be able to add constraints to the planner to ensure accuracy. Various visual tools have been explored to facilitate this process, each of them with different approaches to enhance user interaction with planning algorithms. These tools help bridge the gap between complex planning systems and human operators, making it easier to understand, manipulate, and refine planning outputs. Some of them include: •PlanVerb [3]focuses on making planning outputs more accessible by transforming pa- page 18 Report Figure 7: Polaris user interface, which includes (a) the Drawing Board and (b) the Plan Visualiser. Figure 8: Different modes of plan disambiguation in Lemming. The green highlight indicates the next choice point for the user. rameterised action sequences into natural language (NL) descriptions. This approach is particularly useful for non-expert users who benefit from verbalised explanations of the planner’s decisions. It not only provides clear explanations of the plan’s actions but also offers summaries and various descriptions tailored to different user needs. This tool is particularly beneficial when the people interacting with PlanVerb may have different interests or knowledge in the details. •Polaris [2]is an EUP system that provides users with flexibility in defining the level of detail in robot programs. It has a Plan Visualiser (Figure 7), allowing users to preview and refine the planner’s output before execution, helping craft more effective programs by exposing the planning process and ensuring alignment with user expectations. This approach empowers users, including those with limited technical expertise, to participate in the planning process. •Web Planner [12]expands on these concepts by offering a cloud-based platform for developing classical planning domains and visualising heuristic state-space search. It includes a code editor and visualisation tools that help connect domain descriptions with resulting plans, aiding both new and experienced users in identifying semantic errors and understanding the planning process through dynamic visual representations. The platform supports the iterative development of planning models, enabling users to experiment with different domain configurations and immediately see the impact on generated plans. Web Planner is particularly valuable for educational purposes and for remote collaboration among planning domain experts. Exploring Human-Robot Interaction page 19 Figure 9: LTS++ IDE. •LTS++ [13](Figure 9provides an interactive development environment for planningbased hypothesis generation, particularly in applications with unreliable observations. It allows domain experts, such as clinicians or network security engineers, to model and generate multiple hypotheses based on incomplete or inconsistent sequences of observations. Since it is intended to enable experts who may not have programming experience to develop models, the tool’s browser-based IDE supports syntax highlighting, error checking, and interactive model testing. LTS++ is particularly useful in contexts where observations cannot be fully explained, offering multiple alternative hypotheses to aid in decision-making. This capability is useful in fields like medical diagnostics or cybersecurity, where missing or conflicting data can complicate the analysis. •Finally, Lemming [1](Figure 8allows users to efficiently narrow down the set of plans and select their preferred options. The tool offers four user experiences: three based on using disjunctive action landmarks to reduce choice points and one using linear temporal logic (LTL) combined with NL instructions to impose additional constraints on the plan set. Lemming is designed to support decision-making in environments where multiple valid plans exist, helping users to refine the planning options based on their preferences or contextual requirements. This approach allows for more interactive and user-guided planning, making the process more transparent and adaptable to specific needs. These tools improve the accessibility of planning algorithms by translating technical outputs into formats that are understandable and actionable for users. This approach is especially important in applications such as tele-operation, assistive robotics, and autonomous systems, where precise execution of planned actions is vital. In summary, these five tools provide distinct approaches to simplifying interactions with planning systems, from natural language explanations and visual previews to hypothesis generation page 20 Report and interactive plan selection. These helped get an idea on how to create an appropriate user interface for a fitting plan selection process. Additionally, a mathematical model was developed to formalise the planning domain, optimise specific objectives, and ensure consistency. Given the unfamiliarity with writing mathematical models, various papers were consulted for guidance. Relevant references include: •"Using the Context-enhanced Additive Heuristic for Temporal and Numeric Planning" [20] provided ideas for nomenclature for the variables, it introduces the action unit ai, which is defined as a tuple that includes the action’s cost, the action itself, the required predicates, and its outcome. •"Optimized Execution of PDDL Plans using Behavior Trees" [10] contributed to the understanding of nomenclature, by defining Πas the task to be performed. This task is composed of the initial situation sO, the goal s∗, possible actions A,the operators O, and the selection variable V. This framework served as the foundation for developing the mathematical model in this project. •"Polynomial-Time in PDDL Input Size: Making the Delete Relaxation Feasible for Lifted Planning" [8]confirmed the correctness of the variable definitions and structural organisation. It supported the use of a task Πconsisting of components similar to those previously mentioned, but this ones were closer to the ones used in this project (Π = ⟨A,P,O, so, g, T ⟩, see Section 4.1.1 for a detailed explanation), being Π = ⟨P,O,A,I,G⟩. Here, Prepresents predicates, Odenotes objects, Astands for actions, Iindicates the initial state, and Gis the goal of the task. This reference also elaborated on how each component could be further decomposed, which was crucial for accurately defining the model. It also helped to make a proper explanation of it. These references provided insights into variable definition, structural formulation, and optimisation techniques, contributing to the development of a rigorous planning model. The incorporation of established methodologies ensured that the model aligns with current best practices while addressing the specific requirements of this project. Exploring Human-Robot Interaction page 21 4 Planning and System Integration 4.1 Planning The planning task can be represented using a mathematical model, which allows for the clear declaration and understanding of all variables involved. This subsection also includes a detailed explanation of the PDDL files used to generate the plan. 4.1.1 Mathematical model The planning task is defined as a tuple Π = ⟨A,P,O, so, g, T ⟩, where Ais a set of actions,Pis a set of predicates,Ois a set of objects,soand gare the initial state and the goal state, respectively, and Tis a set of types of the objects. The predicates are the properties of interest of the objects defined, can be true or false. Each predicate pi∈ P has a tuple of parameter variables (xp1, ..., xpk)of arity k, each of which is assigned a type, xpj ∈ti, where ti∈ T . These predicates are instantiated by substituting each variable with an element from the set of objects oi∈ O that matches the specified type, {xpd →ob|xpa, ob∈tc}. When all variables have been replaced, the predicates are referred to as ground predicates, denoted as PO. Both the initial state soand the goal state gare sets of ground predicates, i.e. so, g ⊆ PO. Additionally, an action unit ai∈ A is a method of changing the state of the domain, and is structured as ⟨c, pre(ai), neff(ai), peff(ai),(xa1, ..., xam)⟩. Here, cis the duration time of the action interpreted as the cost of doing the action, pre(ai)⊂ P expresses the preconditions necessary for the action’s execution, and neff(ai), peff(ai)⊂ P represent the negative and positive resultant effects of the action, correspondingly. Finally, (xa1, ..., xam)are the parameter variables upon which the action depends, with their own type. Similar to predicates, replacing the parameter variables with objects results in the generation of ground actions AO. A ground action aOican be put into effect when pre(aOi)⊆si−1in the current state si−1. After its accomplishment the state is changed so si={si−1\neff(aOi)) ∪peff(aOi)}. A successful plan π∈Πfor the task is a sequence of ground actions π=aO1, ..., aOn, where the first one aO1is applicable in so(i.e., pre(aO1)⊆so), and the outcome of the last action aOnis g(i.e., g⊆sn). Any plan that meets these criteria is acceptable, but the optimal plan is obtained when min(Pn i=1 ci), comparing all possible sequences. For practicality, a function expressing the changing states is created, and can be expressed as sj= ΓaOi→aOj(si−1), where aOi→aOjis the sequence of actions needed to pass from si−1to sj. There is also the possibility of using it with only one action, to know the final state it will induce si= ΓaOi(si−1). So, in the end, a plan πcan be expressed as π={aO1→aOn|sn= ΓaO1→aOn(so), sn⊇g}. 4.1.1.1 Case of use In this package delivery domain in particular, the different sets defined in the mathematical model are defined as shown in Figure 10. Regarding its application, there can be an immense array of potential initial conditions (all the combinations of different prediactes and objects). So lets define an example of a simple case this page 22 Report A={give_receiver, give_someone, place_robot, call_office_notT here, call_office_T here, call_spokesperson- _notT here, call_spokesperson_T here, call_personal_notT here, call_personal_T here, call_teleoperator} give_receiver =⟨10,{ready_to_pick_up(xt221), canDeliver(xt221)},{},{finished(xt1)},(xt221 , xt1)⟩ give_someone =⟨10,{ready_to_pick_up(xt222), canDeliver(xt222)},{},{delivered(xt1)},(xt222, xt1)⟩ place_robot =⟨30,{ready_to_pick_up(xt21), canDeliver(xt21)},{},{delivered(xt1)},(xt21, xt1)⟩ call_office_notThere =⟨15,{not(is_called_office(xt221))},{ready_to_pick_up(xt221 ), canDeliver- (xt221)},{is_called_office(xt221)},(xt221)⟩ call_office_There =⟨15,{not(is_called_office(xt221))},{},{is_called_office(xt221), ready_to_pick_up- (xt221), canDeliver(xt221 )},(xt221)⟩ call_spokesperson_notThere =⟨20,{is_called_office(xt221),not(is_called(xt222)), canDeliver(xt222 )}, {ready_to_pick_up(xt222), canDeliver(xt222 )},{is_called(xt222 )},(xt221, xt222)⟩ call_spokesperson_There =⟨20,{is_called_office(xt221),not(is_called(xt222)), canDeliver(xt222 )}, {},{is_called(xt222 ), ready_to_pick_up(xt222), canDeliver(xt222 )},(xt221, xt222)⟩ call_personal_notThere =⟨15,{not(is_called_personal(xt221)), is_called_office(xt221),(is_called- (xt212)or not(canDeliver(xt212)))},{ready_to_pick_up(xt221 ), canDeliver(xt221)},{is_called- _personal(xt221)},(xt221 )⟩ call_personal_There =⟨15,{not(is_called_personal(xt221)), is_called_office(xt221),(is_called(xt212) or not(canDeliver(xt212)))},{},{ready_to_pick_up(xt221), canDeliver(xt221), is_called- _personal(xt221)},(xt221 )⟩ call_teleoperator =⟨30,{not_in_building(xt221),(is_called(xt212)or not(canDeliver(xt212 )) or (not_in_building(xt222))},{},{finished(xt1)},(xt221, xt222, xt1)⟩ P={canDeliver(xt2), ready_to_pick_up(xt2), not_in_building(xt22 ), is_called(xt222 ), finished(xt3), is_called_office(xt221 ), is_called_personal(xt221 )} O={rbt, recep, tsk, spkper} T={task, location ⊇ {robot, person ⊇ {receiver, spokesperson}}} Figure 10: The planning task for this project. domain will work on: so={(ready_to_pick_up(rbt)),(canDeliver(spkper)),(canDeliver(rbt))} g={(finished(tsk))} It will return: π=⟨call_office_T here, give_receiver⟩ {sf= ΓaO5→aO1(so)|g⊂sf} 4.1.2 Implementation Here are briefly summarised the files with which the plan is found. Two PDDL files are needed, one with the domain and the other with the problem. Then, a planner is used to find the fastest plan that better adapts to the supposed human priorities . A quick explanation of the PDDL language will be given to make it easier to understand the created documents. Exploring Human-Robot Interaction page 23 4.1.2.1 PDDL The PDDL, Planning Domain Definition Language, is a standard encoding language for planning tasks. It’s a human-readable format for problems in automated planning that gives a description of the possible states of the world, a description of the set of possible actions, a specific initial state of the world, and a specific set of desired goals. The structure is, for most PDDL implementation, in two documents, the domain and the problem. The domain is where the actions A,predicates P, and types Tare specified. The problem has the objects Oand the initial soand goal states g. Domain First there is the “define”; all the documents will be inside it, the boundaries of where the domain can be read. Secondly, the “domain” is found, where the name of this domain is defined, so this can be called in the problems PDDL, and there is no confusion if there exists more than one domain. After that, there are the “:requirements” where the dependencies of specific functions are listed. The “:types” are next, where the types of objects that may appear in the problem are specified. Another subcategory is “:predicates”, which consist of different sentences used for defining the conditions and effects of the actions, all the words with a “?” in front are variables and have a type assigned, defined later in the problem. And finally, the ":actions", where all the possible things relevant for the plan the robot can do are specified. Problem The common structure of the document starts with a “define”, like in the domain, after which comes the name of the problem and then the domain this problem belongs to, after a “problem” and “:domain” respectively. Then the “:objects” are defined, which is basically naming the things that affect the plan and assigning a type, or sub-type, to know in which predicate they can go in. Finally, there is the “:init” and “:goal” where the initial circumstances and the objectives of the plan are written. 4.1.2.2 Specific Domain There are several peculiarities in the documents used for this case, so for a better understanding, an explanation is needed. The “:requirements” needed are: •“:adl”: ADL is a super requirement that adds the following used requirements (although they had to be added anyway because otherwise it returned an error): –“:strips”: allows the usage of basic add and delete effects as specified in STRIPS. –“:typing”: allows the usage of typing for objects. Typing is similar to classes and Exploring Human-Robot Interaction page 31 5 Experiment design To ensure the success of this study, several decisions had to be made in advance. As this was the initial experience in designing and conducting such an investigation, the process took longer than anticipated. The inexperience with this type of research contributed to a less efficient process than might have been achieved with greater familiarity. 5.1 Data collection The first step was to define the research objective, given the numerous variables that can arise in human-robot interactions. The focus was established on examining how humans perceive the robot during an interaction while performing a task and the impact this interaction has on their mood. The criteria for analysing the data included the number of interactions between human and robot, as well as whether the objective of delivering the package was achieved. To effectively capture these criteria, existing studies were reviewed to ensure accurate results. Among the evaluated questionnaires were: •Godspeed Questionnaire series [19]: A standardised metric of measures related to human robot interaction perceptions. •Fluency in Human–Robot Collaboration [16]: A survey with both subjective and objective metrics for evaluating human-robot collaborative fluency. •POMS (Profile of Mood States) questionnaire [25]: A five-point adjective-rating scale asking subjects to describe how well an adjective describes his/her feelings. •Thomas–Kilmann Conflict Mode Instrument [22]: an instrument to know which of five conflict-handling modes (collaborating, competing, compromising, accommodating, and avoiding) is the person participating using more. •NASA-TLX (Task Load Index) [24]: measures what is relevant to subjective experiences of workload and the definition of formal assessment of workload across various activities. Only some of them were selected due to the fact that not all of them provided relevant information for the study. The chosen tools included the "Likeability" and "Perceived intelligence" blocks of the Godspeed Questionnaire to understand participants’ impressions of the robot, and the "Anger", "Fatigue", "Tension", and "Confusion" parts of the POMS questionnaire, to evaluate the emotional response elicited by the interaction, and the fluency test. To evaluate whether participants’ moods changed during the experiment, an initial POMS-only questionnaire was added, allowing comparison between pre- and post-experiment responses. Additionally, questions were included to gather demographic data, assess participants’ understanding of the robot’s priorities, and some open questions to capture their opinions about the experiment, like ”What would you improve?”. The final question asked if the participants were aware that the robot was controlled remotely. Collecting demographic information helped identify whether specific groups (e.g., age, gender, educational background) exhibited particular page 32 Report patterns during the experiment. 6 5.2 Scenario Development The next step involved considering the different restrictions and preferences applied in the experiment; how many different cases will there be from the robot and the person side, e.g., the sequence of actions of the robot is shown in Figure 16. There was only one sequence for the robot to reduce the number of people needed for the experiment, as time was limited. Figure 16: Sequence of actions the robot can do. Regarding the delivery person, three distinct profiles were defined, ranked from most to least restrictive: •The package must be handed directly to the addressee. •The package can be entrusted to a reliable person, with priority given to the addressee if possible. •The package should preferably be delivered to the intended recipient. If this is not feasible, it can be left in a secure location that ensures it will be passed on to the recipient at a later time. Both the robot’s and the human’s starting positions are predetermined and consistent across all experiments. The person began at the entrance of IRII, without prior contact with the robot, while the robot remained stationary at the interior entrance of the Laboratory of Mobile Robotics. As illustrated in Figure 16, the robot consistently followed the same path, but the interactions varied based on different possible outcomes. To make the interaction longer, the intended recipient never answered the office phone; however, there were several scenarios involving the personal phone: the recipient could answer and arrive immediately, answer and take 10 min to arrive, or not answer at all. Additionally, the other office staff member who could poten- 6The questionnaires can be found in the following links: Previous questionnaire https://forms.gle/ 826zcqDBfYuvhL3V8 and Posterior questionnaire https://forms.gle/XeumMUo2Eot6QMu76 Exploring Human-Robot Interaction page 33 Figure 17: Different profiles involved. tially receive the package had the option to either answer the phone and come immediately or not answer. Figure 17 provides a summary of all the different profiles encountered during the experiments. As there are a lot of combinations, the ones relevant for the experimentation were the ones really used, due to the others being not relevant or having a too similar result. There were 10 different cases used, the combinations are shown in Table 4. Case number Delivery Profile Robot Profile Addressee Profile Office Staff Profile 1 P1 PR PD1 - 2PD2 3PD3 4 P2 PD1 5PD2 PA1 6PD3 7PD2 PA2 8 P3 PD1 - 9PD2 PA1 10 PD3 Table 4: Summary of Scenarios Used in the Experiments, with detailed explanations provided in Figure 17. Following this, consideration was given to how the interaction would unfold and determining the robot’s responses in these different situations to ensure a smooth experience. Since the interaction was designed to be short, controlled, and straightforward, it was relatively simple to prepare the different dialogues the robot might engage in. It is important to note that, as the scenarios were pre-defined and the robot was tele-operated, actual calls were not made. Instead, the outcomes of the calls were predetermined; the robot would wait for a specified duration based on whether the call was answered or not, and then continue interacting with the delivery person. Additionally, preparing strategies for handling unexpected situations that could arise, ensuring the robot could adapt appropriately and maintain the flow of interaction, was important too. 5.3 Documentation Moving forward, the necessary documentation for the project was prepared. This included the development of a comprehensive research protocol, which outlined the experiment’s objectives, methodologies, and ethical considerations. Additionally, an information sheet was created to page 34 Report fully inform participants about the study’s purpose, procedures, and their rights. An informed consent form was also drafted, clearly explaining the nature of the experiment, the data collection process, and the use of the collected data, ensuring adherence to ethical standards and the protection of participants’ data throughout the research. All these documents can be found in Appendix C. In addition to these documents, detailed role descriptions were developed for both the delivery person and the tele-operator. For the delivery person, the roles were clearly defined for each profile, specifying the priorities. This documentation aimed to eliminate potential misunderstandings and ensure that all roles were clearly understood. An example of these instructions for one of the three possibilities is shown in Figure 18. Figure 18: Example of case P2 instructions provided to the delivery person, detailing role and priorities. For the tele-operator, instructions were provided on their tasks, including how to manage the predefined scenarios and interpret the robot’s behaviour. The documentation also included guidance on operating the interface, detailing how to input necessary parameters. Explanations were given for each scenario, including how to handle situations where the delivery person did not respond as anticipated, ensuring that the tele-operator could effectively handle any deviations and maintain the flow of the interaction. 5.4 Experiment Execution Logistics Next, determining the number of participants required for the experiment was needed before proceeding. Based on guidance from the director and co-director, and considering the scope of the analysis, a decision was made to recruit 30 participants, aiming for an equal proportion of men and women. Once the number of participants was established, preparations were undertaken to ensure everything was in place for a smooth execution. The robot was prepared for the experiment, with attention to configuring the voice modifier, microphone, speaker, and ensuring the communication between the robot and the tele-operator’s computer. Additionally, all required materials were organised, and the documentation was printed and ready for use. The experiment was conducted without additional assistance, except when the addressee or office staff needed to pick up the package, in which case a lab member willingly stepped in to help. Exploring Human-Robot Interaction page 35 Sí No - Teleoperator % 26,67% 23,33% 50,00% 3 4 5 6 7 Interactions % 20,00% 20,00% 20,00% 20,00% 20,00% Table 5: Percentages of interactions and operator presence. The en dash indicates that the operator’s appearance is possible but depends on the actions of the delivery person. Case Teleoperator Nºof interactions more probable Nºof each case 1No 4 3 2- 5 3 3Sí 5 3 4No 4 3 5- 7 6 6Sí 6 5 7No 6 1 8- 3 2 9- 3 2 10 - 3 2 Table 6: Number of cases related with the appearance of the tele-operator and the number of interactions. Participants were organised based on their availability, with specific time slots assigned to each. Given the time constraints, the entire group was organised within a single week. Although the experiment was brief, sessions were spaced 45 minutes apart to allow sufficient time for each participant, beginning at 10:30 and concluding by 17:00 at the latest. Each participant was also given a particular profile to act out during the experiment. Clear instructions were provided at the beginning of the experiment through written instructions, ensuring they understood their responsibilities in the study. To determine which cases and how many of each were used in the research, the most probable number of interactions and the likelihood of the operator’s involvement were calculated for each scenario. These details, along with the final decision on the number of instances for each case, are listed in Table 6. This process ensured an even distribution of these criteria, reflected in the percentages shown in Table 5. To assign cases to participants, the idea was to ensure a diverse representation across gender and age groups, balancing the variety among men and women of different age ranges. A demonstration was also conducted before the main experiment to ensure that all elements, including the robot’s performance and the participants’ understanding of their roles, were functioning as intended. In Figure 19, the experiment setup can be seen. page 36 Report Figure 19: The experimental setup location. 5.5 Hypothesis Before the experiments, the hypotheses were formulated as follows: •HO1 - Impact of Operator Presence on Robot Perception: The presence of the operator negatively affects the participants’ perception of the robot. •HO2 - Impact of Operator Presence on Interaction Fluency: The perceived fluency of the interaction is rated lower when the operator appears. •HO3 - Impact of Operator Presence on Mood (POMS): The presence of the operator during the conversation leads to a deterioration in participants’ mood, measured by the Profile of Mood States (POMS). •HI1 - Perception Variation by Number of Interactions: The perception of the robot changes based on the number of interactions with participants. •HI2 - Interaction Fluency by Number of Interactions: The perceived fluency of the interaction improves as the number of interactions increases. •HI3 - Mood (POMS) Variation by Interaction Duration: Participants’ mood, as measured by POMS, worsens as the duration of the conversation increases. •HI4 - Understanding of Robot Priorities by Interaction Duration: The robot’s priorities are better understood the longer the conversation lasts (more interactions). Exploring Human-Robot Interaction page 37 6 Results The analysis focused on metrics such as interaction fluency, user satisfaction, and the external perception of the robot and its priorities. Data collected from questionnaires, and observations provided insights into correlations, and patterns. All the analysis was carried out in a Python file, which is detailed in Appendinx B. The experiment involved a total of 30 participants, aged within the range of 22 and 40 (µ= 26.0, SD = 4.43). The gender distribution of the participants was predominantly male, with 80% identifying as men and 20% as women. Regarding knowledge in robotics, 36.67% of the participants reported having basic knowledge or elementary understanding of robotics, while another 36.67% indicated having moderate practical experience or academic training in the field. A smaller portion, 16.67%, had no prior knowledge of robotics, and 10% possessed extensive practical experience. This diverse range of expertise ensured a broad spectrum of perspectives and skills among the participants, enriching the study’s findings. The percentages of this demographic information are presented in Figure 20. Figure 20: Percentages of demographic data. To facilitate proper analysis, some data had to be converted into numerical format. For example, responses to the POMS questionnaire [25], which ranged from "Not at All" to "Extremely," were page 38 Report converted to a numerical scale from 0 to 4, respectively. This allowed for more straightforward statistical processing and comparison of the results. Similarly, to evaluate whether the participants correctly understood the priorities, they were asked to rank four statements from highest to lowest priority, such as "the package is delivered to a person in the office", "the delivery person speaks with the tele-operator", "the package is delivered to the addressee", and "the package is left with the robot". Each correct ranking was scored as 1, while incorrect answers were scored as 0, allowing for quantitative analysis of the participants’ understanding. To analyse the data collected from the 30 participants, various statistical methods were employed. Initially, the Shapiro-Wilk test was applied to determine whether the data followed a Gaussian distribution. If the data met the normality assumption, an ANOVA test was conducted to identify any statistically significant variation (p<0.05). When significant variation was found, Tukey’s HSD (Honest Significant Difference) test was applied for further analysis. In cases where the data did not meet the normality condition, a non-parametric Kruskal-Wallis test was used, followed by a Nemenyi test if statistically significant differences were detected. The Shapiro-Wilk test was used to determine which variables followed a normal distribution. When analysing the data based on the number of interactions, variables such as perceived intelligence (from the Godspeed Questionnaire), interaction fluency, and fatigue (from POMS) were normally distributed and could be analysed using ANOVA. However, variables like sympathy (from the Godspeed Questionnaire), priority understanding, and tension, anger, and confusion (all from POMS) did not follow a normal distribution. When evaluating the impact of the operator’s presence, the distribution was similar, with one notable difference: fatigue shifted to a non-normally distributed variable, while tension became normally distributed. Before analysing this round of experiments, we conducted a post-hoc statistical power test to determine which values we can be statistically confident about. Using a significance criterion of p < 0.05, and aiming for a statistical power of 80%, our analysis with 30 volunteers indicated that we could detect effect sizes of η2= 0.736. To test hypothesis HO1, the "Likeability" and "Perceived Intelligence" scales from the Godspeed Questionnaire were used. As seen in Figure 21, participants rated their perception of the robot’s adjectives related to likeability and intelligence in a scale from 1 to 5, both in the presence and absence of the operator. Since the likeablity data failed the Shapiro-Wilk test, a non-parametric Kruskal-Wallis test was conducted, while in the perception data an ANOVA was applied. The results indicated no statistically significant difference between the two conditions: p= 0.48 for "Sympathy," and p= 0.54 for "Perceived Intelligence". Therefore, HO1 is rejected because the operator’s presence had no significant effect on these perceptions. For hypothesis HO2, we assessed the perceived fluency of the human-robot interaction using a dedicated HRI Interaction Fluency questionnaire [16], where statements were rated from 1 to 7 where 1 was completely disagree and 7 completely agree. As shown in Figure 22, this variable passed the Shapiro-Wilk test. Consequently, an ANOVA test was performed, revealing no statistically significant decrease in fluency due to the operator’s presence (p= 0.07). Therefore, HO2 is rejected, as the hypothesis that fluency would decrease was not supported by the data. Exploring Human-Robot Interaction page 39 Figure 21: Analysis of "Likeability" and "Perceived intelligence" blocks of the Godspeed, based on the operator involvement. Figure 22: Analysis of Fluency questionnaire results, based on the operator involvement. To evaluate hypothesis HO3, the "Anger," "Confusion," "Fatigue," and "Tension" subscales from the POMS questionnaire were employed. Participants rated to what degree (from "not at all" to "extremely") they experienced each emotion described by the adjectives. Figure 23 illustrates the results. "Tension" met the assumptions for normality so ANOVA was used, while the remaining subscales did not meet these assumptions and were tested using Kruskal-Wallis. The results showed no significant changes across all emotional states: p= 0.73 for "Anger", p= 0.95 for "Confusion", p= 0.19 for "Fatigue", and p= 0.19 for "Tension". Thus, HO3 is rejected. For hypothesis HI1, "Likeability" and "Perceived Intelligence" were reassessed with respect to the number of interactions. After "Perceived Intelligence" passed the Shapiro-Wilk test, an ANOVA was conducted, while Kruskal-Wallis test was used for "Likeability", revealing no significant variations: p= 0.56 for "Likeability" and p= 0.94 for "Perceived Intelligence" (see Figure 24). Hence, HI1 is rejected. To test HI2, the same interaction fluency measure was used, and after confirming normal distribution via Shapiro-Wilk, an ANOVA was run, detecting no significant differences: p= 0.71 (see Figure 25 -Left). Therefore, HI2 is rejected. Exploring Human-Robot Interaction page 47 9 Environmental Impact Evaluating the environmental impact of this project involves examining both the hardware and software components used. Hardware Impact The main hardware components for this project included a personal laptop, an additional monitor, a keyboard, a mouse, and a robot. The environmental impact of these components includes: •Manufacturing: The production of electronic devices involves resource extraction, energy consumption, and waste generation. While these impacts are inherent to electronic manufacturing, the specific contribution of this project’s hardware is relatively small on an individual basis. •Energy Consumption: The devices used, including the laptop, monitor, and robot, consume electricity during operation. The extent of the environmental impact is influenced by the energy source. At the moment, renewable energy sources, primarily solar and wind power, contribute to about half of Spain’s energy production and consumption. •End-of-Life Disposal: The proper disposal and recycling of electronic components help reduce environmental harm. The hardware used in this project is expected to have a long useful life and can be repurposed for future projects, which helps in minimising waste. Once the hardware reaches the end of its life, it is planned to be recycled appropriately. Software Impact The software utilised in the project includes open-source platforms such as LaTeX, Python, ROS2, and Ubuntu. While software itself does not directly impact the environment, the associated considerations are the development and maintenance of this software. The development and maintenance of software involve computational resources. The use of open-source software in this project supports sustainable practices by reducing reliance on proprietary solutions. In summary, while there are environmental impacts associated with hardware production and energy use, these effects are relatively minor in the context of this project. The focus on using existing resources and promoting sustainability through open-source software has helped to minimise the project’s overall environmental footprint. Exploring Human-Robot Interaction page 49 10 Social and gender equality impact This project has taken into account the current social and gender diversity in society. For this purpose, this section has analysed, with different indicators, the situation of gender and social equality in reference to this work, taking into account its different phases. As explained in Section 5, the experimental phase is based on the interaction of a robot with real people who had to deliver a package in different scenarios where the robot acted as the receiver of the package. For the experiments, a total of 30 people were involved, of which 24 were men and the remaining 6 were women, taking into account that there are more gender options. Most of the participants in the study were fellow university students studying industrial engineering. Looking at these numbers, it is evident that the relationship between men and women in engineering is still very noticeable and differentiated. Even so, according to a study carried out by the Polytechnic University of Catalonia, the number of women who have entered to study engineering at the Higher Technical School of Industrial Engineering has increased notably, going from 15% to 30% in 10 years. The authorship of the different references for this project has also been taken into account in order to observe the ratio of gender and nationality in the world of engineering. In table 10 all the references used for this study are biased by authors gender and nationalities of the authors. Category Count Details Total Authors 71 Male Authors 54 Female Authors 17 Nationalities North America 25 United States (21), Canada (4) Europe 39 United Kingdom (15), Spain (13), Germany (9), Italy (4), France (1), Romania (1), Russia (1) Asia 11 Japan (5), Iran (3), Korea (1), China (1), Other Eastern Europe (1) South America 6Brazil (5), Other Latin America (1) Table 10: Summary of Authors by Gender and Nationality. As stated before, these assumptions are based on a simple differentiation of gender, but the authors respect all gender identities. By this filter, however, we can see that the numbers are not different from the other numbers. Just 23,9% of the references are women and 77,1% are men, showing a difference far removed from equality. It is also important to consider the potential societal impact of this and future research in HRI. As robots evolve to perform more independent and varied tasks, the implications for the work spots could be significant. On the positive side, increased robot participation could reduce the workload on human employees, potentially leading to higher average salaries and shorter work weeks. However, there is also a risk that if economic and labour policies do not adapt, robots could displace human workers, leading to increased unemployment and social challenges. Exploring Human-Robot Interaction page 51 Conclusions In this project, an HRI experiment was designed and executed to evaluate interaction fluency, likeability, perceived intelligence, understanding of the robot’s task priorities, and overall user satisfaction during a package delivery scenario. All the objectives mentioned in Section 1.3 were fulfilled, with each technical component functioning as intended. The PDDL files were developed to accurately represent the proposed problem, and an appropriate solver was selected to generate plans from these files, ensuring that the robot’s actions were optimised according to the experiment’s constraints. The user-friendly interface was created to display the plan in a clear and comprehensive way for the tele-operator. Both the solver and interface were effectively integrated into separate ROS2 nodes, ensuring communication and automatic plan updates when restrictions were added. Although the participants were not as diverse as initially intended, suitable subjects were recruited for the experiments. The data collected was analysed; however, the findings did not reach statistical significance. The lack of significant findings suggests several possibilities. One possibility is that the sample size or participant diversity was insufficient to detect subtle effects, emphasising the need for future studies to incorporate larger and more varied participant groups. Another consideration is the complexity and duration of the interactions; the limited scope of the current interactions might have restricted the range of responses and outcomes, suggesting that more complex and longer interactions could reveal differences not observed in this study. In summary, while this study did not find significant effects among the variables tested, it has provided valuable insights into the design and methodology of HRI experiments. Future work As all hypotheses were rejected, future work should prioritise addressing the increase in sample sizes and diversifying the participants’ demographics. These adjustments could help uncover potential effects that were not apparent in the current study and provide a clearer picture of the relationships between the examined variables. Another factor of future exploration could involve extending the duration and complexity of the interactions, with more decision-making opportunities for participants. This may reveal more differences in results based on interaction longevity. As mentioned previously in Section 1, an objective for future studies is to integrate a conversational model to fully automate interactions. This enhancement is expected to facilitate the incorporation of more complex conversational scenarios. In the open question "What would you improve of the interaction?" of the final questionnaire, several volunteers expressed concerns about the waiting time when the robot was making calls, as it was unclear whether the calls were being made. A participant suggested implementing visual feedback mechanisms while waiting for the call responses could reassure participants that the interaction is still active and the robot has not malfunctioned, thereby improving the overall user experience. There were other suggestions from other participants to start the interaction with the robot’s presentation and instead of waiting for the call answer, when someone is called, let the delivery person talk with them. page 52 Report Another possible improvement could have been incorporating movement into the robot’s actions, like its arms, which were unused in the current study. E.g., the robot could extend its arm to take the package itself, adding a layer of interactivity and realism to the interaction. Exploring Human-Robot Interaction page 53 References [1] T. Chakraborti, J. Kang, F. Fuggitti, M. Katz, and S. Sohrabi, “Interactive Plan Selection Using Linear Temporal Logic, Disjunctive Action Landmarks, and Natural Language Instruction,” 21, vol. 38, Mar. 2024, pp. 23 775–23 777. doi:10.1609/aaai.v38i21.30561. [Online]. Available: https://ojs.aaai.org/index.php/AAAI/article/view/30561. [2] D. Porfirio, M. Roberts, and L. M. Hiatt, “Goal-oriented end-user programming of robots,” in Proceedings of the 2024 ACM/IEEE International Conference on Human-Robot Interaction, ser. HRI ’24, Boulder, CO, USA: Association for Computing Machinery, 2024, pp. 582– 591. doi:10.1145/3610977.3634974. [Online]. Available: https://doi.org/10.1145/ 3610977.3634974. [3] G. Canal, S. Krivić, P. Luff, and A. Coles, “PlanVerb: Domain-Independent Verbalization and Summary of Task Plans,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 36(9), Jun. 2022, pp. 9698–9706. doi:10.1609/aaai.v36i9.21204. [4] S. Izquierdo-Badiola, G. Canal, C. Rizzo, and G. Alenyà, “Improved Task Planning through Failure Anticipation in Human-Robot Collaboration,” in IEEE International Conference on Robotics and Automation (ICRA), May 2022, pp. 7875–7880. doi:10 .1109/ ICRA46639. 2022.9812236. [5] S. Macenski, T. Foote, B. Gerkey, C. Lalancette, and W. Woodall, “Robot Operating System 2: Design, architecture, and uses in the wild,” 66, vol. 7, 2022, eabm6074. doi:10.1126/ scirobotics.abm6074. [Online]. Available: https://www.science.org/doi/abs/10. 1126/scirobotics.abm6074. [6] S. Song, J. Baba, J. Nakanishi, Y. Yoshikawa, and H. Ishiguro, “Costume vs. Wizard of Oz vs. Telepresence: How Social Presence Forms of Tele-operated Robots Influence Customer Behavior,” in 2022 17th ACM/IEEE International Conference on Human-Robot Interaction (HRI), 2022, pp. 521–529. doi:10.1109/HRI53351.2022.9889665. [7] A. Coles, A. Coles, M. Fox, and D. Long, “Forward-Chaining Partial-Order Planning,” 1, vol. 20, May 2021, pp. 42–49. doi:10.1609/icaps.v20i1.13403. [Online]. Available: https://ojs.aaai.org/index.php/ICAPS/article/view/13403. [8] P. Lauer, A. Torralba, D. Fišer, D. Höller, J. Wichlacz, and J. Hoffmann, “Polynomial-Time in PDDL Input Size: Making the Delete Relaxation Feasible for Lifted Planning,” in Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21, Z.-H. Zhou, Ed., Main Track, International Joint Conferences on Artificial Intelligence Organization, Aug. 2021, pp. 4119–4126. doi:10.24963/ijcai.2021/567. [Online]. Available: https://doi.org/10.24963/ijcai.2021/567. [9] F. Martín, J. Ginés, V. Matellán, and F. J. Rodríguez, “PlanSys2: A Planning System Framework for ROS2,” vol. abs/2107.00376, 2021. arXiv: 2107.00376. [Online]. Available: https: //arxiv.org/abs/2107.00376. [10] F. Martín Rico, M. Morelli, H. Espinoza, F. J. Rodríguez-Lera, and V. Matellán Olivera, “Optimized Execution of PDDL Plans using Behavior Trees,” in Proceedings of the 20th International Conference on Autonomous Agents and MultiAgent Systems, ser. AAMAS ’21, Virtual Event, United Kingdom: International Foundation for Autonomous Agents and Multiagent Systems, 2021, pp. 1596–1598, isbn: 9781450383073. [11] D. Höller, G. Behnke, P. Bercher, et al., “HDDL: An Extension to PDDL for Expressing Hierarchical Planning Problems,” 06, vol. 34, Apr. 2020. doi:10.1609/aaai.v34i06.6542. [Online]. Available: https://ojs.aaai.org/index.php/AAAI/article/view/6542. [12] M. Magnaguagno, R. Pereira, M. Móre, and F. Meneguzzi, “Web Planner: A Tool to Develop, Visualize, and Test Classical Planning Domains,” in Mar. 2020, pp. 209–227, isbn: 978-3-030-38560-6. doi:10.1007/978-3-030-38561-3_11. page 54 Report [13] S. Sohrabi, O. Udrea, A. Riabov, and O. Hassanzadeh, “Interactive Planning-Based Hypothesis Generation with LTS++,” in Mar. 2020, pp. 189–207, isbn: 978-3-030-38560-6. doi: 10.1007/978-3-030-38561-3_10. [14] G. Canal, M. Cashmore, S. Krivić, G. Alenyà, D. Magazzeni, and C. Torras, “Probabilistic Planning for Robotics with ROSPlan,” in Towards Autonomous Robotic Systems, Springer International Publishing, 2019, pp. 236–250, isbn: 978-3-030-23807-0. doi:10.1007/978- 3-030-23807-0\_20. [15] M. Cashmore, M. Fox, D. Long, et al., “ROSPlan: Planning in the Robot Operating System,” 1, vol. 25, Apr. 2015, pp. 333–341. doi:10.1609/icaps.v25i1.13699. [Online]. Available: https://ojs.aaai.org/index.php/ICAPS/article/view/13699. [16] G. Hoffman, “Evaluating fluency in human–robot collaboration,” 2013. [17] M. Fox and D. Long, “PDDL2.1: An Extension to PDDL for Expressing Temporal Planning Domains,” vol. abs/1106.4561, 2011. arXiv: 1106.4561. [Online]. Available: http: //arxiv.org/abs/1106.4561. [18] S. Sanner, “Relational Dynamic Influence Diagram Language (RDDL): Language description,” Unpublished Manuscript, Australian National University, Jan. 2011. [Online]. Available: http://users.cecs.anu.edu.au/~ssanner/IPPC_2011/RDDL.pdf. [19] C. Bartneck, E. Croft, and D. Kulic, “Measurement instruments for the anthropomorphism, animacy, likeability, perceived intelligence, and perceived safety of robots,” 1, vol. 1, 2009, pp. 71–81. doi:10.1007/s12369-008-0001-3. [20] P. Eyerich, R. Mattmüller, and G. Röger, “Using the Context-enhanced Additive Heuristic for Temporal and Numeric Planning,” 1, vol. 19, Oct. 2009, pp. 130–137. doi:10.1609/ icaps.v19i1.13373. [Online]. Available: https://ojs.aaai.org/index.php/ICAPS/ article/view/13373. [21] M. Quigley, B. Gerkey, K. Conley, et al., “ROS: An open-source Robot Operating System,” in Proc. of the IEEE Intl. Conf. on Robotics and Automation (ICRA) Workshop on Open Source Robotics, Kobe, Japan, May 2009. [22] K. W. Thomas, “Thomas-Kilmann conflict mode,” 11, vol. 1, 2008. [23] M. Ghallab, C. Knoblock, D. Wilkins, et al., “PDDL - the Planning Domain Definition Language,” Aug. 1998. [24] S. G. Hart and L. E. Staveland, “Development of NASA-TLX (Task Load Index): Results of empirical and theoretical research,” 3, vol. 1, Amsterdam, Holland, 1988, pp. 139–183. [25] D. M. Mcnair, M. Lorr, and L. F. Droppleman, “Two EITS Manual for the Profile of Mood States (1971 & 1992),” 1971. [Online]. Available: https://api.semanticscholar.org/ CorpusID:141715944. Exploring Human-Robot Interaction page 55 A Experiment manual A.1 Experiment Manual for the Operator TASK The robot is located at the entrance of the IRII: •The robot must be operated. •Tell what’s on the interface. •Get the package delivered following the displayed plans. SPEECH STYLE Talk like you are a robot. •The instructions you have to say will be in the interface. There are two types of information given: •The one that indicates what is to be communicated to the person, which begins with a “Inform: ...” •The one that indicates the action you have to do, that is, the one that the robot should carry out, which is not indicated at all, but since there are only two types, it is not necessary. •If you make a mistake when saying an indication, simply answer: "I made a mistake" •In the event that the distributor makes a proposal that is not the next step that appears on the screen, it must be told: "Good idea, but it would seem to you before to try (next step of the plane)" •If this proposal follows the line of the plan that was being followed, it is told: "Good idea, ... and if it is an action that must be made to say that it will now be done." More detailed instructions in each case; however, this is indicative, change according to convenience. WHAT TO DO WHEN NO CONCLUSION IS REACHED WITH THE ROBOT Perhaps the case will reach a point where no satisfactory conclusion can be reached by the distributor and the robot, in this case, the voice modifier must be deactivated, and ask the distributor, already doing as an assistant robot, what is the problem (which in this case is known to be that the package cannot be delivered under the conditions said by the robot), and try to solve it. INTERFACE OPERATION The interface is where the plans to follow will be shown, after adding restrictions the plan will be updated automatically. In order to know what to do in all situations. page 62 Report A person will come to give a package, propose the plan and if the plan is not accepted because it cannot do some actions, select them to remove them. A.1.5 PD3, PA2 case When you call, wait 10-15 seconds before you tell what you put in the plan. Before starting, always say “Good day, how can I help you?”. When you call OFFICE →NO ANSWER, click on “Office phone not answered”. If you can’t leave it where the robot clicks on “The robot can’t receive”. If call PERSONAL →NO ANSWER, click on “Personal phone not answered”. (he/she can decide call another person from the institute to pick it up or leave) If it is decided to call SOMEONE ELSE (click on “Preference giving someone else”) →ANSWERED AND SAY HE/SHE IS COMING. Exploring Human-Robot Interaction page 63 A.2 Experiment manual for the delivery person A.2.1 Case A TASK You will be given a package with a receiver and the aim is to deliver it. You act as a delivery provider of an urgent delivery service and, in addition to this package, you must keep in mind that you have more packages to deliver. Due to the delivery policies of the shipping company, to deliver the package it is necessary the signature of a person, prioritising the signature of the recipient of the package. A.2.2 Case B TASK You will be given a package with a receiver and the aim is to deliver it. You act as a delivery provider of an urgent delivery service and, in addition to this package, you must keep in mind that you have more packages to deliver. Due to the delivery policies of the shipping company, to deliver the package it is necessary the sign of the receiver, under no condition can it be delivered to someone to whom it is not addressed. A.2.3 Case C TASK You will be given a package with a receiver and the aim is to deliver it. You act as a delivery provider of an urgent delivery service and, in addition to this package, you must keep in mind that you have more packages to deliver. Due to the delivery policies of the shipping company, to deliver the package it is prioritised to deliver it to a person, conveniently to the exact receiver of the package. If this is not possible, you can deliver it in a reliable place that guarantees that the package will be delivered later. Exploring Human-Robot Interaction page 65 B Data analysis scripts in Python This code was created in a Jupyter Notebook. B.1 Of every python script .import 1 2import numpy as np 3import matplotlib.pyplot as plt 4from scipy import stats 5import scikit_posthocs as sp 6from statsmodels.sandbox.stats.multicomp import multipletests 7from statsmodels.stats.multicomp import pairwise_tukeyhsd 8import statsmodels.stats.power as smp 9 10 # To run this code, if statistic wanted, the plots must not be run, if not it will give an error. And if wanted the plots, the statistics should not be run either. ,→ ,→ 11 12 13 file_name ='QüestionariPosterior(respuestas).csv' 14 df =pd.read_csv(file_name) 15 df.columns =['Marca de temps','Casos','Nom','Edat','Gènere','Educació', 16 'Coneixements de robòtica','1-','2-','3-','4-','5-','6-','7-', 17 '8-','9-','10-','Fluency1','Fluency2','Fluency3','Fluency4', 18 'Fluency5','Fluency6','Fluency7','Fluency8','Fluency9','Fluency10', 19 'Fluency11','Fluency12','Fluency13','POMS_tension1','POMS_tension2', 20 'POMS_tension3','POMS_tension4','POMS_tension5','POMS_tension6', 21 'POMS_tension7','POMS_anger1','POMS_anger2','POMS_anger3', 22 'POMS_anger4','POMS_anger5','POMS_anger6','POMS_anger7', 23 'POMS_anger8','POMS_anger9','POMS_anger10','POMS_fatigue1', 24 'POMS_fatigue2','POMS_fatigue3','POMS_fatigue4','POMS_fatigue5', 25 'POMS_fatigue6','POMS_confusion1','POMS_confusion2', 26 'POMS_confusion3','POMS_confusion4','POMS_confusion5', 27 'POMS_confusion6','Sorted_priorities1','Sorted_priorities2', 28 'Sorted_priorities3','Sorted_priorities4','Agree?','confidence', 29 'Tornaries a fer-ho?','Per què?','T\'ha sorprès alguna cosa?', 30 'T\'ha molestat alguna cosa?','Què faries per millorar la interacció?', 31 'Robot teleoperat'] 32 print (df.columns) 33 34 file_name_pre ='QüestionariPrevi(respuestas).csv' 35 df2 =pd.read_csv(file_name_pre) 36 df2.columns =['Temps','Nom','POMS_tension1','POMS_tension2', 37 'POMS_tension3','POMS_tension4','POMS_tension5','POMS_tension6', 38 'POMS_tension7','POMS_anger1','POMS_anger2','POMS_anger3', 39 'POMS_anger4','POMS_anger5','POMS_anger6','POMS_anger7', 40 'POMS_anger8','POMS_anger9','POMS_anger10','POMS_anger11', 41 'POMS_fatigue1','POMS_fatigue2','POMS_fatigue3','POMS_fatigue4', page 66 Report 42 'POMS_fatigue5','POMS_fatigue6','POMS_confusion1','POMS_confusion2', 43 'POMS_confusion3','POMS_confusion4','POMS_confusion5', 44 'POMS_confusion6'] B.2 Sorting the data obtained 45 ## assigning interactions and the apperarance of the operator to the cases 46 inter_dict ={ 47 "Cas 1":4,"Cas 2":5,"Cas 3":5,"Cas 4":4, 48 "Cas 5":7,"Cas 6":6,"Cas 7":6,"Cas 8":3, 49 "Cas 9":3,"Cas 10":3 50 } 51 52 oper_dict ={ 53 "Cas 1":False,"Cas 2":True,"Cas 3":True,"Cas 4":False, 54 "Cas 5":"NSNC","Cas 6":True,"Cas 7":False,"Cas 8":False, 55 "Cas 9":"NSNC","Cas 10":True 56 } 57 58 cases =df["Casos"].values 59 inter_class =np.array([inter_dict[case] for case in cases]) 60 oper_class =np.array([oper_dict[case] for case in cases]) 61 62 # Get age by stripes 63 age =df["Edat"].values 64 age_transformed =np.where(age < 25,1, age) # 18-24 65 age_transformed =np.where((age >= 25)&(age < 35), 2, age_transformed) # 25-34,→ 66 age_transformed =np.where((age >= 35)&(age < 45), 3, age_transformed) # 35-44,→ 67 age_transformed =np.where(age >= 45,4, age_transformed) # 45+ 68 69 mean_age =df["Edat"].mean() 70 std_dev_age =df["Edat"].std() 71 72 73 print("Max age:",max(df["Edat"])) 74 print("Min age:",min(df["Edat"])) 75 print("Mean of age:", mean_age) 76 print("Standard Deviation of age:", std_dev_age) 77 78 79 unique, counts =np.unique(age_transformed, return_counts=True) 80 age_percentage =(counts /len(age_transformed)) * 10 81 age_transformed2 =["18-24","25-34","35-44"] 82 83 colores =["#EE6055","#60D394","#AAF683","#FFD97D","#FF9B85"] 84 plt.pie(age_percentage, labels=age_transformed2, autopct="%0.1f %%", colors=colores),→ Exploring Human-Robot Interaction page 67 85 plt.title("Age percentages") 86 plt.axis("equal") 87 plt.show() 88 89 90 91 gender_percentage =df["Gènere"].value_counts(normalize=True)* 100 92 print("\nPercentage of each gender:", gender_percentage) 93 94 colores =["#EE6055","#60D394","#AAF683","#FFD97D","#FF9B85"] 95 plt.pie(gender_percentage, labels=["Home","Dona"], autopct="%0.1f %%", colors=colores),→ 96 plt.title("Gender percentages") 97 plt.axis("equal") 98 plt.show() 99 100 robotics_percentage = 101 df["Coneixements de robòtica"].value_counts(normalize=True)* 100 102 print("\nPercentage of knowledge in robotics:", robotics_percentage) 103 104 robotics =["Coneixement bàsic (coneixements elementals)", 105 "Experiència pràctica moderada\no formació acadèmica en robòtica", 106 "Cap coneixement","Àmplia experiència pràctica"] 107 colores =["#EE6055","#60D394","#AAF683","#FFD97D","#FF9B85"] 108 plt.pie(robotics_percentage, labels=robotics, autopct="%0.1f %%", colors=colores),→ 109 plt.title("Percentages of robotics knowledge") 110 plt.axis("equal") 111 plt.show() 112 113 knowledge =df["Coneixements de robòtica"].values 114 knowledge1 =np.where(knowledge == "Cap coneixement",1, knowledge) 115 knowledge1 =np.where(knowledge == "Coneixement bàsic (coneixements elementals)",2, knowledge1),→ 116 knowledge1 =np.where(knowledge == "Coneixement teòric limitat o poca experiència pràctica (capacitat per realitzar tasques simples)",3, knowledge1) ,→ ,→ 117 knowledge1 =np.where(knowledge == "Experiència pràctica moderada o formació acadèmica en robòtica",4, knowledge1),→ 118 knowledge1 =np.where(knowledge == "Àmplia experiència pràctica",5, knowledge1) 119 print("\nMean knowledge in robotics:", knowledge1.mean()) 120 print("\nSD knowledge in robotics:", knowledge1.std()) 121 122 # Godspeed test 123 # Sympathy 124 sympathy =df.loc[:, "1-":"5-"].values 125 mean_sympathy =sympathy.mean(axis=1) 126 127 # Perceived intelligence page 68 Report 128 perceived_intelligence =df.loc[:, "6-":"10-"].values 129 mean_perc_int =perceived_intelligence.mean(axis=1) 130 131 # Fluency data 132 df["Fluency3"]=8-df["Fluency3"]# to change the reverse questions 133 df["Fluency5"]=8-df["Fluency5"] 134 135 fluency =df.loc[:, "Fluency1":"Fluency13"].values 136 mean_fluency =fluency.mean(axis=1) 137 138 # POMS data 139 def convert_poms_data(df1, df2, prefix, num_cols): 140 nonnum_data1 =df1.loc[:, [f"{prefix}{i}"for iin range(1, num_cols+1)]].values,→ 141 nonnum_data2 =df2.loc[:, [f"{prefix}{i}"for iin range(1, num_cols+1)]].values,→ 142 143 data1 =np.where(nonnum_data1 == "En absolut",0, nonnum_data1) 144 data1 =np.where(nonnum_data1 == "Una mica",1, data1) 145 data1 =np.where(nonnum_data1 == "Moderadament",2, data1) 146 data1 =np.where(nonnum_data1 == "Bastant",3, data1) 147 data1 =np.where(nonnum_data1 == "Extremadament",4, data1) 148 data1 =data1.astype(int) 149 150 data2 =np.where(nonnum_data2 == "En absolut",0, nonnum_data2) 151 data2 =np.where(nonnum_data2 == "Una mica",1, data2) 152 data2 =np.where(nonnum_data2 == "Moderadament",2, data2) 153 data2 =np.where(nonnum_data2 == "Bastant",3, data2) 154 data2 =np.where(nonnum_data2 == "Extremadament",4, data2) 155 data2 =data2.astype(int) 156 157 return data1 -data2 158 159 # Tension 160 POMStension =convert_poms_data(df, df2, "POMS_tension",7) 161 mean_POMStension =POMStension.mean(axis=1) 162 163 # Anger 164 POMSanger =convert_poms_data(df, df2, "POMS_anger",10) 165 mean_POMSanger =POMSanger.mean(axis=1) 166 167 # Fatigue 168 POMSfatigue =convert_poms_data(df, df2, "POMS_fatigue",6) 169 mean_POMSfatigue =POMSfatigue.mean(axis=1) 170 171 # Confusion 172 POMSconfusion =convert_poms_data(df, df2, "POMS_confusion",6) 173 mean_POMSconfusion =POMSconfusion.mean(axis=1) 174 Exploring Human-Robot Interaction page 69 175 # Priorities 176 priorities =df.loc[:, "Sorted_priorities1":"Sorted_priorities4"].values 177 priority =np.where(priorities == "Més prioritària",1, priorities) 178 priority =np.where(priorities == "Menys prioritària",4, priority) 179 priority =np.where(priorities == "2",2, priority) 180 priority =np.where(priorities == "3",3, priority) 181 182 priority =(priority == np.arange(1,5)).astype(int) 183 184 185 186 # organise data by interactions 187 df["Casos"]=inter_class 188 algo_inter ={} 189 for jin range(3,8): 190 interactions =df.index[df["Casos"]== j].tolist() 191 algo_inter.update({ 192 f"sympathy{j}": sympathy[interactions], 193 f"perc_intel{j}": perceived_intelligence[interactions], 194 f"fluency{j}": fluency[interactions], 195 f"POMStension{j}": POMStension[interactions], 196 f"POMSanger{j}": POMSanger[interactions], 197 f"POMSfatigue{j}": POMSfatigue[interactions], 198 f"POMSconfusion{j}": POMSconfusion[interactions], 199 f"priority{j}": priority[interactions], 200 }) 201 202 # organise data by operator 203 df["Casos"]=oper_class 204 205 # Adjust the cases where it was up to the person if the operator appeared 206 df.loc[[4,8,11,16,17,20,24,29], "Casos"]=[df["Casos"][0], 207 df["Casos"][3], df["Casos"][3], df["Casos"][0], df["Casos"][0], 208 df["Casos"][3], df["Casos"][3], df["Casos"][3]] 209 cases_count =df['Casos'].value_counts() 210 print("\nCases count:", cases_count) 211 algo_oper ={} 212 for jin [df["Casos"][0], df["Casos"][3]]: 213 operator_indices =df.index[df["Casos"]== j].tolist() 214 algo_oper.update({ 215 f"sympathy_{j}": sympathy[operator_indices], 216 f"perc_intel_{j}": perceived_intelligence[operator_indices], 217 f"fluency_{j}": fluency[operator_indices], 218 f"POMStension_{j}": POMStension[operator_indices], 219 f"POMSanger_{j}": POMSanger[operator_indices], 220 f"POMSfatigue_{j}": POMSfatigue[operator_indices], 221 f"POMSconfusion_{j}": POMSconfusion[operator_indices], 222 f"priority_{j}": priority[operator_indices], 223 }) page 70 Report 224 # print(algo_oper["sympathy_True"],algo_oper["sympathy_False"]) 225 226 # Merge the dictionaries for analysis 227 algo ={**algo_inter, **algo_oper} 228 229 # STATISTICS post-hoc statistical power test 230 231 power_analysis =smp.TTestIndPower() 232 sample_size =power_analysis.solve_power(nobs1=len(df), power=0.8, alpha=0.05) 233 print(sample_size) 234 235 # List of metrics to analyze 236 metrics =[ 237 ("sympathy","Sympathy"), 238 ("perc_intel","Perceived Intelligence"), 239 ("fluency","Fluency"), 240 ("POMStension","Tension"), 241 ("POMSanger","Anger"), 242 ("POMSfatigue","Fatigue"), 243 ("POMSconfusion","Confusion"), 244 ("priority","Priority") 245 ] B.3 Plotting all data. 246 # plot data by interactions 247 def plot_metric_boxplots(metrics): 248 249 for metric, metric_name in metrics: 250 calculate_means(metric) 251 metric_data =[algo[f"{metric}{j}"].flatten() for jin range(3,8)if algo[f"{metric}{j}"].size > 0],→ 252 253 if not metric_data: 254 print(f"No data available for {metric_name}. Skipping plot.") 255 continue 256 257 plt.figure() 258 plt.boxplot(metric_data, labels=[f'{j}'for jin range(3,8)]) 259 plt.title(f'Boxplot of {metric_name}') 260 plt.ylabel(f'{metric_name}Scores') 261 plt.xlabel('Interactions') 262 plt.show() 263 264 plot_metric_boxplots(metrics) 265 # plot data by operator 266 def plot_metric_boxplots(metrics): 267 for metric, metric_name in metrics: Exploring Human-Robot Interaction page 71 268 metric_data =[] 269 # Ensure 'Casos'is an index or use appropriate column indices 270 for jin ["False","True"]: 271 metric_data.append(algo[f"{metric}_{j}"].flatten().astype(float)) 272 273 # If there's no data to plot, skip to the next metric 274 if not metric_data: 275 continue 276 277 # Ensure all arrays are cleaned of NaN values 278 metric_data_cleaned =[data[~np.isnan(data)] for data in metric_data] 279 280 # Check if all cleaned data arrays have values 281 if not all(len(data) >0for data in metric_data_cleaned): 282 continue 283 284 # Determine the global min and max for the y-axis 285 all_data =np.concatenate(metric_data_cleaned) 286 y_min, y_max =np.min(all_data), np.max(all_data) 287 288 # Plot each dataset in a separate figure 289 for i, data in enumerate(metric_data_cleaned): 290 print(data) 291 plt.figure() 292 plt.boxplot(data) 293 plt.title(f'Boxplot of {metric_name}') 294 plt.ylabel(f'{metric_name}Scores') 295 plt.xlabel(f'Operator {["False","True"][i]}') 296 plt.ylim(y_min -0.5, y_max +0.5)# Set the y-axis limits 297 plt.show() 298 299 # Example usage 300 plot_metric_boxplots(metrics) B.4 Statistics 301 # FUNCTIONS for interactions 302 def calculate_means(metric): 303 for jin range(3,8): 304 metric_key =f"{metric}{j}" 305 if algo[metric_key].shape[0]> 1: 306 means =[np.mean(comp) for comp in algo[metric_key]] 307 algo[metric_key] =np.array([means]) 308 elif algo[metric_key].shape[0]== 1: 309 algo[metric_key] =np.mean(algo[metric_key], axis=1) 310 311 def shapiro_test(metric): 312 metric_data =[algo[f"{metric}{j}"].flatten() for jin range(3,8)if algo[f"{metric}{j}"].size > 0],→ page 78 Report Figure 32: Research protocol page 3. Exploring Human-Robot Interaction page 79 page 80 Report C.2 Information sheet Figure 33: Information sheet page 1. Exploring Human-Robot Interaction page 81 Figure 34: Information sheet page 2. page 82 Report Figure 35: Information sheet page 3. Exploring Human-Robot Interaction page 83 page 84 Report C.3 Informed consent Figure 36: Informed consent page 1. Exploring Human-Robot Interaction page 85 Figure 37: Informed consent page 2. page 86 Report Figure 38: Informed consent page 3.