scieee AI-readable full text Open interactive document viewer

A human-like upper-limb motion planner: generating naturalistic movements for humanoid robots

Gulletta, Gianpaolo; Silva, Eliana Costa e; Erlhagen, Wolfram; Meulenbroek, Ruud; Costa, Maria Fernanda Pires; Bicho, Estela

Abstract

As robots are starting to become part of our daily lives, they must be able to cooperate in a natural and efficient manner with humans to be socially accepted. Human-like morphology and motion are often considered key features for intuitive human–robot interactions because they allow human peers to easily predict the final intention of a robotic movement. Here, we present a novel motion planning algorithm, the Human-like Upper-limb Motion Planner, for the upper limb of anthropomorphic robots, that generates collision-free trajectories with human-like characteristics. Mainly inspired from established theories of human motor control, the planning process takes into account a task-dependent hierarchy of spatial and postural constraints modelled as cost functions. For experimental validation, we generate arm-hand trajectories in a series of tasks including simple point-to-point reaching movements and sequential object-manipulation paradigms. Being a major contribution to the current literature, specific focus is on the kinematics of naturalistic arm movements during the avoidance of obstacles. To evaluate human-likeness, we observe kinematic regularities and adopt smoothness measures that are applied in human motor control studies to distinguish between well-coordinated and impaired movements. The results of this study show that the proposed algorithm is capable of planning arm-hand movements with human-like kinematic features at a computational cost that allows fluent and efficient human–robot interactions.

Full text

