Reinforcement Learning (RL) is a general purpose framework for designing controllers for dynamical systems. It tries to learn a controller (policy) by trial and error. Traditionally, RL has only been applicable to simple problems with low dimensional state space, but the usage of Deep Neural Networks as function approximators has made this approach suitable for more complex models and for real-life use cases. This extension is called Deep RL (DRL). Of course, a kind of learning based on trial and error may not be physically realizable for real agents. Consider for example a robot that has to learn a policy to make it walk. It is not possible to allow the robot to simply try a policy and see if it works, because this may be unsafe for the agent, that could be irreparably damaged following it. To prevent this problem, we must consider an extension of the classic DRL, that is the Safe DRL. With this approach we try to make a safe and effective learning, in order to be able to apply this techniques to the real world. \\ The objective of this thesis is to apply Safe DRL algorithms to mobile robots, in order to make them able to perform certain tasks such target reaching and obstacle avoidance. \\ The first part of the thesis concerns theoretical aspects of Markov Decision Processes, Reinforcement Learning and Safe Reinforcement Learning. In the following chapters the agents and the environments used for the training are described in detail, as well as the implementation of the chosen algorithms. In the last part all the obtained results and the possible future development of this work are shown.
Il Reinforcement Learning (RL) è un framework di uso generale per la progettazione di controllori per sistemi dinamici. Cerca di apprendere un controllore (policy) basandosi sul trial-and-error. Tradizionalmente, il RL è stato applicabile solo a problemi semplici con spazio degli stati a bassa dimensione, ma l'uso di reti neurali profonde come approssimatori di funzioni ha reso questo approccio adatto a modelli più complessi e per casi d'uso reali. Questa estensione è chiamata Deep RL (DRL). Naturalmente, un tipo di apprendimento basato su prove ed errori potrebbe non essere fisicamente realizzabile per gli agenti reali. Prendiamo ad esempio un robot che deve imparare una politica atta a farlo camminare. Non è possibile consentire all'agente di provare semplicemente una politica e valutarne il funzionamento, perché ciò potrebbe essere pericoloso per l'agente, che potrebbe danneggiarsi irreparabilmente. Per prevenire questo problema dobbiamo considerare un'estensione del DRL classico, ovvero il Safe DRL. Con questo approccio cerchiamo di fare un apprendimento sicuro ed efficace, per poter applicare queste tecniche al mondo reale. L'obiettivo di questa tesi è applicare algoritmi di Safe DRL a robot mobili, al fine di renderli in grado di svolgere determinati compiti come il raggiungimento di obiettivi e l'evitamento di ostacoli. La prima parte della tesi riguarda gli aspetti teorici dei Processi Decisionali di Markov, del Reinforcement Learning e del Safe Reinforcement Learning. Nei capitoli successivi vengono descritti in dettaglio gli agenti e gli ambienti utilizzati per il training, nonché l'implementazione degli algoritmi scelti. Nell'ultima parte vengono mostrati tutti i risultati ottenuti e il possibile sviluppo futuro di questo lavoro.
SAFE REINFORCEMENT LEARNING PER APPLICAZIONI DI ROBOTICA MOBILE
NIRO, ANTONIO
2020/2021
Abstract
Reinforcement Learning (RL) is a general purpose framework for designing controllers for dynamical systems. It tries to learn a controller (policy) by trial and error. Traditionally, RL has only been applicable to simple problems with low dimensional state space, but the usage of Deep Neural Networks as function approximators has made this approach suitable for more complex models and for real-life use cases. This extension is called Deep RL (DRL). Of course, a kind of learning based on trial and error may not be physically realizable for real agents. Consider for example a robot that has to learn a policy to make it walk. It is not possible to allow the robot to simply try a policy and see if it works, because this may be unsafe for the agent, that could be irreparably damaged following it. To prevent this problem, we must consider an extension of the classic DRL, that is the Safe DRL. With this approach we try to make a safe and effective learning, in order to be able to apply this techniques to the real world. \\ The objective of this thesis is to apply Safe DRL algorithms to mobile robots, in order to make them able to perform certain tasks such target reaching and obstacle avoidance. \\ The first part of the thesis concerns theoretical aspects of Markov Decision Processes, Reinforcement Learning and Safe Reinforcement Learning. In the following chapters the agents and the environments used for the training are described in detail, as well as the implementation of the chosen algorithms. In the last part all the obtained results and the possible future development of this work are shown.I documenti in UNITESI sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.
https://hdl.handle.net/20.500.14253/70324