Full text
2015 25 María Teresa Lázaro Grañón Map building, localization and exploration for multirobot systems Departamento Director/es Informática e Ingeniería de Sistemas Castellanos Gómez, José Ángel Grisetti, Giorgio Director/es Tesis Doctoral Autor Repositorio de la Universidad de Zaragoza – Zaguan http://zaguan.unizar.es UNIVERSIDAD DE ZARAGOZA
Departamento Director/es María Teresa Lázaro Grañón MAP BUILDING, LOCALIZATION AND EXPLORATION FOR MULTI-ROBOT SYSTEMS Director/es Informática e Ingeniería de Sistemas Castellanos Gómez, José Ángel Grisetti, Giorgio Tesis Doctoral Autor Repositorio de la Universidad de Zaragoza – Zaguan http://zaguan.unizar.es UNIVERSIDAD DE ZARAGOZA
Departamento Director/es Director/es Tesis Doctoral Autor Repositorio de la Universidad de Zaragoza – Zaguan http://zaguan.unizar.es UNIVERSIDAD DE ZARAGOZA
PH.D. THESIS Map Building, Localization and Exploration for Multi-Robot Systems MARÍA TERESA LÁZARO GRAÑÓN Supervised by José Ángel Castellanos Gómez Giorgio Grisetti Robotics, Perception and Real Time Group (RoPeRT) Instituto de Investigación en Ingeniería de Aragón (I3A) Escuela de Ingeniería y Arquitectura (EINA) Universidad de Zaragoza (UZ) January 2015
PH.D. THESIS Map Building, Localization and Exploration for Multi-Robot Systems María Teresa Lázaro Grañón January 2015 Thesis defended under the Programa de Doctorado en Ingeniería de Sistemas e Informática with International Ph.D. Mention (Mención Internacional) Supervisors José Ángel Castellanos Gómez Universidad de Zaragoza, Spain Giorgio Grisetti Università degli Studi di Roma "La Sapienza", Italy Composition of the Thesis Commitee Luis Enrique Montano Gella Universidad de Zaragoza, Spain Alberto Sanfeliu Cortés Universitat Politècnica de Catalunya, Spain José Santos-Victor Instituto Superior Técnico, Lisboa, Portugal José Neira Parra Universidad de Zaragoza, Spain Javier González Jiménez Universidad de Málaga, Spain International Reviewers Shoudong Huang University of Technology, Sydney, Australia Luca Iocchi Università degli Studi di Roma "La Sapienza", Italy
Resumen La idea de tener robots desempeñando la tarea para la cual han sido diseñados de forma completamente autónoma e interactuando con su entorno ha sido el principal objetivo desde los inicios de la robótica móvil. Para conseguir tal grado de autonomía, es indispensable que el robot disponga de un mapa del entorno y conocer su localización en él, además de ser capaz de resolver otros problemas como el control del movimiento y la planificación de trayectorias hacia su objetivo. En el desempeño de ciertas misiones sin conocimiento previo de su entorno, el robot debe utilizar la información imprecisa proporcionada por sus sensores para construir un mapa al mismo tiempo que se localiza en él, lo que da lugar al problema de localización y construcción de mapas de forma simultánea (o con las iniciales de su denominación anglosajona, SLAM) ampliamente estudiado en robótica móvil. En los últimos años, ha habido un creciente interés por la utilización de equipos de robots debido a los múltiples beneficios que ofrecen respecto a sistemas de un solo robot, tales como una mayor robustez, precisión, eficiencia y la posibilidad de cooperar para realizar una tarea o cubrir entornos más grandes en menos tiempo. En este ámbito de los robots cooperativos encontramos también el caso específico de las formaciones de robots, donde deben adoptar una estructura concreta mientras navegan por el entorno. A pesar de sus ventajas, la complejidad de los sistemas multi-robot autónomos aumenta con el número de robots ya que es mayor la cantidad de información que ha de ser manejada, almacenada y transmitida a través de la red de comunicaciones. Así pues, el desarrollo de estos sistemas presenta nuevas dificultades a la hora de dar solución a los problemas anteriormente mencionados que, en lugar de abordarlos de manera individualpara cada robot, han de ser resueltos de forma cooperativa para aprovechar de forma eficiente la información recogida por los todos los miembros del equipo. El diseño de los algoritmos en este contexto multi-robot ha de orientarse a obtener la mayor escalabilidad y rendimiento posible que permitan su ejecución online. Esta tesis está enmarcada en el ámbito de los sistemas multi-robot, proponiendo soluciones a cada uno de los procesos de navegación, localización, construcción de mapas y planificación de caminos que conforman un sistema autónomo. Una primera parte de las contribuciones presentadas en esta tesis está desarrollada en el contexto iii
iv de las formaciones de robots, que exigen una mayor cooperación y sincronización del equipo, aunque pueden ser extendidas a sistemas sin esa restricción en la navegación. Asumiendo que la formación dispone de un mapa del entorno, posiblemente parcial e imperfecto, en el que debe realizar la misión encomendada proponemos técnicas para la localización, mejora del mapa previo y exploración del mismo. En una segunda parte, proponemos un método de SLAM multi-robot sin ninguna asunción en cuanto al conocimiento previo del mapa o de las relaciones entre robots en el que utilizamos técnicas pertenecientes al estado del arte para gestionar eficientemente los recursos disponibles en el sistema. A lo largo de la tesis se ha validado el rendimiento y eficacia de los sistemas de robots en formación y de SLAM multi-robot mediante su implementación y puesta a punto tanto en simulaciones como en equipos de robots reales.
List of Figures xi A.2 Pairingbetweenan observationand a feature in the caseof a robot leader and a robot follower. . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
xii List of Figures
List of Acronyms BN Bayesian Network CI Conditional Independence DBN Dynamic Bayesian Network EIF Extended Information Filter EKF Extended Kalman Filter GMRF Gaussian Markov Random Field KF Kalman Filter KLD Kullback-Leiber Divergence MAP Maximum a Posteriori MD-EKF Measurement-Differencing based EKF MRF Markov Random Field ND Nearness Diagram NEES Normalized Estimation Error Squared NTP Network Time Protocol ROS Robotic Operating System RT-WMP Real Time Wireless Multihop Protocol SCGP Single-Cluster Graph Partitioning SLAM Simultaneous Localization and Mapping xiii
xiv List of Acronyms
Contents Resumen iii Abstract v Acknowledgements vii List of Figures ix List of Acronyms xiii 1 Introduction 1 1.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1.1 SLAM and Multi-Robot Issues . . . . . . . . . . . . . . . . . . 3 1.2 Contributions of the Thesis . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2.1 Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2.2 Open Source Contributions . . . . . . . . . . . . . . . . . . . . 7 2 Basic Fundamentals of SLAM 9 2.1 SLAM Problem Definition . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2 Graphical Models for the SLAM Problem . . . . . . . . . . . . . . . . 10 2.2.1 Dynamic Bayesian Networks . . . . . . . . . . . . . . . . . . . 11 2.2.2 Markov Random Fields . . . . . . . . . . . . . . . . . . . . . 11 2.2.3 Factor Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.2.4 Pose Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.3 Map Representations . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.3.1 Feature Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.2 Dense Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.4 Filtering Approaches . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.4.1 SLAM as a Recursive Bayesian Filtering Problem . . . . . . . 16 2.4.2 Extended Kalman Filter . . . . . . . . . . . . . . . . . . . . . 18 2.4.3 Extended Information Filter . . . . . . . . . . . . . . . . . . . 20 xv
xvi Contents 2.4.4 EKF vs. EIF . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.5 Maximum Likelihood Approaches . . . . . . . . . . . . . . . . . . . . 21 2.5.1 SLAM as a nonlinear Least Squares Minimization Problem . . . 23 I SLAM for Robot Formations using Prior Information 31 3 Robot Formations 33 3.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 3.2 Single Robot Motion Control . . . . . . . . . . . . . . . . . . . . . . . 35 3.3 Robot Formation Control . . . . . . . . . . . . . . . . . . . . . . . . . 38 3.4 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4 Localization of Robot Formations in SLAM 43 4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 4.2 Probabilistic Representation of the Robot Formation . . . . . . . . . . 46 4.3 EKF-based Localization of the Robot Formation . . . . . . . . . . . . . 46 4.3.1 EKF Prediction Step . . . . . . . . . . . . . . . . . . . . . . . 46 4.3.2 EKF Update Step . . . . . . . . . . . . . . . . . . . . . . . . . 48 4.3.3 Simulation Results: Inconsistency . . . . . . . . . . . . . . . . 48 4.4 Measurement-Differencing EKF-based Localization of the Formation . 50 4.4.1 Whitening the Measurement Equation . . . . . . . . . . . . . . 51 4.5 Experimental Results . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.5.1 Experiments in Player/Stage . . . . . . . . . . . . . . . . . . . 54 4.5.2 Experiments with the Pioneer 3-AT Robots . . . . . . . . . . . 55 4.6 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 5 Robot Formations in Partially a priori Known Environments 59 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 5.2 Path planning under Uncertainty . . . . . . . . . . . . . . . . . . . . . 60 5.2.1 Definition of Risk Maps . . . . . . . . . . . . . . . . . . . . . 61 5.2.2 Global Paths of Bounded Cell Risk . . . . . . . . . . . . . . . 61 5.3 Cooperative On-line Replanning . . . . . . . . . . . . . . . . . . . . . 64 5.3.1 Pose Tracking with Observation Improvement . . . . . . . . . . 64 5.3.2 Cooperative Local Planning . . . . . . . . . . . . . . . . . . . 66 5.4 System Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 5.5 Experimental Results . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 5.5.1 Global Path Planning . . . . . . . . . . . . . . . . . . . . . . . 71 5.5.2 Formation Adaptability . . . . . . . . . . . . . . . . . . . . . . 71 5.5.3 Cooperative Online Replanning . . . . . . . . . . . . . . . . . 72 5.5.4 Experiments in Real Scenarios . . . . . . . . . . . . . . . . . . 73
Contents xvii 5.6 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6 Distributed SLAM for Robot Formations using a Prior Map 79 6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 6.2 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 6.3 Local Estimates and Global Updates . . . . . . . . . . . . . . . . . . . 82 6.3.1 Global to Local . . . . . . . . . . . . . . . . . . . . . . . . . . 83 6.3.2 Local EIF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 6.3.3 Local to Global . . . . . . . . . . . . . . . . . . . . . . . . . . 84 6.4 Passing Messages between the Robot Formation . . . . . . . . . . . . . 85 6.4.1 Send Messages . . . . . . . . . . . . . . . . . . . . . . . . . . 86 6.4.2 Receive Messages . . . . . . . . . . . . . . . . . . . . . . . . 87 6.5 Distributed Localization and Mapping Algorithm for Robot Formations 87 6.5.1 Computational and Communication Complexity Analysis . . . 89 6.6 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 6.7 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 II Multi-Robot Simultaneous Localization and Mapping 95 7 Multi-Robot SLAM using Condensed Maps 97 7.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 7.2 Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 7.3 Condensed Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 7.4 Multi-Robot SLAM using Condensed Graphs . . . . . . . . . . . . . . 103 7.4.1 Communication Model . . . . . . . . . . . . . . . . . . . . . . 103 7.4.2 Multi-Robot SLAM . . . . . . . . . . . . . . . . . . . . . . . 105 7.4.3 Robust Map Alignment . . . . . . . . . . . . . . . . . . . . . . 107 7.5 Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 7.5.1 Robust Map Alignment . . . . . . . . . . . . . . . . . . . . . . 108 7.5.2 Multi-Robot SLAM System . . . . . . . . . . . . . . . . . . . 114 7.6 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 8 Conclusions 121 8.1 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 8.2 Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 8.3 Conclusiones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 8.4 Trabajo Futuro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
xviii Contents A Equations of the EKF-based Localization of the Formation 127 A.1 Process model equations . . . . . . . . . . . . . . . . . . . . . . . . . 127 A.2 Measurement model equations . . . . . . . . . . . . . . . . . . . . . . 129 B Derivation of the Measurement-Differencing EKF-based Equations 131 C Derivation of the Measurement-Differencing EIF-based Equations 133 Bibliography 137
Chapter 1 Introduction 1.1 Motivation The development of robots accomplishing their commanded task completely autonomously has been the main objective in mobile robotics during the last decades. This is motivated by the wide variety of applications either in the social sphere, such as rescue missions, surveillance, guidance of people in emergency situations or exploration in hostile environments of hard access to humans as well as in the industrial field such as in maintenance, inspection or transportation of goods. Autonomous robots such as vacuum cleaners and lawn mowers are already present at our homes, freeing us from these time consuming tasks, whereas more advanced robotics such as the Mars Curiosity rover and the Google self-driving car have also been successfully developed. To fulfill its mission completely autonomously in its surrounding environment, the robot has to perform a number of tasks which can be grouped in motion control,path planning,localization and mapping, closely interrelated as shown in Fig. 1.1. The motion control is the problem of computing the actions or control inputs (usually velocity commands) to move the robot towards a desired location from its current position. The path planning seeks the optimal trajectory (sequence of waypoints or sub-goals) the robot has to follow to reach the global goal of the mission. Path planning usually includes obstacle avoidance to cope with unexpected situations which may modify the initially computed trajectory. To reach a desired location or to compute a trajectory, the robot first needs to know itscurrent positionin the environment. The localization system provides the position with respect to a map of the environment which can be known a priori or acquired simultaneously to the performance of the mission. In this latter case, the mapping process can not be decoupled from the localization process leading to the problem of Simultaneous Localization and Mapping (SLAM). Due to the difficulty of integration of the uncertain information provided by the robot’s on-board sensors, the SLAM problem became one of the main research topics in mobile robotics, considering 1
21. Introduction Figure 1.1: Tasks to be solved by an autonomous robot. the concurrent learning of the environment and the robot localization in a probabilistic manner. As we can see, these problems can not be addressed independently due to their interdependencies and solving all them together is a challenge in mobile robotics. Then, it is usual to solve individual problems by assumming certain previous knowledge. For example, having a closer look to Fig. 1.1, we can solve localization and path planning problems if the map of the environment is given. Also, we can focus on the SLAM problem withoutconcerning of path planning and motioncontrol by manually teleoperating the robot. As the techniques developed for single robots matured, researchers started to show interest in the use of multiple robots due to their attractive advantages with respect to the single-robot case. For example, in surveillance and reconnaissance missions, multiple robots cover the environment in less time and offer increased robustness since, if one of the robots fails, it does not necessarily imply aborting the mission. However, the development of an autonomous multi-robot system can not be addressed by simply replicating the scheme shown previously on each single entity. That would be an inefficient implementation without taking advantage of the team cooperation. For example, robot localization can be improved if they are able to detect each other. Also, the integration of information coming from multiple robots results in more accurate maps and expanded fields of view to obtain better paths to the goal. Then, to develop an autonomous multi-robot system, we need to extend the abovementioned tasks to exploit as much as possible all the information available in the system. In this thesis we focus on providing solutions to the localization and SLAM problems in the context of multi-robot sytems which are also integrated with path planning and multi-robot motion control tasks to obtain a complete system. Besides, part of this thesis aims at giving a practical implementation of the proposed techniques for the case
Chapter 2 Basic Fundamentals of SLAM A robot navigating autonomously in an environment requires the availability of a map and its location within it. If the environment is unknown, the robot needs to construct its own map and, at the same time, determine its position in it by using the information gathered by its own sensors. However, these sensors provide noisy measurements and are subject to errors. The Simultaneous Localization and Mapping (SLAM) is a well known research topic in robotics which takes into account these uncertainties by using probabilistic techniques. The aim of this chapter is to introduce the SLAM problem from the point of view of its probabilistic formulation, together with the basic methodologies of the different approaches that have been addressed in this thesis. 2.1 SLAM Problem Definition Let the trajectory of a robot be represented by a discretized set of poses xR0:K= {xR0,xR1,...,xRK}where xRkis the 2D pose and orientation of the robot (x,y, θ )Tat time step k. The transition between two consecutive robot states xRk−1and xRkis governed by the control input uk, being u1:K={u1,...,uK}the history of all control inputs along the trajectory. As the robot moves, it observes the environment with its on-board exteroceptive sensors, obtaining a set of measurements z1:K={z1,...,zK}. The inherent inaccuracies in the application of the motion controls and the noisy sensor readings introduce uncertainties in the system which require the use of a probabilistic framework to deal with the mapping and localization problems. These two problems can be addressed separately in the following way: 1. If the robot positions are known, a map mcan be inferred from them and the set of observations. This mapping problem is formulated in a probabilistic way represented by the posterior probability, p(m|xR0:K,z1:K)(2.1) 9
10 2. Basic Fundamentals of SLAM 2. On the other hand, if the robot is provided with a map of the environment, it can use this prior knowledge to compute its trajectory with respect to the map’s reference frame. This represents a robot localization problem which is formally expressed as, p(xR0:K|z1:K,u1:K,m)(2.2) Equations 2.1 and 2.2 highlight the existing interdependency between both mapping and localization problems. In order to obtain the map of the environment m, the robot requires an accurate estimation of its trajectory xR0:Kwhich must be determined with respect to the map. Therefore, if both the map and the robot positions are unknown, these problems can not be solved separately. This is a well known “chicken or egg” problem, subject of thorough investigation in the last decades by the Simultaneous Localization and Mapping community. Then, the SLAM consists in estimating the joint posterior probability of the robot trajectory and the map given the history of control inputs and measurements, p(xR0:K,m|z1:K,u1:K)(2.3) which is also known as the full SLAM problem, tipically solved by least squares optimization techniques. On the contrary, the online SLAM computes the current robot position and the map using the measurements up to certain time step k, p(xRk,m|z1:k,u1:k)(2.4) which is addressed by filtering approaches. Both kind of approaches have been used along this thesis and they are explained in the rest of this chapter. The formulation for the individual problems of localization and mapping can be obtained following a similar derivation, which is detailed in [81]. The derivation of their solutions is based on the application of probabilistic rules over the variables involved in the SLAM problem, whose dependencies are represented by the Bayesian network shown in Fig. 2.1. Along this document we will make use of other graphical representations, therefore, we give a brief review of them in the next section. Subsequently, we will describe different types of map representations and the fundamentalsof the filtering and optimizationtechniques used in this thesis to construct them. 2.2 Graphical Models for the SLAM Problem The SLAM problem can be represented by a variety of graphical models to intuitively visualize its structure and dependencies between the variables involved. The three most commonly used graph representations are briefly introduced in this section. Further and general details about the useful properties of these probabilistic graphical models can be found in [7, 45] and a review of their application in the SLAM context can be found in [23].
2.2. Graphical Models for the SLAM Problem 11 Figure 2.1: SLAM problem represented as a Bayesian network. 2.2.1 Dynamic Bayesian Networks A Bayesian Network (BN) is a directed acyclic graph where nodes represent either hidden (i.e., unknown) or observable variables and directed links (arrows) are used to represent conditional dependencies among them. The directed link establishes a parentchild relation between the connected nodes where the parent is the node from which the edge leaves and the child is the node where the edge leads to. Additionally, Dynamic Bayesian Networks (DBNs) allow to model how these variables are related over time. Figure 2.2 illustrates a short example of a SLAM problem where the variables to be estimated are the robot poses xR1:4 and the map m, represented by a set of features F={F1:4}. The observed variables are the odometry measurements u1:4 and sensor observations where zi kis the ith measurement at time step k. Through this kind of graph we can directly represent some conditional distributions present in the SLAM problem such as p(xRk|xRk−1,uk),∀k>0 and p(zi k|xRk,xFjik )where Fjik is the feature associated to measurement zi k. These probabilities are called transition (or motion)model and measurement (or observation) model. We can also deduce the full joint posterior over the set of variables factorized as, p(xR0:K,m,z1:K,u1:K) = p(xR0)∏ k p(xRk|xRk−1,uk)∏ ip(zi k|xk,xFjik )(2.5) 2.2.2 Markov Random Fields A Markov Random Field (MRF) is an undirected graphical model and may contain cycles. In MRFs only the hidden variables are represented and measurements are implicitly encoded on the edges between the unknown the variables. The undirected graph representation from a directed graph can be found by a process called moralization
12 2. Basic Fundamentals of SLAM Figure 2.2: Example of a feature-based SLAM problem represented as a Bayesian network. Figure 2.3: SLAM problem represented as a MRF. where arrows are replaced by undirected links and parents of a common child must be linked each other. As a example, Fig. 2.3 shows the equivalent MRF representation of the BN from Fig. 2.2. One of the benefits of this representation is that MRFs offer an easy way of testing the conditional independence properties between variables by simple graph separation. The Conditional Independence Property We will refer to the example in Fig. 2.4 where a MRF is used to show the conditional independence (CI) property of a set of random variables xA,xBand xC. Suppose that we want to search for a path connecting any node in xAto any node in xBwhen the common node subset xCis removed from the graph. Since no such a path exists, we can assert that subsets xAand xBare conditionally independent if we know the subset xC. Subset xCis called a vertex separator since it partitions the graph in two disconnected subgraphs xAand xB. Then, in MRFs, the CI property is determined by simple graph separation ([7]).
2.2. Graphical Models for the SLAM Problem 13 Figure 2.4: This example shows a MRF with no direct links from subset xAto subset xB. This means that the conditional independence property p(xA,xB|xC) = p(xA|xC)p(xB|xC)or any of its equivalents holds for any probability distribution described by this graph. Notice that we do not make any assumption about the nature of the distribution. Common separator nodes are surrounded by a dash dark line and depicted in green; nodes in xAand xBsets are shown in red and blue respectively. Formally this is expressed by any of the following equivalent expressions: p(xA,xB|xC) = p(xA|xC)p(xB|xC)(2.6) p(xA|xB,xC) = p(xA|xC)(2.7) p(xB|xA,xC) = p(xB|xC)(2.8) These equations will be applied in the explanation of the following sections and we will make a explicit use of this property in the distributed multi-robot SLAM algorithm presented in Chapter 6. 2.2.3 Factor Graphs A factor graph [46] is a bipartite undirected graph which allows to represent factorized probability distributions. A factor graph has two kind of nodes, variable nodes which, in our context, can be either robot or landmark poses and factor nodes containing probabilistic relations between them. Concretely, each factor node contains one factor of Eq. 2.5 and is connected to all the variables that such factor depends on. The factor graph representation of the previous SLAM example is shown in Fig. 2.5. Note how the prior factor over the pose xR0is also included. 2.2.4 Pose Graphs The pose graphs are a specific type of graphical model to represent the so-called pose SLAM problem. In contrast to the general approach to SLAM, the goal of pose SLAM
14 2. Basic Fundamentals of SLAM Figure 2.5: SLAM problem represented as a factor graph. Circles and squares correspond to variable nodes and factor nodes respectively. is to compute the optimal robot trajectory whereas the map is maintained implicitly. As in the case of the general SLAM problem, the pose SLAM problem can be equally represented by MRFs or factor graphs. The pose graph contains only the robot poses and each edge/factor between two nodes encodes a spatial constraint between them. These constraints can be obtained directly from odometry measurements or indirectly when the robot observes the same part of the environment from two different poses and, based on this common observation, a “virtual” relative measurement between both positions can be determined. Once the optimal path is computed, a map estimate can be recovered by solving an instance of mapping with known poses (Eq. 2.1). Figure 2.6 shows the pose graph simplification of our current example. Note how the edge/factor between non consecutiveposes is derivedfrom the observation of a common landmark. (a) (b) Figure 2.6: Pose graph SLAM problem represented as a MRF (a) and a factor graph (b). 2.3 Map Representations A variety of map representations have been proposed over the years, which can be classified according to different criteria. We classify the kind of map depending on how the sensorial information is handled and integrated in the SLAM process. This leads to feature based maps which consider unique and distinguishable elements of the environment and dense maps which use raw data. The choice of the map representation is related to the task to be performed and to the algorithms and methods used to address the problem.
2.3. Map Representations 15 2.3.1 Feature Maps In feature-based SLAM, the map of the environment is characterized by a set of features or landmarks. They are representative elements of the environment and its extraction depends on the kind of sensor used and the structure of the environment. For example, in the 2D case, usual features obtained from laser scans are segments, corners or even simpler elements, like points. In the 3D case, some common visual features extracted from images are the Speeded Up Robust Features (SURF), the Scale Invariant Feature Transform (SIFT) and the Features from Accelerated Segment Test (FAST). As downsides, feature detection can be computationally expensive and assumes the presence of outstanding features in the environment. Furthermore, this abstraction of the environment may produce a loss of the information available which difficults the data association process (i.e., determining correspondences between observations and previously mapped landmarks) in unstructured environments. The state of a feature map can be described by a vector xF={xF1,...,xFn}containing the location of the nmap features F={F1,...,Fn}. Furthermore, the assumption of the map being affected by Gaussian error requires the maintainance of the uncertainty estimation over time by means of a covariance matrix. Then, the uncertainty is maintained not only for each individual feature but also about their correlations and inter-dependencies, an important aspect to obtain consistent maps [17]. The cost of updating the map covariance matrix is quadratic in the size of the state vector which grows each time a new feature is detected and added in it. This makes the map maintainance intractable in large-scale scenarios. In order to cope with this issue, submapping techniques were proposed [89, 25, 40, 70], where the mapping problem is solved for local maps of bounded size which are later fused to create a global map. As example, Fig. 2.7 shows a 2D segment-based map of our Robotics Lab at the Aragon Institute of Engineering Research of University of Zaragoza. Figure 2.7: Example of segment-based feature map representation of the Robotics Lab at University of Zaragoza.
16 2. Basic Fundamentals of SLAM 2.3.2 Dense Maps In contrast to feature-based maps, dense maps are constructed using all raw data gathered from sensors, thus, offering a more detailed reconstruction of the environment. This fact makes dense maps suitable for both structured and unstructured environments. Data association is carried out by registering (aligning, also referred as scan matching in the 2D case) the raw measurements. The two common types of dense maps are grid maps and pose graphs, which are introduced below: Grid maps An occupancy grid map [59] partitions the environment into cells where each cell holds the probability of being occupied. The number of cells in the grid depends on the desired accuracy which is achieved by setting the size of the cells. The size of the grid affects the updating cost and memory consumption, then, grid-based algorithms should trade-off accuracy and online performance. Since most widely used path planning and obstacle avoidance techniques are gridbased, these maps allow the use of a unique representation for SLAM and navigation purposes. Pose graphs Pose graphs have experienced a considerable attention in the last years thanks to their simplicity to represent the full SLAM problem. As we introduced in the previous section, pose graphs offer a compact representation of the environment, where the map is summarized to the robot trajectory. Each node contains a robot location together with a measurement obtained at that position. Then, once the optimal trajectory is obtained, the measurements are represented with respect to the computed poses. As a drawback, raw measurements have to be stored at each node, then, this information has to be efficiently managed to avoid high memory consumption. This aspect can be particularly relevant when dealing with point clouds in dense visual SLAM. Figure 2.8 shows dense representations of the same feature map of Fig. 2.7. 2.4 Filtering Approaches 2.4.1 SLAM as a Recursive Bayesian Filtering Problem In the filtering context, the current robot position xRkand the map mis computed given the history of sensor observations z1:kand control inputs u1:kup to time step k. p(xRk,m|z1:k,u1:k)(2.9)
2.4. Filtering Approaches 17 (a) (b) Figure 2.8: Example of dense map representations of the Robotics Lab at University of Zaragoza. (a) Grid map representation of the environment. Here, white cells are free of obstacles, black are occupied cells and grey cells denote unexplored area. (b) Pose graph obtained using the same raw data. The optimized robot trajectory is depicted in red where black dots are the laser scans acquired at each robot position This probability is obtained recursively, based on the previously computed state at time k−1, that is p(xRk−1,m|z1:k−1,u1:k−1). Equation 2.9 is factorized by using Bayes’ rule as, p(xRk,m|z1:k,u1:k) = η p(zk|xRk,m,z1:k−1,u1:k)p(xRk,m|z1:k−1,u1:k)(2.10) where η is a normalizing factor that ensures Eq. 2.10 represents a valid probability distribution. Under the Markovassumption, the current measurement zkis conditionallyindependent of the past measurements z1:k−1and control inputs u1:kgiven the current state xRk and the map m. This property can be deduced from Fig. 2.1, where zkis only directly related to xRkand m, therefore, the first term on Eq. 2.10 is simplified as, p(zk|xRk,m,z1:k−1,u1:k) = p(zk|xRk,m)(2.11) Following with the derivation, the law of total probability is applied in the second term of Eq. 2.10 to consider the state at previous step k−1. Then, p(xRk,m|z1:k−1,u1:k) = ZxRk−1 p(xRk|xRk−1,m,z1:k−1,u1:k)p(xRk−1,m|z1:k−1,u1:k)dxRk−1 (2.12) which, again, using the Markov property, is reduced to p(xRk,m|z1:k−1,u1:k) = ZxRk−1 p(xRk|xRk−1,uk)p(xRk−1,m|z1:k−1,u1:k−1)dxRk−1(2.13)
18 2. Basic Fundamentals of SLAM Finally, applying Eqs. 2.11 and 2.13 on Eq. 2.10 we obtain, p(xRk,m|z1:k,u1:k) = η p(zk|xRk,m) ·ZxRk−1 p(xRk|xRk−1,uk)p(xRk−1,m|z1:k−1,u1:k−1)dxRk−1(2.14) As it can be observed, the problem is formulated in terms of the measurement model p(zk|xRk,m), the transition model p(xRk|xRk−1,uk)and the previous knowledge p(xRk−1,m|z1:k−1,u1:k−1). Tipically, these models are approximated by Gaussians, p(xRk|xRk−1,uk)∝exp−1 2(f(xRk−1,uk)−xRk)TQ−1 k−1(f(xRk−1,uk)−xRk)(2.15) p(zk|xRk,m)∝exp−1 2(h(xRk,m)−zk)TR−1 k(h(xRk,m)−zk)(2.16) where fand hare the transition and measurement functions, affected by additive zeromean Gaussian noises with covariances Qk−1and Rkrespectively. Usually, Eq. 2.14 is solved in two steps, the prediction and the update step. In the prediction step we compute: p(xRk,m|z1:k−1,u1:k) = ZxRk−1 p(xRk|xRk−1,uk)p(xRk−1,m|z1:k−1,u1:k−1)dxRk−1(2.17) accounting for the transition model p(xRk|xRk−1,uk)and the estimate at previous step p(xRk−1,m|z1:k−1,u1:k−1). Notice how, obeying the filtering paradigm, previous robot position xRk−1is marginalized out. At the update step, the probability distribution p(xRk,m|z1:k−1,u1:k)is updated taking into account the sensor model described by Eq. 2.16 and normalized with the constant η to ensure that the result is a valid probability distribution. p(xRk,m|z1:k,u1:k) = η p(zk|xRk,m)p(xRk,m|z1:k−1,u1:k)(2.18) 2.4.2 Extended Kalman Filter The Kalman Filter (KF) is the optimal estimatorto recursively solve Eq. 2.14. It is based on the assumptions that the system is linear with zero-mean Gaussian noise sequences. However, the SLAM motion and measurement processes are nonlinear. The Extended Kalman Filter (EKF) is the KF nonlinear extension that allows to apply its equations to nonlinear models. The state of the system xk= (xRk,m)Tis described by a normally distributedrandom vector with mean ˆ xkand covariance matrix Pk, xk∼ N(ˆ xk,Pk)
2.5. Maximum Likelihood Approaches 25 where eij =eij(ˇ xi,ˇ xj). Substituting Eq. 2.71 in the error terms Fij of Eq. 2.63 we obtain, Fij(ˇ x+∆x) = eij(ˇ x+∆x)TΩ Ω Ωijeij(ˇ x+∆x)(2.72) ≃(eij +Jij∆x)TΩ Ω Ωij(eij +Jij∆x)(2.73) =eT ijΩ Ω Ωijeij +2eT ijΩ Ω ΩijJij |{z } bT ij ∆x+∆xTJT ijΩ Ω ΩijJij |{z } Hij ∆x(2.74) Now, we can write a linear approximation of the function F(x)in Eq. 2.63 as, F(ˇ x+∆x) = ∑ hi,ji∈C Fij(ˇ x+∆x)(2.75) ≃∑ hi,ji∈C eT ijΩ Ω Ωijeij +2bij∆x+∆xTHij∆x(2.76) =∑ hi,ji∈C eT ijΩ Ω Ωijeij |{z } c +2∑ hi,ji∈C bT ij |{z } bT ∆x+∆xT∑ hi,ji∈C Hij | {z } H ∆x(2.77) With this procedure we have obtained a quadratic form in ∆xof the function F(x). We get the values for ∆xthat minimizes function 2.77 by setting its first derivativeequal to zero: ∂ (∆xTH∆x+2bT∆x+c) ∂ ∆x=2H∆x+2b=0(2.78) Then, the problem is reduced to find a solution of the linear system: H∆x∗=−b(2.79) where the computed increments are applied to the initial guess as, x∗=ˇ x+∆x∗(2.80) The matrix His the information matrix of the system, since it is obtained by projecting the measurement error in the space of the trajectories via the Jacobians. It is sparse by construction, having non-zeros only between poses connected by a constraint. Its number of non-zero blocks is twice the number of constraints plus the number of nodes. This allows us to solve the linear system in Eq. 2.79 with efficient approaches like sparse Cholesky factorization. The Gauss-Newton algorithm iteratively apply previous equations until some convergence criterion is reached. The current solution can be used as initial guess of the next iteration. However, the convergence is not guaranteed and it might happen that one iteration of Gauss-Newton results in a worse solution than the previous one. The
26 2. Basic Fundamentals of SLAM Levenberg-Marquardt algorithm tries to overcome this problem by introducing a damping factor λ which allows to recover from wrong steps. Then, instead of Eq. 2.79, the Levenberg-Marquardt method solves a damped version of it: (H+ λ I)∆x∗=−b(2.81) Intuitively, if λ →inf, ∆x∗→0. So, the larger is λ , the smaller are the increments. This parameter is adjusted at each iteration based on the error of the new configuration. If the error is reduced, the damping factor is decreased. Otherwise, the solution is reverted and λ is increased. Least Squares on a Manifold Previous section describes a general solution to the least squares minimization problem defined in equation 2.64. However, the derivations and operations involved are only valid under the assumption that the state space is Euclidean which, in general, is not the case in the SLAM context. For example, in the 2D case, the robot pose (x,y)spans over a Euclidean domain whereas its orientation spans over the non-Euclidean rotation group SO(2). A common approach is to represent the orientation using an angle θ ∈[− π , π ); however, this minimal representation suffers from singularities when operating in the vicinity of ± π and requires angle renormalization. A different approach is, for example, the use of rotation matrices, which is an over-parameterized representation (i.e. it is a 2x2 matrix to represent one angle). However, directly applying Eq. 2.80 to rotation matrices can break the orthogonality constraint, leading to non-valid solutions. This problem becomes even more complex in the 3D case, where orientations are in SO(3) and can be described using an over-parameterization (e.g, rotation matrices or quaternions) or with a minimal representation (e.g, Euler angles, which present a singularity known as gimbal lock). In order to take advantage of the benefits of both representations, we can consider the state space as a smooth manifold [53] which is introduced in the SLAM context [36, 33] to increase optimization robustness. A manifold is a topological space which locally behaves like a Euclidean space. Then, the intuition behind manifolds is to work globally with an over-parameterized representation and locally with its minimal form. As proposed by [37], we can define the following two operators to obtain a mapping between both representations: ⊞:M×Rm→M(2.82) ⊟:M×M→Rm(2.83) Here, mis the dimension of the manifold M. The operator ⊞applies a small perturbation in the Euclidean space to the manifold, whereas ⊟computes the perturbation between to states in the manifold.
2.5. Maximum Likelihood Approaches 27 In order to apply the concept of manifolds into our optimization problem, we can use an over-parameterized representation for the global state xand a minimal representation for the increments ∆x. Then, given the current estimate ˇ xwe can move in the manifold to approximate the solution by iteratively mapping the Euclidean increments into the global state using the ⊞operator: ∆x7→ x⊞∆x. Moreover, since we assume these increments are small, they are far from singularities. Using this operator, we can define a new error function as ˜ eij(ˇ x⊞∆˜ x) = ˆ zij ⊟zij (2.84) =g(ˇ x⊞∆˜ x)⊟zij (2.85) As before, we can compute the Taylor expression of the new error funtion under a small perturbation of the state variables around a linearization point ˇ xas ˜ eij(ˇ x⊞∆˜ x)≃˜ eij +˜ Jij∆˜ x(2.86) with ˜ Jij = ∂ (g(ˇ x⊞∆˜ x)⊟zij) ∂ ∆˜ x∆˜ x=0(2.87) With a straightforward extension of the notation, we can insert Eq. 2.86 in Eq. 2.72 leading to the linear system: ˜ H∆˜ x∗=−˜ b(2.88) Note that the Hessian ˜ Hof the manifold problem no longer represents the information matrix of the trajectories but of the trajectory increments ∆˜ x. Once we find a solution for the increments ∆˜ x∗computed in the local Euclidean surroundings of the initial guess ˇ x, theyare re-mapped into the originalover-parameterized space as x∗=ˇ x⊞∆˜ x∗(2.89) Robust optimization using condensed measurements We have seen that the least squares SLAM problem can be solved by iterative approaches like Gauss-Newton or Levenberg-Marquardt. However, their success in finding the global minimum heavily depends on how good is the initial guess and the smoothness of the sensor model. In this section we briefly describe the optimization approach presented in [31] which provides a procedure to solvea factor graph even if the initial guess is poor or in the case of highly nonlinear measurement functions. The approach exploits the spatial and temporal locality properties of factor graphs present in the SLAM problem. This methodology is the basis of the multi-robot SLAM approach that will be presented in Chapter 7.
28 2. Basic Fundamentals of SLAM The overall procedure is illustrated in Fig. 2.9 applied on a simple landmark-based SLAM problem. The original graph is partitioned in local sub-graphs. These local maps are related to each other through shared variables belonging to more than one local map, which are vertex separators. These smaller local maps are easier to solve even under hard conditions and a reasonable solution can be obtained using a direct method. To determine a unique solution we need to “fix” a origin (gauge) for each local map. After solving the local maps we obtain a Gaussian approximation of each variable within the local map, relative to its origin. Then, we seek for a global alignment of the local maps that satisfies all the equality constraints induced by the shared variables. In order to preserve the structures of the local maps computed before, we replace each sub-graph with a simpler one which approximates the original local solution. This reduced problem is constructed by considering the origin and the shared variables of each local map and computing a set of condensed factors relating the origin to each shared variable, therefore obtaining a star-like topology of the original subproblem. These condensed factors summarize the relationship between a variable and the origin of the local map by considering all the measurements when optimizing the local map. The procedure to determine the condensed factors is outlined below. Given the set of separators {xi}and the origin xgwe can define a family of measurement functions htypeOf(xi)(xg,xi)def. =h(xg,xi)(2.90) that depend on the type of the separators which can be either landmark poses or robot poses. The origin of the local maps is always selected to be a robot pose. Once we know the type of a factor, we need to compute the mean ziand information matrix Ω Ω Ωi of the corresponding measurement. To this end, we recall (2.86) that relates measurement function and error vector through the ⊟operator: ei(xg,xi) = h(xg,xi)⊟zi. The error function depends on the (known) measurement function hi(·)and on the unknown measurement zi. Since the error of the local solution is small, the measurement vector at the equilibrium can be approximated as: zi=h(ˇ xg,ˇ xi),(2.91) where ˇ xgand ˇ xiare the actual values of the origin and of a separator after solving the sub-problem. To qualify the factors we still have to compute the information matrix Ω Ω Ωi. Since the origin node is fixed, its covariance matrix is zero. Thus, only the marginal covariance of xicontributes in determining Ω Ω Ωi. Since we are working with a manifold formulation, we can extract the covariance matrices of the increments ∆xifrom the corresponding blocks of the Hessian ˇ H(Eq. 2.88) of the system and remap them through the error function: ei(xg,xi⊞∆xi) = h(xg,xi⊞∆xi)⊟zi.(2.92)
2.5. Maximum Likelihood Approaches 29 We then remap the marginal covariance of ∆xiby using the unscented transform [41]. We extract a set of sigma points { σ k ∆xi}from the marginal covariance Σ∆xiof the increments ∆xiand we remap them through (2.92) as follows: σ k=ei(x∗ g,x∗ i⊞ σ k ∆xi).(2.93) We then compute Ω Ω Ωibyinvertingthecovariancematrix reconstructed from the projected sigma points. Once we “condensed” the local maps, we assemble an approximation of the original global factor graph by combining all the newly computed factor graphs into a new sparser factor graph, whose solution is a global configuration of the origins and of the shared variables. Then, we can determine a good initial guess by arranging the local maps computed at the beginning of the procedure accordingly. At this point, an optimization which considers the original factors can further refine the approximated solution.
30 2. Basic Fundamentals of SLAM (a) (b) (c) (d) (e) (f) Figure 2.9: The overview of the optimization procedure on a simple landmark-based SLAM problem. Here we illustrate the factor graph by highlighting only the variables. The factors denote binary measurements and are encoded in theedges. (a),(b) Theproblem is partitioned into sub-graphs. The shared variables are in red, and dotted lines show the corresponding variables in different partitions. (c) We solve these problems independently with respect to their origins (dark blue), and we determine the marginal covariances of the shared variables. (d) We compute condensed factors connecting each shared variable to its origin. (e) We solve the complete problem on the condensed factors to determine the layout of the local maps (f).
Part I SLAM for Robot Formations using Prior Information 31
Chapter 3 Robot Formations The first step towards achieving an autonomous multi-robot system is the design of the motion control strategy to enable the robots to navigate in the environment and reach their goal. In this chapter, we first address the motion control of each vehicle by means of a motion generator which provides the input velocities to be applied to the robot. Then, we address the cooperative navigation for robot formations based on a springdamper analogy which allows the formation to comply with the structure of the environment. We point out the difficulties that appear in formation control in the presence of noise which motivates the use of the probabilistic localization and mapping techniques presented along this thesis. 3.1 Motivation The main distinguishing feature between a robot formation and a general multi-robot system is the navigation of the group maintaining a specific shape. As a consequence, formations require stronger coordination and communication among the robots. There are a variety of applications which could benefit from the use of robot formations, i.e., situations in which the robots have to meet certain requirements regarding their relative distances and angles. Fig. 3.1 shows two applications of robot formations in emergency situations developed at the University of Zaragoza [74, 84]. For example, in case of an accident inside a tunnel (Fig. 3.1a), we can deploy a team of robots to inspect the area and identify potential hazards to humans. Under this circumstance, where there is no communications infrastructure, the distance the robots have to maintain is oriented to guarantee the connectivity with a base station, outside the tunnel. Then, the chain formation is deployed in such a way that each robot acts as a relay for the next one till the dangerous area is reached. Another possible application is the guidance of people towards the exit during a building evacuation (Fig. 3.1b). In this situation, the robots adapt their motion and shape to the people behaviour which can move inside a 33
34 3. Robot Formations safe area delimited by the formation. (a) (b) Figure 3.1: Example of applications of robot formations developed at University of Zaragoza. (a) Formation deployment inside a road tunnel. (b) A triangle-shaped robot formation guides a group of people towards the exit during a building evacuation. Along the years, many approaches have been proposed to reach the formation control where the most commonly used are those based on virtual structures and leaderfollowing behaviors. In [55] the concept of virtual structure is introduced to maintain the geometric relationships among the robots. However, in this model, the formation moves quite rigidly along the individualtrajectories computed for each robot and is not easily reconfigurable in case of obstacle presence. In leader-followingapproaches, the robot designated as the leader guides the formation to the goal while the other robots, i.e., the followers, try to keep a desired distance and angle with respect to the leader. This strategy simplifies the path planning problem which is addressed by the leader and the followers maintain the formation whenever possible, otherwise it is adapted to the structure of the scenario. In the worst case, the formation becomes a chain and the path computed by the leader is also feasible for the followers. Common implementations of leader-following approaches are vision-based leader tracking [22], [87] and spring-based systems [34],[56]. In this thesis we make use of our previous work [85] to control the robot formation based on a spring-damper system. It provides a flexible, smooth and environment compliant navigation by dynamically adapting the velocities of the robots and the formation’s shape to the environment restrictions. In the rest of this chapter we describe this formation control strategy for the sake of completeness. We begin in section 3.2 by describing how to control each single robot and continue in section 3.3 by explaning the cooperativecontrol of the formation. Additionally, we perform along this chapter a brief analysis of the formation behaviour under the influence of noise, (e.g., comming from
3.4. Conclusions 41 −5 0 5 10 15 −5 0 5 10 15 x [m] y [m] (a) −5 0 5 10 15 −5 0 5 10 15 x [m] y [m] (b) 0 20 40 60 80 100 120 0 0.5 1v (m/s) robot1 t [s] 0 20 40 60 80 100 120 0 0.5 1 robot2 t [s] 0 20 40 60 80 100 120 0 0.5 1 robot3 t [s] 0 20 40 60 80 100 120 −1 0 1w (rad/s) t [s] 0 20 40 60 80 100 120 −1 0 1 t [s] 0 20 40 60 80 100 120 −1 0 1 t [s] (c) Figure 3.5: Motion control of a 3-robot formation. (a) Trajectory followed in a noise-free situation. Notice how torsional springs oblige the robot followers to maintain their relative orientation with respect to the leader at any time. (b) Estimated (red) and ground-truth trajectory in the presence of noise. (c) Comparison between the commanded velocities in the “ideal” errorfree (grey) and noisy scenario (red).
Chapter 4 Localization of Robot Formations in SLAM In the previous chapter, we have seen that, in order to achieve the navigation in formation and to reach their goal, robots need to be accurately localized within the environment. This chapter presents an EKF-based approach which makes use of a previously built feature-based stochastic map to solve the robot formation pose tracking problem. We show how a direct implementation of the EKF algorithm leads to inconsistency in the estimated localization. We justify the origin of the anomalous behaviour of the filter in the time-correlated nature of the measurement noise sequence. A novel solution based on the measurement differencing technique is proposed to drive the solution of the EKF towards consistency. 4.1 Introduction Traditionally, SLAM research has focussed on how to efficiently build accurate and reliable maps and, to this end, a variety of representations have been proposed such as feature, grid and graph-based maps. One of the many potential applications of these maps is their posterior use to localize a robot while it navigates through the environment. Recalling Chapter 2, the robot localization problem consists in estimatingthe robot’s pose xRkat the current time step kwith respect to the map’s reference frame using the information obtained from its on-board sensors. It is stated from a probabilistic point of view as the problem of estimating the posterior distribution p(xRk|z1:k,u1:k,m)where z1:kare the set of partial measurements of the environment provided by its perception sensors, u1:k, the history of control inputs and m, the prior map. Given a map of the environment, we can distinguish two main localization problems depending on the robot’s prior knowledge about its initial position: the global localization tries to determine the robot’s position within the given map without any 43
44 4. Localization of Robot Formations in SLAM information about its initial pose and the pose tracking which, once the initial pose is known, aims to maintain the robot’s pose estimate along time. This problem has been principally addressed by Bayesian filters, due to their efficiency and real-time performance. Then, we can follow a similar derivation of the localization problem as we explained for the filtering-based SLAM problem in Chapter 2, leading to, p(xRk|z1:k,u1:k,m) = η p(zk|xRk,m)Zp(xRk|xRk−1,uk)p(xRk−1|z1:k−1,u1:k−1,m)dxRk−1 (4.1) which is solved in two phases, prediction and update steps. Different filtering methods have been proposed over the years, some of them developed using a specific map representation. For example, grid-based continous localization was addressed in [78] by using local to global map registration(i.e., map matching). In [12, 28], the authors presented a grid-based Markov localization to solve both global and pose tracking problems. The robustness and efficiency of this approach was later increased by using particle filters [82] or by combining grid-based and topological maps [80]. From a feature-based perspective, the use of previously built maps to globally localize individual vehicles has been reported in [62] and [69]. Usually, robot localization in feature or landmark-based maps is implemented by using Kalman filters. However, although these maps havebeen adquired by probabilistictechniques, and therefore, there is a map uncertainty, these approaches normally consider the position of features and landmarks fixed and known. One straightforward extension of any of the aforementioned techniques to multirobot systems would be to address the team localization problem individually for each robot and to replicate in each vehicle the current implementation of the localization system. However, this methodology is against the team cooperation and coordination philosophy to obtain mutual benefit between robots. For example, in certain situations a robot could lose its localization capability (e.g., due to the presence of obstacles occluding its vision of the environment). If another teammate is able to detect it and communicate their relative position, the first robot can use this information to improve its localization. Besides, if robots share and join all observations they can obtain a broader and extended view of the environment which can benefit the whole group. First works in multi-robot cooperative localization like [48] and [73] divided the team of robots into two groups: while one group moved, the other group remained stationary and acted as landmark. This strategy is useful in the absence of landmarks or in uncharted environments but the robots must maintain visual contact which constraints the robot displacements and requires a robot identification system. Inter-robot position measurements are also used in [77] within an EKF framework to improve the estimates of the group and as well as in [75] where the Kalman Filter equations are decomposed
4.1. Introduction 45 and distributed among the robots. This latter work also pointed out the benefits of maintaining the cross-correlations between the estimates of the robots. When two robots meet and share their inter-robot measurements to update their positions, the estimates of rest of the group are also improveddue to these inter-dependencies. However, none of these works make a explicit use of an environmental model to improverobot localization which is only updated when they detect each other. Additionally, in [27] inter-robot detections are combined with environment measurements using probabilistic techniques. Furthermore, and from a state estimation perspective, consistency issues are of paramount importance to assure convergence of the solution provided by the estimation algorithm. Intuitively, inconsistency appears when the uncertainty about the estimated robot position does not correctly represent the true error. In such case, the robot is unaware of how good its localization is and can not trust in it for other navigation or planning purposes. This issue has been discussed in the EKF framework [16, 5, 39] and several factors affecting the filter consistency have been identified such as linearization errors, measurement noise, number of measurements in the filter or re-observation times of a feature, among others. All these factors also affect multi-robot systems, however, consistency issues have not received as much attention in this context. In [38] the consistency of multi-robot cooperative localization was investigated from an observability perspective. Also, the effect of using repeated measurements on the consistency of the algorithm has been reported in [60] by taking into account the correlations between consecutive relative-state measurements, and in [3] by keeping track of the origins of measurements and preventing them from being used more than once. In the rest of this chapter, we turn our attention towards how to use a previously built feature-based stochastic map to localize a team of autonomous vehicles while they navigate coordinately in formation using the motion control approach described in Chapter 3. Instead of using direct robot-to-robot measurements to strengthen relations among robot locations, their estimates get correlated by sensing the same portion of the environment. The contributions are two-fold. First, the work emphasizes the inherent difficulties of using stochastic maps to localize a robot formation due to the existence of timecorrelated measurement sequences. Whenever these statistical dependencies are not properly considered we show that the algorithms lead to inconsistent estimation of the robot formation localization. Second, we originally formulate the problem of robot formation localization in SLAM within the EKF framework by using the measurement differencing technique [11, 6, 71] which allows the elimination of colored measurement sequences within the update step of the filtering algorithm.
46 4. Localization of Robot Formations in SLAM 4.2 Probabilistic Representation of the Robot Formation Let a robot formation be composed of r+1 heterogeneous vehicles R0,R1,...,Rr, where R0is the robot leader and Rj,j=1,...,rare the robot followers. A certain geometric shape, e.g. equilateral triangle, regular pentagon, etc, is imposed to the team depending on the number of vehicles and the task commanded to the formation. From a probabilistic view-point, the location of the robot formation can be represented by a discrete-time state vector xRformed by the location of the robot leader R0with respect to (wrt) a base reference frame Band the location of each robot follower Rjwrt the robot leader R0, and by its associated covariance matrix PRwhich stores the statistical dependencies between those estimated locations. Following the Gaussinity assumption, xR∼ N(ˆ xR,PR)with, ˆ xR= ˆ xB R0 ˆ xR0 R1 . . . ˆ xR0 Rr ;PR= PR0··· PR0Rr ... PRrR0··· PRr (4.2) This leader-centric representation reduces the volume of uncertainty, i.e., the determinant of the covariance matrix PR, in comparison with an absolute representation wrt the base frame Bof each robot location vector and, therefore, linearization errors due to large uncertainty values are minimized [15]. 4.3 EKF-based Localization of the Robot Formation From a Bayesian view-point the pose of the robot formation is given by the recursively estimated conditional probability density function p(xRk|z1:k,u1:k,yF)where z1:krepresent the set of sensor readings gathered by the sensors mounted on the robots from environmental features from time step 1 up to time step k,u1:kthe sequence of input controls and yF∼ N (ˆ yF,PF)represents the stochastic map of the previously mapped navigation area consisting of a set of features F={F1,F2,...,Fn}. In the sequel, the EKF algorithm [6] is used as the core estimation technique. 4.3.1 EKF Prediction Step The method described in section 3.2 provides a displacement estimate xRi,k−1 Ri,kfor each robot Rifrom time step k−1 to kbased on the input velocities to the motion controller.
4.3. EKF-based Localization of the Robot Formation 47 Then, we represent the formation displacement by the random variable xRk−1 Rk: xRk−1 Rk= (xR0,k−1 R0,kxR1,k−1 R1,k... xRr,k−1 Rr,k)T(4.3) with covariance matrix, PRk−1 Rk= PR0,k−1 R0,k0... 0 0 PR1,k−1 R1,k... 0 0... ...0 0... ... PRr,k−1 Rr,k (4.4) The EKF-prediction step propagates the state of the robot formation from time step k−1 to time step kby using the estimated displacements through the following nonlinear function, xRk=f(xRk−1,xRk−1 Rk)(4.5) The use of the EKF requires a linearization of the nonlinear model around the best current estimates (ˆ xRk−1,ˆ xRk−1 Rk)using a Taylor series expansion, xRk=f(xRk−1,xRk−1 Rk)(4.6) ≃f(ˆ xRk−1,ˆ xRk−1 Rk)+Fk−1(xRk−1−ˆ xRk−1)+Gk−1(xRk−1 Rk−ˆ xRk−1 Rk)(4.7) where Fk−1and Gk−1are the jacobians of fwith respect xRk−1and xRk−1 Rkrespectively, Fk−1= ∂ f ∂ xRk−1(ˆ xRk−1,ˆ xRk−1 Rk) ;Gk−1= ∂ f ∂ xRk−1 Rk(ˆ xRk−1,ˆ xRk−1 Rk) (4.8) The linearized equation 4.7 can also be expressed in terms of the errors denoted by ˜ x=x−ˆ xas ˜ xRk≃Fk−1˜ xRk−1+vk−1;vk−1∼ N(0,Gk−1PRk−1 RkGT k−1)(4.9) Then, the estimates for the state vector ˆ xRk|k−1and its associated covariance matrix PRk|k−1are given by, ˆ xRk|k−1=f(ˆ xRk−1,ˆ xRk−1 Rk)(4.10) PRk|k−1=Fk−1PRk−1FT k−1+Gk−1PRk−1 RkGT k−1(4.11) Due to our leader-centric representation, function 4.5 differs depending on whether the robot is the leader or a robot follower. A more detailed description of this function and the derivation of its jacobians can be followed in appendix A.
48 4. Localization of Robot Formations in SLAM 4.3.2 EKF Update Step At time step kobservations zkare related with map features through the following nonlinear measurement model, zk=hk(xRk,yFk)+wk(4.12) being wka zero-mean Gaussian noise with covariance matrix Rk. Due to the inherent nonlinearities, a linearized equation around the current predicted position ˆ xRk|k−1is used within the EKF-update step, zk=hk(xRk,yFk)+wk(4.13) ≃hk(ˆ xRk|k−1,ˆ yFk)+Hk(xRk−ˆ xRk|k−1)+GFk(yFk−ˆ yFk)+wk(4.14) where Hkand GFkare the jacobian matrices (see appendix A) of the linearized measurement equations with respect to the state vector xRkand with respect to the subset of features yFkobserved at time kfrom the a priori stochastic map respectively, Hk= ∂ hk ∂ xRk(ˆ xRk|k−1,ˆ yFk) ;GFk= ∂ hk ∂ yFk(ˆ xRk|k−1,ˆ yFk) (4.15) The classical EKF update equations provide estimates for the state vector ˆ xRk|kand its associated covariance matrix PRk|k: ˆ xRk|k=ˆ xRk|k−1+Kk(zk−hk(ˆ xRk|k−1,ˆ yFk)) PRk|k= (I−KkHk)PRk|k−1(4.16) using the filter gain obtained as, Kk=PRk|k−1HT k(HkPRk|k−1HT k+GFkPFkGT Fk+Rk)−1(4.17) 4.3.3 Simulation Results: Inconsistency A set of simulation experiments were conducted to analyze the consistency of a direct implementation of the EKF algorithm based on the aforementioned problem formulation. The single robot localization problem formulation can be seen as the particular case of considering only the robot leader in the robot formation formulation. Then, a single robot and two formations composed of 3 and 5 robots were commanded to reach 4 consecutive goals arranged in a loop-trajectory within a previously mapped (2D pointbased stochastic map) navigation area, depicted in Fig. 4.1. Each vehicle was equipped with a range-bearing sensor capable of observing the available environmental features.
4.3. EKF-based Localization of the Robot Formation 49 For these simulation experiments, we assume known data association. As a measure of consistency [6] a statistical test based on the Normalized Estimation Error Squared (NEES) was used, NEES = (xRk−ˆ xRk)TP−1 Rk(xRk−ˆ xRk)≤ χ 2 r,1− α (4.18) where χ 2 r,1− α is a threshold obtained from the χ 2distributionwith r=dim(xRk)degrees of freedom, and α the desired significance level (usually 0.05). 0 5 10 15 20 25 30 0 5 10 15 20 25 30 (a) 15.5 16 16.5 17 17.5 18 21.5 22 22.5 23 23.5 24 (b) Figure 4.1: Map of the environment used in the simulation experiments to evaluate the robot formation localization performance. (a) 2D Point-based stochastic map (blue) and trajectory followed by the 3-robot formation. (b) Zoomed part of the formation trajectory where the robots’ ground-truth location is depicted in black and its estimate in red. The small robot covariance ellipses demonstrate the overconfidence in the error estimation using the classical EKF implementation. Figure 4.2 plots the consistency ratio (NEES/ χ 2 r,1− α ) for the sequence of time steps of the experiments illustrating a problem of inconsistency in the estimated solution of this direct implementation of the EKF algorithm. It can also be observed how this inconsistency issue gets worse with the number of robots. This fact is not unexpected since the factors which may influence in the filter consistency such as number of observations or feature re-observations increase with the number of robots in the formation. Additionally, Fig. 4.3 shows the errors and covariance bounds obtained in one of the simulations with the 3-robot formation. It can be observed how the covariances do not correctly match the true estimation errors. In the following section we take a closer view of the results and a modified EKF formulation is proposed to drive the robot formation estimated localization towards consistency.
50 4. Localization of Robot Formations in SLAM 0 200 400 600 800 1000 1200 0 1 2 3 4 5 6 Time Step [s] Consistency Ratio (NEES / Chi2) (NEES 1 robot) (a) 0 500 1000 1500 2000 2500 0 1 2 3 4 5 6 7 Time Step [s] Consistency Ratio (NEES / Chi2) (NEES 3 robots) (b) 0 1000 2000 3000 4000 0 1 2 3 4 5 6 7 8 Time Step [s] Consistency Ratio (NEES / Chi2) (NEES 5 robots) (c) Figure 4.2: Inconsistency of the estimated robot formation localization within a stochastic map with a direct implementation of the EKF algorithm. (a) shows the consistency ratio NEES/ χ 2 r,1− α for the single-robot implementation whereas (b) and (c) show the results for a 3 and 5-robot formation respectively. The estimation is considered consistent when the consistency ratio is less than one. For each experiment, the average of 50 Monte Carlo runs is depicted. 4.4 Measurement-Differencing EKF-based Localization of the Formation A close view of the robot formation localization problem within an a priori stochastic map, supported by the simulation results obtained in the previous section, suggests a re-formulation of the EKF algorithm taking into account the statistical dependencies between the map features yFk−1and yFk(both subsets of yF) used within the EKF update step in two consecutive time steps k−1 and k. Given the set of matched map features of two consecutive time instants yFk−1and yFk, their statistical dependencies are expressed by a linear transformation, yFk=FCkyFk−1+nk(4.19) where 1 FCk=PFkFk−1P−1 Fk−1(4.20) and nkis a white noise measurement sequence with covariance matrix Pnk, Pnk=PFk−PFkFk−1P−1 Fk−1PFk−1Fk(4.21) 1Given two jointly Gaussian random variables xand y: x y∼ N 0 0;PxPxy Pyx Py a linear relation of the form y=Ax+bcan be formulated, with A=PxyP−1 xand Pb=cov(b) = Py− PyxP−1 xPxy.
4.5. Experimental Results 57 mation at four different time steps along the planned trajectory towards the goal destination. Even though ground-truth was not available during the execution of the real experiments, the figure highlights the compatibility between the previously available stochastic map and the segmented sensor readings plotted wrt the estimated vehicles localization. (a) (b) (c) (d) Figure 4.10: Four snapshots of the estimated localization of the members of the robot formation within the stochastic map (plotted in black). The segmented sensor observations are plotted in green, blue and magenta and red lines represent the segments uncertainties. Robot uncertainties’ ellipses are magnified by x5.
58 4. Localization of Robot Formations in SLAM 4.6 Conclusions In this chapter we have addressed the problem of utilization of feature-based stochastic maps for robot formation localization. From the Bayesian perspective, the classical EKF algorithm was initially formulated by considering the motion models of each vehicle within the formation and the environmental observations gathered by the exteroceptive sensors mounted on the vehicles. We have reported the inconsistency of the direct implementation of the EKF prediction and update equations for the problem at hand, producing unreliable position estimates. Having a closer view to algorithm hypotheses we have suggested the time-correlated nature of the sequence of measurements considered in the previous, direct implementation. We have adapted a solution based on the measurement differencing technique, already reported in the filtering literature, to the robot formation localization problem in SLAM and its implementation shows how the modified EKF estimation is driven towards consistency.
Chapter 5 Robot Formations in Partially a priori Known Environments In this chapter we present a complete working system for robot formations where, in addition to the navigation and localization techniques presented in previous chapters, cooperative perception and path planning tasks under environment uncertainty are also considered. Feature-based and grid-based mapping strategies are combined in a probabilistic way to compute an obstacle-free and of bounded-risk plan towards the goal. The formation benefits from the cooperative perception to obtain a joint vision of the environment, used for online replanning purposes. The system is tested and validated by means of a set of simulations as well as in real experiments. 5.1 Introduction In Chapter 3 we presented an approach to control the formation shape while navigating towards a designated goal. Then, in the previous chapter we proposed a technique which provides a reliable localization of the robots in an environment known in advance. Following with the context presented in previous chapters and to achieve greater autonomy, we must provide the system with a path planner to compute the best path towards the final goal. However, in our case, the path planning strategy is constrained by the presence of uncertainty in the prior map availableto the system. Thisis a problem of great interest since, when planning through risky areas, the formation may reach a dead-end, therefore requiring a global replanning which would increase the final cost of the mission. The problem of planning under uncertainty is treated in different ways in the literature depending on the source of the error. Some works take into account the uncertainty of the environment like [58], who searches the trajectory that minimizes the expected cost of collision by using probabilistic roadmaps under the assumption of independence 59
60 5. Robot Formations in Partially a priori Known Environments in the probability distribution of the obstacles. In [86], motion and sensing uncertainties are considered to obtain prior probability distributions of the states and the control inputs of the robot for a previously computed path. Other kind of works focus on the uncertainty of the path, like [18] who seeks the path which minimizes the uncertainty at the goal, leading to paths that are no optimal in terms of Euclidean distance to the goal. The work presented in this chapter considers environment uncertainty for global path planning, whereas localization and sensor uncertainty is taken into account during the online execution of the global path. Most of the successful path planning techniques [35, 44] use a grid representation of the environment whereas the map is available to the formation as a segment-based stochastic map. In order to use grid-based path planning techniques, we project the initial feature-based map into a grid where each cell represents the risk level for traversing a certain area of the environment. Then, the overall goal is to guarantee the mission success by planning through areas with low probability of obstacle presence or, in other words, with less risk of traversability. Unlike the works which minimize the overall accumulated risk of collision, the path planning technique presented in this chapter aims at computing the best path where the probability of failure at each cell of the path is lower than a threshold. This concept is also used in [8], although we propose a rigorous modeling of the obstacle location uncertainty, used as a measure of collision risk in a cell. Once a global path is obtained, we can extract a set of waypoints or sub-goals the leader (and consequently the rest of robots) has to reach sequentially. However, the final execution of the planned path may be affected by the presence of unexpected obstacles which either were not considered in the prior map or were known with uncertainty. At the level of each robot and in the event of finally finding an obstacle, the reactive obstacle avoidance system would prevent from the collision. However, at the level of the formation, is necessary the maintainance of a local map for online path planning between sub-goals. This local planning task can benefit from the joint and wider vision of the environment provided by the robot formation. When building this joint local map from the observations shared by the formation, sensor and robot localization uncertainties have to be taken into account. In order to obtain a set of integrated loweruncertainty observations we propose a modification of the localization algorithm presented in previous chapter. 5.2 Path planning under Uncertainty Path planning for robot formations can be stated globally for all the robots of the team. But that approach has a high computational burden. In this work, we propose a flexible alternative approach, computationally lighter. The path planning is achieved by the leader of the formation, and the followers maintain the formation adapting to the
5.2. Path planning under Uncertainty 61 environment by means of the spring-damper analogy (Chapter 3). The formation is maintained while possible, otherwise it adapts its shape to the scenario structure. In the worst case, the formation will become a chain, so the path planned by the leader will also feasible for the followers. 5.2.1 Definition of Risk Maps Let a stochastic feature-based representation (e.g. built by a SLAM algorithm), maybe partial and incomplete, either of the navigation area or of the local cooperative perception of the members of the robot formation, be represented by a set of geometric features yF={yF1,yF2,...,yFn}known wrt a certain reference frame (not superscripted for simplicity). A risk map Γ={ γ ij;i=1,...,Ni;j=1,...,Nj}is defined as the projection of the stochastic feature-based representation into an Ni×Njgrid-based representation (Fig. 5.1), with common base reference frame, where γ ij is the risk value associated to the cell (i,j)and intuitively defined as, γ ij ,Prob N [ n=1 yFnis projected on cell (i,j)!(5.1) where high risk values suggest the likely presence of either map features, clutter or dynamic obstacles and therefore the existence of non-traversable areas for the robot formation. Real time constraints refrain from the exact computation of the risk values given by Eq. 5.1 even for medium-scale environments. Thus, an approximate sample-based strategy is adopted in subsequent paragraphs where the selected number of samples should trade-off real-time constraints and the precision of the sample distribution in approximating the real distribution of the stochastic feature-based representation for a user-defined cell size for the grid-based representation. In our proposal, we use segments as features for the stochastic map and thus efficient algorithms such as [9] reduce the computational requirements of the proposed projection. 5.2.2 Global Paths of Bounded Cell Risk Let xR0,t0and xR0,tfbe the probabilistic representation of the current location of the robot leader at time t0and its desired goal location at time tfrespectively. Also, let yF∼ N (ˆ yF,PF)be the stochastic feature-based representation of the navigation area, where ˆ yFis a vector containing the estimated location of the map features F={F1,F2,...,Fn}, and PFits associated covariance matrix. A rough estimate of a safe (or traversable) path π (a set of reachable waypoints) for the robot leader connecting locations xR0,t0and xR0,tfis computed by an A∗-type method
62 5. Robot Formations in Partially a priori Known Environments Figure 5.1: Sample risk map obtained as the projection of a stochastic segment-based representation into a grid-based representation. The marginal probability density functions of two features (top and right) are shown together with the associated gray-scaled risk values. as detailed in Alg. 1. From the feature-based representation of the environment yF, a risk map Γis computed (function riskMap) as described in section 5.2.1. Then, the algorithm iteratively increases the risk level γ from null risk ( γ =0) up to maximum risk ( γ =1) searching for safe paths in the binary risk map Γth , thresholded at the risk level γ (function computePath). The computation of a global path for the robot leader connecting two locations in the navigation area could be performed off-line in critical situations (e.g. initialization of the robot formation at unknown locations, loss of localization information due to kidnapping, etc.), once recovered from the loss of an estimated location for the robot formation1. Also, for on-line computation, the risk level γ used for the projection of the feature-based stochastic map into the grid-based representation could be user defined. Under both approaches, the computed safe path π returned by Alg. 1 constitutes an open-loop (using control theory terminology) solution to the path planning with uncertainty problem requiring frequent replanning in real navigation tasks due to unmodelled effects in the a priori stochastic map or the presence of dynamic objects. 1The absence of previous information suggests the formulation of this subproblem from an Extended Information Filter (EIF) perspective. In our work, we generalize the previously reported works [62, 69] to the team {R0,R1,...,Rr}of r+1 vehicles
5.2. Path planning under Uncertainty 63 Algorithm 1 Global path planning in risk maps Require: xR0,t0,xR0,tf,yF Ensure: π is a safe path from xR0,t0to xR0,tfof bounded risk level γ 1: Γ←riskmap(yF) 2: γ ←0 {Initial risk level} 3: while γ ≤1do 4: {Decide traversability depending on the risk level} 5: Γth ←threshold(Γ, γ ) 6: {Find the shortest path at this risk level} 7: π ←computePath(xR0,t0,xR0,tf,Γth) 8: if π 6=/0 then 9: {A plan of bounded risk γ is found} 10: return h π , γ i 11: else 12: {Goal is not reachable. Increase the risk.} 13: γ ← γ +∆ γ 14: end if 15: end while 16: {The goal is not reachable at all.} 17: {Return an empty path and the maximum risk} 18: return h/0,1i
64 5. Robot Formations in Partially a priori Known Environments 5.3 Cooperative On-line Replanning In wide-opened and uncluttered environments once a global path for the robot leader is obtained, the robot followers would execute their paths, from origin t0to destination tf, thanks to the links derived from the virtual spring-damper analogy of the robot formation and its commanded geometrical shape. However, in real settings frequent real-time replanning would be mandatory to avoid unmodeled or dynamic objects in the environment while flexibly and adaptively maintaining the formation structure. Therefore, local safe paths for the robot formation should be computed based on their common understanding of the environment and a sufficiently precise localization of the robots. 5.3.1 Pose Tracking with Observation Improvement Real time localization of the robot formation within the a priori stochastic map while it executes the computed global path towards the goal can be achieved through the filterbased pose tracking approach proposed in Chapter 4. Recalling from that chapter, after each prediction step (section 4.3.1), robots gather a set of observations zkwith measurement noise wk∼ N (0,Rk). Data association provides a set of pairings (yFk,zk)of map features and sensor observations related by the linearized measurement equation 4.14. As the robots in the formation usually navigate in the same area, a number of redundant observations and with different levels of uncertainty could be found. This issue is illustrated in Fig. 5.2 for a 2D point-based feature map. In order to obtain a unified and lower uncertainty set of observations z′ k, in this section we propose a modified update phase of the MD-EKF algorithm presented in Chapter 4. This observation improvement results from the inclusion of the observations in the state vector and their subsequent association with the features of the prior map within the measurement update of the algorithm. Then, at time step k, the predicted state of the robot formation xRk|k−1is augmented with the set of sensor observations zkgathered from all robots, xa k=xRk z′ k;ˆ xa k|k−1=ˆ xRk|k−1 zk;Pa k|k−1=PRk|k−10 0 Rk(5.2) We formulate the measurement equation implicitly so that the new observations satisfy the following constraint: fk(xa k,yFk) = hk(xRk,yFk)−z′ k=0(5.3) As usual, we approximate the measurement equation by its first order Taylor expansion: hk(ˆ xRk|k−1,ˆ yFk)−zk+HRk(xRk−ˆ xRk|k−1)+GFk(yFk−ˆ yFk)+Hzk(z′ k−zk) = 0 (5.4)
5.3. Cooperative On-line Replanning 65 0 5 10 15 20 25 30 0 5 10 15 20 25 30 X [m] Y [m] (a) 8.5 9 9.5 10 10.5 3.5 4 4.5 5 5.5 X [m] Y [m] (b) Figure 5.2: Redundant observations obtained by a robot formation. The zoomed area shows map features (blue) and robot observations (green). Observations from features not contained in the a priori map are also considered (left-down corner). Features are observed either by one, two or the three robots. where HRk= ∂ fk ∂ xRk = ∂ hk ∂ xRk(ˆ xRk|k−1,ˆ yFk) (5.5) GFk= ∂ fk ∂ yFk = ∂ hk ∂ yFk(ˆ xRk|k−1,ˆ yFk) (5.6) Hzk= ∂ fk ∂ z′ k =−I(5.7) Note that settingz′ k=zk−wkandHzk=−Iequation 5.4derivesintheexplicitlinearized equation 4.14. Following a similar derivation as in Chapter 4 we obtain the pseudo-measurement rk,zk−Λ Λ Λkzk−1considering the augmented state vector, rk≃h∗ k+Ha k(xa k−ˆ xa k|k−1)+wrk(5.8) with h∗ k=hk(ˆ xRk|k−1,ˆ yFk)−Λ Λ Λkhk−1(ˆ xRk−1|k−1,ˆ yFk−1)(5.9) Ha k= (HRk−Λ Λ ΛkHRk−1F−1 k−1Hzk)(5.10)
66 5. Robot Formations in Partially a priori Known Environments and the measurement noise wrkwith covariance matrix Pwrkis given by, wrk=Λ Λ ΛkHRk−1F−1 k−1vk−1−Λ Λ Λkwk−1+GFknk(5.11) Finally, the augmented state vector is updated by ˆ xa k|k=ˆ xa k|k−1+Kk(rk−h∗ k)(5.12) Pa k|k=Pa k|k−1−Kk(Ha kPa k|k−1HaT k+Pwrk+Ha kCk+CT kHaT k)KT k(5.13) with the filter gain given by Kk= (Pa k|k−1HaT k+Ck)(Ha kPa k|k−1HaT k+Pwrk+Ha kCk+CT kHaT)−1(5.14) and the cross-correlation term between wrkand vk−1, namely, Ck=E[vk−1wT rk] = Qk−1(Λ Λ ΛkHRk−1F−1 k−1)T(5.15) which is augmented with zeros to fit the dimensions of Ha k. After this filter stage, the robot localization is updated as in the original formulation of the measurement differencing based EKF presented in Chapter 4 whereas, at the same time, the uncertainty of the observations included in the state vector and matched against the map features is decreased. Additionally, the result obtained for different observations of the same feature is identical as shown in Fig. 5.3. This eases the duplicate detection and fusion process explained in the next section. 5.3.2 Cooperative Local Planning The performance (e.g., precision, reliability and robustness) of the robot formation to complete the commanded task profits from the close cooperation among the different vehicles of the team emphasizing the importance of a centralized approach (at least at selected synchronization time steps) to consistently and coherently joint the views of the different vehicles. Of paramount importance is the availability of this jointly coherent understanding of the navigation environment, with wider and integrated fields of views, to increase the efficiency and optimality of the on-line replanning process. For example, as illustrated in the experimental section, the best available path towards the next waypoint may be hidden to the robot leader (due to its limited sensorial field of view) but visible to one of the followers, thus profiting the performance of robot formation replanning. The pose tracking technique of the previous section estimates a set of improved observations z′ k. Nevertheless, the augmented state vector xa kstill contains a number of redundant observations of the environment. Therefore, a duplicate detection and observation fusion procedure is performed in the leader reference frame. The geometrical
5.5. Experimental Results 73 Figure 5.7: Five-robot formation adaptability to a simulated indoor environments. From the individual traces of the different vehicles we observed that they compliantly maintained the user-defined geometric structure (pentagon-shape in this case) whilst navigating through narrow and wide open spaces towards the commanded goal destination. 5.5.4 Experiments in Real Scenarios We have experimented with a three-robot Pioneer 3-AT formation equipped with onwheel encoders and SICK LMS-200 laser rangefinders with a 180-deg field of view. Communication between the vehicles is achieved by a dedicated channel using a real time wireless multi-hop protocol [79], which includes communication queues to avoid synchronization failures. The hybrid centralized-distributed implementationof the complete system reported computation times of the order of the laser scan cycle (aprox. 4.5 Hz) where a maximum of 100 samples have been used to compute the risk maps during cooperative replanning. The similarity between the real and the sampled distributions has been measured in terms of both the Kullback-Leibler Divergence (KLD) [19] and the Normalized Estimation Error Squared (NEES) [6]: In the case of 100 samples, the KLD equal 34,7 nats that represents a 26% improvement over 10 samples and it is only improved by 3% in the case of 1000 samples. Also, the consistency of the approximation ( χ 2-test based onNEES) amounts for 98,4% for 100 samples, with an improvement of 33,6% with respect to 10 samples, and only improved by the use of 1000 samples in a roughly 1,5%. Figure 5.9 illustrates the stochastic feature-based representation of a medium-size office-like environment (aprox. 30m×40m) where the global path planner have been executed to compute a safe path from the initial location of the robot formation (labelled Start) towards the final destination (labelled Goal). A longer but safer path (in solid-red) is selected by the algorithm instead of the shortest path (in dashed-blue) due to the high risk area (risk map enlarged on the left of the figure) due to the presence of clutter in the
74 5. Robot Formations in Partially a priori Known Environments XG1 XG2 (a) Cooperative view (b) Leader view (c) Follower 1 view (d) Follower 2 view (e) Follower 3 view (f) Follower 4 view Figure 5.8: Cooperative replanning towards the goal destination xG2. The figure shows the integrated field of view in the reference frame of the leader (a) and the different individual perspective of each robot in the formation. Figure (b) shows the erroneous path planned from the perspective of the robot leader in the absence of cooperation with other team members.
5.6. Conclusions 75 corridor. Furthermore, Fig. 5.10 illustrates the real-time capabilities of the reported strategy for efficient cooperative replanning under the event of a door-opening. As shown, a three-robot triangular-shaped formation is commanded from xG1towards xG5via the sequence of ordered waypoints. During the execution, a door, mapped as closed in the a priori map and outside of the field of view of the robot leader is opened and observed by the robot followers, therefore the reported cooperative strategy replans the path towards the goal destination skipping the waypoint xG3and xG4. Goal Start Figure 5.9: Safety enhanced path planning. The algorithm favors the larger but safer path (red) against the shortest path (red) due to the unsafe area on the middle of the corridor (risk map enlarged on the left of the figure). 5.6 Conclusions This chapter has reported an integrated system for robot formations working in partially known environments. Following the framework established in previous chapters, where we addressed the cooperative navigation in formation and its localization within an uncertain prior map, in this chapter we have turned our attention to path planning tasks with the goal of achieving an autonomous robot formation system.
76 5. Robot Formations in Partially a priori Known Environments 10 20 30 40 −20 −15 −10 −5 0 5 10 15 x[m] Start XG5 Door XG4 XG3 XG2 XG1 (a) Cooperative replanning scenario. XG5XG4 XG3 (b) Planning towards xG3. XG5XG4 XG3 (c) Planning towards xG5. (d) Moving along the corridor. (e) Heading to the opened door. Figure 5.10: Cooperative replanning in a real-world scenario. (a) A three-robot triangularshaped formation (solid red) is commanded from xG1towards xG5via the sequence of ordered waypoints (solid blue line). During the execution, a door (labelled) outside of the field of view of the robot leader is opened and observed by the robot followers (dotted red triangle), therefore the reported cooperative strategy replans the path towards the goal destination (dashed blue line) skipping the waypoints xG3and xG4. The cooperative local maps before and after the door opening event are shown in (b) and (c) together with captures of the real experiment in (d) and (e).
5.6. Conclusions 77 We have seen the existing risk when planning through high uncertain areas, which might correspond to non-traversable areas in a real setting, forcing a complete replanning of the path to follow to reach the goal. Then, we have presented global and online path planning strategies to limit the possibility of failure in the execution of the computed plan. The cooperative perception enhances the online performance by expanding the leader field of view to new open spaces that can lead to shortening the trajectory towards the goal. Experimental results, both in simulation and in realistic medium-size office-like settings, have illustrated the performance of the described approach by using a hybrid, centralized-distributed, architecture with wireless communication capabilitiesachieving a 4.5 Hz cycle-time for a three-robot triangular-shaped formation.
Chapter 6 Distributed SLAM for Robot Formations using a Prior Map Previous chapters presented a centralized algorithm to localize the robots in the formation within an a priori map of the environment which remained unchanged during the execution of the mission. In this chapter, we turn our attention to how the robots can jointly improve this prior stochastic map in an efficient way. Additionally, we seek to enhance the system robustness by using a distributed scheme where the computational overhead is shared by all robots. Each robot maintains its own local and global maps which are improved with the information received when communications among robots take place. The use of conditional independence properties allows that, after the synchronization steps, each robot has exactly the same information about the map and about the location of the robots at its disposal. 6.1 Introduction In previous chapters, we have proposed an EKF-based approach to localize a team of robots within an a priori stochastic map of the environment. The method is initially designed in a centralized way in order to optimallyintegrateall observationsgathered by the robots and to have a global vision of the system. However, the whole system heavily relies on the robot leader, which is not exempt from failures, and demands constant communication between robots to maintain their positions updated. In order to improve robustness and scalability of the system, in this chapter we move towards a distributed paradigm in which each robot of the formation is able to localize itself in the previous map. Additionally, in this chapter we propose the robots coordinately improvethe givenstochastic map turning our goal into solving a distributed multi-robot SLAM problem. To this end, in this chapter we present a novel and efficient algorithm where each 79
80 6. Distributed SLAM for Robot Formations using a Prior Map robot updates its own copy of the prior global map by sending/receiving local information to/from the rest of the team. Our distributed estimation algorithm is described in terms of a Gaussian Markov Random Field (GMRF) which allows us to analyze the conditional independence (CI) properties of the problem to achieve high efficiency [7]. The application of the CI property in the algorithm is twofold. On the one hand, the robots in the formation only need to constantly update the local region in which they move whereas global updates can be postponed reducing computational cost [72]. On the other hand, robots do not make observations of each other in our system but get indirectly related by observing common map features. The load in the communication channel is then reduced since each robot just sends an information summary of features observed since last communication. As a result, the algorithm proposed does not rely on a central server improving flexibility and robustness and reduces the computational and communication requirements at each step. Moreover, it is shown that, in a linear filtering context, the resulting decoupled method produces the exact results than using only one filter. In this chapter, we use the Extended Information Filter (EIF) as the core of the distributed algorithm such that after all messages are sent/received each robot’s estimate is equal to the centralized solution. Distributed localization can also be addressed if a map is not available to the robots. For example, in [4], a decentralized EIF algorithm to jointly localize a team of robots is presented. Each robot integrates its own data and cooperative localization is performed through inter-robot measurements fused by a central server which can be replicated in each robot for robustness. In [76], the equations of a centralized EKF are decoupled and distributed among the robots who share their information when they see each other and in [63] the distributed localization is formulated as a Maximum a Posteriori problem. Unlike these previous works and as we did in previous chapters, we assume the robots do not have the capability of detecting each other and cooperative localization is not achieved by the use of inter-robot measurements but through observation of features from a common prior map. One typical problem affecting distributed systems is the double counting of information (also known as data incest). This problem arises when the data sent through the network is not properly managed and is integrated more than once by the robots. To solve this problem, the Channel Filter (CF) is introduced in [30]. The CF prevents double-counting of information by using a tree communication topology (i.e., with no loops) and by keeping a record of the information transmitted over the communication channel. The transmission of information in our algorithm is similar to this filter but we avoid double-counting by synchronizing the transmission of messages. The main difference with that work is that we implement in addition an efficient algorithm to update the state vectors of the robots by postponing global updates without introducing approximations. In the same multi-robot context, recent works also address the distributed SLAM
6.2. Problem Statement 81 problem. In [54] each robot computes its own centralized-equivalent estimate of the system using the odometry and measurements that have been received from other robots. In [14] a Rao-Blackwellized Particle Filter is implemented as estimation kernel that works in simple scenarios with unknown initial correspondences. Each time a pair of robots communicate they have to calculate their relative transformation and interchange all the information gathered since the last meeting. The work presented in [64], copes with bandwidth communication requirements, in such a way that each robot selects a set of features with the greatest information gain to be sent. To avoid the double counting information problem, they combine an EIF with the Convariance Intersection algorithm, a sub-optimal filter which guarantees consistency although yielding pessimistic estimates. In contrast to these works, in our approach the robots only communicate their positions and the new local information gathered since last synchronization using small local matrices that reduce the communication bandwidth. The rest of the chapter is organized as follows: Section 6.2 describes the main steps and notation of our distributed localization and mapping algorithm for robot formations with a prior map. Section 6.3 makes use of the CI property to reduce the computational cost for each robot when working on a local region of the global map. Section 6.4 is devoted to explain the message passing protocol which also takes into account the CI property. The complete distributed localization and mapping algorithm is described in section 6.5 together with a computational and communication complexity analysis. In section 6.6 the results of the testing experiments are presented. 6.2 Problem Statement Given a previously built feature-based stochastic map xF, our goal is to localize a formation of r+1 robots in it while improving the map estimate. The robot formation and the map are given by [xT RxT F]T, where xR={xRj|j=0...r}contains the location of the team of robots. A naive approach to update the joint estimate is to use a centralized method where a leader fuses all the odometry and sensor measurements gathered by the rest of the team. Instead, in this chapter we implement a distributed algorithm in which each robot jestimates its own pose xRjand updates its own estimate of the map xj F. Robots periodically broadcast the map information acquired since their last synchronization together with their position to maintain the shape of the formation while navigating towards the goal. During the periods of lack of communication, each robot predicts the position of the rest of the team based on its knowledge about the formation structure. The advantage of this distributed strategy over the centralized one is that the system becomes more robust since each robot keeps an estimate of its position and the global map and does not depend on the availability of a central server or constant communication with the rest of the team to maintain the shape of the formation.
82 6. Distributed SLAM for Robot Formations using a Prior Map The efficiency of the algorithm proposed in terms of computational cost and communication bandwidth is based on the following two ideas: 1. In order to reduce the computational cost, the prior map xFis divided into local working areas. While the formation traverses a local region xFleach robot updates the features in it using the measurements gathered at each step whereas the rest of the map xFgis not modified. When the formation moves to a new local area all robots update the previous unmodified features xFg, assign the new set of local landmarks to xFland repeats the same procedure. Since the number of features in a local region is bounded, this algorithm maintains a constant computational cost O(1)when working in a local area. In addition, we will show that the map estimate obtained is the same as if we had been working with the whole map. 2. When working in a local region, robots send messages to each other at synchronization steps to improve their own local estimates by using the information gathered by other members of the team. During these synchronization steps, we assume all-to-all communication availability. Instead of transmitting raw measurements, robots send information matrices of the features observed since last synchronization reducing the amount of information on the communication channel. After each synchornization step, each robot has the same information such that the map estimates coincide with the one obtained using a centralized version, i.e. xj F→xF|j=0...r. Previous ideas are based on the Conditional Independence (CI) property of the variables involved in the estimation. In section 2.2.2 we give a brief and intuitive review of this property which will be applied in the explanation of the two following sections. Along each description we will make use of a MRF similar to Fig. 2.4 to help the reader recognize the CI property. 6.3 Local Estimates and Global Updates In this section we focus on how each robot works in a local region and is able to update the prior map. At instant k, the state vector for a robot jis given by xT j,k= [xT Rj,kxT F]T, i.e the current robot position and the estimate of the map. During this explanation we will omit the robot index jto simplify the notation. We assume a multivariable Gaussian distribution on the state vector described by the information vector ikand matrix Ik. In order to work in local regions with a consistent procedure for global map updates, we distinguish three operations: GlobalToLocal, Local EIF and LocalToGlobal. We will use the Gaussian Markov Random Field (GMRF) in Fig. 6.1 to show the application of the conditional independence property in these operations.
6.6. Results 89 6.5.1 Computational and Communication Complexity Analysis While each robot is working in its own local submap, it performs the LocalEIF algorithm. The computational cost of this filter depends on the number of features in the submap. Since we are not adding new features to the map, the number of features remains constant and the cost will be O(1)while working in the local region. When a change of submap is carried out, there are two operations involved, Local- ToGlobal, to update the global map, and GlobalToLocal, to extract a new region of the map. As it was explained in section 6.3, the operation LocalToGlobal consists in adding the new information to the global map, therefore, its cost is O(1). In GlobalToLocal, we find the most costly operation of Algorithm 8, where we have to invert almost the whole map, (Eq. 6.3), leading to a cost of O(n3)in the worst case, being nthe fixed number of features of the prior map. Unlike other algorithms, this operation only takes place at each map changing step. As it was studied in [68], there exists a trade-off between the size of the local maps and the frequency with which the robots need to change of submaps. If the submaps are small, global updates will be more frequent, but, on the other hand, larger submaps will increase the computational cost of local updates. Concerning the communication, the total amount of information to be sent to other robots is bounded to the number of features in the local map. Since each robot broadcasts the new information added to the submap to the rest, the communication complexity scales with the number of robots O(r+1). 6.6 Results Through the following simulation results we want to show the advantages of the distributed submapping algorithm proposed in this section. We have designed a simulation environment of 30x30m where three robots set in a triangle formation have to navigate along a 120m loop scenario (Fig. 6.3). Each robot has a prior stochastic map of the navigation area divided in submaps of 10x10m. The current local region xFlis common to all the robots and is selected depending on which features are being observed by the robots, thus, this local region can be composed of several submaps. One of the main advantages of this algorithm is the improvement of the given stochastic map where uncertainties and errors of the map features decrease. This can be seen in Fig. 6.3 and in its zoomed area (Fig. 6.3b), where the previous and the final map features are depicted. Additionally, Fig. 6.4a shows the improvement in the map features errors measured in terms of the Root Mean Squared Error (RMSE). As a direct consequence of the map improvement, the robots are localized more accurately. Figure 6.4b shows the RMSE obtained on each component of the localization of the robot formation. We also compare this result to the RMSE error obtained when the map is not refined and the formation is only localized within the prior map using the
90 6. Distributed SLAM for Robot Formations using a Prior Map 0 5 10 15 20 25 30 0 5 10 15 20 25 30 X [m] Y [m] (a) 22 22.2 22.4 22.6 22.8 23 23.2 23.4 23.6 23.8 24 22 22.2 22.4 22.6 22.8 23 23.2 23.4 23.6 23.8 24 X [m] Y [m] (b) Figure 6.3: 2D Point-based stochastic map of the simulation environment. (a) Initial setting of the formation and current local region where local map features and submap bounds are depicted in red. The area inside the black box is enlarged in (b) which shows the reduction of the covariances (blue) with respect the a priori map (grey). Black dot in the zoomed in area represents the ground truth of the feature. algorithm proposed in chapter 4. The next advantage concerns the computational cost. Three different implementations have been compared. First, the submapping and distributed technique proposed in this section (Dist+sub) where each robot updates its own local and global maps based on its ownobservations and synchronizes with the other robots to obtain a better estimation. Second, a centralized version of the submapping technique (Cent+sub) based on [72], where the robot leader is the one who updates the local and global maps using the observations gathered by all the robots. Finally, a centralized EKF-based version in which the leader does not work with local maps but only with the global map (Cent+glob). Figure 6.5a shows a comparison between the first (Dist+sub) and second version (Cent+sub). We have supposed the worst case time complexity for the first implementation in which the formation synchronizes at each time step and an additional time per step appears due to the execution of the send-receive operations. However, the cost of the map update in the distributed version (green line) is lower, resulting in a less time complexity with respect to the centralized implementation (red line). Peaks in the times are due to global updates, where Algorithms 4 and 5 are executed. In Fig. 6.5b, the computational cost of the first (Dist+sub) and the third version (Cent+glob) is depicted. We can see how even when a global update occurs, the times of the distributed implementation are lower than the global version. We can also observe that, since we are not adding new features to the map, the cost of the global EKF
6.6. Results 91 0 20 40 60 80 100 120 140 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 Feature RMSE Prior Map Final Map (a) 0 500 1000 1500 2000 2500 3000 0 0.1 0.2 0.3 X RMS Error [m] Formation 0 500 1000 1500 2000 2500 3000 0 0.1 0.2 Y RMS Error [m] 0 500 1000 1500 2000 2500 3000 0 1 2 Theta RMS Error [deg] Time Step [s] (b) Figure 6.4: Root Mean Squared Error of the map features and the robot formation. (a) Comparison between the RMSE per feature in the a priori map and in the final map. In the a priori map, maximum errors are due to far features wrt the base reference while the minimum errors are due to features involved during a loop closure event or those that are near to the origin. After running the proposed SLAM algorithm, the error is more balanced in the whole final map. (b) Evolution of the RMSE error of all the robots of the formation along the simulation. The errors on the position components obtained when the formation navigates while refining the prior map (blue) are lower than if the map is not updated (grey) and only the localization algorithm proposed in chapter 4 is used. mapping remains approximately constant. In the distributed implementation, the times are also constant while working in the same submap, but these times change depending on the number of features of the submaps (e.g. time at instant 2250 and at instant 2500). Note that, in a real experiment, an additional time would have to be considered in both cases, due to the data association process. In the global centralized EKF mapping, the leader would perform this task by matching all the observations from all robots, thus, this time would be proportional to the number of robots and observations whereas in the distributed version, this time would only depend on the number of observations. Finally, we want to emphasize that the result obtained with the distributed submapping method proposed in this section is equivalent to the result obtained in a centralizedglobal mapping implementation. Each time the robots perform a synchronization, they will obtain the optimal solution (i.e. equivalent to the centralized). In Fig. 6.6 we show the consistency ratio NEES/ χ 2 r,1− α ,r=dim(xFl)of the local map features when robots synchronize every 10 time steps. We can see how, while there is no synchronization, NEES for each robot’s features is different, but when a synchronization occurs the solution obtained is equal to the centralized. Besides, the estimation of the map features is consistent, since the ratio NEES/ χ 2 r,1− α ≤1.
92 6. Distributed SLAM for Robot Formations using a Prior Map 0 500 1000 1500 2000 2500 3000 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 Time step Seconds Total time cent+sub Total time dist+sub Message passing dist+sub (a) 0 500 1000 1500 2000 2500 3000 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 Time Step Seconds Total time global EKF mapping Total time dist+sub (b) Figure 6.5: Comparison of times between different implementations. (a) Times per step for the centralized and distributed submapping implementations. Worst case where robots synchronize at each step is shown. For that reason, synchronization time (blue), which affects to the distributed implementation, is never zero. (b) Time comparison between the global centralized and the submapping distributed implementations. Synchronization messages are transmitted at every step. 6.7 Conclusions In this chapter we have proposed a distributed estimation algorithm within the stochastic framework presented in previous chapters for robot formations. Using a prior map of the environment, our method efficiently tackles the localization of the robot formation at the same time the map is improved with new observations. The proposed algorithm does not rely on a central server improving flexibility and robustness. This is achieved by describing the distributed estimation problem as a GMRF, which allows us to take double advantage of the CI properties to reduce the computational and communication requirements: as first result the formation only experience constant updates whereas global updates are postponed until a new local region transitiontakes place; a second cost reduction is achieved due to the fact that robots only get indirectly related through the observation of common map features. In consequence, the load in the communication channel will only scale linearly with the number of resources since each robot broadcasts only an information summary of features observed from the last robot formation communication. The algorithm results show an accuracy improvement of the a priori map, being the final result equivalent to the one obtained in a centralized implementation with a lower computational effort.
6.7. Conclusions 93 0 500 1000 1500 2000 2500 3000 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1NEES features 400 405 410 0.83 0.84 0.85 Figure 6.6: Consistency ratio NEES/ χ 2 r,1− α of the features in the centralized (black) and the distributed (the three blue lines, one for each robot of the formation) implementations. In the zoomed area, red boxes correspond to synchronization times (every 10 time steps) where centralized and distributed results are exactly the same. If synchronizations occurred at every time step, the three blue lines would coincide with the black line.
Part II Multi-Robot Simultaneous Localization and Mapping 95
Chapter 7 Multi-Robot SLAM using Condensed Maps This chapter describes a graph-based SLAM approach specifically designed to address the communication and computational issues that affect multi-robot systems. The proposed method utilizes condensed measurements to exchange map information between the robots. These measurements can effectively compress relevant portions of a map in a few data. This results in a substantial reduction of both the data to be transmitted and processed, that renders the system more robust and efficient. As documented by the simulated and real world experiments, these advantages come with a very little decrease in accuracy compared to ideal (but not realistic) methods that share the full data among all the robots. 7.1 Motivation In previous chapters, we have presented multi-robot localization and SLAM algorithms based on filtering techniques, aiming at taking advantage of their speed properties. Under the assumption of working in a common previously built map, the system could be represented with respect to the same base reference and each robot had a good guess about the location of the rest of the team. The use of map features for a compact representation of the environment reduced the communication overload. However, frequent sychronizations were required to maintain coherency in both centralized and distributed algorithms. Developed in the context of robot formations, communications between robots could be guaranteed as they move nearby. However, this context is not suitable and can not be straightforwardly extended to more general multi-robot systems where robots explore different areas of the environment and they meet only occasionally. In this chapter we propose a general multi-robot graph-based SLAM approach to build a dense map of the environment without prior map knowledge nor assumption on 97
98 7. Multi-Robot SLAM using Condensed Maps the robots connectivity. As we already introduced in chapter 2 the single-robot graphbased SLAM problem involves to construct a pose-graph whose nodes represent robot poses and in which and edge between twho nodes encodes a sensor measurement that constrains the connected poses. One such graph is constructed by a front-end algorithm, the estimation process is simplified to the problem of finding a configuration of nodes maximally consistent with the measurements. This requires solving a large error minimization problem which is often done by means of modern least-squares optimization approaches, also called back-ends in the SLAM context. This least-squares minimization problem can be re-evaluated at each time new information is incorporated into the graph, providing a enhanced performance with respect to filtering techniques. In principle, using multiplerobots to acquire the map is more robust, since the failure of a single system does not necessarily compromise the whole result. Furthermore, the parallel acquisition of data by multiple robots might result in less time needed for building the map. Despite these attractive properties, multi-robot systems for SLAM presents substantial challenges of both theoretical and practical nature. Ideally, existing algorithms for single-robot graph-based SLAM could be extended to handle the multi-robot case just by constructing and optimizing the graph based on all measurements gathered by the robots. Unfortunately, such an approach presents several challenges. First, determining constraints between pairs of robots’ graphs requires a re-localization scheme without any initial guess. This might dramatically increase the chances of adding wrong edges to the graph, and would compromisethe entire process. Second, assumingto have an ideal error-free front-end, the graph obtained by each robot would rapidly increase its size. In the worst case, each robot would add a set of edges to the graph with a quadratic dependency on the number of robots. Consequently it would limit the on-line performance of any state-of-the-art optimizer whose complexity roughly increases with the number of edges. Furthermore, the above scenario assumes the robot can perfectly communicate with each other, which is typically not the case. Wireless communications in large environments are usually brittle and depend on the positions of the nodes. Furthermore they present bandwidth limitations, that would prevent the robots to share large amounts of data. In this chapter we propose an approach for multi-robot SLAM that addresses the issues raised above. The method is designed to operate with very limited communication facilities and allows to dynamically add and remove robots from the system. Each robot in the team computes its own map, but it refines it by integrating a set of virtual or condensed measurements [31] coming from the other robots. These condensed measurements can be seen as a reduced version of the graph constructed by the other robots, that contains only the information relevant to the receiver in order to refine its own map. They are easily managed by the optimization back-end and allow to substantially reduce the size of the optimization problem that each member of the team
7.4. Multi-Robot SLAM using Condensed Graphs 105 These messages are sent whenever a new node is added to the graph, based on the number of mates in range. 7.4.2 Multi-Robot SLAM In this section, we illustrate how the messages defined above are used to implement our multi-robot SLAM approach. To simplify the description, we refer to Figure 7.3 and without loss of generality we assume having only two robots: A(red) and B(blue). Initially (see Figure 7.3a), each robot constructs its own map with a single-robot SLAM algorithm. When a communication is available Astarts receiving the current local map of B, by storing its most recent readings. A matching procedure is executed to align the two local maps, and results in a set of candidate edges connecting the map of A and the map of B(see Figure 7.3b). When reasonably confident about the correctness of these edges, robot Asends to Bthis list (see Figure 7.3c). Bthen computes a condensed graph containing only the nodes of its map that appear in the candidate edges found by A(see Figure 7.3d), and sends it to A. Finally A, includes these measurements in its own graph to get a more consistent map (see Figure 7.3e). This algorithm can be implemented within a robot Ain a straightforward way by maintaining the following data structures: •the graph GAobtained by single-robot SLAM •for each other robot B: –the most recent local map MBconsisting of the last Nnodes, that is used for cross-localization. –the list EB Aof candidate edges between the map of Aand the map of Bthat have been found by A. –the list of EA Bedges received from B, that connect the map of Aand the map of Band that have been found by B. –the condensed graph GB Asent by B. Robot Aupdates the local maps of each other robot MBand the list of edges EA B whenever a new message is received. Each time the single-robot SLAM algorithm running on Aadds a new node to the graph, the estimate of the last Nnodes and the last laser scan are sent to allow the other robots to construct the local map of A. Subsequently, Robot Aruns a map-alignment algorithm between its local map and each MB, and updates the list of candidate edges by using the procedure described in the next section. Finally, by knowing EA BRobot Acomputes which nodes of its own map are relevant for Robot B, and sends the corresponding condensed measurements. In computing the
106 7. Multi-Robot SLAM using Condensed Maps (a) Local map transmission (b) Local maps alignment (c) Matched nodes’ IDs transmission (d) Condensed graph transmission (e) Condensed graph addition Figure 7.3: Illustration of our multi-robot SLAM algorithm in a two robots scenario. Robot A is depicted in red and Robot Bin blue. Triangles represent the nodes of the graph. (a) Each robot runs a graph-based SLAM algorithm and constructs its own map. When they are within a communication range, they share their current local maps; (b) Alocalizes Band determines a set of candidate edges connecting the two maps; (c) Ainforms to Bwhich of its nodes it has matched; (d) Bcomputes condensed measurements that connect the nodes in its own map that appear in the edges found by A; (e) Aincludes these edges in its own graph. condensed measurements Robot Aconsiders only the portion of the graph acquired with its own sensors, thus avoiding multiple integration of information.
7.4. Multi-Robot SLAM using Condensed Graphs 107 7.4.3 Robust Map Alignment In this section, we describe our approach to robustly align two local maps MAand MB onto each other. A local map consists of a portion of the graph. We recall that each node consists of a robot pose and a laser scan acquired at that pose. Figure 7.4 illustrates the problem. (a) Local map MA.(b) Local map MB. (c) Alignment of the two local maps. Figure 7.4: Example of map alignment between two local maps after finding a set of edges jointly consistent. Our goal is to find a set of edges Sbetween the nodes of the two local maps such that they are maximally consistent, given the scans. To this end we match each scan sB jcontained in node xB jof MBwith each scan sA icontained in node xA iof MA, by using a correlative scan matcher. Note that each matching can result in zero or more measurements zkof xB jwith respect to xA i. Each of these solutions is then converted in an edge ekrelating nodes xA iand xB j, and added to a pool of candidate edges E. Given this pool of edges, we run a voting scheme procedure to determine which of them are inliers, summarized in Algorithm 9. The idea is the following: to determine a translation between the two local maps it is sufficient to translate them so that one candidate edge ekis satisfied (its error is 0). Let xA i,xB jthe location of the nodes containing scans sA i,sB jand zktheir computed relative measurement be represented as the isometry matrices XA i,XB jand Zk, respectively.
108 7. Multi-Robot SLAM using Condensed Maps The transformation matrix Tkwhich satisfies the constraint is: TkXB j=XA iZk(7.4) Tk=XA iZk(XB j)−1(7.5) Applying this translation affects the error of all other candidate edges, and their error will be small if they are consistent with ek, while it will be large otherwise. Based on these errors and using an inlier threshold τ we determine inliers and outliers. Once we obtain a set of maximally consistent edges Susing this procedure, we decide whether to accept the match or not if a minimum number of inliers is achieved. Figure 7.5 illustrates the procedure. The bottleneck of this schema is the scan matching routine and the computational cost of algorithm will depend on the number of candidates edges in E. Accordingly, we need to limit the number of times we perform scan-matching. By considering that the local maps can be assumed to be consistent, and that one of the two local maps is acquired incrementally one scan at a time, we can implement the above procedure in an efficient way. Each time we receive a new scan sB j, we match it against the local map constructed by the union of all sA i. The scan matcher results in a set of transformations between sB jand the map MA. These transformations are converted in edges between sB jand the closest node in MA, after applying the transformation. The resulting edges are inserted in the pool. The joint consistency validation is done at every step, and the candidate edges that are marked as outliers for a certain number of times are removed from the pool. 7.5 Experiments The multi-robot SLAM approach proposed in this chapter has been validated through simulations and real world experiments. The system is implemented in C++ as a ROS package and the simulations have been conducted with the Stage simulator. 7.5.1 Robust Map Alignment First, we have validated the map alignment procedure explained in section 7.4.3 in a simulation environment to have the ground truth at our disposal for measuring the quality of the final map obtained. Additionally, we have compared the results with respect to Single-Cluster Graph Partitioning (SCGP) [66]. Therefore, we will follow with a brief summary of the SCGP approach and how we apply it to our problem of finding a set of maximally consistent edges that align two partial maps. Then, the comparison between both approaches will be presented.
7.5. Experiments 109 Algorithm 9 Compute S Require: MA,MB,E, τ 1: bestChi2 ←inf, bestInliers ←0, S ← {} 2: for each edge ek(xA i,xB j)∈ E do 3: Sk← {} 4: inliers ←0; totalChi2 ←0; {Compute Tksuch that error ek=0} 5: Tk←XA iZk(XB j)−1 {Apply Tkto the nodes in MB;} 6: for each node xB j∈ MBdo 7: ¯ XB j←TkXB j; 8: end for {Compute new error ekfor each edge in E} 9: for each edge ek∈ E do 10: totalChi2 += ek; 11: if ek< τ then 12: inliers++; 13: Sk← {Sk,ek} 14: end if 15: end for 16: if (inliers >bestInliers or (inliers = bestInliers and totalChi2 <bestChi2)) then 17: bestChi2 ←totalChi2 18: bestInliers ←inliers 19: S ← Sk 20: end if 21: end for
110 7. Multi-Robot SLAM using Condensed Maps Figure 7.5: Top: In red, nodes belonging to a local map, in blue, current estimation of the received nodes and in yellow, the same nodes with respect to the candidate closure edges. Dashed red lines represent the error in the estimation for each edge. Middle: Green, position of the nodes after applying the transformation (blue dashed line) that makes the error of the first node equal to zero. With this configuration, the error in the second and fourth nodes is small (they could be selected as inliers if the error is lower than a threshold) whereas the error in the third node is large (outlier). Bottom: Configuration of the nodes if the transformation to make the error of the third node equal to zero is applied. Since it is a wrong closure, the error in the rest of nodes is large, they are selected as outliers and this configuration of nodes is rejected. Notice that this procedure can be used whether the local maps are from different robots or from the same robot trying to compute loop closing edges. Single-Cluster Graph Partitioning for graph-based map alignment The SCGP method computes, from a set of candidate hypotheses, the subset which is maximally consistent. It represents the problem as a graph, where each node is a candidate hypothesis and an edge between two nodes represents their mutual consistency. Then, given a set of ncandidate hypotheses, the graph is encoded in a n×nconsistency matrix Awhere each element aij contains the pairwise consistency between two nodes. Let ube a binary indicator vector representing a subset of the hypotheses, SCGP
7.5. Experiments 111 attempts to maximize the average consensus: r(u) = uTAu uTu(7.6) Assuming Abeing symmetric, the vector uwhich maximizes Eq. 7.6 satisfies: Au =r(u)u(7.7) which is an eigenvector problem with r(u)the dominant eigenvalue. The two first dominant eigenvectors v1and v2and eigenvalues λ 1and λ 2of Acan be efficiently computed using the Power Method. A minimum ratio λ 1/ λ 2can be imposed to assess the confidence of the result, otherwise the whole set of candidates is rejected [67]. Then, the dominant eigenvector is discretized to obtain the binary indicator vector. Figure 7.6: Left: Initial configuration of the nodes (red and blue) and current errors with respect to the constraints. Middle: Configuration of the nodes if the transformation which satisfies the first constraint is applied. Right: Configuration of the nodes if the transformation which satisfies the second constraint is applied. In order to apply the SCGP method into our map alignment problem, we proceed similarly as in Algorithm 9. Given ncandidate edges, we compute for each candidate edge eithe transformation which satisfies the constraint, apply it to the nodes of the rest of edges ejand compute the new error eij of each edge. With this procedure we have a measure of consistency of each edge ejwith respect to ei. We can not fill matrix A directly with these values since this measure is not reciprocal (i.e. eij 6=eji) as it can be seen in Fig. 7.6. To obtain a symmetrix matrix A out of these values we set: aij =aji =e−eij+eji 2(7.8) After applying this function, two compatible edges ei,ejwill have low error eij and large compatibility value aij and viceversa.
112 7. Multi-Robot SLAM using Condensed Maps Simulation Results In order to compare the map alignment algorithm proposed in this chapter with the SCGP approach, we have designed two different trajectories in a simulated environment containing several loop closings as shown in Fig. 7.7. Given the initial trajectories 7.7c and 7.7d, we have executed the single-robot SLAM routine explained in section 7.4 with both approaches as loop closing detectors and varied their intrinsic parameters according to the following restrictions: 1) We check if a minimum number of edges are found jointly consistent in a windowof time in order to finally approve a map alignment. In our implementation, the candidate edges are maintained in the pool for 10 time steps and we have varied this restriction in both methods from 3 to 8 minimum inliers. 2) In the case of the SCGP method, a minimum ratio λ 1/ λ 2is imposed to consider the result confident enough. This ratio depends on the properties of the consistency matrix and how it is built. In our implementation, we observed that λ 1/ λ 2ratios much higher than 2 were unusual, then we considered this value as the more restrictive one. Note that λ 1/ λ 2>1 is always satisfied and, in this case, SCGP always trusts on the confidence of the consistency matrix. 3) As it is explained in Algorithm 9, the outlier rejection of our method is based on a threshold τ . We have a wider range of thresholds in this case where the lower the threshold is, the more restrictive the algorithm is. We have measured the quality of the final maps obtained with both approaches with respect to the ground-truth trajectories in terms of the mean Chi2 error per edge. To this end, we created a ground-truth graph by extracting a set of virtual edges between neighboring nodes, by using the approach described in [13]. The results for different thresholds and minimumnumber ofinliersare summarizedinTable 7.1 where valuesare only shown if the map converged to a correct solution. These results are accompanied by precision and recall measures (shown in Fig. 7.8) which are defined based on the number of true/false positive/negatives by: Precision =tp tp+f p ;Recall =tp tp+fn (7.9) From the results we can observe that our proposed algorithm obtains better final maps proved by a lower overall error. In general, the error is higher as the minimum number of inliers is increased since finding a loop closure also depends on how much portion of the trajectory overlaps and is not always possible to achieve the required inliers. Additionally, we verify that the minimum λ 1/ λ 2ratio must be higher than 1 otherwise the simulations always reach a point at which they diverge. Regarding the precision and recall measures shown in Fig. 7.8 we observe that our approach has a slightly smaller precision than SCGP, therefore more wrong loop closing edges are added to the graph. However, it gets many more right since it has a higher recall. With the use of robust kernels in the optimization phase [65], these few outliers could be identified and their effect on the final solution minimized. Conversely,
7.5. Experiments 113 (a) Ground truth trajectory 1 (b) Ground truth trajectory 2 (c) Scan matching trajectory 1 (d) Scan matching trajectory 2 Figure 7.7: Trajectories and laser scan data collected by the robot in a simulation environment. (a) and (b) show the ground-truth maps whereas (c) and (d) show the initial map configuration after running a sequential scan matching over the two trajectories without loop closure detections. The initial χ 2mean error per edge is 40.412 for the first map and 63.997 for the second map. although SCGP presents better precision values, this comes with a sacrifice on the overall number of detected inliers and, consequently, certain good loop closures are skipped by the algorithm which contributes in higher errors of the final maps obtained. These quantitative results support the overall better performance observed and confirmed by visual inspection of the final maps. In some cases, the inclusion of outlier loop closing edges results in a complete map divergence. However, there are certain edges that can be classified as outliers from a statistical point of view although they are not so wrong from a qualitative perspective due the good performance of the scan matcher and then, their inclusion in the map do not prevent from obtaining a good final result. For this reason, we have also measured the recall values for both approaches in the situation when there are only good (statistically speaking) inliers. In this case, the absence of outliers implies there are no false positives and then, the precision is always 1. The results for both trajectories are shown in Fig. 7.9 which confirme the better performance of our method.
114 7. Multi-Robot SLAM using Condensed Maps Min. Inliers 3 4 5 6 7 8 τ 3.5 1.417 - 0.647 0.826 10.179 20.515 3 - - 1.105 0.682 1.119 1.441 2.5 1.974 - 0.645 1.29 1.506 1.433 2 0.902 0.495 1.047 0.772 2.159 2.163 1.5 1.133 0.769 0.951 1.466 1.561 2.511 (a) Our method - Trajectory 1 Min. Inliers 3 4 5 6 7 8 λ 1/ λ 2 1 - - - - - - 1.25 18.791 35.691 0.687 0.508 1.837 4.061 1.5 - - 1.308 2.388 1.541 1.344 1.75 0.465 1.305 1.841 3.554 1.572 1.344 2 - 1.403 0.925 2.712 1.266 5.254 (b) SCGP - Trajectory 1 Min. Inliers 3 4 5 6 7 8 τ 3.5 - 0.764 - 0.863 0.853 1.020 3 - 0.647 - 0.627 0.688 0.794 2.5 - 0.561 - 0.833 2.047 0.874 2 1.106 0.686 - 0.72 1.174 70.585 1.5 - 0.687 - 1.190 4.698 6.488 (c) Our method - Trajectory 2 Min. Inliers 3 4 5 6 7 8 λ 1/ λ 2 1 - - - - - - 1.25 - - - 1.871 16.524 73.42 1.5 - 0.87 0.764 1.972 1.266 46.113 1.75 - 0.723 1.197 2.941 73.821 46.114 2 0.773 0.877 1.062 2.935 73.825 46.114 (d) SCGP - Trajectory 2 Table 7.1: Map errors obtained using both methods in the two trajectories. Rows and columns are ordered from less to more restrictive thresholds. The values are the mean χ 2error per edge. 7.5.2 Multi-Robot SLAM System Simulation results We quantitatively evaluated the performance of our system through simulation experiments. In particular, we measure how the proposed multi-robot system performs in terms of optimization time, bytes transmitted by each robot and accuracy with respect an ideal implementation in which the robots share their whole graph instead of the condensed version. Additionally, we want to analyze how these aspects scale with the number of robots and therefore we tested our approach with 2, 4 and 8 robots. The simulation environment is shown in Fig. 7.10a. We designed trajectories such that each robot met at least once with another robot. As an example, the trajectories and final map obtained in the 8 robots simulation are shown in Fig. 7.10b. Figure 7.11 shows the results for the optimization times and communication overload obtained in the simulations. Clearly, the more robots are used for mapping the less time is needed to cover the entire environment and the smaller will be the map of each robot. Figures 7.11a–7.11c show the optimization times for both approaches. It can be seen how, in the condensed approach (green), the optimization times increase linearly as the map grows. Receiving a condensed graph implies adding a few edges to their graphs and this does not affect substantially the computation. In the ideal implementation (red), times grow also linearly with the number of edges. However, this number has a substantial increment when the robots meet and receive the whole graph from the others. This happens, for example at time 350 in the two robots simulation. The communication overload is shown in Figures 7.11d–7.11f. As explained in
Chapter 8 Conclusions 8.1 Conclusions Along this thesis we presented contributions in the different tasks that must be performed to obtain an autonomous multi-robot system. We have mainly addressed the localization and SLAM problems but we have also contributed to the motion and planning problems to analyze their application and performance in a real working system. First of all, we considered the problem of how the team of robots can move in the environment. Then, in Chapter 3 we presented a cooperative navigation system for robot formations based on a flexible virtual structure that adapts its shape to the environment. In this chapter we also analyzed the importance of having a good localization system to deal with the accumulation of errors introduced by the sensors which prevent the team from a correct navigation in formation and the reachability of its goal. This issue motivated the design of a localization algorithm presented in Chapter 4 developed in a EKF filtering framework to take advantage of its speed properties. The state of the formation was formulated using a leader-centric probabilistic representation to reduce the effect of the linearization errors due to high levels of uncertainty. Using a given feature-based stochastic map of the environment for absolute positioning reference, we demonstrated the direct implementation of the EKF algorithm provided inconsistent, and therefore, unreliable localization estimates, a matter of importance if we want to assure the long-term performance of the method. However, although the convergence in this nonlinear filtering context can not be guaranteed we can propose alternatives to drive the estimation towards consistency. Insights into the underlying problem suggested us that cross-correlations among map features observed in consecutive time steps were not properly handled by the algorithm and we proposed a solution based on the measurement differencing technique to improve the filter consistency. This localization algorithm was part of an integrated system for robot formations described in Chapter 5. With the overall objective of having the formation working 121
122 8. Conclusions in partially known environments, we proposed, in addition to the navigation and localization techniques from previous chapters, a solution to the path planning problem considering the uncertainty of a given map. This is motivated since planning through imprecisely known areas may lead to reach dead-ends requiring a complete global replanning, increasing the total execution time of the mission. The global path planning is carried out by the leader of the formation based on the prior map before starting the mission, thus this is the less cooperative part of the system. It is, on the contrary, the online replanning which takes into account the unexpected elements of the environment not considered in the prior map and makes use of a local map built from the cooperative perception of the team. Up to this point, we considered the map provided to the formation, probably imprecise or incomplete, was not modified during the execution of the mission. In Chapter 6, we proposed a distributed SLAM algorithm to jointly improve the given map while the robots navigate in the environment. The use of the Conditional Independence property opened us the possibility to work with submaps, greatly decreasing the computational cost of the mapping process while obtaining the same result as if we worked with the entire map. Besides, it allowed us to bound the amount of information shared through the network and to guarantee the robots have exactly the same information each time they synchronize. Finally, in Chapter 7 we addressed the problem of how to use multiple robots to build a map of the environment from scratch, without any prior information about the number of robots or their initial locations. We provided a complete multi-robot SLAM system handling intra-robot data association and capable of working under computational and communication resource constraints. Concretely, the use of condensed maps enabled the robots to share portions of their own maps relevant to refine those of others. The transmission of information was conducted by means of an event-driven communication protocol oriented to minimize the possibility of packet loss. As a result of these strategies we considerably reduced the optimization problem to be solved by each robot obtaining a comparable accuracy to an ideal implementation, where robots shared their whole maps. 8.2 Future Work In this thesis we have demonstrated the performance and efficiency of the proposed contributions, most of them working on real multi-robot systems. However, one can always progress and do things better. This section points out some possible improvements. Regarding the cooperative navigation of the formation, we observed how in some situations (see for example those in Figs. 3.5 and 5.7) sudden changes in the leader trajectory result in forced behaviors on the followers, which always try to reconfigure to maintain their relative positions with respect to the leader. A more efficient strategy
8.2. Future Work 123 considering the prediction of trajectories of the followers combined with the proposed formation control could result in shorter and smoother trajectories for the followers. Also, a dynamic change of the leader role inside the formation, if the system configuration allows it, would provide more efficient performance. The proposed localization system provides consistent estimates, however, it is implemented in a centralized manner relying heavily on the leader. Future work should be oriented towards distributed approaches where the EIF, due to its inherent decoupling properties could be used. We provide in appendix C first insights into the measurement differencing EIF-based formulation. The path planning under uncertainty algorithm proposed in this thesis seeks for the path that minimizes the risk at each of the steps. This solution considers that, once the robot reaches a step kof the planned trajectory, it does not matter which is the risk of the k−1 previous steps since this part of the trajectory has already successfully been traversed and it is only concerned if it will be able to traverse step k+1. Other kind of approaches try to minimize the accumulated risk of all path and we are already moving towards this reasearch line where the cost of choosing a wrong path and the need of rectifying is also being considered. The multi-robot localization and map improvement algorithm presented in Chapter 6 could be extended to consider new features not present in the prior map. In the case of non identifiable features (i.e., unknown data association) this would require a consensus between robots to decide whether the new features they observed are the same or not. Besides, we would have to take care of the map maintainance for long-term performance since indefinitely updates could lead to overly optimistic map estimation. Optimal submap partitioning and asynchronous communications could also been investigated. The multi-robotgraph-based SLAM approach presented in Chapter 7 may showmap misalignments in areas where robots did not coincide in time but which we resolved in a post-processing phase of the joined map. This additional step could be avoided in the ideal but inefficient implementation where robots share their whole maps. Instead, robots could also interchange condensed maps of strategic areas of the environment they visited at different times. Furthermore, the map alignment algorithm could be used not only to correctly align two local maps but also to disambiguate between local alignments obtained at different parts of the trajectory. This ambiguity may also appear when two robots meet in different but symmetric scenarios. A robot identification system could also be used to solve it but at the expense of restricting robot movements so their identifiers were visible to each other.
124 8. Conclusions 8.3 Conclusiones A lo largo de esta tesis hemos presentado contribuciones en las diferentes tareas que han de llevarse a cabo para conseguir un sistema multi-robot autónomo. Aunque nos hemos centrado principalmente en los problemas de localización y SLAM, también hemos contribuido a los problemas de control del movimiento y el cálculo de trayectorias para analizar su aplicación y rendimiento en un sistema real completo. En primer lugar, hemos abordado el problema de cómo puede un equipo de robots moverse por el entorno. Así pues, en el capítulo 3 hemos presentado un sistema de navegación cooperativa para formaciones de robots basado en un estructura virtual flexible que se adapta al entorno. En este capítulo también hemos analizado la importancia de disponer de un buen sistema de localización para hacer frente a la acumulación de errores introducidos por los sensores que impiden la correcta navegación en formación y el alcance del objetivo. Esta cuestión ha motivado el diseño de un algoritmo de localización presentado en el capítulo 4 y desarrollado en el contexto del filtro de Kalman extendido (EKF) con el fin de aprovechar su rapidez. Se ha formulado el estado de la formación utilizando una representación probabilista centrada en el líder que permite reducir los efectos de los errores de linealización debidos a altos niveles de incertidumbre. Utilizando un mapa estocástico de características del entorno como referencia para su localización global, hemos demostrado que una implementación directa del EKF resultaba en estimaciones de localización inconsistentes y, por consiguiente, poco fiables, siendo éste un asunto de importancia para la aplicación del algoritmo a largo plazo. Sin embargo, aunque en este contexto de filtrado no lineal no se pueda garantizar la convergencia, podemos proponer alternativaspara tratar de mejorar la consistencia. Así pues, un análisis más en profundidad del problema nos ha llevado a sugerir que las correlaciones entre características del mapa observadas en instantes consecutivos no estaban siendo consideradas adecuadamente en el algoritmo y hemos propuesto una modificación basada en la diferencia de medidas para mejorar la consistencia del filtro. Este algoritmo de localización ha formado parte de un sistema integrado para formaciones de robots, descrito en el capítulo 5. Con el objetivo de tener a la formación trabajando en entornos parcialmente conocidos, hemos propuesto, además de las técnicas de navegación y localización descritas en los capítulos anteriores, una solución al problema de planificación de trayectorias considerando la incertidumbre del mapa proporcionado. Este problema viene motivado por el hecho de que planificar por zonas conocidas de modo impreciso puede llevar a caminos sin salida que requieran una completa replanificación global, incrementando el tiempo total de ejecución de la misión. Es el líder quien se encarga de realizar la planificación global antes de iniciar la misión, siendo esta por tanto la parte menos cooperativa de la tesis. Sí lo es, sin embargo, la replanificación online que tiene en cuenta los elementos imprevistos del entorno o no
8.4. Trabajo Futuro 125 considerados en el mapa previo y que hace uso de un mapa local construido a partir de la percepción cooperativa del equipo. Hasta este punto, se había considerado que el mapa proporcionado a la formación, probablemente impreciso o incompleto, no era modificado durante la realización de la misión. En el capítulo 6 hemos propuesto un algoritmo de SLAM distribuidopara mejorar conjuntamente el mapa al mismo tiempo que los robots navegan por el entorno. El uso de la propiedad de independencia condicional nos ha dado la posibilidad de trabajar con submapas, reduciendo ampliamente el coste computacional de la construcción del mapa y obteniendo el mismo resultado que si hubiéramos trabajado con el mapa completo. Además nos ha permitido limitar la cantidad de información a ser transmitida a través de la red y garantizar que los robots dispusieran de exactamente la misma información cada vez que se sincronizaran. Finalmente, en el capítulo 7hemos abordado el problema de cómo usar varios robots para construir un mapa del entorno desde cero, sin ninguna información previa acerca del número de robots o su localización en el mapa. Hemos propuesto un sistema de SLAM multi-robot completo que resuelve el problema de asociación de datos entre robots y es capaz de trabajar bajo recursos computacionales y de comunicación limitados. Concretamente, el uso de mapas condensados ha permitido que los robots compartan información de sus propios mapas relevante para mejorar los de otros. El intercambio de información se ha llevado a cabo por medio de un protocolo de comunicaciones orientado a minimizar la posibilidad de pérdida de paquetes. Como resultado de estas estrategias hemos reducido considerablemente el problema de optimización que cada robot debe resolver, obteniendo al mismo tiempo una precisión comparable a una implementación ideal, donde los robots comparten su mapa completo. 8.4 Trabajo Futuro En esta tesis hemos demostrado el rendimiento y eficiencia de las contribuciones propuestas, teniendo la mayoría de ellas funcionando en equipos multi-robot reales. Sin embargo, uno siempre puede progresar y hacer mejor las cosas. En esta sección señalamos algunas de las posibles mejoras. Respecto a la navegación cooperativa de la formación, observamos cómo, en algunas situaciones (por ejemplo, las mostradas en las figuras 3.5 y 5.7) cambios repentinos en la trayectoria del líder dan lugar a comportamientos forzados en los seguidores, que siempre tratan de reconfigurarse para mantener su posición relativa con el líder. Una estrategia más eficiente que considerara la predicción de las trayectorias de los seguidores en combinación con el control de la formación propuesto podría resultar en trayectorias más cortas y suaves para ellos. Además, si la configuración del sistema lo permite, un cambio dinámico de líder dentro de la formación podría proporcionar un mejor y más eficiente rendimiento.
126 8. Conclusions El sistema de localización propuesto proporciona estimaciones consistentes, sin embargo, está implementado de forma centralizada, dependiendo excesivamente del líder. El trabajo futuro debería orientarse a obtener algoritmos distribuidos en los que el filtro de información extendido (EIF) por sus propiedades inherentes para desacoplar la estimación podría usarse. En el apéndice C ofrecemos una primera visión sobre la formulación del EIF con diferencia de medidas. El algoritmo de planificiación de caminos bajo incertidumbre propuesto en esta tesis busca el camino que minimiza el riesgo en cada uno de sus pasos. Esta solución considera que, una vez que el robot alcanza un paso kde la trayectoria, no importa cual era el riesgo de los k−1 pasos anteriores ya que esta parte del recorrido ya ha sido atravesado con éxito y sólo le preocupa si será capaz de atravesar el siguiente paso k+1. Otro tipo de estrategias tratan de minimizar el riesgo acumulado en todo el camino y estamos actualmente estudiando esta otra línea de investigación donde también consideramos el coste de elegir un camino incorrecto y tener que rectificar. El algoritmo de localización multi-robot y mejora de mapa presentado en el capítulo 6 podría extenderse para considerar nuevas características no presentes en el mapa previo. En el caso de características no identificables requeriría un consenso entre robots para decidir si las nuevas características observadas por varios robots son las mismas o no. Además, sería necesario prestar atención al mantenimiento del mapa para un rendimiento a largo plazo, ya que la actualización del mapa indefinidamente podría llevar a estimaciones excesivamente optimistas. La división óptima de submapas y las comunicaciones asíncronas también podrían ser investigadas. El método de SLAM multi-robot basado en grafos presentado en el capítulo 7 puede mostrar zonas del mapa mal alineadas si los robots no coincidieron al mismo tiempo en esa zona, lo cual resolvimos procesando el mapa conjunto en una fase posterior. Este paso adicional puede evitarse en la implementación ideal pero ineficiente en la que los robots comparten sus mapas completos. En su lugar, los robots podrían intercambiar mapas condensados de áreas estratégicas del entorno que hubieran visitado en distintos instantes. Además, el algoritmo de alineación de mapas podría utilizarse no solamente para alinear mapas locales sino también para desambiguar entre alineaciones obtenidas en distintas partes de la trayectoria. Esta ambigüedad también puede aparecer cuando dos robots se encuentran en escenarios diferentes pero simétricos. Un sistema de identificación de robots podría utilizarse para resolver este problema aunque a costa de restringir los movimientos de los robots para que sus identificadores fueran visibles entre sí.
Appendix A Equations of the EKF-based Localization of the Formation A.1 Process model equations Figure A.1: Geometric relations between the robot leader R0and a robot follower Rjduring the state transition from time step k−1 to time step k. Given the geometric relations given in Fig. (A.1), the state of the robot formation is propagated from time step k−1 to time step kusing the estimated displacements xRk−1 Rk∼ N(ˆ xRk−1 Rk,PRk−1 Rk)through the following function: xRk=f(xRk−1,xRk−1 Rk)(A.1) = fR0(xB R0,k−1,xR0,k−1 R0,k) fRj(xR0,k−1 R0,k,xR0,k−1 Rj,k−1,xRj,k−1 Rj,k)!= xB R0,k−1⊕xR0,k−1 R0,k ⊖xR0,k−1 R0,k⊕xR0,k−1 Rj,k−1⊕xRj,k−1 Rj,k!(A.2) where fR0and fRjare the state transition functions for the robot leader and for a robot follower Rjrespectively. 127
128 A. Equations of the EKF-based Localization of the Formation Linearization of the equations using first order Taylor series expansion give us: fR0≃fR0(ˆ xB R0,k−1,ˆ xR0,k−1 R0,k)+FR0(xB R0,k−1−ˆ xB R0,k−1)+GR0(xR0,k−1 R0,k−ˆ xR0,k−1 R0,k)(A.3) fRj≃fRj(ˆ xR0,k−1 R0,k,ˆ xR0,k−1 Rj,k−1,ˆ xRj,k−1 Rj,k) +GR0 Rj(xR0,k−1 R0,k−ˆ xR0,k−1 R0,k)+FRj(xR0,k−1 Rj,k−1−ˆ xR0,k−1 Rj,k−1)+GRj(xRj,k−1 Rj,k−ˆ xRj,k−1 Rj,k)(A.4) where FR0= ∂ fR0 ∂ xB R0,k−1 =J1⊕{ˆ xB R0,k−1,ˆ xR0,k−1 R0,k}(A.5) GR0= ∂ fR0 ∂ xR0,k−1 R0,k =J2⊕{ˆ xB R0,k−1,ˆ xR0,k−1 R0,k}(A.6) GR0 Rj= ∂ fRj ∂ xR0,k−1 R0,k =J1⊕{⊖ˆ xR0,k−1 R0,k,ˆ xR0,k−1 Rj,k}J⊖{ˆ xR0,k−1 R0,k}(A.7) FRj= ∂ fRj ∂ xR0,k−1 Rj,k−1 =J2⊕{⊖ˆ xR0,k−1 R0,k,ˆ xR0,k−1 Rj,k}J1⊕{ˆ xR0,k−1 Rj,k−1,ˆ xRj,k−1 Rj,k}(A.8) GRj= ∂ fRj ∂ xRj,k−1 Rj,k =J2⊕{⊖ˆ xR0,k−1 R0,k,ˆ xR0,k−1 Rj,k}J2⊕{ˆ xR0,k−1 Rj,k−1,ˆ xRj,k−1 Rj,k}(A.9) Then, the EKF Prediction of the robot formation is, ˆ xRk|k−1=f(ˆ xRk−1,ˆ xRk−1 Rk)(A.10) PRk|k−1=Fk−1PRk−1FT k−1+Gk−1PRk−1 RkGT k−1(A.11) with, Fk−1=FR00 0 FRj;Gk−1= GR00 GR0 RjGRj!(A.12)
A.2. Measurement model equations 129 A.2 Measurement model equations Figure A.2: Pairing between an observation Eiand a feature Fiin the case of a robot leader (R0, left) and a robot follower (Rj, right). Following the geometric relations represented in Fig. (A.2) a sensor observation Ei is related to the robot’s position and an environmental feature Fithrough the nonlinear measurement model, zk=hk(xRk,yFk)+wk(A.13) = hR0(xB R0,k,yFk) hRj(xB R0,k,xR0,k Rj,k,yFk)!+wk= ⊖xB R0,k⊕yFi ⊖xR0,k Rj,k⊖xB R0,k⊕yFi!+wk(A.14) where wkis a zero-mean white gaussian noise with covariance matrix Rk. Due to our leader-centric representation of the robot formation, function hkdiffers depending on the role of the robot, being hR0and hRjthe function for the robot leader and for a robot follower Rjrespectively. The use of the EKF requires a first order linearization of the nonlinear measurement model, thus, hR0≃hR0(ˆ xB R0,k,ˆ yFk)+HR0(xB R0,k−ˆ xB R0,k)+GR0(yFk−ˆ yFk)(A.15) hRj≃hRj(ˆ xB R0,k,ˆ xR0,k Rj,k,ˆ yFk) +HR0 Rj(xB R0,k−ˆ xB R0,k)+HRj(xR0,k Rj,k−ˆ xR0,k Rj,k)+GRj(yFk−ˆ yFk)(A.16)
130 A. Equations of the EKF-based Localization of the Formation where HR0= ∂ hR0 ∂ xB R0,k =J1⊕{⊖ˆ xB R0,k,ˆ yFi}J⊖{ˆ xB R0,k}(A.17) GR0= ∂ hR0 ∂ yFk =J2⊕{⊖ˆ xB R0,k,ˆ yFi}(A.18) HR0 Rj= ∂ hRj ∂ xB R0,k =J1⊕{⊖ˆ xB Rj,k,ˆ yFi}J2⊕{⊖ˆ xR0,k Rj,k,⊖ˆ xB R0,k}J⊖{ˆ xB R0,k}(A.19) HRj= ∂ hRj ∂ xR0,k Rj,k =J1⊕{⊖ˆ xB Rj,k,ˆ yFi}J1⊕{⊖ˆ xR0,k Rj,k,⊖ˆ xB R0,k}J⊖{ˆ xR0,k Rj,k}(A.20) GRj= ∂ hRj ∂ yFk =J2⊕{⊖ˆ xB Rj,k,ˆ yFi}(A.21) The classical EKF update equations provide estimates for the state vector ˆ xRk|kand its associated covariance matrix PRk|k: ˆ xRk|k=ˆ xRk|k−1+Kk(zk−hk(ˆ xRk|k−1,ˆ yFk)) PRk|k= (I−KkHk)PRk|k−1(A.22) using the filter gain obtained as, Kk=PRk|k−1HT k(HkPRk|k−1HT k+GFkPFkGT Fk+Rk)−1(A.23) where matrices Hkand GFkare formed by, Hk= HR00 HR0 RjHRj!;GFk=0... GR00 0 GRj... 0(A.24)