Research Article A Human-like Upper-limb Motion Planner: Generating naturalistic movements for humanoid robots Gianpaolo Gulletta 1 , Eliana Costa e Silva 2 , Wolfram Erlhagen 3 , Ruud Meulenbroek 4 , Maria Fernanda Pires Costa 3 and Estela Bicho 1 Abstract As robots are starting to become part of our daily lives, they must be able to cooperate in a natural and efficient manner with humans to be socially accepted. Human-like morphology and motion are often considered key features for intuitive human–robot interactions because they allow human peers to easily predict the final intention of a robotic movement. Here, we present a novel motion planning algorithm, the Human-like Upper-limb Motion Planner, for the upper limb of anthropomorphic robots, that generates collision-free trajectories with human-like characteristics. Mainly inspired from established theories of human motor control, the planning process takes into account a task-dependent hierarchy of spatial and postural constraints modelled as cost functions. For experimental validation, we generate arm-hand trajectories in a series of tasks including simple point-to-point reaching movements and sequential object-manipulation paradigms. Being a major contribution to the current literature, specific focus is on the kinematics of naturalistic arm movements during the avoidance of obstacles. To evaluate human-likeness, we observe kinematic regularities and adopt smoothness measures that are applied in human motor control studies to distinguish between well-coordinated and impaired movements. The results of this study show that the proposed algorithm is capable of planning arm-hand movements with human-like kinematic features at a computational cost that allows fluent and efficient human–robot interactions. Keywords Humanoids and human-like robotics, human-like motion planning, cognitive systems, human–robot interaction, naturalistic obstacles-avoidance Date received: 11 January 2021; accepted: 6 February 2021 Topic Area: Humanoid Robotics Topic Editor: Andrey Savkin Associate Editor: Yongping Pan Introduction Recently, there has been an increasing interest in developing robots capable of working jointly with humans on shared tasks. It has been argued that human–robot collaboration is facilitated if robots can maintain an anthropomorphic appearance and can exhibit movements with human-like features. 1–3 These characteristics are in support of a natural human–robot interaction (HRI) because they 1 Centre Algoritmi, Department of Industrial Electronics, University of Minho, Braga, Portugal 2 CIICESI, ESTG, Polytechnic of Porto and Centre Algoritmi, Porto, Portugal 3 Centre of Mathematics, Department of Mathematics and Applications, University of Minho, Braga, Portugal 4 Donders Institute for Brain, Cognition and Behaviour, Radboud University, Nijmegen, the Netherlands Corresponding authors: Gianpaolo Gulletta and Estela Bicho, Centre Algoritmi, Department of Industrial Electronics, Campus Azurem, University of Minho, Guimara ˜es 4800-058, Portugal. Emails: [email protected]; [email protected] International Journal of Advanced Robotic Systems March-April 2021: 1–31 ªThe Author(s) 2021 DOI: 10.1177/1729881421998585 journals.sagepub.com/home/arx Creative Commons CC BY: This article is distributed under the terms of the Creative Commons Attribution 4.0 License (https://creativecommons.org/licenses/by/4.0/) which permits any use, reproduction and distribution of the work without further permission provided the original work is attributed as specified on the SAGE and Open Access pages (https://us.sagepub.com/en-us/nam/ open-access-at-sage). allow human companions to easily interpret the final goal of a robotic movement. In general, predicting the motor intentions of others while watching their ongoing actions is considered a fundamental building block for a successful and fluent human joint action. 4 A prominent hypothesis about the underlying processing mechanism postulates the existence of a matching system in the human brain that automatically maps an observed movement onto its corresponding representation in the observer’s motor system. 5,6 In joint action tasks, the consequent motor simulation of an action allows the observer to timely select an adequate complementary behavior. 7,8 There is a growing body of experimental evidence suggesting that robot motion can activate the action resonance mechanism as well if it shows human-like characteristics. 9,10 Since societies and governments are ready to encourage close interactions between humans and artificially intelligent devices, 11 the capability of reproducing typical human-like features of motion becomes a necessary requirement for the robots of the future. So far, most robotics implementations of human-like motion features were restricted to the end-effector motion in relatively simple point-to-point or planar movement paradigms. 12 Concerning human upper-limb movements, remarkably robust regularities have been identified that are not in any way implied by the task. A well-established example is the relationship between the geometrical properties of the motion path and movement speed. Point-to- point movements typically reveal roughly straight hand trajectories with a single-peaked, bell-shaped velocity profile. 13 Concerning planar curvilinear hand trajectories, a relationship between the angular speed and the radius of the curvature has been described which is known as the two-thirds power law. 14 Crucially, humans seem to be highly sensitive to these regularities, exhibiting difficulties in tracking and predicting motion with nonbiological velocity profiles. 15,16 Indeed, several studies in the robotics domain have shown the benefits of robotic motion with human-like features for optimizing human–robot collaboration, 17 for example, used an object transfer task to directly compare a bell-shaped velocity profile of the end effector (in accordance with a minimum jerk principle) and a typical robotic velocity profile of trapezoidal shape. With a biological profile, the authors report a significantly reduced reaction time of the human receiver due to a better predictability of the movement endpoints. The benefits of biological robotic motion have been also shown in human– robot physical interacting tasks like the joint manipulation of an object. Biological patterns significantly reduce the effort of coordination since the user can follow the robotic motion more intuitively. 18 In a more recent study, Maurice et al. 19 measured the forces of interaction in a joint movement paradigm in which a robot exhibited either a velocity profile consistent with the two-thirds power law or a nonbiological pattern. It was shown that users were able to decrease in the nonbiological case the forces applied with extensive practice and feedback but never reached forces below those obtained with the natural movement following the two-thirds power law. In this article, we present a novel Human-like Upperlimb Motion Planner (HUMP) for the generation of human-like collision-free robotic movements, which is deeply inspired from validated models of human motor control. Considering theories on human upper-limb manipulation, the HUMP is formulated as a global planning method that, compared to existing global approaches to human-like robot motion, offers several advantages even in environments cluttered with obstacles. Inspired from the posture-based motion planning model, 20,21 the redundancy of an anthropomorphic arm is solved by firstly selecting a target posture (TP) that places the end effector onto its given target pose and, then, generating a human-like collisions-free trajectory toward it. The planning process takes into account a task-dependent hierarchy of spatial and postural constraints modelled as cost functions. In a typical HRI task, the selection of the grasp posture should, for instance, depend on whether the robot intends to hand over an object to the human partner or to place it elsewhere. 7,8 A human-like obstacle avoidance mechanism, which is based on the selection of bounce or via postures, is also adapted for the robotics domain to achieve naturalistic collisions-free trajectories as the superimposition of two movements: a direct movement, from a start to a TP, and a back-and-forth movement, from the start posture (SP) to a bounce posture (BP) and back. 20,21 Additionally, the HUMP implements a biological time parametrization of a planned human-like jointsspace path in accordance with the Fitts’ Law, which finds vast empirical verification in human reaching and grasping. 20,22 The proposed HUMP is also designed to mimic the kinematic characteristics that a human hand exhibits during the manipulation of an object in pick-and-place tasks. 23,24 In specific, high levels of accuracy provoke more accentuated phases of motion for approaching a hand target pose and retreating from it. 23 Mimicking human phases of motion offers a more flexible modulation of a movement, which can also show more veridical human-like kinematic features during manipulation. To quantitatively evaluate the human-likeness of the generated trajectories, we use measures that have been used in clinical studies in humans, namely: the Normalized Jerk Score (NJS) and the Number of Movement Units (NMU). These simple indexes have been used to discriminate between normal and impaired goal-directed movements. 25,26 Results show that HUMP can be used for planning collisions-free naturalistic movements with a relatively small computational cost that allows a fluent HRI. The remainder of this article is organized as follows. The second section provides an overview of the most recent 2International Journal of Advanced Robotic Systems techniques of human-like arm motion planning that have been also applied for obstacles-avoidance, while, in the third section, the anthropomorphic robotic platform that has been used for experimentation is briefly described. The fourth section describes the features of human motor control that are transferred into the HUMP with the purpose of generating human-like collisions-free movements. The fifth section presents how the proposed method implements trajectory generation in sequences that compose a movement with the objective of mimicking human arm movement segmentation. The main HUMP algorithm is also presented here. The sixth section presents details concerning the implementation of the HUMP algorithm and the adopted experimental setting. In the seventh section, the measures for validating the human-likeness of arm motion in our tests are presented in more detail. The eighth section presents different experimental settings adopted from our previous work on a cognitive control architecture designed for natural HRI and the corresponding results. A kinematical analysis of the proposed human-like obstacle avoidance mechanism is also here described on settings that have been addressed in a similar study with humans. The article ends in the ninth section with a discussion on the obtained results and on the future investigations. Related work The avoidance of obstacles in human-like arm motion generation has been poorly addressed, although it is of crucial importance in human-centered robotics. Most of the proposed techniques are global, rely on customized samplingbased planners, and often ignore typical human-like time parametrizations. 12 In global planning methods, like the proposed HUMP, collisions-free trajectories are generated before the beginning of a movement (off-line) by only considering sensory information coming from the workspace of a robot. Global methods (such as the samplingbased methods) also allow to integrate specific cost functions, which can be derived empirically from human motion data to generate movements with human-like peculiarities. For instance, Zacharias et al. 27 proposed to find human-like goal configurations for a robotic arm using an ergonomics research criterion called Rapid Upper Limb Assessment (RULA). Given a specific planning problem, the start and goal postures of the arm were obtained by a RULA-driven inverse kinematics (IK). Then, the trajectory to transport the arm from its start to its goal posture was generated by using the bidirectional RRT (Bi-RRT) algorithm. 28 Its sampling routing was adapted with a database of configurations having RULA scores in a human-like range of values. Tests showed that the RULA-based sampling routine could generate smooth and human-like arm paths. However, since the focus of the planning process is on the spatial path and the time parametrization is neglected, a robot motion may exhibit unrealistic and non-human-like velocities. The Bi-RRT algorithm was also used by Xie et al. 29 for the generation of natural reaching movements through a narrow passage. The authors hypothesized the existence of a human-like Target Arm Pose (TAP), which can be obtained from mimicking human arm postures at given goal hand poses. Combined with the TAP, the Bi-RRT algorithm was applied to plan collisions-free reaching movements for a seven-degree of freedom (DOF) robotic arm, which was required to go through a narrow passage. The proposed hypothesis was also successfully tested in obstacles-free environments, showing the capability of generating smooth end-effector paths. However, humanlike velocity profiles are not considered and the proposed algorithm may suffer of poor generalization, since the TAPs are arbitrarily selected for the specific needs of a task. The First-order Retraction RRT (FR-RRT) algorithm 30 was used by Xie and Zhao 31 to generate collision-free trajectories for a four-DOF robotic manipulator. Here, the authors presented a method to plan handing-over movements during HRIs under the consideration of a given target position for the passage of an object. The proposed approach required a first investigation concerning optimal hand-over target positions and corresponding arm postures. Then, a motion planning scheme, which is based on the minimum jerk of the hand path, 14 was presented in an obstacles-free environment. The trajectories of the joints were controlled by the gradient projection method, 32 which took into consideration the total arm potential energy as a measure of performance. Based on the observations of the human motor behavior, the generation of collisions-free arm trajectories was driven by hand via-points, which were selected in the obstacles-free portion of the workspace. In this case, the minimum jerk hand path was tracked by the application of the FR-RRT algorithm. 30 Tests demonstrated that the proposed method can efficiently solve the redundancy problem of the arm without involving any IK. However, the planner may lack of generalization to different tasks because, for instance, obstacles-avoidance is biased by the selection of arbitrary hand via-points. More recent techniques that also addressed the obstacles-avoidance problem take inspiration from captured regularities of human arm motion in the accomplishment of selected tasks. 33,34 For instance, Liu et al. 33 presented an analytical IK resolution of a seven-DOF arm that maps postures by positioning arm key points recorded from human reaching motion. The proposed algorithm maintains the wrist and the elbow in line with the palm/end effector and iteratively adjusts a mapped configurations to respect physical joints-space limitations. Simulations demonstrated the capability of the proposed IK algorithm of minimizing the distance with the recorded swivel angle values even during the avoidance of a spherical-like obstacle. An inverse dynamics controller was proposed by Lauretti et al. 34 to enhance the functional anthropomorphism of Gulletta et al. 3 redundant manipulators in reaching and pouring tasks. In particular, the parameters of Cartesian- and joints-space dynamical movement primitives 35 are trained starting from demonstrations of captured human arm motion and, then, a hybrid approach is formulated by coupling these two dynamics in the null-space of the Jacobian. Obstacles-avoidance terms are added in both the Cartesian and the joint primitives such that the distances between the center of an obstacle and key points of a seven-DOF manipulator are maximized. Experiments showed the capability of the proposed hybrid technique of maximizing the similarities with human arm postures and of selectively avoiding collisions with obstacles that might be encountered along the path. Compared to the most recent solutions of human-like arm motion generation, the proposed HUMP offers a comprehensive framework for planning simple reaching and complex picking and placing movements with spatial and temporal human-like features. Importantly, the HUMP is the first planner that addresses the avoidance of obstacles in a human-like manner, which is validated in experimental paradigms of human obstacles-avoidance. Moreover, a consistent degree of generalization is promoted because the proposed mechanism is not limited to certain categories of obstacles, does not assume given task-related via postures, and does not depend on any captured human motion data. The level of human-likeness that features the planned motion is quantitatively and qualitatively assessed and ensures a limited computational cost for a fluent HRI (c.f. the eighth section). The robot ARoS To illustrate the basic assumptions and technical details of the proposed planner with a concrete example, we refer in the following sections to the robotic platform—an Anthropomorphic Robotic System (ARoS shown in Figure 1(a))—used for the experimental evaluation in the object manipulation tasks. 36 This platform, designed and built at the University of Minho, consists of a static torso, equipped with a seven- DOF anthropomorphic robotic arm (shoulder: three DOFs; elbow: 1 DOF; wrist: 3 DOFs), a three-fingered Barrett hand and a stereo vision system mounted on a pan-tilt unit. The dimensions of the torso were determined taking into account anthropometry studies. 37 Figure 1(b) shows the robotic arm and Figure 1(c) shows the Barrett hand mounted as end effector with the corresponding joints. For the postural representations, we apply the Denavit–Hartenberg (D-H) convention. 38 To describe the posture of the upper limb, the following notation is used q¼ðqarm;qhandÞ(1) where qarm 2Rnrepresents the arm posture with njoints qarm ¼ðq1;...;qnÞ>(2) (a) (b) (c) Figure 1. ARoS (a) is equipped with a seven-DOF robotic arm (b) and a three-fingered Barret Hand (c). The robotic arm-hand system is illustrated with the given dimensional parameters, joint angles and most relevant points of interest (e.g., the Hand point). ARoS: Anthropomorphic Robotic System; DOF: degree of freedom. 4International Journal of Advanced Robotic Systems and qhand 2Rmrepresents the hand posture with mjoints qhand ¼ðqnþ1;...;qnþmÞ>(3) In our case study with the robot ARoS,n¼7and m¼4, therefore we obtain the following equations qarm ¼ðq1;q2;q3;q4;q5;q6;q7Þ>(4) qhand ¼ðq8;q9;q10;q11Þ>(5) The HUMP: Concepts and theoretical framework The main concepts of the HUMP take inspiration from the posture-based motion planning model of human motor behavior, as presented in the first section, but there are also aspects that have been adapted for the robotics domain. Specifically, a TP is not selected by considering a group of candidates, 20 but it is chosen to minimize the angular jerk (third time derivative of position) of a direct movement. Similarly, a BP is selected to minimize the angular jerk of a back-and-forth movement, which is reformulated to offer a more flexible tuning of a collisions-free trajectory and respect required boundary conditions. Since human manipulation that demands high endpoint precision is managed with separated phases of motion, 39 the proposed method also plans a movement through independent and interconnected phases for a convenient management of the approach and the retreat actions in delicate areas of interest. For this reason, we take inspiration from the results obtained by Milner 23 and Burdet and Milner, 24 which exhibited distinct human hand kinematical phases during accurate manipulation. Particularly, the HUMP proposes the formulation and the composition of different (sub)movements, which are designed to mimic these findings on human accurate manipulation during approaching and retreating phases. Next, we present the basic concepts and the theoretical framework used for generating human-like collisions-free arm-hand movements for humanoid robots. The extension to sequences of (sub)movements is addressed in the fifth section. As mentioned, the planning process starts with the selection of an optimal TP. It takes into account the SP of the arm and the hand (from the manipulator and the Barrett Hand of ARoS), the information about the type, position, orientation of the objects in the workspace (from the vision system of ARoS), the information about a given object, target of manipulation, and an appropriate grasping behavior (from our cognitive model 8 ). Subsequently, for each joint, its trajectory (time history of position, velocity, and acceleration) from the SP to the TP is computed. This joints-space trajectory defines a direct movement.Then, the system searches for a feasible collisions-free movement, which is based on the selection of a suitable BP. This BP serves as a subgoal for a back-and-forth movement, which is superimposed on the direct movement.TheTP that is finally reached is the same as for the direct movement, only the selected path differs to guarantee the avoidance of collisions (Figure 2). Importantly, in the selection procedure of the target and the BPs, the planning takes into account anatomical constraints and obstaclesavoidance for the entire duration of a movement. Thus, when these postures are found, a planned upper-limb movement is always anatomically feasible. The details concerning the resolution of the redundancy problem under precise task requirements are given in sections “TP selection” and “HTP selection.” TP selection An optimal TP,qtar,att¼T,whereTis the movement duration (the computation of movement duration or movement time is discussed in section “Human-like time parametrization”), is a posture that minimizes the displacements of the joints from the SP to the TP,taking into account obstacles-avoidance, physical joints limits, andadesiredgriptypeattheendofthemovement(e.g. the grip at the moment of grasping an object). target target posture start posture (a) target target posture start posture bounce posture obstacle (b) Normalized time 01 rad direct back-and-forth composite Normalized time 01 rad/sec (c) Figure 2. A direct movement from the start to a target posture (a) and a composite movement, which is the superimposition of a direct and a back-and-forth movement (b). A back- and-forth movement is a movement from the start to a bounce posture and back (b), which is selected to obtain a collisions-free composite movement. Kinematics of a joint during a movement (c). Gulletta et al. 5 The TP selection process for the robotic arm and hand can be divided into the selection of a set of finger joints and a set of arm joints. Hence, we denote the TP by qtar ¼ðqtar;arm;qtar;handÞ(6) where qtar;arm and qtar;hand are vectors with the values to be specified for the angular joint positions of the arm and of the fingers in the hand, respectively. We start by computing the hand target posture (HTP),qtar;hand,thenwe proceed with the computation of the arm target posture (ATP),qtar;arm. HTP selection. The HTP,qtar;hand, depends on the specific hardware of the robotic hand and on the type of movement to be generated (c.f. the fifth section). For example, it can be a set of angular joint positions for a hand pointing gesture or a specific grasp configuration to grab an object with a desired grip type (e.g. precision or power grip as shown by Napier 40 ). For our case study with ARoS that is equipped with a three-fingered Barrett Hand, the selection of a HTP is described in our previous work by Costa e Silva et al. 41 Next, we proceed with the computation of the ATP, qtar;arm. ATP selection. An optimal ATP,qtar;arm at t¼T, is a posture that satisfies the following constraints: (co 1 ) allows an object to be successfully grasped or manipulated, (co 2 ) avoids collisions between the arm-hand and the obstacles in the workspace and with the body of the robot, (co 3 ) respects the physical joints limits and (co 4 ) minimizes the cost associated with moving the arm from the Arm Start Posture (ASP),q0;arm (at t¼0), to the ATP,qtar;arm (at t¼T), following a minimum angular jerk trajectory. The minimum jerk criterion has been typically applied to model human-like hand motion in Cartesian space. 14 However, we apply it in the joints space. Motivation for this is that the minimum angular jerk criterion has been proposed as a model to explain simultaneously the slightly curved paths and the bell-shaped hand velocity profiles that are consistently observed in human upper-limb movements. 20,42 The cost associated with moving the arm from the ASP,q0;arm,toanATP,qtar;arm, following a minimum angular jerk trajectory is Cðqtar;armÞ¼X n k¼1 lkq0;kqtar;k  2;lk0(7) where the nonnegative parameters lkare joint expense factors, which permit not only that the joints contribute differently to the selection of the ATP but also to the trajectory selection (c.f. section “Trajectory selection”), providing a degree of generalization of the planned movements. The introduction of joint expense factors is motivated by the fact that, in humans, the arm joints may have different cost factors, therefore the relative importance of the various joints for the selection of the ATP may vary, depending, for instance, on personal preferences. 20 The ATP qtar;arm is selected as the optimal solution of the following nonlinearly constrained optimization problem, taking equation (7) as a cost function min qtar;arm Cðqtar;armÞ(8) s:t:htar qtar;Ptar ðÞztar (9) hobs qtar;zobs ðÞ<0(10) qm;arm qtar;arm qM;arm (11) Here: (i) constraints (9) impose a determined relationship between the hand pose (obtained through direct kinematics from the angular joint positions of the arm and hand qtar) and the target pose, Ptar, which is a seven-dimensional vector representing the target position Otar ¼xtar;ytar;ztar ðÞ, and orientation (i.e. the parameters of the quaternion)ofthelocalframe ^ xtar;^ ytar;^ ztar ðÞ,and ztar is a vector of allowed tolerances in positioning and orienting the end effector at the given target; (ii) constraints (10) guarantee obstacles-avoidance at the TP qtar, where zobs is a clearance distance from the obstacles and (iii) constraints (11) ensure that the selected ATP, qtar;arm, satisfies the physical joints limits, where qm;arm;qM;arm 2Rnrepresent the lower and the upper joints-space limits of the arm, respectively. The vector functions htar and hobs,in(9)and(10), respectively, are nonlinear functions of the TP qtar. They are defined using the direct kinematics that map the space of the joints to the Cartesian space. This mapping is welldefined for any robotic arm and uses only the D-H parameters of the robot. A detailed formulation of these functions is described in our previous work by Costa e Silva et al. 41 Solving the optimization problems (8)–(11) means solving the IK problem of a redundant manipulator while a given cost function is minimized in the joints space. Running an interior-point method to achieve a minimum (c.f. the sixth section) permits to overcome typical issues of convergence failures related to the application of a Newton-method search for numerical IK. 43 Trajectory selection Once a TP has been found, the trajectory (time history of position, velocity, and acceleration) from the SP to the TP is computed. 6International Journal of Advanced Robotic Systems The direct movement. The trajectory that brings the arm and the hand from their SP q0to their TP qtar is defined by TðtÞ¼q0þTdirectðt;q0;qtarÞ(12) where Tdirect is the direct movement. Its specific formulation depends on the type of movement phase—transport, approach,retreat—to be generated (c.f. the fifth section), but it is always defined so that (i) it generates a hand velocity profile that is consistent with observations in human arm movements; 20,23 (ii) guarantees boundary conditions on position, velocity, and acceleration; and (iii) the joint angles are within their mechanical limits during the entire movement duration. Collisions-avoidance: The back-and-forth movement. Using equation (12) and the forward kinematics of the armhand, it is possible to predict collisions with the obstacles in the environment, the body of the robot, and the object to be grasped (in case of manipulation). To ensure the avoidance of collisions, a feasible movement, that still brings the arm-hand from the SP to a previously selected optimal TP, needs to be computed. For this purpose, we use the notion of BP, which was firstly introduced concerning planar movements 44,45 and, later, in relation with movements in a three-dimensional space. 21 A feasible movement is found by computing an optimal BP, that is, a posture that serves as a subgoal, for a back-and-forth movement and minimizes the angular displacement over its duration. This movement consists of first moving the arm and the hand from their SP, q0,toaBP,qb,(forth) and next moving back to the SP again (back). The back-and-forth movement is superimposed on the direct movement and it is intended to avoid collisions with obstacles during the entire execution of the (composite) movement (equation (13)). As a result of the superimposition in equation (13), trajectories change but the TP that is reached remains the same (Figure 2) TðtÞ¼q0þTdirectðt;q0;qtarÞ þTbkforðt;q0;qbÞ(13) The back-and-forth movement,Tbkfor, is proposed as formulated by equation (14) TbkforðtÞ¼ tð1tÞ tbð1tbÞqbq0 ðÞsin2ptJ  (14) where t¼t=Tis the normalized time, being Tthe movement duration. In equation (14), J¼ln2 lntb, with tb20;1 is the parameter used to control when the BP,qb¼ qb;1;...;qb;n  >, is reached. The motivation for using a squared sinus function for the back-and-forth movement is primarily based on the fact that discrete movements that start and end in a standstill, can, in principle, be considered half a period of a cyclical movement. 46 Although the posture-based motion planning model has mainly inspired this work, the proposed formulation in equation (14) substantially differs from the formulations given by Vaughan et al. 21 for a better integration into the robotics domain. In specific, the back-and-forth movement in equation (14) provides one more degree of adaptation through the parameter t b and, importantly, ensures null boundary conditions in position, velocity, and acceleration so that at t¼1 only the direct contribution emerges. The sinusoidal element remains a key in the moment that the directional reversal occurs, while the zero velocity crossing remains a key at the start and at the end of the movement. The kinematic profile adopted here thus capitalizes on core kinematic features of both discrete and cyclical motion. Furthermore, the squared sine function is also continuously differentiable, which is an important feature when we use deterministic optimization methods that require such smooth functions. We set tb¼0:5, so that the “forth” and the “back” phases take 50%of the total movement time, respectively. The underlying assumption is that the impact of the obstacles on the movement trajectory will be evenly distributed across the entire movement. Empirical evidence of this hypothesis has been reported by Vaughan et al. 47 It is worthwhile noting that the model does not presume that the location of a supposed collision is at 50%of the straight-line distance between the start and the end of a movement, nor does it presume that it is halfway in terms of movement time. In contrast, the location can be anywhere in the workspace, because the BP,qb, is selected taking into account that no collision occurs for the entire duration of the composite movement given by equation (13). This is explained next. BP selection. Similarly to the ATP selection procedure, the aim is to select an optimal BP,qb¼qb;1;...;qb;nþm  >, where nand mare the number of DOFs of the arm and of the hand, respectively. In fact, the BP to be selected, qb,isa composition of the arm bounce posture (ABP),qb;arm, and of the hand bounce posture (HBP),qb;hand as described in equation (15) qb¼ðqb;arm;qb;handÞ(15) The BP minimizes the jerk of the back-and-forth movement in equation (14) subject to the following constraints: (co 1 ) collisions-avoidance, over the entire duration of the composite movement, with any obstacle in the workspace, with the body of the robot, and, eventually, with the object that has to be manipulated; (co 2 ) the mechanical joint limits are respected over the entire duration of the composite movement; (co 3 ) minimization of the cost function CðqbÞ¼X nþm k¼1 lkq0;kqb;k  2;lk0 (16) that is associated with the displacement of the joints of the arm and of the hand from their SP,q0, to their BP,qb. To formulate this selection problem, we take into consideration the entire trajectory of the composite movement, Gulletta et al. 7 TðtÞin equation (13) and we discretize the time t20;T½ into Nsteps equally spaced steps denoted as ti¼iDtstep, where Dtstep is the step size and i¼0;1;...;Nsteps (more details are given in section “Human-like time parametrization”). Consequently, the convention adopted is that Ti¼T ti ðÞrepresents the configuration of the joints at time step t i during the trajectory. We formalize these concepts as a nonlinearly constrained optimization problem as follows min qb CðqbÞ(17) s:t:qmTiqM(18) hbTi;ei b  0(19) qmqbqM(20) where qm;qM2Rnþmare the vectors with the lower and the upper mechanical joint limits, respectively, h b is a vector of nonlinear functions defined to guarantee the avoidance of collisions, being ei b¼ebti ðÞa vector of positive clearance distances at time t i . For every instant t i ,constraints (18) guarantee that the trajectory of the joints does not overcome their physical limits; inequalities (19) ensure that there is not any collision with (i) the object to grasp (only in picking), (ii) the obstacles in the scenario, and (iii) the body of the robot; constraints (20) ensure that the selected BP is within its physical limits. The specific formulation of the constraints (19) is described in our previous work by Costa e Silva et al. 41 The HUMP: Trajectory generation in sequential phases of a movement Classification and segmentation of a movement Typical object manipulation tasks can be segmented into meaningful action phases in which an object is approached, grasped, lifted off a surface, moved, and placed on a surface again. The transition between the different phases is defined by distinct sensory events like making or breaking contact between the manipulator and an object or between an object and a surface. These events define subgoals of a task. 39 The division in functional units or primitives of goal-directed motor acts supports a flexible task planning since the primitives represent elementary building blocks, which can be combined and adapted in many different ways to generate complex goal-directed behaviors (for robotics examples, see Stulp et al. 48 ). In the proposed planning system, a temporal task segmentation implies that the TP of a certain motor act (e.g. picking) becomes the SP of the subsequent motor primitive (e.g. lifting). A segmentation in different motor primitives has been also proposed for the kinematics level to explain observed regularities in human motion. During reach-to-grasp movements, the wrist velocity typically shows a single-peaked, bell-shaped profile, with the acceleration phase lasting shorter than the deceleration phase. This asymmetry tends to become more prominent for movements requiring higher precision, leading to a nearly constant velocity when the arm approaches the target position. As shown by Milner, 23 this finding can be well explained by the superimposition of sub-movements generated at discrete time intervals. The sub-movements are assumed to share the same basic velocity profile of the initial hand transport into the vicinity of the target but could be scaled in time and magnitude to blend together as motor skills develop (Figure 3). To account in the proposed HUMP for the impact of precision constraints on the limb velocity profile, we further segment a picking movement, and also a placing movement, into an initial transport phase followed by an approach phase. This segmentation also captures well the biphasic nature of the grasping component of typical human prehension, which appears to be temporally coupled with the reaching component. 49 During hand movements, there is first a progressive opening of the grip up to a maximum grip aperture which is proportional to the size of the object. This is followed by a gradual closure of the grip until it matches the size of the object. The maximum grip aperture occurs at about two-thirds of the way through the duration of the reaching, which roughly coincides with the start of the approach phase. Figure 4 illustrates the temporal segmentation of a pick- and-place task in the different phases of an upper-limb movement with the labels that we use. Grasp (g)and ungrasp (u) are treated as transitions between the approaching (to pick) and lifting motions, and the approaching (to place) and depart motions, respectively. We use the common label R (for retreat) to describe both the object lifting Figure 3. Wrist tangential velocity (bold) and underlying submovements (dotted) obtained by decomposition of human arm movements to place cylinders of different sizes. 23 After a bellshaped peak, a quasi-constant velocity phase features the conclusion of a hand movement when accuracy in manipulation is required. 8International Journal of Advanced Robotic Systems from the surface and the final depart of the hand from the placing position, since the proposed planner treats both phases equally. Pick and place movements consist of a combination of three object-directed primitives transport (T), approach (A), and retreat (R). In addition to the object-directed movements pick and place,theHUMP also generates move movements that do not manipulate any object in the workspace and, therefore, are only composed by a transport phase, which transports the hand toward its target pose and brings the fingers toward their desired posture. The transport,approach,andretreat phases are also distinguished by a selection of a specific TP as it is described in section “TP selection.” Next, we present how these phases are generated, taking into account the type of movement (pick, place, or move) to which they belong. Transport phase The transport TP is a posture qtran ¼qtran;arm; qtran;hand, where qtran;arm is the ATP and qtran;hand is the HTP.qtran;arm is selected as explained in section “ATP selection” for a given transport hand target pose. Next, the selection of the HTP qtran;hand and the composition of the trajectory in the Transport phase are described. Transport HTP selection. In pick movements, the transport HTP is calculated as described in our previous work by Costa e Silva et al. 41 However, if an approach phase follows, the values of qtran;hand are modified to obtain a slight greater aperture of the fingers than it is necessary. This is done to mimic prehension and guarantee a successful grasping transition. In place movements, the transport HTP is constrained by the fact that the object that is being manipulated has to remain held by the end effector. Therefore, we set the transport HTP equal to the Hand Start Posture (HSP), that is, qtran;hand ¼q0;hand.Move movements are only featuredbyahandtransport phase, which is not directed toward objects. Hence, in this particular situation, the joint angle values in qtran;hand can be set arbitrarily. Transport direct movement. For the transport phase, the direct movement consists of a trajectory that is generated based on the minimum angular jerk principle. With this approach, the end-effector trajectories (in extrinsic spatial coordinates) with a bell-shaped velocity profile do not need to be modelled explicitly, in contrast to other approaches, but rather emerge from the joint displacements. 42 The direct movement is computed by minimizing the jerk over the all movement duration CdmðqÞ¼1 2ðT 0X n k¼1 d3qkðtÞ dt3  2 dt (21) where nis the number of joints, qkðtÞis the kth joint angle position at instant t, and Tis the movement duration. This is a typical variational problem and the solution is a fifthorder polynomial whose coefficients may be determined applying boundary conditions on position, velocity, and acceleration. The solution is the transport direct movement Tdirect tran tðÞ¼ qtran q0 ðÞ10t315t4þ6t5 ðÞ þv0Tt6t3þ8t43t5 ðÞ þvtarT4t3þ7t43t5 ðÞ þ1 2a0T2t23t3þ3t4t5  þ1 2atarT2t32t4þt5  (22) where q0¼ðq0;1;...;q0;nÞ>is the vector with the start joint angles (at t¼0), qtran ¼ðqtran;1;...;qtran;nÞ>is the vector with the target joint angles (at t¼T), and t¼t T is the normalized movement time. v0and vtar are the start and the target joint velocities, respectively, and a0and atar are the start the target joint accelerations, respectively. Equation (22) guarantees that the joint angles are within their mechanical limits during the entire movement duration because (i) the values of the transport TP qtran are into their admissible range and (ii) equation (22) is also a monotonic increasing or decreasing function that generates values from q0;kto qtran;kfor each kth joint. Therefore, since both the SP and the TP obey the constraints limits of the joints, the same happens in any step of the trajectory. Velocity and acceleration can be obtained deriving equation (22) over time. The movement of the joints follows a straight-line path in the joints space with a bell-shaped unimodal velocity profile. In the task space, this may result in a straight path or in a slightly curved path, pick place move Phases: T=transport A=approach R=retreat pregrasp manipulation depart TAR T AR T gu Figure 4. Temporal division of the movements in phases. Pick and place movements are generated when the manipulation of one object is required. Otherwise, a single-phase move movement is planned to transport the end effector from one pose to another one of the reachable workspace. Gulletta et al. 9 corresponding (magenta) hole into the base platform (Figure 8(c)). Finally, ARoS returns to its SP (Figure 8(d)). The pick and the place movements are composed by three phases: the transport,theapproach,and the retreat phases. As described in the fifth section, each phase has a given hand target pose, which is the same for every planner used in this test. The kinematic features of the pick movement planned by the HUMP are illustrated in Figure 9. Qualitatively, the Figure 8. Four snapshots that show the sequence of the movements planned by the HUMP in the toy vehicle scenario. The complete video can be seen at the link https://youtu.be/duDCGcrC3k4. (a) Start posture; (b) Pick movement; (c) Place movement; and (d) Move movement. −600 −400 400 500 1000 1200 Grasp x [mm] y [mm] z [mm] Start Target 024681012 0 50 100 150 Grasp time [s] hand velocity [mm/s] (a) (b) Figure 9. Pick movement planned by HUMP (NJS ¼1798.28, NMU ¼1, Solv. time ¼2823ms).(a) Hand position and (b) hand velocity. Figure 7. Toy vehicle assembly. (a) Pieces of the toy vehicle and (b) the toy vehicle fully assembled. Table 1. Results over 100 trials of the pick movement planning problem in the toy vehicle scenario (Figure 8). Planner Solv. time: mean(SD) (ms) Rate of success (%) RRT 1676.25 (1331.24) 32 RRTConnect 1203.28 (707.49) 90 RRT* 4367.15 (1607.88) 20 PRM 1602.49 (1628.84) 75 PRM* 4889.51 (1424.65) 78 16 International Journal of Advanced Robotic Systems pick movement is featured by a unimodal bell-shaped hand velocity profile and a quasi-rectilinear hand path. Additionally, the hand only stops at the moment of grasping and it is featured by an approach phase in the vicinity of the object to grasp. Quantitatively, the pick movement has a single-peaked hand velocity profile (NMU ¼1), its NJS is 1798.28 and its solving time is 2823 ms. Table 1 shows the required time and the rate of success of the sampling-based planners in solving the same planning problem. The reported solving time is not only referred to the time required by a selected planner for generating a collisions-free path but also includes the default MoveIt! KDL IK implementation, 59 which provides a feasible TP, and the default iterative parabolic time parametrization, which provides the time steps between adjacent points of the path. This table reveals that RRTConnect solved the pick movement planning problem 90 times over 100 trials. The other sampling-based planners showed a much lower success rate and RRTConnect is also the fastest planner with the smallest standard deviation. On the contrary, PRM showed the biggest standard deviation revealing an evident right-skewed distribution of solving time values. The hand position and velocity of the place movement planned by the HUMP are illustrated in Figure 10. Due to the retreat phase of the previous pick movement, the trajectory starts with a nonzero velocity and acceleration. The transport phase is featured by a unimodal hand velocity profile that ends with an accentuated approach phase, which brings the column into the hole of the base. Moreover, the hand only stops during the release transition and then retreats away from the placing location. Again, the HUMP generates a trajectory with NMU ¼1, but its NJS is significantly greater (15702.5) than that one of the previous pick movement. This is due to the endpoint precision required in placing the column, which is featured by a prominent hand velocity profile during its approach phase. As summarized in Table 2, the rate of success over 100 trials shows that this planning problem was complex for all the tested sampling-based planners. The HUMP required a solving time (2261 ms) that is generally greater than that one needed by RRT, PRM, and RRTConnect but significantly smaller than that one required by RRT* and PRM*. The final movement of this task is a move movement that brings the robotic arm-hand back to its SP. The kinematic characteristics of the movement planned by the HUMP are illustrated in Figure 11. The bell-shaped single-peaked hand velocity profile starts from a nonzero value, due to the retreat phase of the previous place movement. Quantitatively speaking, the NMU is 1 and the NJS is very small (18.06), which is consistent with a very smooth bell-shaped hand velocity profile with a single peak. Compared with the other planners, the HUMP produces the move movement in a minimum amount of time of 847 ms, which is also an index of the low complexity of the planning problem that has been solved successfully in most of the trials (Table 3). The concatenation of the three movements of this task is illustrated in Figure 12. Since the robot starts and ends its motion with the same posture, the start and the target hand positions correspond to the same point in the space (Figure 12(a)). The hand velocity profile, shown in Figure 12(b), reveals that the grasp and the ungrasp transitions clearly define the first two phases of the place movement, while its retreat phase connects to the move movement. These transitions are the only time instants when arm and hand come to rest during the entire movement duration. −700 −600 −500 400 500 1200 Ungrasp x[mm] y[mm] z[mm] Start Target 0 5 10 15 20 0 20 40 60 Ungrasp time [s] hand velocity [mm/s] (a) (b) Figure 10. Place movement planned by HUMP (NJS ¼15702.5, NMU ¼1, Solv. time ¼2261 ms). (a) Hand position and (b) hand velocity. Table 2. Results over 100 trials of the place movement planning problem in the toy vehicle scenario (Figure 8). Planner Solv. time: mean (SD) (ms) Rate of success (%) RRT 1345.61 (892.02) 23 RRTConnect 1303.45 (830.31) 33 RRT* 5148.77 (76.05) 13 PRM 1007.24 (816.18) 34 PRM* 4227.13 (1647.97) 39 Gulletta et al. 17 Serving a drink To further test the capacity of the HUMP to generate human-like movements in complex tasks relevant for HRI, we have chosen as a second example a household environment in which a robot helper prepares a drink. A human partner watches a sequence of robot actions that includes pouring orange juice into a glass. The workspace of the robot consists of various bottles and glasses that are arranged on a table (Figure 13). The robot has to pick up the (open) bottle with orange juice, transport it to a pouring position close to the glass while avoiding the collision of its body with a black bottle located in between the juice bottle and the target location. The robot pours the liquid into the glass, moves the bottle again into an upright position to prevent spilling during transportation, and finally repositions the bottle at its initial location. For the pouring action, we assume that the bottle moves mostly in a two-dimensional plane so that the orientation can be modelled by a onedimensional tilt angle. This is a realistic assumption for a pouring action in which the source container is taller than the receiving container. 60 Since an autonomous flow control goes beyond the scope of this article, we further assume that the desired tilt angle and the time interval for pouring are predefined. The pouring stops when the bottle is moved into an upright position again, which we call the post-pouring phase. As illustrated in Figure 14, the planning and execution of the entire action sequence can be segmented in six movements defined by specific subgoals. The sequence starts with a reach-to-grasp movement directed toward the juice bottle (pick movement, Figure 14(b)), followed by moving the bottle to the pouring position (place movement 1, Figure 14(c)), pouring the juice (pouring movement, Figure 14(d)), reorientating the bottle (post-pouring movement, Figure 14(e)), placing the bottle at the initial position (place movement 2, Figure 14(f)), releasing the bottle, andmovingthearmbacktoitsSP (move movement, Figure 14(g)). Figure 15 illustrates the kinematic characteristics of the pick movement planned by the HUMP.Themovement is composed of a transport phase with a bell-shaped hand velocity profile, a relatively long approach phase toward the bottle to be grasped and a retreat phase that detaches the bottle from the table. The movement has a single NMU and an NJS equals to 6377.39, which suggests a relative low level of complexity. The latter seems to be confirmed by the high rates of success in Table 4, even though RRT and RRT* failed more often than the other planners. Additionally, the HUMP solved the pick problem in significantly less time than the other optimization-based planners RRT* and PRM* but took generally longer than the fastest planners RRT and RRTConnect (Table 4). The hand position and velocity profile of the first place movement are shown in Figure 16(a) and (b), respectively. This movement is formed by a transport phase and an approach phase. A retreat phase is not desired because the robot needs holding the bottle for the subsequent pouring action. The transport phase is featured by a single-peaked, bell-shaped velocity profile and the approach phase is shorter compared to the pick movement. The HUMP generated the movement with a small NJS of 933.52 and a single NMU in 848 ms, which is on −400 −300 380 400 1100 x [mm] y [mm] z[mm] Start Target 012345 0 20 40 60 80 100 time [s] hand velocity [mm/s] (a) (b) Figure 11. Move movement planned by the HUMP (NJS ¼18.06, NMU ¼1, Solv. time ¼847 ms). (a) Hand position and (b) hand velocity. Table 3. Results over 100 trials of the move movement planning problem in the toy vehicle scenario (Figure 8). Planner Solv. time: mean (SD) (ms) Rate of success (%) RRT 5264.53 (143.64) 45 RRTConnect 1527.33 (415.87) 99 RRT* 5169.89 (52.52) 100 PRM 5507.87 (414.20) 97 PRM* 5953.54 (277.79) 96 18 International Journal of Advanced Robotic Systems average the minimum amount of time when compared to all probabilistic planners (Table 5). Also the pouring movement is composed of two phases, the transport and the approach phases, at the end of which the juice is poured into the glass. As can be seen in Figure 17(b), the transport phase is featured by a lowvelocity profile of the tangential hand velocity in its early seconds of motion and a second bigger velocity peak during the rest of the motion. This movement is thus characterized by an NMU of two, which is often observed in human hand motion as well, in particular, in the proximity of an obstacle (here the glass) that has to be avoided. 20 In this particular case, the hand detour in position is mainly caused by its high rate of change in orientation, which contributes in giving a rise to a double peak in the tangential velocity of the hand (more details are given by Rosenbaum et al., 20 Lommertzen et al., 61 Grimme et al. ,62 andinsection “Naturalistic obstacles-avoidance”). Table 6 shows that HUMP solved this planning problem in 1603 ms, −600 −400 400 500 1000 1200 Grasp Ungrasp x[mm] y[mm] z [mm] Start Target 010203040 0 50 100 150 Grasp Ungrasp time [s] hand velocity [mm/s] (a) (b) Figure 12. The complete task planned by the HUMP. (a) Hand position and (b) hand velocity. Figure 13. Drink serving scenario. Figure 14. Seven snapshots showing the sequence of the movements planned by the HUMP in the drink serving task. The complete video can be seen at the link https://youtu.be/i2ytpSQViy8. (a) Start posture; (b) Pick movement; (c) Place movement 1; (d) Pouring movement; (e) Post-pouring movement; (f) Place movement 2; and (g) Move movement. Gulletta et al. 19 generally much faster than RRT* and PRM*, but on average much longer than RRTConnect, which was rather the fastest planner. The rate of success of the probabilistic planners over 100 trials revealed that this planning problem was quite complex to solve with the PRM* giving the highest rate. The post-pouring movement is meant to rotate the bottle toward a given orientation to avoid that the remaining juice drops. Since in this case an accurate approach phase is not required and the bottle cannot be released, this movement consists of the transport phase only. Similarly to the pouring movement, Figure 18 illustrates that the transport phase is featured by an accentuated biphasic hand velocity profile (NMU is 2). Similarly here, the rise of two peaks is due to a significant detour of the hand that changes its orientation in a relatively short period of time. 20 The NJS score (199.65) indicates that the HUMP generated a very smooth movement and its planning time of 620 ms is on average slower than the fastest planner (RRTConnect), but fairly faster than the other probabilistic planners that generally scored a good rate of success (Table 7). The second place movement transports the juice bottle back to its initial position and orientation. This movement is composed by a transport,anapproach phase, and a retreat phase. As illustrated in Figure 19, the hand path during the transport phase is highly curved to avoid collisions with the black bottle. The hand velocity profile is unimodal and bellshaped with a smooth transition to the low-velocity approach phase. The hand stops during the ungrasp transition, which starts the retreat phase. This movement clearly has an NMU equals to 1 and a restrained NJS of 5566.22. As it is shown in Table 8, the planning problem was quite complex except for RRTConnect that had a rate of success of 73%. Moreover, RRTConnect was generally the fastest planner and the HUMP was on average lightly slower than it with 1375 ms of required solving time. After having released the bottle, ARoS moves the hand back to the start pose by the mean of a move movement that is shown in Figure 20. Interestingly, this movement has zero NMU despite the occurrence of two velocity peaks which are, however, not detected since the increase/decrease of hand velocity between the adjacent maximum and minimum does not exceed the threshold value for defining a movement unit. Importantly, the evaluation of the retreat phase of the previous movement and the move movement together (Figure 21) reveals that HUMP generated a human-like reaching movement characterized by an NMU score of one and a bell-shaped velocity profile. The proposed method planned a very smooth move movement with an NJS of 24.57. Moreover, Table 9 shows that all the probabilistic planners, except RRT*, scored a high rate of success suggesting a low complexity of the planning problem. This is also confirmed by the fact that the HUMP only required 297 ms to generate a trajectory, which marks it as the fastest planner in this particular case. Figure 22 shows the hand path and hand velocity profile of the entire movement sequence defining the drink serving task. The start and the target pose of the task are the same because the robot starts and ends with the same posture (Figure 22(a)). The approach phase is most prominent in the pick movement at the beginning of the task to guarantee a precise grasping behavior. Furthermore, we note that the hand stops five times between the start and the end of the task, namely for the grasp transition, when the bottle has reached the pouring position, while pouring the juice into the glass, during the reorientation of the bottle to avoid spilling of liquid, and for the ungrasp transition. −500 −400 −300 400 500 600 1000 1050 1100 Grasp x [mm] y [mm] z [mm] Start Target (a) 0246810121416 0 50 100 150 Grasp time [s] hand velocity [mm/s] (b) Figure 15. Pick movement planned by HUMP in the drink serving task (NJS ¼6377.39, NMU ¼1, solving time ¼1225 ms). (a) Hand position and (b) hand velocity. Table 4. Results over 100 trials of the pick movement in the drink serving scenario (Figure 14). Planner Solv. time: mean (SD) (ms) Rate of success (%) RRT 1030.07 (673.16) 57 RRTConnect 390.36 (87.65) 74 RRT* 4380.29 (1550.46) 48 PRM 670.54 (163.93) 69 PRM* 4232.59 (1782.33) 75 20 International Journal of Advanced Robotic Systems Subjective user ratings In this section, we report the results of a short survey we conducted to qualitative evaluate the human-likeness of the movements planned by the HUMP. The aim was to assess the perception of naive users when watching trajectories with human-like characteristics in the toy vehicle assembly (Figure 7) and in the drink serving (Figure 13) scenarios. −540 −520 −500 −480 400 600 1100 1200 x [mm] y [mm] z [mm] Start Target (a) 0246 0 50 100 time [s] hand velocity [mm/s] (b) Figure 16. Place movement 1 planned by the HUMP in the drink serving task (NJS ¼933.52, NMU ¼1, solving time ¼848 ms). (a) Hand position and (b) hand velocity. Table 5. Results over 100 trials of the place movement 1 in the drink serving scenario (Figure 14). Planner Solv. time: mean (SD) (ms) Rate of success (%) RRT 2040.46 (1314.72) 35 RRTConnect 1069.60 (439.03) 85 RRT* 4604.88 (1384.01) 24 PRM 1199.69 (1172.38) 83 PRM* 4722.37 (1504.79) 79 −480 −470 −460 260 280 1100 1150 Pour x [mm] y [mm] z [mm] Start Target (a) 01234567 0 10 20 30 40 Pour time [s] hand velocity [mm/s] (b) Figure 17. Pouring movement planned by the HUMP in the drink serving task (NJS ¼5504.86, NMU ¼2, solving time ¼1603 ms). Hand position and (b) hand velocity. Table 6. Results over 100 trials of the pouring movement in the drink serving scenario (Figure 14). Planner Solv. time: mean (SD) (ms) Rate of success (%) RRT 1546.19 (1262.89) 47 RRTConnect 800.24 (357.29) 62 RRT* 4484.59 (1455.44) 29 PRM 2120.62 (1021.04) 53 PRM* 4283.70 (1862.24) 64 Gulletta et al. 21 In this experiment, 50 participants (21 female and 29 male, age between 21 and 54 years) were asked to label videos of ARoS moving its right upper limb in the assembly paradigm (Figure 8) and while serving a drink (Figure 14). The participants watched the videos through a web-based platform to ensure well-controlled and repeatable conditions for all subjects. The videos were also silenced to avoid any influence of robot motor noise on the −470 −465 −460 260 270 280 1120 1140 x [mm] y [mm] z [mm] Start Target (a) 012345 0 10 20 30 time [s] hand velocity [mm/s] (b) Figure 18. Post-pouring movement planned by HUMP in the drink serving task (NJS ¼199.65, NMU ¼2, solving time ¼620 ms). (a) Hand position and (b) hand velocity. Table 7. Results over 100 trials of the post-pouring movement in the drink serving scenario (Figure 14). Planner Solv. time: mean (SD) (ms) Rate of success (%) RRT 746.45 (587.38) 62 RRTConnect 383.40 (185.97) 84 RRT* 4813.81 (1072.94) 47 PRM 1057.89 (1102.26) 81 PRM* 4226.54 (1751.17) 83 −550 −500 −450 300 400 500 600 1000 1100 1200 Ungrasp x [mm] y [mm] z [mm] Start Target (a) 024681012 0 50 100 150 Ungrasp time [s] hand velocity [mm/s] (b) Figure 19. Place movement 2 planned by HUMP in the drink serving task (NJS ¼5566.22, NMU ¼1, solving time ¼1375 ms). (a) Hand position and (b) hand velocity. Table 8. Results over 100 trials of the place movement 2 in the drink serving scenario (Figure 14). Planner Solv. time: mean (SD) (ms) Rate of success (%) RRT 1858.56 (1080.45) 27 RRTConnect 1038.63 (510.94) 73 RRT* 5110.14 (564.79) 36 PRM 1866.93 (966.32) 69 PRM* 4301.50 (1744.09) 60 22 International Journal of Advanced Robotic Systems personal judgment. The two tasks and their objectives were first fully described. Since they represent common tasks of object manipulation, one can assume that each participant could make expectations on how a human-like execution of a task should look like. For each task, the videos of the movements generated by the HUMP were presented sequentially in a random order. After each video, the participant had to exclusively choose between the labels “human-like” and “not human-like.” The results of the user ratings, summarized in Table 10, show that the HUMP reached 92%human-like judgments in the drink serving scenario and 78%in the toy vehicle assembly. Therefore, in both scenarios, the trajectories planned by the HUMP were strongly perceived as natural and human-like by the vast majority of the observers. Interestingly, these findings may be interpreted in support of the notion of action perception as an intrinsically predictive activity. 4,7,63 Since the participants knew the goals and the subgoals of the movement sequences before watching ARoS executing a task, they were able to predict possible motor solutions based on their own mental representations. Based on this point of view, the degree of mismatch between an internal motor simulation and the observed upper-limb motion of ARoS may explain whether an action is perceived as human-like or not. Naturalistic obstacles-avoidance The toy vehicle assembly and the drink serving tasks show that the HUMP generates smooth trajectories that avoid undesired collisions with obstacles or the object being manipulated. Given that several studies on human obstacles-avoidance have reported velocity profiles with a characteristic double-peak structure, 20,62 our claim that the HUMP generates kinematically human-like movement profiles requires further investigation. To better understand −400 −350 −300 −250 400 500 600 1000 1020 x [mm] y [mm] z [mm] Start Target (a) 0246 0 20 40 60 time [s] hand velocity [mm/s] (b) Figure 20. Move movement planned by HUMP in the drink serving task (NJS ¼24.57, NMU ¼0, solving time ¼297 ms). (a) Hand position and (b) hand velocity. −500 −400 −300 400 500 600 1000 1020 x [mm] y [mm] z[mm] Start Target (a) 0 2 4 6 8 10 12 14 0 20 40 60 time [s] hand velocity [mm/s] (b) Figure 21. Retreat stage of the place movement 2 in Figure 17 plus the move movement in Figure 20 planned by the HUMP in the drink serving task (NMU ¼1). (a) Hand position and (b) hand velocity. Table 9. Results over 100 trials of the move movement planning in the drink serving scenario (Figure 14). Planner Solv. time: mean (SD) (ms) Rate of success (%) RRT 5207.98 (107.87) 93 RRTConnect 1855.15 (431.90) 100 RRT* 5224.96 (76.60) 53 PRM 5416.57 (542.50) 99 PRM* 5888.02 (295.42) 98 Gulletta et al. 23 how the position and the height of an obstacle might affect the hand kinematics during collisions-avoidance, we conducted additional experiments in a setup inspired by a recent study on human strategies for collisions-prevention in a three-dimensional workspace. 62 The top view of the experimental setup shown in Figure 23 illustrates the spatial layout. ARoS had to reach for a cylindrical object (a bottle) placed on a table in front of the robot and transport it from the start position to one of two possible target positions: Target 1 (T1) at a distance 30 cm away from the starting position in straight ahead direction, and Target 2 (T2) shifted 15 cm to the right of T1, thus located in a direction diagonal to the starting position. For each target, an obstacle was located at middistance between the start and the target either on the left or on the right of the straight line connecting them. The obstacle is a cylinder with a diameter of 8 cm, which could be either tall (28 cm in height) or small (14 cm in height). Table 11 summarizes the labels we use in the text to describe the different conditions. The last condition in this table indicates if the obstacle avoidance mechanism is used. In other words, whether the back-and-forth movement (equation (14)) is superimposed on the direct movement (equation (22)) to obtain the trajectory in equation (23) or only the direct movement is planned. Figure 24 illustrates two possible combinations in which only the height of the obstacle is changed. For the sake of brevity, we report here only the results of four experimental conditions and three videos, which nevertheless allow us to qualitatively compare the results with fundamental findings of the study conducted by Grimme et al. 62 Since we were primarily interested in the obstacleavoidance movement, the analysis included the retreat phase of the pick movement and the transport plus the approach phases of the place movement (see section “Classification and segmentation of a movement”). Following the paradigm presented by Grimme et al., 62 we measured the torsion of the hand, htor, (equation (39)) to verify that avoiding an obstacle naturally generates approximately planar movements htor¼ dr dtd2r dt2d3r dt3   dr dtd2r dt2 2(39) In equation (39), ris the three-dimensional position of the hand along its path, which brings numerical problems when the velocity and the acceleration of the hand are close to zero. This is visible in the results at the beginning and at the end of a movement, but it does not relate to our conclusions. In addition, we decomposed the tangential velocity into a transport and a −500 −400 −300 300 400 500 600 1000 1100 1200 Grasp Pour Ungrasp x [mm] y [mm] z [mm] Start Target (a) 0 1020304050 0 50 100 150 Grasp Pour Ungrasp time [s] hand velocity [mm/s] (b) Figure 22. Complete movement sequence of the drink serving task planned by the HUMP. (a) Hand position and (b) hand velocity. Table 10. Results of the survey related to the movements planned by the HUMP. Toy vehicle assembly (%) Serving a drink (%) Human-like 78 92 Not human-like 22 8 Start T1 O1 30 cm 8 cm 15 cm T2 Start T1 O4 O3 T2 15 cm y x O2 Figure 23. Spatial layout of the experimental setup. For details, see the text. Obstacle locations O1 and O2 were only applied in combination with target T1, whereas obstacles locations O3 and O4 were combined with target T2. 24 International Journal of Advanced Robotic Systems lift/descend component because this decomposition allows to understand the occurrence of a double peak structure in the tangential speed profile. 62 The transport component is obtained by projecting the path on the straight line connecting the start position to the target position, which corresponds to the Euclidean x-compo- nent (for configurations T2, the frame of Cartesian coordinates is rotated accordingly), and the lift/decent component is the orthogonal complement defined by equation (40). Table 11. Description of the symbols used in the experiments. Target position Obstacle position Obstacle height Obstacle avoidance Straight Diagonal Left Right Small: 14 cm Tall: 28 cm Yes No T1 T2 O1 O3 O2 O4 S T Y N Small obstacle Bottle Tall obstacle Bottle T2O4S T2O4T Figure 24. Configuration T2O4 with a small (T2O4S) and a tall obstacle (T2O4T). 02468 0 0,2 0,4 0,6 0,8 1 1,2·104 time [s] velocity2[mm2/s2] Lift Transport Tangential (a) 02468 −4000 −2000 0 2000 4000 time [s] torsion [1/m] (b) Figure 25. Hand velocity components and hand torsion of the manipulation in configuration T2O4TN. (a) Hand velocity components and (b) hand torsion. Figure 26. (a) to (c) Three snapshots that show the movement planned by the HUMP in the configuration T2O4TN. The complete video can be seen at the link https://youtu.be/3hZJb4rkgaI. Figure 27. (a) to (c) Three snapshots that show the movement planned by the HUMP in the configuration T2O4TY. The complete video can be seen at the link https://youtu.be/3hZJb4rkgaI. Gulletta et al. 25