scieee AI-readable full text Open interactive document viewer

ALFA-Gs: ground segmentation method for LiDAR point clouds

Matias, Diogo Pereira

Abstract

The increasing focus on road safety combined with the advancements in electronic technologies are leading to heavy investment in research and development of autonomous mobility systems by the automotive industry. These vehicles rely on sophisticated perception systems, which use a variety of sensors to gather data about their surroundings, being Light Detection And Ranging (LiDAR) sensors a crucial component in achieving redundant and trustful Autonomous Vehicles (AV)s, due to their precision. However, LiDAR sensors are known for generating high volumes of data per second that need to be processed repeatedly to ensure the expected behaviour and safety requirements of autonomous systems. So, in order to reduce the object detection and classification algorithms’ time consumption and increase accuracy, a ground segmentation preprocessing step is required for distinguishing the ground from the non-ground sensor readings. This initial selection allows the perception systems to focus their resources on relevant objects and obstacles in the scene, over non-critical areas, enhancing the accuracy and reducing the processing time of the overall perception pipeline. This dissertation proposes ALFA-Gs, a generic LiDAR ground segmentation solution providing both full software as well as hardware hybrid approaches of a state-of-the-art ground segmentation algorithm. ALFA-Gs takes advantage of custom-built hardware accelerators designed to accelerate the ground segmentation step and guarantee real-time performance, even on embedded platform systems. This solution also provides integration with the Robot Operating System (ROS), allowing for the configuration of segmentation parameters through the ROS interface as well as communication with high-level applications and interoperability with other processing nodes. The devised system underwent rigorous testing and validation by resorting to a comprehensive set of metrics responsible for ensuring the quality and real-time requirements of the ground segmentation solution. From the results of the evaluation is possible to conclude that the ALFA-Gs system surpasses its initial real-time performance target by reducing the algorithm’s time consumption to nearly one-fourth of the envisioned while maintaining a commendable level of accuracy, with no substantial adverse effects on the accuracy.

Full text

Universidade do Minho Escola de Engenharia Diogo Pereira Matias ALFA-Gs: Ground Segmentation Method for LiDAR Point Clouds Julho de 2023 Universidade do Minho Escola de Engenharia Diogo Pereira Matias ALFA-Gs: Ground Segmentation Method for LiDAR Point Clouds Dissertação de Mestrado Mestrado em Engenharia Eletrónica Industrial e Computadores Trabalho efetuado sob a orientação de: Professor Doutor João Monteiro Professor Doutor Tiago Gomes Julho de 2023 DIREITOS DE AUTOR E CONDIÇÕES DE UTILIZAÇÃO DO TRABALHO POR TERCEIROS Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Agradecimentos Este trabalho marca o fim de um percurso académico repleto de experiências novas e desafios que incentivaram a autossuperação e contribuíram para o meu crescimento tanto a nível pessoal como académico. Gostava de começar por agradecer aos meus orientadores, Professor Doutor Tiago Gomes e Mestre Ricardo Roriz, pelo conhecimento transmitido, orientação e pelo pragmatismo na tomada de decisões. Também gostava de agradecer o apoio e disponibilidade prestada por parte dos colegas mais experientes, André Campos e Luís Cunha que por vezes fizeram com que o aparentemente impossível se tornasse possível. Um agradecimento especial aos colegas de laboratório, Vítor Ribeiro, Gonçalo Freitas, e em particular ao Francisco Dias e Heitor Silva, eternos rivais do ténis de mesa, que também integraram o projeto ALFA e com quem discuti inúmeros tópicos diariamente no decorrer da dissertação. Ao meu grupo de amigos que sentiu a falta de comparência em alguns fins de semana, à minha família por toda a força, compreensão e apoio prestado, e claro, à Sofia por ter-me ajudado e motivado em todos os momentos de maior pressão. Um profundo obrigado a todos que direta e indiretamente fizeram com que esta dissertação fosse possível. i STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. ii Abstract ALFA-Gs: Ground Segmentation Method for LiDAR Point Clouds The increasing focus on road safety combined with the advancements in electronic technologies are leading to heavy investment in research and development of autonomous mobility systems by the automotive industry. These vehicles rely on sophisticated perception systems, which use a variety of sensors to gather data about their surroundings, being Light Detection And Ranging (LiDAR) sensors a crucial component in achieving redundant and trustful Autonomous Vehicles (AV)s, due to their precision. However, LiDAR sensors are known for generating high volumes of data per second that need to be processed repeatedly to ensure the expected behaviour and safety requirements of autonomous systems. So, in order to reduce the object detection and classification algorithms’ time consumption and increase accuracy, a ground segmentation preprocessing step is required for distinguishing the ground from the non-ground sensor readings. This initial selection allows the perception systems to focus their resources on relevant objects and obstacles in the scene, over non-critical areas, enhancing the accuracy and reducing the processing time of the overall perception pipeline. This dissertation proposes ALFA-Gs, a generic LiDAR ground segmentation solution providing both full software as well as hardware hybrid approaches of a state-of-the-art ground segmentation algorithm. ALFA-Gs takes advantage of custom-built hardware accelerators designed to accelerate the ground segmentation step and guarantee real-time performance, even on embedded platform systems. This solution also provides integration with the Robot Operating System (ROS), allowing for the configuration of segmentation parameters through the ROS interface as well as communication with high-level applications and interoperability with other processing nodes. The devised system underwent rigorous testing and validation by resorting to a comprehensive set of metrics responsible for ensuring the quality and real-time requirements of the ground segmentation solution. From the results of the evaluation is possible to conclude that the ALFA-Gs system surpasses its initial real-time performance target by reducing the algorithm’s time consumption to nearly one-fourth of the envisioned while maintaining a commendable level of accuracy, with no substantial adverse effects on the accuracy. Keywords: Autonomous vehicles, LiDAR, FPGA, Hardware-acceleration, Point cloud, Ground segmentation. iii Resumo ALFA-Gs: Método de Segmentação de Solo para Sistemas LiDAR A crescente preocupação com a segurança rodoviária aliada aos avanços na electrónica, tem conduzido a um forte investimento na investigação e desenvolvimento de sistemas de mobilidade autónoma. Estes veículos dependem de sistemas de perceção sofisticados, que utilizam uma panóplia de sensores responsáveis por recolher dados relativos ao ambiente circundante, sendo os sensores Light Detection And Ranging (LiDAR) um componente crucial no desenvolvimento de veículos autónomos (AV) redundantes e fiáveis, devido à sua precisão. No entanto, estes são conhecidos por gerarem grandes volumes de dados por segundo, requerendo um processamento constante dos mesmos de modo a cumprir com os requisitos de segurança dos sistemas autónomos. Deste modo, para reduzir o tempo despendido na deteção e classificação de objetos, é adicionada uma etapa de pré-processamento de segmentação do solo, permitindo a distinção entre as captações de dados relacionados com o solo das restantes. Esta seleção inicial permite que os sistemas de perceção aloquem os seus recursos ao processamento de informação relevante para o contexto, com obstáculos, em detrimento de áreas não críticas, aumentando a precisão e reduzindo o tempo de processamento global. Esta dissertação propõe a framework ALFA-Gs, uma solução genérica de segmentação de solo LiDAR que fornece tanto abordagens puramente baseadas em software como também abordagens híbridas. No caso das abordagens hibridas, esta framework tira partido de aceleradores em hardware desenhados para garantir o processamento dos dados em tempo real, mesmo em sistemas embebidos. Esta solução contem ainda integração com o Robot Operating System (ROS), permitindo a configuração de parâmetros através da interface ROS, bem como a comunicação com aplicações de alto nível e interoperabilidade com outros nós de processamento. O sistema foi submetido a rigorosos testes, recorrendo a um conjunto abrangente de métricas responsáveis por garantir a qualidade da segmentação e o processamento em tempo real. Através desta avaliação é possível concluir que o sistema ALFA-Gs ultrapassa o seu objetivo inicial, reduzindo o tempo de processamento para cerca de um quarto do previsto, sem apresentar uma redução significativa da precisão do sistema. Palavras-chave: Condução autónoma, LiDAR, FPGA, Aceleração em hardware, Segementação de solo. iv Contents List of Figures ix List of Tables x Glossary xi 1 Introduction 1 1.1 MainGoals...................................... 2 1.2 Structure....................................... 3 2 Background and State of the Art 4 2.1 LiDAR and the Automotive Industry . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2 LiDARTechnology................................... 6 2.2.1 Fundamental Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2.2 Challenges.................................. 11 2.2.3 RelatedWork................................. 14 2.2.4 2.5DGrid-Based............................... 15 2.2.5 GroundModelling .............................. 18 2.2.6 Adjacent Points and Local Features . . . . . . . . . . . . . . . . . . . . . . 22 2.2.7 Higher Order Inference . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.2.8 Learn-Based................................. 27 2.3 Discussion ...................................... 30 3 Platform and Tools 35 3.1 Yocto OpenEmbedded Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 3.2 RobotOperatingSystem................................ 35 3.3 OpenCV ....................................... 36 3.4 PointCloudLibrary.................................. 36 3.5 SemanticKITTI.................................... 37 3.6 Reconfigurable Technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 v Contents vi 3.7 Automotive LiDAR Framework for Automotive . . . . . . . . . . . . . . . . . . . . . . 38 4 Alfa-Gs Design 41 4.1 SystemArchitecture.................................. 41 4.2 Ground Segmentation Technique . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 4.2.1 Point Cloud to Range Image Conversion . . . . . . . . . . . . . . . . . . . . 43 4.2.2 Angle Image Creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 4.2.3 Angle Image Smoothing . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 4.2.4 Segmentation ................................ 47 4.2.5 Range Image to Point Cloud Conversion . . . . . . . . . . . . . . . . . . . . 48 4.3 Advanced LiDAR Framework for Automotive (ALFA)-Gs Software Design . . . . . . . . . 49 4.4 ALFA-GsHybridDesign ................................ 50 5 Alfa-Gs Implementation 52 5.1 ALFA-Gs Software Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 5.1.1 ALFA-Gs Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . 54 5.2 ALFA-Gs Hybrid Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 5.2.1 Double Data Rate (DDR) Memory Organization . . . . . . . . . . . . . . . . 56 5.2.2 ALFA-Gs Hardware Extension . . . . . . . . . . . . . . . . . . . . . . . . . 59 5.2.2.1 Module Interface . . . . . . . . . . . . . . . . . . . . . . . . . 60 5.2.2.2 Range Image Creator . . . . . . . . . . . . . . . . . . . . . . . 61 5.2.2.3 Trigonometry Calculator . . . . . . . . . . . . . . . . . . . . . . 63 5.2.2.4 Angle Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . 65 5.2.2.5 Moving Average Filter . . . . . . . . . . . . . . . . . . . . . . . 67 5.2.2.6 Breadth-First Search and Point Cloud Reconstruction . . . . . . . . 68 6 Evaluations and Results 70 6.1 TestsSetup...................................... 70 6.2 EvaluationMetrics .................................. 71 6.3 Moving Average and Savitzky-Golay Filters Comparison . . . . . . . . . . . . . . . . . 72 6.4 Performanceevaluation................................ 73 6.4.1 ALFA-Gs visual validation . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 6.4.2 ALFA-Gs performance metrics evaluation . . . . . . . . . . . . . . . . . . . 75 6.5 HardwareResources ................................. 77 6.6 ResultsDiscussion .................................. 77 7 Conclusion 79 7.1 FutureWork ..................................... 80 Glossary xiii LK Lane Keeping LOAM Lidar Odometry and Lidar Mapping LUT Look-Up Tables MCU Microcontroller Unit MEMS Microelectromechanical systems MIT Massachusetts Institute of Technology MMU Memory Management Unit MPSoC MultiProcessor System on Chip MRF Markov Random Field MSE Mean Squared Error OPA Optical Phased Arrays OpenCV Open Source Computer Vision PBEA Projection By Elevation Angle PBID Projection By Laser ID PCA Principal Component Analysis PCL Point Cloud Library PL Programmable logic PS Processing System Radar Radio Detection And Ranging RAM Random Access Memory RANSAC RANdom SAmple Consensus Recallg Recall Rate of the Ground Recallo Recall Rate of the Obstacle RGB Red, Green and Blue RLWR Robust Locally Weighted Regression Glossary xiv ROS Robot Operation System SAE Society of Automotive Engineers SDRAM Synchronous Dynamic Random-Access SIU Sensor Interface Unit SLAM Simultaneous Localization and Mapping SNR Signal-to-Noise Ratio SoC System on chip SRAM Static Random-Access TCS Traction Control System ToF Time of Flight V2X Vehicle to everything 1. Introduction In the very near future, Autonomous Vehicles (AV)s with full self-driving features will circulate on our public roads [1]. Nonetheless, most intelligent vehicles today are still manually controlled, corresponding to the first three levels of driving automation defined by the society of automotive engineers (SAE), i.e., the six levels of automation required to reach full driving automation features. According to the SAE J3016 standard (rev. 202104) [2], in levels 0, 1, and 2, the driver must actively monitor the driving activities, while in levels 3, 4, and 5, the automated vehicle should be able to monitor and navigate the environment, autonomously. Despite current cars supporting only features up to SAE-level 2, e.g., modern advanced driver-assistance systems (ADAS) can already provide partial vehicle’s automation, car manufacturers are only now receiving approvals for SAE-level 3 [3, 4], which defines explicitly that the automated driving function can take over certain driving tasks. However, a driver is still required and must be ready to take control of the car at all times when prompted to intervene by the vehicle. Achieving safe automated driving features requires robust and reliable perception systems [5] that depend on multiple sensor setups to navigate the environment, which usually include cameras, RADAR devices, and Light Detection and Ranging (LiDAR) sensors [6, 7, 8]. For instance, the German Federal Motor Transport Authority (KBA) has finally granted the first SAE-level 3 and UN Regulation number 157 [4] approval to Mercedes-Benz [3], whose perception system includes a wetness sensor in the wheel, LiDAR sensors, microphones, and a camera in the rear window, primarily used for detecting blue lights and other special signals from emergency vehicles. This technical approval was mainly possible due to the adoption of LiDAR to navigate the environment. A LiDAR sensor works by firing a laser pulse to a target and capturing the reflected signal, where the distance to the target is obtained by calculating the round-trip time of the traveling light. Its output is a 3D point cloud that can be used for terrain mapping and recreating the surrounding environment. Thus, this technology has become widely popular in several airborne laser scanning (ALS) applications, such as archaeology [9, 10, 11], geology [12], forestry [13, 14], geography and topography [14, 15, 16, 17, 18], surveying [14], laser altimetry [19], and many more [14]. Due to its wide success in such domains, LiDAR sensors recently started to be adopted by the automotive industry in the perception system of the car. Their 3D point cloud can be very useful in several autonomous driving applications [20, 21, 22], such as obstacles, objects, and vehicles detection [23, 24, 25, 26]; pedestrians recognition and tracking [27, 28]; ground segmentation for road detection and navigation [29]; among others [30]. Because this 1 Chapter 1. Introduction 2 technology works with active illumination, LiDAR sensors allow round-the-clock observations, providing accurate measurements of the vehicle’s vicinity up to hundreds of meters. However, several challenges may affect the processing of the received point cloud such as LiDAR mutual interference [31, 32, 33], and adverse weather [34, 35, 36, 37, 38]. Also, because a high-resolution sensor can produce a considerable amount of data, e.g., the Velodyne sensor VLS-128 can output up to 9.6M points per second, it is important to handle the point cloud before being delivered to high-level applications, both in terms of packet handling [39], data compression [40, 41], and point cloud denoising [36]. Regarding autonomous navigation capabilities, the vehicle must perceive the surroundings by understanding the location and shape of the driving environment. Thus, road boundaries, such as curbs, asphalt berms, walls, and other geometric features, are typical road characteristics that the perception system must automatically detect to navigate the environment safely [42]. However, detecting such features requires the perception system to perform ground and object segmentation techniques to efficiently identify or remove undesired object data [23, 43, 44, 45]. Because this topic has been thoroughly studied in the last few years, there is a plethora of ground segmentation methods in the literature that can be used to extract road boundary information from the point cloud. Since those methods can follow different approaches, there are several trade-offs, e.g., accuracy, performance, computing requirements, etc., that must be considered before choosing the most appropriate method to deploy in a perception system. In the case of resource-limited embedded platforms, the factors that impact the deployment of ground segmentation solutions are not only the computing requirements but also the ability to perform ground segmentation tasks at real-time, being this the core aspect that this dissertation will tackle. 1.1 Main Goals This dissertation aims to perform point cloud ground segmentation by introducing ALFA-Gs, a framework especially designed to perform ground segmentation-related tasks in both desktop and resourcelimited embedded platforms. Also, ALFA-Gs offers hardware-acceleration capabilities in order to improve time-related performance metrics. Thereby, in order to to successfully develop and deploy ALFA-Gs the following requirements must be met: 1. Perform a literature review and qualitative comparison of the state-of-the-art approaches to detect and extract ground points from LiDAR data, applied in an automotive scenario. 2. ALFA-Gs must specialize in a certain solution and adapt it to perform ground segmentation on resource-limited embedded platforms, interacting with current 3D LiDAR point cloud standards, in order to facilitate the integration with high-level applications. Furthermore, since the majority of native LiDAR sensor drivers support Robot Operation System (ROS), ALFA-Gs must have a ROS interface, ensuring interoperability with additional systems. Chapter 1. Introduction 3 3. ALFA-Gs must explore hardware-accelerated capabilities, with the purpose of addressing possible real-time constraints within execution environments. Nevertheless, there must also be an option for the framework to run entirely on a software-only based approach, in order to comply with ALFA’s flexibility requirements. 4. The developed solution must be evaluated according to several performance metrics, with the purpose of ensuring a complete and meaningful assessment of the system’s effectiveness. 1.2 Structure This dissertation is structured as follows: Chapter (2) starts by presenting the concepts and applications behind LiDAR. Then depicts current ground segmentation methods and proposes a taxonomy for these approaches. The chapter finalizes with a qualitative comparison and discussion between the state- of-the-art methods. Chapter (3) describes the platforms and tools used to develop this dissertation, as well as their operation. Thereafter, Chapter (4) provides an overview of the ALFA-Gs system architecture, the selected ground segmentation method and different design approaches. Next, Chapter (5) includes a detailed explanation of the system’s implementation, while Chapter (6) describes the system’s hardware requirements, together with with an in-depth evaluation of the system’s performance. Finally, Chapter (7) concludes the developed work on this dissertation and proposes future directions. 2. Background and State of the Art This Chapter addresses the main concepts and challenges of the LiDAR technology in the automotive industry. It starts with Section 2.1, where the LiDAR technology is contextualised in the automotive field. Then in Section 2.2, the main fundamental concepts behind the LiDAR technology are covered, focusing on its measuring principles and common performance metrics. Thereafter, an overview of the main LiDAR imaging systems is performed at Sub-section 2.2.1, followed by an analysis of the technology applications and challenges in Sub-sections 2.2.1 and 2.2.2, correspondingly. The Chapter closes in Section 2.2.3, with a review and discussion of the different implementations proposed by multiple methods, serving as the basis of this dissertation. 2.1 LiDAR and the Automotive Industry For the last 20 years, autonomous driving has been a well-established research topic, and the automotive industry is continuously investing in Advanced Driver-Assistance Systems (ADAS) with the objective of increasing the driver’s comfort and safety while driving [46]. These systems have been in use for quite a long period of time, being the Anti-lock braking system (ABS) the first driver assistance system introduced in the market, around the 1970s [47], and since that, multiple assistance systems have been deployed in the consumer market, such as the Parking Sensors, Blind Spot Detection (BSD), Electronic Stability Control (ESC), Traction Control System (TCS), Cruise Control (CC), Lane Keeping (LK), or even Autonomous Parking. All these systems are categorized under the six levels of automated driving defined by the Society of Automotive Engineers (SAE), ranging from no driving automation (level 0) to full driving automation (level 5) [48]. In the current days, the big players in the automotive industry are already deploying sophisticated solutions aiming to reach SAE-level 5 vehicles equipped with several ADAS features. This pushes research to advance in different sensing technologies and consequently results in the creation of more robust perception systems, enabling the automotive industry to mature its prototypes and start providing commercial products that lead to the general adoption of autonomous driving vehicles. For this reason, ADAS are considered to be the precursors to fully autonomous driving since these multi-sensor systems made the first steps towards sensing the surrounding environment and communicating with it, being these key challenges of autonomous mobility [49]. 4 Chapter 2. Background and State of the Art 5 Figure 2.1: Multi-sensor perception system (image extracted from [55]). Figure 2.1 depicts a typical multi-sensor perception system composed of cameras, Radio Detection And Ranging (Radar), and LiDAR sensors, which can help in providing cross-traffic alerts, blind spot assist [50], Adaptive Cruise Control (ACC) [51], pedestrian detection and avoidance [52], and Automatic Emergency Braking (AEB) [53, 54]. Together, all these sensors allow retrieving redundant information about the surrounding environment, ensuring that high-level autonomous driving decisions are made based on accurate representations of the vehicle’s vicinity. Currently, it is believed that this type of multi-sensor data fusion enriches the system’s environmental perception and solves the majority of the drawbacks inherent to each system [56], creating the most reliable solution for autonomous driving [57]. For example, Radar sensors can measure distances and detect obstacles, however, the output data does not allow the perception systems to distinguish different types of objects, or even cameras that despite being able of capturing large amounts of information do not perform well in low-light conditions. In these situations, LiDAR data is a valuable asset in multi-sensor systems since it can provide high resolution and real-time 3D representations of the environment, proving to be extremely helpful in object detection and classification even in poorly illuminated scenarios [56]. These sensors can provide up to 300 meters of real-time 3D information about the vehicle’s surroundings. Compared with Radar, which shares the same working principle of measuring distances based on the round-trip time of an emitted signal, LiDAR can operate in much higher frequencies due to the light properties. Moreover, while Radar sensors only provide angular resolutions of at most 1 degree, which, as previously stated, is insufficient for object shape estimation [58], LiDAR sensors can achieve resolutions of tenths of degrees. Thus, their output can be used for object segmentation rather than solely object detection. Chapter 2. Background and State of the Art 6 Nonetheless, because LiDAR sensors use light, they still present disadvantages when compared with radiobased sensors. Since light has high absorption in water, adverse weather conditions, such as heavy rainfall, can affect the overall performance of LiDAR. On the other hand, the higher wavelengths used in Radar can present good performance in poor weather, making this sensor capable of covering longer distances but with less emitted power. Regarding the resolution of the output data, cameras can achieve colored and high-resolution information about the driving environment. However, as mentioned earlier, they are subject to several light-related issues, e.g., they cannot correctly work at night or in the presence of intense light sources, which can turn the segmentation tasks relying solely on cameras quite challenging. Also, depth information about the environment is only possible with stereo cameras and further image processing, which affects the distance measurements. 2.2 LiDAR Technology 2.2.1 Fundamental Concepts There is a plethora of LiDAR sensors currently available on the market [21, 59]. Despite all sharing the same light-based operation properties, manufacturers already provide different measurement and imaging systems approaches, which translates into different performance metrics and overall costs. Transmitted Signal Backscattered Signal Emitter Receiver LiDAR RANGE ToF TARGET Figure 2.2: LiDAR Working Principle (image extracted from [55]). As depicted in Figure 2.2, a LiDAR sensor uses a light signal to measure distances, which are calculated based on the round-trip delay (τ) between a signal emitted by a laser and reflected by a target. Since the speed of light (c) is previously known, the distance (R) to the target is calculated using Equation 2.1. R=1 2cτ (2.1) Chapter 2. Background and State of the Art 7 Measuring Principles The round-trip (τ) can be achieved in multiple ways, such as by modulating the intensity, phase, or even the frequency of the transmitted signal, and then measuring the time required for that modulation pattern to be sent back to the receiver [60]. Each of these methods presents its own specificities in performing range detection that might be decisive factors in order to fulfill the requirements and constraints of the system. The most straightforward and predominant approach is the pulsed Time of Flight (ToF) where a short light pulse is emitted towards the target, starting a timer that counts until the same pulse echoes back at the detector, setting up a distance according to the already mentioned ToF principle [56]. This method has several advantages including relatively simple implementation and long-distance measurements, including outdoor environments. However, the Signal-to-Noise Ratio (SNR) of the measurement may be low, requiring intense light pulses within eye-safety limits to solve this problem. That can only be achieved with large amplification factors in detection, which together with high-frequency rates might increase significantly the price and complexity of the overall system [60]. ToF Time Time Amplitude Amplitude Figure 2.3: Pulsed Direct ToF. Another type of approach is the usage of continuous light waves, instead of intermittent pulses of light, modulating the light’s intensity, or its frequency, avoiding high peak power emissions that can be harmful to the eyes [56]. These techniques are known as Amplitude Modulated Continuous Wave (AMCW) and Frequency Modulated Continuous Wave (FMCW) respectively. In AMCW LiDARs a continuous-wave or quasi-continuous-wave is used as the transmitter, and the intensity of the light source is modulated while its frequency is kept constant. It makes use of the phase shift induced in the signal from the round-trip to the target, in order to calculate the distance to the target. So, in other words, the detection and evaluation of the phase shift between the emitted and the received signals is the principle that enables the computation of the target’s distance, being that the phase difference is proportional to the distance traveled by the signal [60, 61]. This method presents the advantage of achieving precisions comparable to the pulsed ToF at moderate ranges, being an attractive choice for short-range indoor applications. However, this technology is not the most suitable for multi-target Chapter 2. Background and State of the Art 8 detection, has limited sensibility, and cannot perform as expected at high ranges due to the emergence of the 2πambiguity problem, when the frequency is increased for high distance resolution [60, 61, 62]. ToF Time Amplitude Amplitude Time Figure 2.4: Amplitude Modulated Continuous Wave. Last but not least, the FMCW-based LiDARs rely on the wave properties of the light, proving to be fundamentally different from the pulsed and AMCW schemes [61]. These systems emit up-chirp signals that during the round-trip delay change their frequency, causing constant frequency differences between the emitted and the received signals. The frequency differences are directly proportional to the range of the light source, making it possible to calculate the distance to the target [56]. This ranking methodology demands complex laser and optical requirements [63], and their internal components need to be precise and accurate, increasing the system complexity and price [60]. However, the high ranging precision combined with the unique ability to directly measure the velocity of a moving target, thanks to the Doppler effect [61], can outweigh the system disadvantages. Time Time Frequency Freequency fd fd = Frequency diference Figure 2.5: Frequency Modulated Continuous Wave. Concluding, despite the need for stable working conditions, the FMCW approach presents relevant advantages that may place them as the future natural choice for autonomous vehicles, since its coherent detection scheme enables improvements in resolution between one and two orders of magnitude in comparison with the other methods [60]. Chapter 2. Background and State of the Art 15 environment from the ground points. According to the subsequent tasks, filtered data can be used for the vehicle to safely navigate the environment, or for the object detection and classification steps. Mean-Based [64-68] Ground Segmentation Elevation Maps Learn-Based Adjacent Points and Local Features Higher Order Inference Ground Modeling Multi-level [69,70] Gaussian Process Regression (GPR) [90-93] Line Extraction [87,88] Plane Fitting [80,82-86] Channel-Based [94-100] Range Image [109-112] Clustering [90,105,106] Region Growing [101-104] Markov Random Field (MRF) [115-119] Conditional Random Field (CRF) [120,122] Convolutional Neural Networks (CNNs) [125-130,132-144] 2.5D Grid- Based Ocupancy Grid [74-79] Figure 2.9: Classification and taxonomy of existing ground segmentation methods (image extracted from [55]). This sub-chapter presents the most relevant contributions that could be found in the current state-of- the-art for the ground filtering step, resulting in the taxonomy illustrated in Figure 2.9: (1) 2.5D Grid-based algorithms (Sub-section 2.2.4), which can be further divided in Occupancy Grids and Elevation Maps (that further include Multi-level and Mean-based algorithms); (2) Ground Modelling (Sub-section 2.2.5), which can use Gaussian Process Regression (GPR), Line Extraction, and Plane Fitting approaches; (3) Adjacent points and Local features (Sub-section 2.2.6), which include Channel-based, Range Image, Clustering, and Region Growing methods; (4) Higher Order Inference (Sub-section 2.2.7), which deploy methods based on Conditional Random Field (CRF) and Markov Random Field (MRF) approaches; (5) and Learn-Based algorithms (Sub-section 2.2.8), which mainly apply CNNs to identify and perform the ground segmentation tasks. 2.2.4 2.5D Grid-Based Currently, modern LiDAR sensors may hold thousands of points in their 3D point cloud representations, which makes it harder to analyze the entire point cloud in real-time during the navigation tasks. To help in mitigating these problems, grid-based techniques use a tessellated 2D representation of the 3D space, where each cell contains information about the points inside. The utilization of this technique can drastically reduce the computational and memory requirements associated with the 3D point cloud representation. Chapter 2. Background and State of the Art 16 LiDAR 0 Figure 2.10: Visual representation of an Elevation Map (image extracted from [55]). Elevation Maps: This technique is the most used in 2.5D grid representations. As depicted by Figure 2.10 (top view representation of the surrounding environment), each cell contains relevant information about all points inside. Elevation maps can provide advantages in terms of noise reduction when compared with other methods. However, they still face problems in terms of vertical space representation as they fail to model the empty space between points, i.e., overhangs and treetops. Nevertheless, due to its simplicity, several algorithms leverage this technique for ground plane segmentation. Douillard et al.. [90] use a mean-based elevation map, i.e., each cell contains the average height of all points, followed by clustering techniques to detect and remove the ground points. The algorithm follows three simple steps: (1) calculates the surface gradients of each cell and classifies protruding objects and ground cells; (2) clusters adjacent ground cells; and (3) corrects artifacts wrongly generated by the gradient computations, e.g., if a cell that was classified as an object has an average height close to its neighboring ground cells, it is changed to a ground cell. Despite presenting good performance results, the proposed solution still needs further improvements to achieve real-time constraints. The works proposed by Asvadi et al.. [91] and Li et al.. [92] include, on each cell of the 2.5D elevation grid, the average height and the variance between all points. If both values are lower than a configured threshold, the cell is considered flat and classified as part of the ground plane. The first method was evaluated with the KITTI dataset using point cloud data from a Velodyne HDL-64, and the latter with data from a Velodyne HDL-64E sensor on an Intel i7 dual-core processor running at 3.4 GHz with 8 GB of RAM. Despite this method allowing for very accurate detection of planar objects, it can wrongly classify objects close to the ground as belonging to the ground plane. To address this issue, Meng et al.. [93] apply a height difference kernel over each cell and its neighbors, allowing for detecting cells with a slightly higher average height than neighboring cells. Despite improving the detection of low-height objects, extra steps are necessary to address uneven terrains, which significantly increases the overall algorithm’s complexity. There are several applications of these simple techniques, e.g., Tanaka et al.. evaluate terrain’s traversability by calculating its roughness and slope using an elevation map created from a HOKUYO Chapter 2. Background and State of the Art 17 Missclassified cells (a) Mean-based elevation map (sideview). Missclassified cells Traversable cells (b) Multi-level elevation map (side view). Figure 2.11: Elevation map techniques with overhangs (image extracted from [55]). UTM-30LX LiDAR mounted on a Pioneer 3DX mobile robot [94]. Using elevation maps presents some disadvantages when trying to model free vertical space between points, i.e., in overhanging objects, limiting its utilization in some outdoor scenarios. For instance, using mean-based algorithms in the scenario depicted in Figure 2.11a causes the system to classify the area below the tree as terrain unable to be driven. To mitigate this, Pfaff et al.. [95] proposed an algorithm that allows mobile robots to model vertical and overhanging objects in elevation maps by classifying the surroundings into four distinct classes: (1) regions sensed from above; (2) vertical structures; (3) vertical gaps; and (4) traversable cells. The grid map resulting from this method is depicted in Figure 2.11b. The algorithm starts by calculating the height variance of each cell, applying a Euclidean clustering technique next. The clustering of points whose distance within the cell is smaller than 10 cm allows for the detection of empty spaces, which is essential for identifying overhangs. Next, when an overhang is detected, only the lowest average height cluster is considered to calculate the average height inside the cell. Despite correctly identifying drivable areas below overhangs, this technique does not allow for the simultaneous modeling of multiple surfaces, i.e., modeling the terrain above an underpass. To solve this issue, the work proposed by Triebel et al.. [96] additionally stores the intervals between the detected clusters or surfaces (previously, only the lowest was considered), allowing for the correct representation of all the overhanging surfaces. Both works were evaluated on a Pioneer II AT robot equipped with a SICK LMS291 sensor mounted on an AMTEC wrist PW70. Occupancy Grid Maps: These algorithms, introduced in the 1980s by Moravec and Elfes, use finegrained grids to model the occupied and free space in the surrounding environment [97]. The main goal of this technique is to generate a consistent metric map from noisy or incomplete sensor data. This can be achieved by measuring a cell multiple times, so that information can be integrated using Bayes filters [98]. This method is considered highly robust and easy to implement, which is essential for autonomous driving tasks [99]. Stanley, the robot created by the Stanford University that won the Defense Advanced Research Projects Agency (DARPA) challenge in 2005, used occupancy grids for obstacle detection [100]. First, Chapter 2. Background and State of the Art 18 the surroundings are modeled by assuming each cell is in an occupied, free, or unknown state. A cell is considered occupied if the vertical distance between the maximum and minimum height of the detected points exceeds a distance delta. If this verification fails, the area is considered drivable, meaning the ground is successfully detected. In the following editions of the DARPA Challenge, several teams also used occupancy grids for modeling the drivable area, which helped them in finishing the challenge [101, 102, 103]. Similarly, Himmelsbach et al.. [104] proposed the utilization of occupancy grids allied with vehicle position detection mechanisms to accurately segment the ground plane for the object classification tasks, achieving an object classification accuracy of around 96% on the used dataset. By their turn, Luo et al.. [105] use a combination of different attributes, such as the average height, the standard deviation of height, and the number of points on each cell, to compute the probability of a cell belonging to the ground plane. This work can achieve a precision ratio of up to 96% with real-time features in light traffic using a Velodyne HDL-32E sensor. The processing unit is composed of an Intel i7-4800 processor running at 2.7 GHz, 16 GB of RAM, and an Nvidia GeForce GTX 1080 graphics card. 2.2.5 Ground Modelling Ground modeling techniques have been widely adopted and evaluated over the last few years. Typically, these methods consist of expressing the ground’s geometry using a single plane or a grid of planar surfaces and can use one of the three following approaches: (1) Plane Fitting; (2) Line Extraction; (3) or GPR. Plane Fitting: The work from Hu et al. [106] identifies the ground plane by fitting the lowest elevation points of each frame and uses the RANdom SAmple Consensus (RANSAC) algorithm to estimate some of the unknown parameters of the plane efficiently. The ground segmentation is then performed based on the orthogonal distance between points and the ground plane (Figure 2.12). The maximum point-to-plane threshold is then calculated, indicating the minimum distance between a point and a plane for a point to be classified as non-ground. According to the authors, this technique may fail in some situations, reducing the number of ground points and affecting the ground plane estimation’s accuracy. To avoid this limitation, when the number of ground points is severely reduced, a short-term memory technique is used to create a forecast for the current road points based on the previous frame, which is effective on flat surfaces, allowing the algorithm to achieve an effectiveness of around 81% and a precision of 72%. The evaluation was conducted using the KITTI dataset [107], and the experimental setup includes a Linux machine with a Pentium 3200 processor with 3 GB of RAM. Nonetheless, the ground plane is not always flat, thus, the assumption of a single ground plane may result in incorrect classifications. Moreover, noisy or complex data can reduce the RANSAC’s performance. Similar methods divide point clouds into concentric circles with varying radius centered on the origin [91, 108]. This is followed by a gating method to eliminate higher points that are unlikely to represent the ground, and next, a RANSAC-based plane fitting algorithm is applied to the remaining points of each slice to extract ground data. Lim et al . [109] propose a method that uses a Concentric Zone Model-based Chapter 2. Background and State of the Art 19 z x y distance > threshold distance < threshold Figure 2.12: Visual representation of an orthogonal distance classification (image extracted from [55]). representation of the point cloud (instead of a Polar Grid Map) to address issues associated with small-sized bins and sparse point distribution. Then, it applies a Region-wise Ground Plane Fitting method based on Principal Component Analysis (PCA), which yields speeds at least twice as fast as the RANSAC algorithm. In the final step of this method, a Ground Likelihood Estimation step is performed, which helps in reducing the number of false positive classifications. Using the KITTI dataset [107], and an Ouster OS0-128 LiDAR sensor, this approach can achieve an F1score of 0.93 with a precision of 92%. The evaluation setup includes an Intel i7-7700K processor, which can execute the segmentation algorithm at a rate of 43.97 Hz. Zhang et al. [110] propose a method for road segmenting based on a planar model. All points with a negative vertical pointing angle are selected, and the RANSAC method is used to estimate the parameters of the plane. Nevertheless, the road is not always perceived as a plane, which results in a precision of 84% and an F1score of 83% with data from a Velodyne HDL-32E LiDAR sensor. This method was tested using an Intel i7-620M processor with a base frequency of 2.66 GHz and achieved an average execution time of 12 ms. The method of Sun et al. [111] takes into account the presence of barriers on the road and employs two spatial properties of the road boundary, which are adaptable to different heights and road boundary structures. The system uses predictive combination detection to search for road boundary points, and then uses the cubic spline model to fit the road boundary. It is more adaptable to road boundaries with diverse shapes, particularly those with significant curvature variations. Using data provided by an HDL- 32E LiDAR sensor, this method can achieve a precision rate of 93% and an accuracy rate of 92%. It was executed on an Intel i7-4790 processor running at 3.4 GHz and 16 GB of RAM, achieving around 36.5 ms to process one point cloud frame. Anand et al. [112] also propose a Plane Fitting method with real-time ground removal, obstacle segmentation, and georeferencing capabilities. In this framework, the ground is subdivided into small square cells that are evaluated based on a series of thresholds. These thresholds have been fine-tuned to prevent the omission of little objects in these cells. Despite its computational simplicity, the suggested ground removal method provides good results for different ground structures. Chapter 2. Background and State of the Art 20 This method was evaluated using the KITTI dataset [107] and could obtain a precision of 92%, a recall of 99%, and an F1score of 0.995. Other datasets were gathered from a Velodyne VLP-32C and two Ouster OS1-64 and OS1-16 LiDAR sensors. Regarding the processing time, with the KITTI dataset, this method can process a frame within 0.0064 seconds on an Intel Xeon W-2133 CPU with 12 cores running at 3.6 GHz, and 0.074 seconds using an Intel i5-7200 CPU with four cores running at 2.5 GHz. Using an NVIDIA Jetson TX2 board, which includes a Quad-Core Arm Cortex-A57 processor, the frame processing time is around 0.105 seconds. Line Extraction: To overcome some limitations of Plane Fitting methods, e.g., the processing time, other works based on Line Extraction have emerged [113, 114]. These approaches divide the area under evaluation into several segments of a polar grid map, as depicted in Figure 2.13, to search for the ground plane. The work from Himmelsbach et al . [113] models the ground using local line fits, and to be considered Bin Δα S2 S1 Segment Figure 2.13: Visual representation of a Polar Grid Map (image extracted from [55]). part of the ground plane, such line fits must satisfy a set of requirements. Considering the slop-intercept equation of a straight line, y = mx + b , the slope (m) cannot exceed a threshold to exclude vertical structures, and in the case of lower slopes, the line’s intersection with the y-axis (b) must not also exceed a threshold to exclude plateaus from the ground plane. After finding the lines that model the ground plane, the distance between the points and these lines is analyzed to determine whether the points are ground or non-ground. This estimation of several local lines/planes allows for greater flexibility in the overall plane fitting. However, when using small regions, this method can be affected by the lack of local points. This strategy can divide the segmentation problem into several smaller and simple fitting problems, thus, using data from a Velodyne HDL-64 sensor, and in a computer with an Intel Core 2 quad-core processor running at 2.4 GHz, it can sometimes achieve real-time performance (0.105 seconds to process one point cloud frame). However, this approach does not perform well in uneven rugged terrain. Gaussian Process Regression (GPR)-Based: These methods can be used to estimate and interpolate (to fill gaps in unknown areas) elevation information across the field. They perform well in handling small datasets and have the ability to provide uncertainty measurements on the predictions, demonstrating their Chapter 2. Background and State of the Art 21 applicability in a wide range of autonomous driving features. These approaches require tuning several parameters, which cannot always be obtained beforehand. Therefore, Vasudeva et al. [115] propose a method based on hyper-parameters, which consist primarily of a regression task that, for each segment, solves a supervised learning problem to acquire such parameters. By dividing a complex two-dimensional ground segmentation problem into a large number of one-dimensional regressions, the method can achieve good performance ratios while meeting real-time requirements. However, this approach does not perform well in slowly rising obstacles (e.g., stair steps), as the separation of the ground into independent angular sectors do not keep the general continuity of the ground elevation. GPR methods assume that the vast majority of data is related to the terrain surface and not to objects, i.e., they assume that there are only a few outliers in the point cloud. Douillard et al . [116] implement a GPR-Based algorithm that employs the Gaussian Process Incremental Sample Consensus (GP-INSAC), which uses a terrain mesh created from the structure of a range image, applied to 3D datasets with several non-ground objects. Following a model-based outlier detection approach, an inlier is a point that belongs to the ground surface, while an outlier is a point that belongs to cluttered non-surface objects that will be removed from the point cloud. This process preserves the features of GPR-based terrain modeling while offering outlier rejection capabilities, albeit being more complex than the previously described methods. This method was evaluated using a 2 GHz dual-core PC using data provided by a Velodyne LiDAR sensor, and was capable of processing a point cloud frame within 0.25 seconds with a point score of over 80%. To further improve GPR-Based methods, Chen et al.propose a real-time approach to ground segmentation that uses a one-dimensional GPR with a non-stationary covariance function over a circular polar grid map to allow local adaptation to the fluctuations of the ground in each map segment [117]. The method was evaluated on a dual-core Intel P8600 processor running at 2.4 GHz with 2GB of RAM, and using data from a Velodyne HDL-64E S2 LiDAR sensor. It can achieve an accuracy of 0.97 and a processing time of 74.93 ms per point cloud frame. Other works combine GPR methods with different techniques to create more robust solutions. For Raw 3D Point Cloud Filtering Result Hybrid Regression Method Polar Grid Mapping RLWR in segments Gradient Filter Construct Seed Skeleton Construct Ground Surface Model with GPR in circles Figure 2.14: Hybrid Regression Method (image extracted from [55]). instance, Lang et al. [118] proposed a GPR method with a non-stationary covariance function for terrain modeling that can locally adapt to the terrain data structure. Authors claim that the adaption method can achieve accurate predictions on both simulated and actual data, decreasing the prediction error from 70% to 30%, and achieving an Mean Squared Error (MSE) of 0.059. Time-wise, this method was evaluated using Chapter 2. Background and State of the Art 22 a desktop computer with a 2.8 GHz processor and 2 GB of RAM and took around 44 seconds to process one frame. The work from Liu et al. [119], whose steps are illustrated in Figure ??, combines the GPR method with a Robust Locally Weighted Regression (RLWR) approach to create a hybrid regression model in which the RLWR is followed by a gradient filter for removing outliers and construct the seed skeleton of the ground plane. The GPR is then used to generate the complete ground surface model based on these initial values. Despite this method achieving an accurate segmentation of the ground surface (nearly 92%), it does not meet the real-time requirements of an automotive application, since it requires around 300 ms per point cloud frame (with the KITTI dataset [107]). The tests were conducted with an Intel Core i7 processor running at 4 GHz on a machine with 16 GB of RAM. 2.2.6 Adjacent Points and Local Features These techniques explore relationships between neighbor points and local geometric features in a point cloud to classify the surrounding terrain. These relationships include patterns created by LiDAR sensors when generating point clouds, point height differences, and terrain gradients. Algorithms from this group can be divided into Channel-Based, Region-Growing, Clustering, and Range Images. 15º 30º Pulse from Laser 0 Pulse from Laser 15 Figure 2.15: Velodyne VLP-16 side view (image extracted from [55]). Channel-Based: Channel- or scan-based approaches explore relationships between points in the point cloud that result from patterns in the LiDAR sensor [120]. Taking advantage of the vertically aligned channels in multi-layer LiDAR sensors (Figure 2.15), Chu et al. [121] separate each frame into vertical lines to analyze points. This method uses a set of geometric conditions, such as height and height gradients, to detect start ground points and threshold points. The start ground points define where the ground begins, and the threshold points represent where an obstacle starts. As depicted by Figure 2.16, points between a start ground point and threshold points are considered ground points since they are all vertically related. Despite performing well, even in bumpy terrains, this method ignores the angular relationship between points and heavily depends on parameterization, both affecting accuracy in complex environments. Other works enhanced the performance and accuracy of this algorithm by adding additional check features to the vertical analysis [122], and by performing a horizontal geometric feature analysis to the previously proposed vertical analysis [123]. Rieken et al.. [124] use a channel-based approach for the initial ground Chapter 2. Background and State of the Art 23 Start Ground Point Ground Points Threshold Points LiDAR Figure 2.16: Representation of the channel-based method (image extracted from [55]). classification, followed by the generation of an elevation map with the classified ground points for the filtering step. Finally, it performs a final classification process with the filtered data. The experimental evaluation was performed on a desktop computer equipped with an Intel Core i5-4690 processor running at 3.5 GHz and with 8 GB of RAM, and the point cloud datasets were obtained from a Velodyne HDL-32 sensor. The average processing time of the algorithm is 4.7 ms per frame (213 Hz), indicating that the segmentation process achieves real-time features and can be executed 21 times faster than the sensor output frequency (10Hz). Despite reducing the dependency on pre-defined parameters, the accuracy of channel-based approaches is still highly dependent on the density of the point cloud. To solve this, Jiménez et al.. [120] propose the utilization of an MRF method to enhance the initial channel-based stage. Other works use the concept of sensor rings, which is related to the pattern created by the points generated by a single vertical channel while the sensor rotates, instead of the vertical channel’s alignment [125, 126]. Region-Growing: Region-growing methods perform segmentation by expanding a particular starting seed into a region using pre-defined criteria, usually related to a principle of similarity between those points, as depicted in Figure 2.17. Moosmann et al.. [127] use a graph-based approach where a region-growing Figure 2.17: Region-growing labeling based on four neighbours window (image extracted from [55]). algorithm randomly selects the initial seed node, followed by the merging of the neighboring nodes into the same region based on Local Convexity. This algorithm was evaluated with non-optimized code on a Pentium M processor running at 2.1 GHz, and used several scans from an HDL-64 sensor mounted on an experimental vehicle in inner city traffic scenes, achieving good results in urban environments with slightly curved road surfaces. However, the achieved average segmentation time was nearly 250 ms with Chapter 2. Background and State of the Art 24 the selected hardware setup, thus, it cannot achieve the desired real-time performance. Na et al.. [128] use a similar region-growing approach, followed by a region-merging algorithm to correct overly partitioned ground regions. Additionally, Kim et al.. [129] propose using a weighted-graph structure followed by a voxelization method to improve the region-growing results. Techniques based on Region-growing are simple to implement but suffer from being highly reliant on the selection of a good starting seed and criteria, which may penalize the performance in complex urban environments [130]. Clustering: Similarly to region-growing methods, clustering techniques divide point cloud data into smaller groups. However, unlike region-growing algorithms, some techniques do not rely entirely on analyzing neighboring points. Douillard et al.. [116] start by creating a voxel grid, followed by clustering the created voxels based on height averages and variances. In this method, the largest cluster is considered ground and removed from the point cloud. Yang et al.. [131] propose a different approach that uses the shape features of adjacent points to assemble points. Since road surfaces are mainly planar objects with low elevations, the ground segments are easily identified. Nitsch et al.. [132] compute the point’s surface normal vectors and a quality value based on the weighted average between eight adjacent neighborhood points. Every calculated vector is then compared with the vector perpendicular to the surface below the vehicle. If these vectors are relatively similar, meaning their surface properties are identical to those in the ground below the vehicle, and the calculated quality value is high, the corresponding points are considered good ground candidates. Finally, a euclidean clustering method groups the ground candidates together, where the large clusters are classified as the ground surface. This approach can provide a relatively complete feature analysis, being able to detect 97% of ground points in a simulated data urban scenario and 93% in a simulated rural scenario, using the automatically labeled Virtual KITTI [133]. However, it may not perform as desired in regions with a low point density [120]. Clustering algorithms are considered robust methods that do not require a good selection of seed points/regions, contrary to region-growing-based techniques. However, they can be computationally expensive, especially for large datasets that contain multi-dimensional features [130]. Range Images: Typically, LiDAR sensors provide point cloud data in the spherical coordinate system, which is later converted to the cartesian system by the corresponding manufacturer software drivers. However, using the spherical coordinate system allows the detection of trigonometric relationships between adjacent points in a point cloud without the associated computational costs of performing these calculations in a cartesian coordinate system [134]. Some approaches make use of the raw data provided by the sensors and transform it directly into a range image, which is a common approach for projecting 3D LiDAR point cloud data into a 2D image [135, 136, 137, 138], as demonstrated in Figure 2.18. This conversion enables segmentation algorithms to directly exploit the clearly defined neighborhood relations in the 2D image, allowing for real-time segmentation based on angle relations formed by the LiDAR center and the points on the depth image. Bogoslavskyi et al.[135], running on a single CPU core, were able to perform the ground filtering in real-time using the KITTI dataset. Nonetheless, the method for creating range images is very dependent on the sensor and may affect the accuracy due to the needed sampling Chapter 2. Background and State of the Art 31 W W H z y x Sparser Figure 2.22: BEV sector partition representation (image extracted from [55]). with rising obstacles and regions, uneven ground, and sparse data in the point cloud. This comparison is made solely based on available information retrieved from respective literature, whose experimental setups are the responsibility of respective authors. Table 2.1: Qualitative comparison between existing ground segmentation methods. Method Metric Real-Time Computational Requirements Segmentation Immunity Performance with Rising Obstacles and Regions Performance with Uneven Ground Performance with Sparse Data 2.5D Grid-based Mean-Based [90, 91, 92, 93, 94] 3[92, 94]; 7[90] Low Under-/over-segmentation Good [93, 94] Good [93, 94] - Multi-level [95, 96] - Medium - Good Good - Occupancy Grid [100, 101, 102, 103, 104, 105] 3[100, 101, 102, 103, 104]; 7[105] High Under-segmentation [100] Good [105] - - Ground Modelling GPR-based [116, 117, 118, 119] 3[117]; 7[116, 118, 119] High Under-segmentation [117] Insensitive to slowly rising obstacles [117] Good [117, 119] Good [116, 118, 119] Line Extraction [113, 114] 3[113] Medium Slight Over-/under-segmentation Good [114] Good [114]; Bad [113] - Plane Fitting [106, 108, 109, 110, 111, 112] 3[108, 109, 110, 111, 112]; 7[106] Medium/High Prone to over-segmentation [108]; Under-segmentation [109] Good [109, 112] Good [109, 112]; Bad [106] Good [108] Adjacent Points and Local Features Channel-based [120, 121, 122, 123, 124, 125, 126] 3[121, 122, 123, 124, 126]; 7[120] Medium Under/over-segmentation [120]; Under/over-segmentation [123] Good [120, 121, 122, 123, 124] Good [120, 123] Good [120] Range Images [135, 136, 137, 138] 3[135, 136, 138]; 7[137] Medium Prone to over-/under-segmentation; Over-segmentation [135, 136] Good [135, 136] - Good [135, 136] Clustering [116, 131, 132] 7[116] Medium/High Under-/over-segmentation [131] Good [132] - Good [116] Region Growing [127, 128, 129, 130] 7[127] Medium/High Small over-segmentation [127, 128, 130]; Small under-/over-segmentation [129] Good [130] - - Higher Order Inference MRF [141, 142, 143, 144, 145] 3[145]; 7[143] High - Good [141, 142] Good [141, 143]; Bad [142] Good [141, 142] CRF [146, 148] 3[146] (with GPU); 7[148] High - - - Good [146] Deep Learning CNN [151, 152, 153, 154, 155, 156, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170] 3[156, 159, 162, 166] (with GPU), and FPGA [168]; 7[169] High/Very High - Good Good Good Chapter 2. Background and State of the Art 32 Real-time: Within an autonomous driving scenario, it is mandatory for the perception system to process and understand the surrounding environment in real-time, which means that, for a given sensor or a set of sensors, the steps of the LiDAR processing stack must be performed within a known period of time so that the driving decisions can be taken within a safe time frame. A high-resolution LiDAR sensor can generate millions of data points. For instance, the Velodyne VLS-128 can produce up to 9.6M points per second in the dual-return mode, with frame rates varying from 5 Hz to 10 Hz. In a typical operation, this sensor can be configured to produce, on average, a point cloud of 2403840 points per second (240384 points at 10Hz), which means that such an amount of data must be processed in under 100 ms across all software stack layers. Regarding the ground segmentation tasks, with a few exceptions, both 2.5D Grid-based and Ground Modelling methods can achieve real-time processing. For the algorithms based on the multi-level approach [95, 96], this information could not be retrieved. Due to their complexity, most of the GPR-based methods [116, 118, 119] and one Plane-fitting method [106] are unable to provide the desired real-time features. Concerning the algorithms based on adjacent points and local feature extraction, i.e., Region Growing [127], Clustering [116], one from Range Images [137], and one from Channel-based [120], they do not provide real-time (likely due to lack of optimizations or hardware setup used), while the remaining methods [120, 121, 122, 123, 124, 126, 135, 136, 138], are considered real-time. Regarding the Higher Order Inference [141, 142, 143, 144, 145, 146, 148] and Deep learning [151, 152, 153, 154, 155, 156, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170] methods, they naturally do not provide realtime ground segmentation due to the overall algorithm’s complexity. However, when resorting to hardware acceleration, e.g., based on GPUs [146, 156, 159, 162, 166] or FPGA [168], or taking advantage of coarse segmentation results from local feature extraction [29], some solutions can meet real-time requirements. Computational Requirements: When deployed in automotive applications, the computational requirements associated with ground segmentation methods are a crucial metric to consider, mainly because the perception system is often composed of embedded processing environments that try to minimize the available hardware resources. Methods based on Elevation Maps present the lowest computational requirements as they analyze a 2D tessellated representation of the surroundings, instead of the entire 3D representation. Regarding the other 2.5D grid-based approaches, Multi-level algorithms require extra classification steps, while Occupancy Grids require the interpolation of data and the use of Bayes filters, which inherently increases the memory and computational needs in both cases. Likewise, GPR-based and Plane Fitting methods (based on RANSAC) rely on iterative approaches, consequently increasing the memory requirements. Additionally, GPR methods require complex calculations to process the point cloud, which further increases the computational needs. On the other hand, Line Extraction approaches feature a lower resource consumption than the remaining Ground Modelling methods since they divide the point cloud into a polar grid map, simplifying the required computations. Concerning the Adjacent Points and Local Features methods, Channel-based and Range Image approaches are not considered very computationally intensive. However, they are based on the analysis of geometric conditions between points, which can Chapter 2. Background and State of the Art 33 represent the need for specialized hardware, such as a floating-point unit for trigonometric calculations. On the other hand, despite their simplicity, Clustering and Region-Growing methods require very iterative operations, which can represent high memory requirements especially for large point clouds with points containing multiple features, e.g., target’s reflectivity. On the other side, Higher Order Inference methods feature high computational requirements due to the associated complex mathematical computations and respective iterative steps, e.g., the BP algorithm, which translates into high memory requirements. Finally, among all methods, Learn-based approaches demand the highest computational needs. This is mainly caused by the extensive complex computations, significant memory utilization, and sometimes specialized hardware, e.g., GPUs, generally associated with CNN implementations. Segmentation Immunity: Segmentation immunity refers to the algorithm’s susceptibility to under- and/or over-segmentation, which corresponds to either too coarse or too fine segmentation, respectively. When the under-segmentation occurs, the points belonging to different objects are merged into the same ground segment. On the other hand, with over-segmentation, a single object can be represented by several clusters. In many applications, under-segmentation is considered a more severe issue than over-segmentation, since the wrong classification of the ground plane can lead to safety issues to the autonomous vehicle. 2.5D Grid-based Elevation Map algorithms tend to suffer both from under- or over-segmentation, which can highly affect the overall algorithm’s performance and accuracy. That happens especially when the ground is significantly sloped or curbed. Ground Modelling’s Line Extraction and Plane Fitting [108] methods tend to slightly suffer from under- or over-segmentation. However, GPR-based [117] and Plane Fitting [109] are able to overcome under-segmentation issues. Adjacent Points and Local Features algorithms typically are susceptible to under- or over-segmentation, except for [129], which is immune to over-segmentation, while [123, 131] are immune to both under- and over-segmentation. Performance with Rising Obstacles and Regions, Uneven Ground, and Sparse Data: In a realworld driving scenario, the ground is not flat and, rising obstacles, regions, and uneven ground usually represent a significant challenge to ground segmentation algorithms. Additionally, dealing with sparse point clouds can lead to performance loss or algorithm inability to solve the segmentation task. Therefore, to assess the versatility and safety of a method in different situations, it is crucial to evaluate the segmentation performance with rising obstacles, slopped or rough terrains, and sparse data. Regarding 2.5 Grid-based methods, since the ground is modeled into a grid where each cell represents a small region of the ground plane, almost all of them can perform well with rising obstacles and uneven ground surfaces [93, 94, 95, 96]. However, they can be unpredictable when dealing with sparse data. The Ground Modeling approaches based on GPR algorithms can suffer from insensitivity to these slowly rising obstacles [117]. Since the ground division in independent angular sectors does not guarantee the general ground elevation continuity, some obstacles, such as stair steps, may be classified as ground. Nonetheless, the other approaches, i.e., Line Extraction [114], and Plane Fitting [109, 112], can handle these objects properly. Concerning the uneven ground regions, some Ground Modelling approaches cannot handle them properly [106, 113], e.g., the Plane Fitting method [106] uses RANSAC in order to estimate the ground plane. Therefore, Chapter 2. Background and State of the Art 34 the assumption of a single ground plane leads to false classifications and complex data can degrade the RANSAC performance. Nonetheless, most GPR-based algorithms [116, 118, 119], and one Plane Fitting method [108], can achieve good segmentation results when handling sparse data. From the Adjacent Points and Local Features methods, most of them can handle rising obstacles and regions, e.g., Channel-based [120, 121, 122, 123, 124], Range Images [135, 136], Clustering [132], and region Growing [130]. Regarding handling uneven ground, some Channel-based approaches [120, 123] can perform well in sloped environments, where [120] developed algorithms specialized in handling sloped terrains and sparse data, and [123] proved to achieve good results with sloped and flat environments. Some methods [116, 120, 135, 136] can also perform well in sparse data, highlighting the works of [120, 135, 136] that developed methods especially for sparse point clouds. Some Higher Order Inference MRF methods can perform well in rising obstacles and regions [141, 142], as there are also others that manage to obtain good results on both sloped and rough terrains [141, 143]. Unfortunately, no other information could be found on the other metrics for the CRF algorithms. While handling with sparse point clouds, some MRF methods [141, 143] and one CRF method [146] can work adequately with sparse point clouds. Deep Learning methods generally obtain the most accurate results in terms of ground segmentation on well-trained environments, being able to perform well in sloped and rough terrain, as well as in dealing with sparse data. However, the lack of labeled datasets for the training phases, the time-consuming conversions between 3D point cloud data and network input data, the need for powerful hardware support, and the complexity involved in developing algorithms, usually hampers the development of CNNs for the segmentation ground tasks. With all of the aforementioned metrics in consideration, one of the Range Image-based algorithms [135, 136] was selected to be explored in more detail in this dissertation, due to its potential to be accelerated in hardware, good performance in sparse data, relatively low computational needs and proper segmentation results, fulfilling the main requirements to possibly perform well in a limited resource embedded system approach. 3. Platform and Tools This Chapter details the platforms and tools used throughout the development of this dissertation. From Section 3.1 to 3.4 are described the tools used, followed by a presentation of the hardware platform in Section 3.6 and finishing with a description of the ALFA project in Section 3.7. 3.1 Yocto OpenEmbedded Project The Yocto Project is a Linux Foundation collaborative open-source initiative with the aim of creating tools and procedures that allow the development of Linux-based distributions for embedded software, abstracted from the hardware’s underlying architecture. This open-source project is supported by the OpenEmbedded framework that features an automation framework and a cross-compile environment. This framework relies on the concepts of recipes and layers, where a recipe lists the steps, source code locations, and dependencies the system must have in consideration to build a specific package, while layers organize the recipes in different levels, being the lower layer the OpenEmbedded-Core, containing platform-independent and distribution-independent metadata. This recipe/layer-based approach simplifies the process of cross-compiling and creating Linux distributions with package requirements custom-made for specific systems, such as in this dissertation. 3.2 Robot Operating System ROS consists of an open-source middleware platform that provides tools and libraries for developing and operating robotic systems [172]. It offers a set of open-source software components and tools for building, testing, and deploying robot applications. ROS design is based on a distributed system architecture, with nodes communicating with each other over a network, allowing for flexibility in designing and deploying robot systems. Each node can be defined as a process that performs a specific task, being able to communicate with other nodes by publishing and subscribing to data buses, known as topics, in order to send or receive messages. For registering and keeping track of all the active nodes in the system a process called ROS Master needs to be active. It plays a crucial role in managing and coordinating the communication between different nodes in a ROS system, 35 Chapter 3. Platform and Tools 36 acting as a mediator between nodes in a distributed communication infrastructure and enabling them to interact and work together effectively. Currently, ROS is already a well-known framework and has many applications in various fields, including the development of software for autonomous vehicles. In this work, ALFA-GS will rely on ROS in order to ease the communication not only with different LiDAR sensor drivers, but also with a configuration/visualization tool present in the ALFA platform. 3.3 OpenCV Open Source Computer Vision (OpenCV) is an open-source computer vision and machine learning software library designed to provide a comprehensive toolkit focused on the development of real-time computer vision applications. This library has a wide range of applications in various fields, including medical imaging, robotics, security, but also automotive, where it became an essential tool for autonomous driving applications such as object detection/tracking, pedestrian detection, lane detection, and traffic sign recognition, due to its robustness and real-time capabilities. In this dissertation, the ALFA-GS extension will rely on OpenCV to represent range images and angle images in multiple form factors, not only for processing the point cloud data but also to enhance the visualization of those environments. While the OpenCV library does not have native support for point clouds, it can be used in conjunction with other libraries such as Point Cloud Library (PCL) to process and analyze point cloud data. 3.4 Point Cloud Library The PCL is an open-source library created for processing tridimensional point clouds, including a comprehensive set of tools and algorithms designed for multiple environmental perception tasks such as feature estimation, filtering, segmentation, and registration. Due to its ability to process large and complex 3D point cloud data sets, the PCL became a popular tool in various fields, especially in autonomous driving since the increasingly important point cloud data sets created by LiDAR sensors are becoming larger and packed with valuable data. In these scenarios, this open-source library can enable efficient and accurate processing of point cloud data, reducing processing times and improving overall system performance in tasks like object detection and tracking, obstacle avoidance, or even road surface reconstruction. Moreover, this library is fully integrated with ROS and compatible with most operating systems, so ALFA-GS will take advantage of PCL for tasks like point cloud file formats interpretation, in order to be able to benefit from the use of publicly available datasets. Chapter 3. Platform and Tools 37 3.5 Semantic KITTI The Semantic Karlsruhe Institute of Technology and Toyota Technological Institute (KITTI) is a publicly available open-source dataset for autonomous driving, containing a large-scale collection of LiDAR point cloud scenes complemented by high-resolution RGB images. This dataset is based on the KITTI Vision Benchmark data, however, it contains a differentiating factor when compared with most of the previously existing datasets, being that the inclusion of semantic annotations that label the objects in the scene, such as cars, pedestrians, cyclists, and more. This data labeling is a valuable asset to the autonomous driving developer community since it not only enables the validation of multiple segmentation algorithms but can also serve as a reliable dataset for training machine learning-based algorithms, that are currently trending and showing promising results. In this dissertation the data labels are going to be used in order to asses the effectiveness of the ground segmentation task. There are 28 different labeling classes divided into moving and non-moving objects, including road, sidewalk, building, vegetation, car, pedestrian, cyclist, and more. Regarding the point cloud environments, there is a large variety of challenging traffic situations and environment types, divided into training and test sets created to evaluate the safety and reliability of autonomous vehicle algorithms. 3.6 Reconfigurable Technology FPGAs are programmable logic devices that offer a high degree of customization and flexibility. They are composed of an array of programmable logic blocks that can be configured to perform various logic operations, offering high processing speeds and high degrees of parallelism. Unlike Application-Specific Integrated Circuits (ASIC)s that are hardwired, FPGAs can be reprogrammed to perform different tasks during their lifetime, making them ideal for rapid prototyping or product customization. Modern FPGAs contain a mixture of components that are specialized for specific functions and configurable logic, allowing for less power-hungry architectures while improving overall efficiency. The most common components found in FPGAs are Configurable Logic Block (CLB)s, considered the fundamental piece of an FPGA and consisting of multiple discrete logic components such as Look-Up Tables (LUT)s and flip-flops, Digital Signal Processing (DSP)s, specialized in digital signal processing applications, BRAMs and Input/Output (IO) Blocks. FPGAs can also be used in cooperation with Accelerated Processing Unit (APU)s to create complex digital systems, for example, FPGAs can be used to implement complex digital circuits and interface with external devices, while Microcontroller Unit (MCU)s can be used for higher-level applications responsible for not only controlling and configuring the hardware layer but also processing data that would not be advantageous to paralyze in hardware. So in order to fulfill the framework’s hardware-software co-design necessities, is required the utilization of a platform containing both FPGA resources and an APU. Chapter 3. Platform and Tools 38 Zynq UltraScale+ MPSoC ZCU104 The selected platform to develop this dissertation work is the Zynq Ultra- Scale+ MPSoC ZCU104, specially designed for embedded vision applications like ADAS. As the name suggests, this board is built around the Xilinx Zynq UltraScale+ XCZU7EV-2FFVC1156 FPGA, featuring 504K system logic cells, 11 Mb of BRAM, 230400 LUTs, 460800 Flip-Flops and 1728 DSP slices. Regarding the System on chip (SoC) Processing System (PS) side it contains three major processing units: a Cortex-A53 64-bit quadcore multiprocessing Central Processing Unit (CPU), a Cortex-R5 32-bit dual real-time processing unit and also a Mali-400 Graphics Processing Unit (GPU) with 64 KB L2 cache. In terms of memory, the ZCU104 has a 2 GB, 64-bit wide DDR4 memory system comprised of four 256 Mb x 16 SDRAMs, a Quad SPI Flash Memory, and a Micro SD card slot. For communication, the board includes USB 3.0/2.0 ports, a Gigabit Ethernet port, a DisplayPort, and also an HDMI 2.0 input and output port for video and audio. 3.7 Automotive LiDAR Framework for Automotive ALFA is an in-house open-source framework conceived to assist the development and validation of Li- DAR based solutions for automotive. Some of its main features include the access to a generic multi-sensor interface, various point cloud prepossessing algorithms, customizable output for high-level applications, support for numerous platforms (such as FPGA, GPU, Embedded Systems, and Desktop environments) or even the support of reconfigurable point-cloud representations. HARDWARE SOFTWARE ALFA Platform Linux + ROS ALFA Monitor Desktop Embedded System ROS Bag LiDAR Sensor Data ALFA-libs / 3rd Party Libs / ROS Nodes ALFA CORE ExMU MemMU MonU SIU Configs Metrics Libs FPGA Embedded Linux + ROS Configs Metrics Libs Libs HW Ext. HW Ext. Platform Memory BUS CPU/GPU Extension PC Processing ALFA-Node Configs Metrics Extension PC Processing ALFA-Node Configs Metrics Extension PC Processing ALFA-Node Configs Metrics ALFA CORE Extension ALFA-Node Configs Metrics PC Processing Figure 3.1: ALFA architecture block diagram. Chapter 3. Platform and Tools 39 As represented in Figure 3.1, the ALFA framework supports a platform architecture, allowing the developer to reuse architectural models between platforms and enabling the assessment of key differences and trade-offs of the same solution across different setups. These setups can be divided into the following categories: software development for desktop deployment, software development for Embedded Linux platform deployment, and hardware designing for FPGA deployment in an embedded platform. The developed methods are called extensions, and both software and hardware extensions are focused on the pre-processing of point cloud data. Each developed solution can be tailored to different levels of performance/resources usage, according to the product requirements and setup implemented, assisting the development of new LiDAR based solutions. The ALFA-core, depicted in both top and bottom portions of the ALFA platform ,Figure 3.1, consists of an abstraction layer responsible for providing resource management control, and interfacing for both hardware and software-based approaches through ALFA-Units and ALFA-Nodes, respectively. ALFA-Units is the term used to mention hardware components provided by ALFA to manage and interface with LiDAR data, while ALFA-Nodes are the software counterpart of Units, used to publish processed point clouds and its metrics, configure the extension, and to interface with the Monitor application. ALFA Monitor extension plays a relevant role in assisting the visualization of those benchmarks related to each system, controlling and representing both the input and output point cloud data and also providing a straightforward interface to configure the prepossessing ALFA-Nodes/Units. Node Node Soft ROS Bag Linux + ROS Node Node Node Node ROS Bag Node ROS Driver Node Node Node SIU MemU Software Extension Node Node Acquisition ProcessingStorage Handler ROS Driver SIU MemU Node Hybrid Node Node Node Node Node ExMU Node NodeNode Hardware Extension Hardware Extension ExMU LiDAR LiDAR LiDAR LiDAR LiDAR LiDAR LiDAR LiDAR Hard Node Node Node Software Extension ALFA CoreSensor Application Figure 3.2: Implementation process flows proposed by ALFA. Chapter 3. Platform and Tools 40 In order to create an ALFA extension is recommended to follow one of the three implementation process flows proposed by ALFA, depicted in Figure 3.2. These are the soft, hybrid, and hard implementation approaches. The soft approach refers to a fully software-based process flow, from data acquisition provided by either a ROS driver or a ROS bag in the sensor stage, passing through the storage and handling of that same data by a ROS node, in the ALFA core stage, all the way to the data processing by the software extension in the Application stage. When the extension finishes processing the point cloud data, the node publishes the resulting point cloud together with the respective output metrics. In the Hybrid approach, as the name suggests, the data is processed both in software, by the ALFA-Nodes, as well as in hardware, with the ALFA-Units accelerating certain key components of an extension that may be worthful to implement in hardware, for example highly parallelizable algorithms. This results in a more complex flow compared with the previous one, since both software and hardware components need to interact with each other and consequentially more control measures need to be implemented. Finally, the hard implementation flow restricts the use of software components, receiving the input data directly through the ALFA’s Sensor Interface Unit (SIU) and then going to the ALFA-Units responsible for managing the data and feeding it up to the hardware extension. After the data processing, the Units forward it to the software Nodes that then publish the processed point cloud alongside its output performance metrics. In this dissertation, both Software and Hybrid approaches were implemented and evaluated in order to accelerate the ground segmentation task and access the performance differences between the two flows, especially regarding time-related metrics. Chapter 4. Alfa-Gs Design 47 4.2.4 Segmentation Having the filtered angle image is now possible to draw inferences regarding the segmentation between ground and non-ground regions of a point cloud. The most obvious and straightforward approach would be to classify the angle image, column by column, based on a certain angle threshold, meaning that angles above that threshold would be classified as non-ground while angles equal or below that value would be labeled as angles referent to ground points. This method was tested and achieved reasonable results, however, those results were not good enough when compared to other already existing methods and could not satisfy the standard requirements for autonomous driving applications in terms of precision. So, based on the original implementation of the original ground segmentation algorithm [136], a popular graph search or traversal algorithm was employed called BFS. 1 43 2 1 (3,4) 4 (4,3) 4 (4,3) 1 (3,5) 3 (2,4) Queue Queue x 1 43 2 x y y Angle Image Angle Image Figure 4.5: BFS propagation example. This labelling method can be classified as a region-growing algorithm, where given a certain node of the graph, in this case starting with an angle cell in the lowest row of the angle image, the BFS explores the Chapter 4. Alfa-Gs Design 48 directly surrounding nodes, comparing it with its neighbours, and so spreading the segmentation process through the whole angle image. This method starts analyzing the angles at the lowest row of the angle image because those nodes are correspondent to the points captured at the ground level nearby the vehicle, meaning that this cells are the perfect starting point to spread a ground points mesh. The number of neighbours compared in each level iteration can be customized, however, in this approach, the value was defined as 4, meaning that the neighbour nodes under analysis are the top, bottom, left, and right ones, as seen in Figure 4.5. These surrounding nodes will be evaluated by finding the absolute value of the subtraction between them and the centre node individually. If a certain subtraction value is under the established threshold, its respective node is added to the ground queue, consisting of a queue with ground points that will be under evaluation in the next iterations, so that is possible to propagate the ground region and find more neighbour ground points. The ground queue as well as two sequential iterations of the algorithm can be depicted in Figure 4.5. Whenever the ground points cannot propagate in any direction, i.e the ground propagation gets trapped between obstacles, a new starting cell is selected from the bottom of the angle image. That starting cell has to contain an angle with a value less to a certain predefined threshold otherwise the new starting point will be replaced by an angle in another column that satisfies that condition, ensuring with higher trust that the starting angle corresponds to a ground point. The ability to start over the spreading of the ground region means that the segmentation algorithm can evaluate all the cells in the angle image, and consequently, all the range image points get labelled, ultimately finalizing the ground labelling task. 4.2.5 Range Image to Point Cloud Conversion After having the range image labelled according to the angle image segmentation is then needed to reconstruct the range image back to a three-dimensional point cloud, so the inverse process described in Sub-chapter 4.2.1 is applied. To do so, the following formulas are used: x=cos(θ)∗cos(φ)∗ρ(4.9) y=cos(θ)∗sin(φ)∗ρ(4.10) z=sin(θ)∗ρ(4.11) Through Equations 4.9 to 4.11 is possible to convert the spherical into cartesian coordinates and, as desired, outputting a segmented point cloud. Chapter 4. Alfa-Gs Design 49 4.3 ALFA-Gs Software Design As previously stated, the ALFA-Gs extension can follow an entirely software-based approach, depicted in Figure 4.6. This approach is based on the ALFAs architecture, making use of the ROS environment to manage data transfers between ALFA-nodes and ALFA Monitor to interact and visualize the point clouds. Pub Sub ALFA Monitor ALFA Node Ground Segmentation Node /inPointCloud Frontend Backend configs /segPointCloud ROS bag Pub Sub Topic Topic Service Figure 4.6: ALFA-Gs software design overview. The software segmentation flow starts there, in the Monitor application, where the user can select the point cloud that wants to process and configure different parameters regarding the ground segmentation process. The ALFA Monitor provides compatibility with different types of input point clouds, such as .pcd and .ply frames as well as ROS bags. Then, the Monitor is responsible for publishing the input point cloud as a ROS topic named /inPointCloud and transmitting the configurations to the ALFA node via a ROS service, providing a way to perform more complex interactions between nodes comparatively to simple topics. After the data is received in the ALFA node it is transferred to the ground segmentation node where the segmentation process is performed. The resulting output point cloud can be one of the two: a point cloud without ground points, or a point cloud containing only ground points, depending on the intended application. For example, if the ground segmentation consists solely of a preprocessing step in the object detection flow, the output coming from the ground segmentation node should be a point cloud without ground points, however, if the ground segmentation is performed to evaluate topographic features of a certain terrain or to assist a car’s active suspension system, the expected output is a point cloud containing only ground points. Finally, the resulting point cloud is published in the /segP ointCloud topic and then subscribed by the ALFA Monitor, so that is possible to visualize and evaluate the segmentation results. Chapter 4. Alfa-Gs Design 50 4.4 ALFA-Gs Hybrid Design In order to enhance the timing performance of the ALFA-Gs while taking advantage of the programmable logic capabilities of the ZCU-104 Evaluation Kit, a hybrid approach is presented, consisting of a hardware/- software co-design, depicted in Figure 4.7. ZCU-104 Evaluation Kit PS ZCU-104 Evaluation Kit PL FPGA ALFA-Node Software ALFA-Gs Point Cloud Subsciber AXI Memory Management Unit Angle Image Core Range Image Core Hardware Angle Smoothing Core System Bus AXI AXI Segmented Point Cloud Publisher Breadth-first search Figure 4.7: ALFA-Gs hybrid design overview. During the development of the ALFA-Gs software layer, some parallelization opportunities were addressed so that they could be explored in this hybrid approach, such as the implementation of a pipeline architecture between the angle image and angle smoothing functions. Table 4.1: Preliminary software timing results. Range Imge Angle Image + Mov. Average filter BFS Total Desktop Software 23 ms 27 ms 10 ms 60 ms The acceleration-prone modules were selected through a preliminary software timing analysis, where the time spent by each module was analysed, as depicted on Table 4.1. From this analysis was possible to conclude that the range image, as well as the angle image and angle smoothing modules, were the ones that impacted the most the algorithms timing performance, and so were selected to be moved to hardware. This hybrid approach begins on the software side with the receiving of a point cloud, being this data then redirected to the hardware layer by the ALFA-Gs node. This transmission is performed by a system bus responsible for exchanging data between the systems’ Programmable logic (PL) and PS, Chapter 4. Alfa-Gs Design 51 which will be explored in more detail in the following Chapter. After the arrival of the point cloud data to the hardware layer, an Memory Management Unit (MMU) is then responsible for redirecting these blocks of information to the Range Image Core, where the range image representation of the point cloud will be created. This range image will be passed on to the Angle Image Core, that after processing small portions of the received data will successively send it to the Angle Smoothing Core through a pipeline channel. After the data smoothing occurs, the data will be redirected to the PS. Meanwhile, since the next step of this segmentation method requires both a range image as well as an angle image as input data, the resulting range image will be sent to the PS while the angle processing is being performed, so that this data transfer is performed in parallel and does not act as a system bottleneck, affecting the overall timing performance. In the PS layer the Breadth-first search algorithm finalizes the segmentation process, remaining the task of publishing the segmented data, performed by the ALFA-Gs node. 5. Alfa-Gs Implementation This chapter presents the ALFA-Gs Software Implementation, divided by the different types of flows provided by the framework, starting with the fully software implementation, on Section 5.1, and its configuration parameters on Section 5.1.1. Then addresses the hybrid implementation, on Section 5.2, and all its sub topics through Sections 5.2.2.1 to 5.2.2.6. 5.1 ALFA-Gs Software Implementation The ALFA-Gs Software is divided into two main modules, the ALFA node and the ground segmentation node, as depicted in the previously presented Figure 4.6. As stated in Section 3.7 the ALFA node serves as an interface for the ALFA-Gs to communicate with the ALFA infrastructure, and is responsible for the exchange of point clouds and the configuration of ground segmentation related parameters, seen on Figure 5.1. On the other hand, the ground segmentation node is composed of a blend of C++ software supported by several computer vision libraries, as well as on adapted open source Massachusetts Institute of Technology (MIT) licensed code provided by the authors of the papers that inspired this work [135, 136]. These functions are combined in a class called ”ALFA-GS” that aggregates all the routines necessary to perform ground segmentation on the ALFA framework, present in Table 5.1 described in this section. The first function of the segmentation process is named ”CreateRangeImage”, and is responsible for creating a range image based on an input 3D point cloud. It receives as input a pointer that directs to a point cloud that can be represented in one of the multiple formats defined by PCL. In this case the x, y, z coordinate plus Red, Green and Blue (RGB) format was chosen since this algorithm does not require data related to the LiDAR returning pulse intensity and the RGB information proved to be useful for performance evaluation purposes. This RGB evaluation was possible due to the already mentioned Semantic KITTI dataset (Section 3.5) that provides labelled point cloud datasets where each point is assigned a RGB code that corresponds to the class where the point belongs. For example, purplish colours represent ground while orange/brown colours represent object structures. The function outputs a range image in a Mat format created by the aforementioned OpenCV (Section 3.3), consisting of a matrix that can group up to four data channels in each cell and multiple variable types, from boolean to double, being a widely supported format in the computer vision community. For the range image representation, the chosen 52 Chapter 5. Alfa-Gs Implementation 53 Table 5.1: Alfa_GS class functions. Function Description Mat CreateRangeImage(pcl::PointCloud<pcl::PointXYZRGB>::Ptr input_cloud Creates a range image based on an input 3D point cloud. Mat CreateAngleImg(Mat range_image) Creates an angle image based on an range image. Mat MovingAverageSmoothing(Mat angle_image, int window_size) Smooths an angle image through a moving average algorithm. Mat SavitskyGolaySmoothing(const Mat& image, int window_size) Smooths an angle image through the Savitsky Golay algorithm. Mat EraseBFS(Mat range_image, Mat smoothed_image, double gnd_ang_threshold, double start_ang_threshold, int kernel_size) Segments a point cloud based on Breadth First Search algorithm. pcl::PointCloud<PointT>::Ptr CameraCb(Mat image, const sensor_msgs::CameraInfo cinfo_) Converts a range image into a 3D point cloud. Mat CreateLabeledRangeImage(pcl::PointCloud<pcl::PointXYZRGB>::Ptr input_cloud) Creates a ground labeled range image. void CheckNumberOfDetectedRIGndPts(Mat og_range_img, Mat seg_range_img, Mat labeled_range_img) Calculates and presents the statistics related to the segmentation process. CreateColoredImage(Mat image) Creates an image with a color gradient related to a certain metric. format was the single-channel 16-bit integer, since it is the best suitable option in terms of functionality and resource usage trade-off. It is worth noting that there are already available PCL functions that encapsulate the whole range image creation in one single function, however when using them the results were not the best, both in accuracy and processing speed performance, so it was required to create a range image function. Regarding performance improvements on the range image creation, there were explored some oversampling techniques, and although improving the process accuracy, the subsequent steps in the ground segmentation process were not compatible with oversampling, so it was not used in the ”CreateRangeImage” function. Nonetheless, an offset addition approach, explored in Subchapter 5.2.2.2, proved to significantly enhance the accuracy of the range image creation, and so was used in this software implementation. Next the ”CreateAngleImg” function, as the name implies, is responsible for creating a Mat format angle image based on an input range image, also in the MAT format. Then there are two smoothing functions available in this software implementation, the ”MovingAverageSmoothing” and ”SavitskyGolaySmoothing”. Both functions output a Mat smoothed angle image, and both have as input a Mat angle image and a window size variable, although having completely different inner workings since they use different smoothing algorithms. The window size parameter, as the name implies, is referent to the size of the window used in each iteration of the angle smoothing methods. There is also the ”EraseBFS”, which contains the following inputs: a Mat range image where the segmentation is performed, a Mat smoothed angle image as required information for the segmentation Chapter 5. Alfa-Gs Implementation 54 process, two doubles referent to the ground angle threshold and to the start angle threshold and an integer relative to the kernel_size, as segmentation parameters and also an int ground_sel, which is an internal variable in charge of selecting between erasing the ground points or erasing the non-ground points from the point cloud. With all this data gathered the function can output a Mat segmented range image using the previously presented BFS segmentation method. This range image can be then transformed into a conventional 3D point cloud with the ”CameraCb” function, that using a cinfo_ struct can convert the two-dimensional image into a cartesian coordinates point cloud. For performance evaluation purposes, the ”CreateLabeledRangeImage” was implemented, and based on the originally labelled point cloud, it creates an also labelled range image. In this range image, each cell contains a boolean value, where zero is representative of a ground point and one represents a non-ground point. The output of this function together with both the original range image and the segmented range image is used in the ”CheckNumberOfDetectedRIGndPts” that outputs statics related to the segmentation process, compatible with both fully software and hardware/software hybrid implementations. Finally, there is also the ”CreateColoredImage” that colourizes a greyscale image for visualization purposes and is used to create easy-to-read range image and angle image representations. 5.1.1 ALFA-Gs Configuration Parameters ALFA-Gs gives the user the possibility to customize the segmentation configurations in order to change the behaviour of the algorithm, depending on different factors such as the sensor used in a certain setup or even the severity of the irregularities of a specific terrain. The customizable parameters are the following presented in Figure 5.1. Figure 5.1: ALFA Monitor parameter configurations window. Chapter 5. Alfa-Gs Implementation 55 The first parameter ”Erase Ground” is asserted by boolean logic, being that when it is configured with the value one, the algorithm will erase only the ground points from the resulting point cloud, while on the other hand, when it is configured with the value zero the opposite will happen, and the resulting point cloud will only contain the ground points. Then, all the parameters from the ”Number of LiDAR laser beams” to the ”Max Range” are referent to sensor-related variables, that will depend both on the hardware used as well as on sensor configurations. The final three parameters (”Start Angle Threshold”, ”Ground Angle Threshold” and ”Smoothing Window Size”) are referent to the ground segmentation algorithm. The ”Start Angle Threshold” represents the maximum angle that a starting angle image cell can contain to start the BFS propagation. The ”Ground Angle Threshold” is the maximum angle difference, between to contiguous points, that allows the breadth-first to propagate in a certain direction. And finally as the name implies, the ”Smoothing Window Size” is relative to the size of the smoothing window used in the algorithm. In order to tune these last parameters, depending on the type of terrain or the intended application, it is possible to increase the start angle and the ground angle thresholds, so that the algorithm can coupe with harsher terrain slopes, or decrease them, to create a more slope sensible segmentation. The window size can also vary so that the smoothing effect can be customized, where a higher smoothing effect is achieved by opting for a higher window size, and a lower with a lower window size. 5.2 ALFA-Gs Hybrid Implementation With the purpose of minimizing the timing pressure from ALFA-Gs the Hybrid approach was implemented making use of programmable logic, and with it, some communication requirements had to be addressed. In figure 5.2 is possible to observe an overall view of the ALFA-Gs Hybrid memory and communication architecture. ALFA-Node Controler AXI-Lite Controler ALFA-Gs Hw Accelerators ALFA Memory Managemnt Unit DDR Memory Segment 1 0x0F000000 (...) Segment 2 0x0F100000 (...) ALFA-Gs Hw Extension AXI-FULL AXI-LITE Reg 1 (...) Reg n Figure 5.2: ALFA-Gs Hybrid memory and communication architecture. Chapter 5. Alfa-Gs Implementation 56 The ALFA-Node writes in the development board DDR memory, which serves as a bridge between the software and the purely hardware components of the hybrid approach, enabling the PL to access the input point cloud data and the PS to read the outputs from the hardware modules. The memory was divided into two different reserved sections, so that it could be accessed for different purposes at the same time, in a safe and isolated manner, while avoiding overwriting certain memory regions unintentionally. The first section starts at physical address 0x0F000000 and is used to write the input point cloud from the PS side and then to store the range image that comes from PL. The second section starts at physical address 0x0F100000 and stores the output filtered angle image coming from the PL logic blocks. The data from the DDR flows to the ALFA MMU through an Advanced eXtensible Interface (AXI)-FULL interface, offering a high-performance memory-mapped stream of data with individual channels for read and write operations, independent control signals and address/data buses. This MMU is responsible for handling the data transfers from and to the DDR memory and fetching data to the hardware accelerators. Regarding the configurations parameters and the control signals sent between the ALFA-Node and the ALFA-Gs core accelerators, they flow through an AXI-LITE interface, that although sharing a similar architectural structure with the AXI-FULL interface, it consists on a stripped down version, lacking features such as burst mode support, and so being a subset of AXI-FULL. The AXI-LITE Controller manages this data exchange between the ALFA-Node and the ALFA-Gs hardware accelerators, configuring the hardware modules that require custom parameters and exchanging control signals that indicate the overall status of the ground segmentation, ultimately serving as the configuration controller of the ALFA-Gs hardware Extension. 5.2.1 DDR Memory Organization As previously stated, the DDR is addressed in two different segments, the first used for both the input point cloud and the resulting range image from the hardware accelerators, and the second one for the filtered angle image output from the hardware cores. The input point cloud is introduced in the DDR memory on a spherical coordinates format, replicating the scenario where the ALFA SIU unit provides the LiDAR readings. In order to operate only with integers numbers in the PL side, while maintaining data fidelity, some data upscaling had to be done to ensure that all the values are within a manageable resolution loss margin. So for the elevation and azimuth values, a multiplication factor was set to 100, as well as for the range, making the system sensible up to the centimetre. Chapter 5. Alfa-Gs Implementation 63 store the range image data column by column sequentially on the BRAM memory, since by design, the following modules process the range image data vertically, meaning that the data is analysed on a columnby-column approach. To do so, the module requires as input data the number of lasers the LiDAR sensor possesses and the point data in the format outputted by the coordinate calculator. Having that information, the following equation is used to calculate the points address in the BRAM: pointBRAMaddress =x∗nlasers +y;(5.2) Relying on Equation 5.2, every point is organized on the BRAM accordingly to its position on the range image, so that the points placed in the first column of the range image are stored on the first addresses of the BRAM, while the points on the last column will be stored on the highest addresses of the BRAM memory. In this way the following module can read the range image column by column, only by requesting data from the BRAM sequentially from the lowest to the highest address, not having to perform extra steps to do so. Figure 5.10 exemplifies the address attribution for rotor based sensor with 64 lasers emitters spinning at 10 Hz, resulting on an address range between zero and 115199. 1 ... ... 0 Position Organizer Point position (x,y) BRAM addr (0,0) (0,1) (0, ...) (0,63) (1,0) (1,1) (1, ...) (1,63) First column Second column Last point 115199 ... (1799,63) Point data Number of lasers 63 64 65 127 ... (...) Figure 5.10: Position Organizer BRAM structure. 5.2.2.3 Trigonometry Calculator After having the range image fully created the trigonometry calculator module is enabled. This module is responsible for preparing the data for the following module, the angle calculator module, executing a series of trigonometric calculations so that the steps within the angle matrix creation get divided on a pipeline approach. This process starts by fetching data from the range image BRAM, however, instead of fetching one point at a time, this module fetches 16 points, making use of the dual port capabilities of the Chapter 5. Alfa-Gs Implementation 64 BRAM that allow for a different data width between the two ports of the memory. The access of multiple points on a single clock cycle highly accelerates the process in hardware, since 16 points are processed at once instead of processing a point per clock cycle, expanding the overall throughput of the module. The number 16 was not selected randomly to serve as the standard amount of parallel processing points, but because the vast majority of the rotor based LiDAR sensors have a number of beams multiple of 16, going from 16 up to 128. This makes it easier to divide a row of a range image into subsets of one, two, four or even eight blocks of 16 points each, ensuring that even when using a sensor with the largest amount of laser beams this block is able to process a range image column at a rate of eight clock cycles, instead of 128 clock cycles if the points were accessed individually. Index generator Sen LUT Cos LUT r_0 r_1 r_2 r_15 (...) Multiplier 16 outputs 16 outputs 16 outputs 16 outputs 32 postions array r_0 * sen_0 r_0 * cos_0 r_1 * sen_1 r_1 * cos_1 (...) r_15 * cos_15 Figure 5.11: Trigonometry calculator architecture. So after the points get fetched from the range image BRAM, they are directed to a multiplier, which together with two point-related trigonometric values, results in the output of this module. However, these trigonometric operations, more specifically the sen(x) and cos(x) of the elevation of each point, are resource expensive on hardware and could result in a latency increase, so two lookup tables were implemented with the purpose of optimizing the resource utilization and reducing latency. These lookup tables are the sen(x) LUT and the cos(x) LUT, which receive as input data an angle and output the result of the correspondent trigonometric operation in degrees, with a resolution of two decimal digits. Since the input values of this LUTs are the elevation angle of a point P and that value is totally dependent on the sensor used, it was possible to store only some predefined range of angle values of multiple sensors, so that depending on the sensor in utilization the data can be fetched from a subset of the LUT while being able to reduce its overall size at the same time. The LUTS receive data coming from the index generator, that depending on the sensor in use, will send 16 different indexes at the same time, meaning that if the sensor only has 16 laser sources, on each clock cycle, the indexes will always range from 0 to 15. However, if the sensor is equipped with 32 laser sources, on one cycle the indexes will still range from 0 to 15 but on the next cycle they will range from 16 to 31 and then going back to 0 to 15, meaning that each subset of the range image column gets its respective trigonometry indexes correctly. After the multiplication between the ranges and the trigonometric functions is performed, a 32 position array will be filled with each result. This means that for each point under analysis two cells of the array will be filled, one with the result of the points range times the sen of the points elevation, and the other with Chapter 5. Alfa-Gs Implementation 65 the outcome of the multiplication between the points range and the cos(x) of the points elevation, having each cell 25 bits and being this array the output of the module. 5.2.2.4 Angle Calculator After the multiplications between the ranges and the trigonometric functions are performed, a 32- position array will be filled with each result. This means that for each point under analysis, two cells of the array will be filled, one with the result of the points range times the sen(x) of the points elevation, and the other with the outcome of the multiplication between the points range and the cos(x) of the points elevation, having each cell 25 bits and being this array the output of the module. 32 postions array r_0 * sen_0 r_0 * cos_0 r_1 * sen_1 r_1 * cos_1 (...) r_15 * cos_15 Subtraction Block 0 (Δz) Atan LUT Division Block 0 (Δz/Δx) Subtraction Block 0 (Δx) (...) (...) (...) Subtraction Block 15 (Δz) Division Block 14 (Δz/Δx) Subtraction Block 15 (Δx) prev_r* prev_sen prev_r* prev_cos Figure 5.12: Angle calculator architecture. Then on working state, this module is fed on every cycle with a 32-position array coming from the trigonometry calculator. As represented in Figure 5.12, each position of the input array is directed to a subtraction block, in order to calculate the ∆z and the ∆x present on Equation 4.8. This delta calculation is depicted on the Algorithm 1, where a series of checks are made so that is possible to ensure that the subtraction will result in positive deltas so that it will not be needed to handle negative values on hardware. The aforementioned calculation also needs to guarantee that when both the numerator and denominator are equal to zero, the ∆z also gets the value of zero, and when only the denominator is equal to zero the ∆z gets the value of 275. This values assertion makes sure that in the next steps, the output angle is asserted with the value zero or approximately 90 accordingly, as dictated by the atan(x) equation. After that, the resulting subtractions enter one of the 15 division blocks implemented in this module, created with the purpose of ensuring parallelism on the mathematical calculations involved Chapter 5. Alfa-Gs Implementation 66 in the angle creation. These blocks are Intellectual Property (IP) division cores supplied by Vivado, that are already resource optimized and facilitate the developers’ job since there is no need to implement them from scratch. As seen in the original Equation 4.8, the standard atan(x) function does not require divisions. However since in hardware, this function is implemented by means of a LUT, the atan(∆z, ∆x) was replaced with its equivalent atan(∆z/∆x), so that after the division, the atan(x) LUT only requires one input instead of two, massively reducing its size while simplifying its implementation. The last step of this module is to convert the ∆z/∆xvalue on an angle value, by means of the atan(x) LUT, ranging from 0 to 90 degrees. Other approaches using the Vivado COordinate Rotation DIgital Computer (CORDIC) IP core were evaluated, however, although that module is capable of achieving a greater resolution in comparison with this LUTs approach, that extra resolution would not have a significant impact on the outputs of this application, and the resources and timing results would be negatively affected by it. Algorithm 1 Deltas calculations pseudocode Require: iarray: Input array. numerator:iarray[i]−iarray[i+ 2]. denominator:iarray[i+ 1] −iarray[i+ 3]. deltazpipe: Module of the numerator. deltaxpipe: Module of the denominator. 1: for i←0to 15 do 2: if denominator[i] = 0 then 3: if numerator[i] = 0 then 4: deltazpipe[i]←0 5: else 6: deltazpipe[i]←275 7: end if 8: else 9: if numerator[i]<0then 10: deltazpipe[i]←iarray[i+ 2] −iarray[i] 11: else 12: deltazpipe[i]←iarray[i]−iarray[i+ 2] 13: end if 14: if denominator[i]<0then 15: deltaxpipe[i]←iarray[i+ 3] −iarray[i+ 1] 16: else 17: deltaxpipe[i]←iarray[i+ 1] −iarray[i+ 3] 18: end if 19: end if 20: end for Chapter 5. Alfa-Gs Implementation 67 p_0 p_1 p_2 p_15 (...) p_16 p_17 p_18 p_31 (...) 1 2 0 -> 1 1 -> 2 2 -> 3 14 -> 15 previous point -> 0 0 -> 1 1 -> 2 2 -> 3 14 -> 15 Figure 5.13: Column subsection approach. It is also worth noting that there are 15 external division blocks instead of 16 since one of the divisions is made inside the module. This is done to facilitate the control of the module since it requires data relative to the last point from the previous input array, in case a column subsection approach is being used, represented in Figure 5.13. This approach allows processing up to 16 angle creations at the same time if the range image under analysis has a row size higher than 16. 5.2.2.5 Moving Average Filter The moving average filter is the last step performed on hardware from the hybrid approach. This module has the purpose of smoothing out the angle data coming from the angle calculator, and so, reducing the impact that some eventual outliers could have on the segmentation process. These outliers can, for example, appear from erroneous LiDAR sensor readings, and so, making it impossible to guarantee that they will not emerge. Following the pipeline approach from the previous modules, this module receives the blocks of angle data and applies a moving average algorithm with a fixed window size of three, meaning that a certain point will be smoothed out based on the average value of its two direct neighbours. The formula to calculate the filtered value is the following: filteredpoint =prevpoint +nextpoint 2(5.3) To apply this Formula to hardware logic, the divisions by two were replaced by shifts to the right instead of using division blocks, since they are equivalent and may end up optimizing the hardware utilization. Chapter 5. Alfa-Gs Implementation 68 Algorithm 2 Moving average filter pseudocode. Require: iangle: Input angle array. ofilteredangle: Output filtered angle array. 1: for i←1to 14 do 2: if (iangle[i−1] and iangle[i]and iangle[i+ 1])! = 0 then 3: ofilteredangle[i] = (iangle[i−1] + iangle[i+ 1])/2 4: else 5: ofilteredangle[i] = iangle[i] 6: end if 7: end for The logic behind the implementation can be seen on Algorithm 2, where only if the points under analysis and their neighbours are different than zero the filter is applied, otherwise the original angle value is maintained. Although 16 points are being processed at once, the for loop only has 14 iterations, since the first and last cell of each angle subset may be dependent on the sequential neighbouring subsets, as highlighted in Figure 5.14, being this cases processed independently of the for loop. xz x y z(...) (...) (...) (...) (...) (...) (...) (...) (...) (...) (...) (...) z y z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 z = (x + y) >> 1 (...) (...) (...) (...) (...)(...)(...) (...)(...)(...) (...)(...) (...) (...)(...) (...)(...) (...) (...) 1 2 z = (x + y) >> 1 Figure 5.14: Moving average on two data subsets. The filtered blocks containing 16 angle data cells of 10 bits each, are then placed on a BRAM sequentially, not having to organize the data before inserting it into the memory since it has been previously arranged by the position organizer sub-module. The purpose behind the creation of this BRAM is to store the resulting filtered angle image so that in the following step the angle data can be sent to software to be analyzed, and ultimately finish the segmentation process. 5.2.2.6 Breadth-First Search and Point Cloud Reconstruction After the moving average filter finalizes the angle image smoothing the data is ready to be sent back to the PS side, so that the final step of the segmentation algorithm is performed on software. Chapter 5. Alfa-Gs Implementation 69 The choice of performing this last step on software is backed by the fact that the BFS algorithm performs at a relatively fast rate when compared with the other ground segmentation modules, as shown by the preliminary software timing results discussed on Section 4.4. So, it is possible to conclude that the BFS does not add a major timing impact on the overall ground segmentation approach. Also, the only way of capitalizing on hardware parallelization would be to perform a rework of the algorithm, dividing it into individual segmentation jobs working concurrently. However, that rework of the algorithm would involve a much larger amount of engineering effort than what the timeline of this dissertation could provide, due to the intricacies of this segmentation step. A Additionally, it is important to note that the resource usage would increase greatly, in proportion to the number of jobs running in parallel. So, after the angle image BRAM is totally populated by the filtered angles, coming from the moving average filter module, all the data required to perform the final step of the segmentation process is finally ready to be sent to software. This data transfer between the software and hardware is performed by the already presented AXI-FULL interface, responsible for sending the range image data as well as the angle image data sequentially, and as previously stated, the range image and the angle image are stored at different sections of memory so that one is totally isolated from the other, thus preventing misinterpretations of the data. Each image data is then aggregated on an individual OpenCV ”MAT” structure, so that all this information can be correctly interpreted as input data by the already explored ”EraseBFS” segmentation function, depicted in Table 5.1, allowing the reuse of this function on both software and hybrid implementation flows. Finally, the last step consists of transforming the rage image data back to a tridimensional point cloud, using the functions represented on Equations 4.9 to 4.11, being again the exact same process as the fully software-based segmentation approach. 6. Evaluations and Results This chapter presents the ALFA-Gs evaluation and results, divided into the following sections: Tests Setup (Section 6.1), where the different setups and algorithm configurations are discussed, Evaluation Metrics (Section 6.2), presenting the evaluation metrics used to access the performance of the implementations, Moving Average and Savitzky-Golay Filters Comparison (Section 6.3), discussing the pros and cons of each filtering technique, Performance evaluation of the ALFA-Gs flows (Section 6.4), addressing the final evaluation results for each ALFA-Gs flow, Hardware Resources usage presentation (Section 6.5), and finally the Results Discussion (Section 6.6), that presents an overall discussion and comparison of the results obtained. 6.1 Tests Setup The tests were conducted under two separate hardware platforms, being the first a laptop equipped with an Intel Core i5-7200U running at 2.5 GHz base frequency, up to 3.1 GHz, 3 MB of Static Random- Access (SRAM) cache memory and 8GB of Synchronous Dynamic Random-Access (SDRAM) DDR4 memory. This setup was used to test and validate the desktop software-based ALFA-Gs flow. The other setup used was the Zynq UltraScale+ MPSoC ZCU104 already presented in section 3.6, with a CPU running at a clock frequency of 1.2 GHz, 2 GB of DDR4 memory running at 535 MHz and the FPGA fabric with a clock speed of 100 MHz. This was the setup used to test and validate both the embedded software implementation as well as the hybrid ALFA-Gs flow. All the tests were performed using a set of frames from the sequence zero of the publicly available Semantic KITTI dataset, that contains labelled Velodyne HDL 64 LiDAR data that served as input for the segmentation evaluation. This dataset was already presented in Section 3.5, however, it is worth highlighting that it proved to be an essential piece of information in this evaluation phase since its annotations were what allowed the extraction of accuracy results from the ground segmentation method, and consequently were what enabled the evaluation of the performance of the overall system. 70 Chapter 6. Evaluations and Results 71 Table 6.1: Algorithm testing parameters. Smoothing window size Ground angle threshold Start angle threshold 3 6.6º 30º Regarding the algorithm parameter configurations, all the final tests were performed with the same configuration values, consisting of a smoothing window of size equal to three, a ground angle threshold of six dot six degrees and a start angle threshold of 30 degrees, as depicted on Table 6.1. The presented results are an average of the metrics extracted from the same 30 point cloud frames. 6.2 Evaluation Metrics In order to evaluate the ground segmentation performance is important to collect data regarding relevant metrics, meaning that their values should reflect the real implications of the segmentation method on the output data point. It is also crucial to encompass multiple metrics related to different aspects of the system to assess the results from a global perspective, and not only from a specific metric point of view. In this type of evaluation the base metrics to ensure the quality of the segmentation are the ”true positives”, ”false positives”, ”true negatives” and ”false negatives”, alongside the time required to perform a full segmentation iteration, represented on Equations 6.1 to 6.4. TP =TPpoints TPpoints +FNpoints ∗100 (6.1) TN =TNpoints TNpoints +FPpoints ∗100 (6.2) FP =F Ppoints FPpoints +TNpoints ∗100 (6.3) FN =TNpoints FNpoints +TPpoints ∗100 (6.4) Even though these metrics are essential for segmentation evaluation, they may not provide a holistic perspective regarding segmentation accuracy, which is crucial to ensure the correct working of a segmentation algorithm. However, when these metrics are combined, they generate three new Formulas that ended up being added to the metrics evaluation set, called: Intersection-over-Union of the ground (IoUg), Recall Rate of the Ground (Recallg) and Recall Rate of the Obstacle (Recallo), depicted on Equations 6.5 to 6.8 accordingly. IoUg=1 n n ∑ v=1 TPg TPg+FPg+FNg ∗100 (6.5) Chapter 6. Evaluations and Results 72 Recallg=1 n n ∑ v=1 TPg TPg+FNg ∗100 (6.6) Recallo=1 n n ∑ v=1 TPo TPo+FNo ∗100 (6.7) Time/frame =time nframes (6.8) These metrics use the Formulas 6.1 to 6.4 applied for both ground points and obstacle points, being that the obstacle points consist of all the points that are not classified as ”road”, ”sidewalk”, ”parking” or ”other-ground” by the Semantic KITTI dataset. The IoUg measures the overlap between the predicted ground segmentation points and the truth ground points, meaning that a low IoUg should be avoided since it reflects over-segmentation. Then the Recallg measures the proportion of true positive ground points that are correctly identified out of all the points that should have been classified as ground. This way, low Recallg values can reflect undersegmentation issues, while high values can ensure a smooth driving of the AVs. Recallo is used to evaluate the method’s safety since it represents the ability to detect critical obstacles, and so is able to also identify cases of over-segmentation. Is worth mentioning that the higher the ”true positives”, ”true negatives”, IoUg, Recallg, and Recallo values the better, while the lower the ”false positives” and ”false negatives” results are the better. Finally, the last metric is the time per frame and, as the name implies, it is used to measure the algorithm segmentation speed in milliseconds per frame. 6.3 Moving Average and Savitzky-Golay Filters Comparison As previously presented in Chapter 5.2.2.5, the smoothing algorithm chosen for the ALFA-Gs hybrid implementation flow was the Moving Average filter instead of the Savitsky-Golay filter. This choice was based on several factors such as algorithm complexity, allocated resources, timing constraints and smoothing performance. Starting with complexity comparison, the Savitsky-Golay filter is much more complex when compared with the Moving Average one, not only because of the share amount of evaluation steps but also due to its mathematical expensive functions, such as polynomial regressions. Additionally, this filter would require a much larger FPGA area when compared to the Moving Average one, since this last only needs two mathematical functions to be able to perform the filtering, being those a number comparison function and a division by two, that in hardware can be performed by a simple bit shift to the right. Regarding time consumption, the Savitsky-Golay filter would be much more unrewarding to accelerate in hardware, not only because its software version is already optimized by the OpenCV library, but also because the Moving Average filter in hardware is able to take advantage of a pipeline processing scheme, as presented 7. Conclusion In the last few decades, there has been a notable surge in the research and development of AVs as a compelling solution to revolutionize modern transportation. The emergence of LiDAR sensors solutions directed towards the development of AVs is proving to be a pivotal technology for achieving true autonomous vehicles, increasing accuracy and adding redundancy to the perception systems. These systems require a high degree of confidence while classifying their surroundings as ”drivable” or ”non-drivable” areas, having to perform information-packed evaluations several times per second. That is where ground segmentation emerges as a crucial step in the perception pipeline. The ground segmentation algorithms are responsible for creating reliable reference frames of the road, isolating the ground plane from the remaining environment and allowing the perception systems to focus their attention on relevant objects and obstacles in the scene, enhancing the efficiency and effectiveness of subsequent object detection and classification algorithms. This leads to the filtering out of unnecessary information, optimizing computational resources and reducing processing time for real-time decision-making, essential for achieving full vehicle autonomy. With ALFA-Gs, this dissertation proposes a generic LiDAR ground segmentation solution that in addition to the common fully software-based solutions, also offers a software/hardware hybrid approach with the purpose of accelerating the segmentation process. Numerous ground segmentation approaches were carefully analysed in terms of segmentation performance, speed and resource usage, presented in Chapter 2, and from these evaluations an algorithm was selected considering the best possible trade-off between the evaluation parameters and the ALFA project requirements. After that, a profiling of the ground segmentation algorithm was performed in software to depict which steps of the ground segmentation process were advantageous to accelerate in hardware. From this analysis was possible to conclude that multiple steps could benefit from hardware acceleration and that those improvements could enable real-time operation of the ground segmentation system in the ALFA project development board, presented in Chapter 3, fulfilling one of the main project/dissertation requirements. After implementation, several tests and evaluations were performed, depicted in Chapter 6, revealing the performance results of this ground segmentation solution, again in terms of segmentation accuracy, speed and resource usage. From this analysis it is possible to conclude that the hybrid ALFA-Gs is capable of reducing the processing time of the original desktop software solution by a factor of 2.3, and in the case of the embedded software solution, the reduction is even higher, performing segmentation at a rate 4.46 times faster, while achieving similar segmentation performance results and utilizing only a portion of 79 Chapter 7. Conclusion 80 the available FPGA fabric. Also, the complete ground segmentation process is performed at a rate almost four times faster than initially aimed real-time segmentation speed, while being fully integrated on the ALFA platform therefore, being possible to conclude that this work was successful in complying with the proposed dissertation/project requirements. 7.1 Future Work Despite the fact that the ALFA-Gs fulfils all the initial dissertation requirements, the design and development phases have brought to light potential areas for system enhancements. These improvements were not incorporated into this final version due to scheduling constraints and priority management, focusing the allocated time on the development of the core system functionalities. Nevertheless, the following aspects outline the potential topics for future work and refinement: •Alternative angle image creation approach: During the implementation phase, the idea of creating precomputed tables, populated with trigonometric operation results required to perform the angle image creation process emerged, being these tables based on the sensor’s vertical resolution specifications. This approach was adopted in hardware, however, the software version of the ALFA- Gs did not take advantage of this principle, which could impact positively the angle creation process speed. •BFS step parallelization: This improvement consists of the parallelization of the final BFS step segmentation step, having different threads evaluating the neighbour points of different starting points concurrently, ultimately dividing the ground from the non-ground points on a more time effective manner. It can be explored both on software as well as in hardware. •Integration of alternative ground segmentation methods: Even though the goal of this dissertation focused on the selection and implementation of a single ground segmentation solution, the addition of different ground segmentation methods would enrich the overall final conclusions, giving the possibility to compare the differences between the method’s relative performances and infer the strong and week points of each solution. References [1] T. Litman, Autonomous Vehicle Implementation Predictions . Victoria Transport Policy Institute Victoria, Canada, 2021. [2] Society of Automotive Engineers (SAE), “Taxonomy and Definitions for Terms Related To Driving Automation Systems for On-road Motor Vehicles (Surface Vehicle Recommended Practice: Superseding J3016 Jun 2018),” SAE International, Apr 2021. [3] Mercedes-Benz Group, “First Internationally Valid System Approval for Conditionally Automated Driving,” Mercedes , Dec 2021. [4] U. R. No, “157—Automated Lane Keeping Systems (ALKS),” Nations Economic Commission for Europe: Geneva, Switzerland , pp. 75–137, 2021. [5] T. Goelles, B. Schlager, and S. Muckenhuber, “Fault Detection, Isolation, Identification and Recovery (FDIIR) Methods for Automotive Perception Sensors Including A Detailed Literature Survey for Lidar,” Sensors , vol. 20, no. 13, 2020. [6] C. Urmson et al. , “Autonomous Driving In Urban Environments: Boss and The Urban Challenge,” Journal of Field Robotics , vol. 25, no. 8, pp. 425–466, 2008. [7] E. Marti, M. A. de Miguel, F. Garcia, and J. Perez, “A Review Of Sensor Technologies for Perception In Automated Driving,” IEEE Intelligent Transportation Systems Magazine , vol. 11, no. 4, pp. 94–108, 2019. [8] B. Shahian Jahromi, T. Tulabandhula, and S. Cetin, “Real-Time Hybrid Multi-Sensor Fusion Framework for Perception in Autonomous Vehicles,” Sensors , vol. 19, no. 20, 2019. [9] A. F. Chase, D. Z. Chase, J. F. Weishampel, J. B. Drake, R. L. Shrestha, K. C. Slatton, J. J. Awe, and W. E. Carter, “Airborne LiDAR, Archaeology, and The Ancient Maya Landscape At Caracol, Belize,” Journal of Archaeological Science , vol. 38, no. 2, pp. 387–398, 2011. [10] A. S. Z. Chase, D. Z. Chase, and A. F. Chase, LiDAR for Archaeological Research and the Study of Historical Landscapes , pp. 89–100. Cham: Springer International Publishing, 2017. [11] B. Štular, E. Lozić, and S. Eichert, “Airborne LiDAR-Derived Digital Elevation Model for Archaeology,” Remote Sensing , vol. 13, no. 9, 2021. 81 REFERENCES 82 [12] L. Jones and P. Hobbs, “The Application Of Terrestrial LiDAR for Geohazard Mapping, Monitoring and Modelling In The British Geological Survey,” Remote Sensing , vol. 13, no. 3, 2021. [13] G. P. Asner, J. Mascaro, H. C. Muller-Landau, G. Vieilledent, R. Vaudry, M. Rasamoelina, J. S. Hall, and M. van Breugel, “A Universal Airborne LiDAR Approach for Tropical Forest Carbon Mapping,” Oecologia , vol. 168, pp. 1147–1160, Apr 2012. [14] X. Li, C. Liu, Z. Wang, X. Xie, D. Li, and L. Xu, “Airborne lidar: state-of-the-art of system design, technology and application,” Measurement Science and Technology , vol. 32, p. 032002, dec 2020. [15] X. Liu, “Airborne LiDAR for DEM Generation: Some Critical Issues,” Progress in Physical Geography: Earth and Environment , vol. 32, no. 1, pp. 31–49, 2008. [16] X. Meng, N. Currit, and K. Zhao, “Ground Filtering Algorithms for Airborne LiDAR Data: A Review Of Critical Issues,” Remote Sensing , vol. 2, no. 3, pp. 833–860, 2010. [17] W. Y. Yan, A. Shaker, and N. El-Ashmawy, “Urban Land Cover Classification Using Airborne LiDAR Data: A Review,” Remote Sensing of Environment , vol. 158, pp. 295–310, 2015. [18] Z. Chen, B. Gao, and B. Devereux, “State-of-the-Art: DTM Generation Using Airborne LIDAR Data,” Sensors , vol. 17, no. 1, 2017. [19] U. C. Herzfeld, B. W. McDonald, B. F. Wallin, T. A. Neumann, T. Markus, A. Brenner, and C. Field, “Algorithm for detection of ground and canopy cover in micropulse photon-counting lidar altimeter data in preparation for the icesat-2 mission,” IEEE Transactions on Geoscience and Remote Sensing , vol. 52, no. 4, pp. 2109–2125, 2014. [20] Y. Li and J. Ibanez-Guzman, “Lidar for Autonomous Driving: The Principles, Challenges, and Trends for Automotive Lidar and Perception Systems,” IEEE Signal Process. Mag. , vol. 37, no. 4, pp. 50–61, 2020. [21] R. Roriz, J. Cabral, and T. Gomes, “Automotive LiDAR Technology: A Survey,” IEEE Trans. on Intell. Transp. Syst , pp. 1–16, 2021. [22] N. Lopac, I. Jurdana, A. Brnelić, and T. Krljan, “Application of Laser Systems for Detection and Ranging in the Modern Road Transportation and Maritime Sector,” Sensors , vol. 22, no. 16, 2022. [23] E. Arnold, O. Y. Al-Jarrah, M. Dianati, S. Fallah, D. Oxtoby, and A. Mouzakitis, “A Survey on 3D Object Detection Methods for Autonomous Driving Applications,” IEEE Transactions on Intelligent Transportation Systems , vol. 20, no. 10, pp. 3782–3795, 2019. [24] S. Shi, X. Wang, and H. Li, “PointRCNN: 3D Object Proposal Generation and Detection From Point Cloud,” 2019 IEEE/CVF Conf. on Comput. Vision and Pattern Recognition (CVPR) , pp. 770–779, 2019. [25] J. Wu, H. Xu, Y. Tian, R. Pi, and R. Yue, “Vehicle Detection Under Adverse Weather From Roadside LiDAR Data,” Sensors , vol. 20, no. 12, 2020. REFERENCES 83 [26] Y. Li, L. Ma, Z. Zhong, F. Liu, M. A. Chapman, D. Cao, and J. Li, “Deep Learning for LiDAR Point Clouds in Autonomous Driving: A Review,” IEEE Transactions on Neural Networks and Learning Systems , vol. 32, no. 8, pp. 3412–3432, 2021. [27] H. Wang, B. Wang, B. Liu, X. Meng, and G. Yang, “Pedestrian Recognition and Tracking Using 3D LiDAR for Autonomous Vehicle,” Robotics and Autonomous Systems , vol. 88, pp. 71–78, 2017. [28] X. Peng and J. Shan, “Detection and Tracking of Pedestrians Using Doppler LiDAR,” Remote Sensing , vol. 13, no. 15, 2021. [29] W. Huang, H. Liang, L. Lin, Z. Wang, S. Wang, B. Yu, and R. Niu, “A Fast Point Cloud Ground Segmentation Approach Based on Coarse-To-Fine Markov Random Field,” IEEE Trans. on Intell. Transp. Syst. , pp. 1–14, 2021. [30] R. Karlsson, D. R. Wong, K. Kawabata, S. Thompson, and N. Sakai, “Probabilistic Rainfall Estimation from Automotive Lidar,” 2021. [31] G. Kim, J. Eom, and Y. Park, “An Experiment of Mutual Interference Between Automotive LIDAR Scanners,” in 2015 12th International Conf. on Inf. Technol. - New Generations , pp. 680–685, 2015. [32] I.-P. Hwang, S.-J. Yun, and C.-H. Lee, “Mutual Interferences In Frequency-modulated Continuouswave (FMCW) LiDARs,” Optik , vol. 220, p. 165109, 2020. [33] I.-P. Hwang, S.-j. Yun, and C.-H. Lee, “Study on the Frequency-Modulated Continuous-Wave LiDAR Mutual Interference,” in 2019 IEEE 19th International Conf. Communication Technology (ICCT) , pp. 1053–1056, 2019. [34] A. M. Wallace, A. Halimi, and G. S. Buller, “Full Waveform LiDAR for Adverse Weather Conditions,” IEEE Transactions on Vehicular Technology , vol. 69, no. 7, pp. 7064–7077, 2020. [35] C. Goodin, D. Carruth, M. Doude, and C. Hudson, “Predicting the Influence of Rain on LIDAR in ADAS,” Electronics , vol. 8, p. 89, Jan 2019. [36] R. Heinzler, P. Schindler, J. Seekircher, W. Ritter, and W. Stork, “Weather Influence and Classification with Automotive Lidar Sensors,” in 2019 IEEE Intelligent Vehicles Symposium (IV) , pp. 1527–1534, 2019. [37] C. Linnhoff, K. Hofrichter, L. Elster, P. Rosenberger, and H. Winner, “Measuring the Influence of Environmental Conditions on Automotive Lidar Sensors,” Sensors , vol. 22, no. 14, 2022. [38] R. Roriz, A. Campos, S. Pinto, and T. Gomes, “DIOR: A Hardware-Assisted Weather Denoising Solution for LiDAR Point Clouds,” IEEE Sensors Journal , vol. 22, no. 2, pp. 1621–1628, 2022. [39] L. Cunha, R. Roriz, S. Pinto, and T. Gomes, “Hardware-Accelerated Data Decoding and Reconstruction for Automotive LiDAR Sensors,” IEEE Transactions on Vehicular Technology , pp. 1–10, 2022. REFERENCES 84 [40] C. Cao, M. Preda, and T. Zaharia, “3D Point Cloud Compression: A Survey,” in The 24th International Conference on 3D Web Technology , Web3D ’19, (New York, NY, USA), p. 1–9, Association for Computing Machinery, 2019. [41] I. Maksymova, C. Steger, and N. Druml, “Review of LiDAR Sensor Data Acquisition and Compression for Automotive Applications,” Proceedings , vol. 2, no. 13, 2018. [42] A. Bar Hillel, R. Lerner, D. Levi, and G. Raz, “Recent Progress In Road and Lane Detection: A Survey, journal=Machine Vision and Applications,” vol. 25, pp. 727–745, Apr 2014. [43] D. Fernandes, A. Silva, R. Névoa, C. Simões, D. Gonzalez, M. Guevara, P. Novais, J. Monteiro, and P. Melo-Pinto, “Point-cloud Based 3D Object Detection and Classification Methods for Self-driving Applications: A Survey and Taxonomy,” Information Fusion , vol. 68, pp. 161–191, 2021. [44] W. Zimmer, E. Ercelik, X. Zhou, X. J. D. Ortiz, and A. Knoll, “A Survey of Robust 3D Object Detection Methods in Point Clouds,” 2022. [45] X. Ma, W. Ouyang, A. Simonelli, and E. Ricci, “3D Object Detection from Images for Autonomous Driving: A Survey,” 2022. [46] C. Maag, D. Muhlbacher, C. Mark, and H.-P. Kruger, “Studying Effects Of Advanced Driver Assistance Systems (adas) On Individual and Group Level Using Multi-driver Simulation,” IEEE Intelligent Transportation Systems Magazine , vol. 4, no. 3, pp. 45–54, 2012. [47] A. Ziebinski, R. Cupek, D. Grzechca, and L. Chruszczyk, “Review of advanced driver assistance systems (ADAS),” in AIP Conference Proceedings , vol. 1906, p. 120002, AIP Publishing LLC, 2017. [48] S. S. Shadrin and A. A. Ivanova, “Analytical Review of Standard Review of Standard SAE J3016 «Taxonomy and Definitions for Terms Related to Driving Automation Systems for On-road Motor Vehicles » with latest updates,” Avtomobil’. Doroga. Infrastruktura. , no. 3 (21), p. 10, 2019. [49] M. Galvani, “History and future of Driver Assistance,” IEEE Instrumentation & Measurement Magazine , vol. 22, no. 1, p. 11–16, 2019. [50] H. M. Thakurdesai and J. V. Aghav, “Autonomous Cars: Technical Challenges and a Solution to Blind Spot,” in Advances in Computational Intelligence and Communication Technology (X.-Z. Gao, S. Tiwari, M. C. Trivedi, and K. K. Mishra, eds.), (Singapore), pp. 533–547, Springer Singapore, 2021. [51] D. Turcian, V. Dolga, D. Turcian, and C. Moldovan, “Fusion Sensors Experiment for Active Cruise Control,” in Joint International Conference of the International Conference on Mechanisms and Mechanical Transmissions and the International Conference on Robotics , pp. 432–443, Springer, 2020. [52] N. Ragesh and R. Rajesh, “Pedestrian Detection In Automotive Safety: Understanding State-of-the- art,” IEEE Access , vol. 7, pp. 47864–47890, 2019. REFERENCES 85 [53] M. Baharuddin, N. Khamis, K. A. Kassim, and M. Mansor, “Autonomous Emergency Brake (AEB) for pedestrian for ASEAN NCAP safety rating consideration: A review,” Journal of the Society of Automotive Engineers Malaysia , vol. 3, no. 1, 2019. [54] H. Ren and F. Haipeng, “Research and Development Of Autonomous Emergency Brake (AEB) Technology,” Journal of Automotive Safety and Energy , vol. 10, no. 1, p. 1, 2019. [55] T. Gomes, D. Matias, A. Campos, L. Cunha, and R. Roriz, “A Survey on Ground Segmentation Methods for Automotive LiDAR Sensors,” Sensors , vol. 23, no. 2, 2023. [56] R. Roriz, J. Cabral, and T. Gomes, “Automotive LiDAR Technology: A Survey,” IEEE Transactions on Intelligent Transportation Systems , p. 1–16, 2021. [57] B. Shahian Jahromi, T. Tulabandhula, and S. Cetin, “Real-time hybrid multi-sensor fusion framework for perception in Autonomous Vehicles,” Sensors , vol. 19, no. 20, p. 4357, 2019. [58] O. Bialer, A. Jonas, and T. Tirer, “Super Resolution Wide Aperture Automotive Radar,” IEEE Sensors Journal , vol. 21, no. 16, pp. 17846–17858, 2021. [59] J. Schulte-Tigges, M. Förster, G. Nikolovski, M. Reke, A. Ferrein, D. Kaszner, D. Matheis, and T. Walter, “Benchmarking of Various LiDAR Sensors for Use in Self-Driving Vehicles in Real-World Environments,” Sensors , vol. 22, no. 19, 2022. [60] S. Royo and M. Ballesta-Garcia, “An Overview of LIDAR Imaging Systems for Autonomous Vehicles,” Applied Sciences , vol. 9, no. 19, p. 4093, 2019. [61] B. Behroozpour, P. A. Sandborn, M. C. Wu, and B. E. Boser, “Lidar System Architectures and Circuits,” IEEE Communications Magazine , vol. 55, no. 10, p. 135–142, 2017. [62] S. Hwang, J. Jang, and K. Park, “Solving 2pi Ambiguity Problem Of A Laser Scanner Based On Phase-shift Measurement Method or Long Distances Measurement,” in 2012 12th International Conference on Control, Automation and Systems , pp. 1250–1252, IEEE, 2012. [63] M. E. Warren, “Automotive Lidar Technology,” 2019 Symposium on VLSI Circuits , 2019. [64] Z. Ling, M. Yuqing, and S. Ruoming, “Study On The Resolution Of Laser Scanning Point Cloud,” IGARSS 2008 - 2008 IEEE International Geoscience and Remote Sensing Symposium , 2008. [65] “Velodyne Puck user Manual - VLP-16 User Manual.” [66] M. E. Warren, “Automotive LIDAR technology,” in 2019 Symposium on VLSI Circuits , pp. C254– C255, IEEE, 2019. [67] H. W. Yoo, N. Druml, D. Brunner, C. Schwarzl, T. Thurner, M. Hennecke, and G. Schitter, “MEMS- based Lidar for Autonomous Driving,” e & i Elektrotechnik und Informationstechnik , vol. 135, no. 6, pp. 408–415, 2018. [68] C.-P. Hsu, B. Li, B. Solano-Rivas, A. R. Gohil, P. H. Chan, A. D. Moore, and V. Donzella, “A Review and Perspective On Optical Phased Array for Automotive LiDAR,” IEEE Journal of Selected Topics in REFERENCES 86 Quantum Electronics , vol. 27, no. 1, pp. 1–16, 2020. [69] J. Hu, B. Liu, R. Ma, M. Liu, and Z. Zhu, “A 32x 32-Pixel Flash LiDAR Sensor With Noise Filtering for High-Background Noise Applications,” IEEE Trans. on Circuits and Syst. I: Regular Papers , pp. 1–12, 2021. [70] X. Wang, H. Pan, K. Guo, X. Yang, and S. Luo, “The Evolution Of Lidar and Its Application In High Precision Measurement,” IOP Conference Series: Earth and Environmental Science , vol. 502, no. 1, p. 012008, 2020. [71] United States Department of Transportation, “2018 Fatal Motor Vehicle Crashes: Overview.” [72] R. Qian, X. Lai, and X. Li, “3D Object Detection for Autonomous Driving: A Survey,” arXiv preprint arXiv:2106.10823 , 2021. [73] M. Grassi and R. Opromolla, “LiDAR for Autonomous Vehicles.” [74] “Velodyne Alpha Puck Datasheet.” [75] I. Maksymova, C. Steger, and N. Druml, “Review of LiDAR Sensor Data Acquisition and Compression for Automotive Applications,” Proceedings , vol. 2, no. 13, p. 852, 2018. [76] M. M. Abdelwahab, W. S. El-Deeb, and A. A. A. Youssif, “LIDAR Data Compression Challenges and Difficulties,” 2019 5th International Conference on Frontiers of Signal Processing (ICFSP) , 2019. [77] C. Cao, M. Preda, and T. Zaharia, “3D Point Cloud Compression: A Survey,” The 24th International Conference on 3D Web Technology , 2019. [78] A. Hussain, A. Al-Fayadh, and N. Radi, “Image Compression Techniques: A Survey In Lossless and Lossy Algorithms,” Neurocomputing , vol. 300, p. 44–69, 2018. [79] “G-PCC codec description.” [80] J. Zhang and S. Singh, “LOAM: Lidar Odometry and Mapping in Real-time,” in Proc. of Robotics: Sci. and Syst. , (Berkeley, USA), July 2014. [81] I. Bogoslavskyi and C. Stachniss, “Efficient Online Segmentation for Sparse 3D Laser Scans,” PFG – Journal of Photogrammetry, Remote Sensing and Geoinformation Science , vol. 85, no. 1, p. 41–52, 2017. [82] P. M. Chu, S. Cho, J. Park, S. Fong, and K. Cho, “Enhanced Ground Segmentation Method for Lidar Point Clouds in Human-centric Autonomous Robot Systems, volume=9,” Human-centric Computing and Information Sciences , no. 1, 2019. [83] Z. Shen, H. Liang, L. Lin, Z. Wang, W. Huang, and J. Yu, “Fast Ground Segmentation for 3D LiDAR Point Cloud Based on Jump-Convolution-Process,” Remote Sensing , vol. 13, no. 16, p. 3239, 2021. [84] Z. Luo, M. V. Mohrenschildt, and S. Habibi, “A Probability Occupancy Grid Based Approach for Real-time Lidar Ground Segmentation,” IEEE Transactions on Intelligent Transportation Systems , vol. 21, no. 3, p. 998–1010, 2020. REFERENCES 87 [85] J. Cheng, D. He, and C. Lee, “A Simple Ground Segmentation Method for Lidar 3d Point Clouds,” 2020 2nd International Conference on Advances in Computer Technology, Information Science and Communications (CTISC) , 2020. [86] V. Jimenez, J. Godoy, A. Artunedo, and J. Villagra, “Ground Segmentation Algorithm for Sloped Terrain and Sparse LiDAR Point Cloud,” IEEE Access , vol. 9, p. 132914–132927, 2021. [87] A. Kampker, M. Sefati, A. S. Abdul Rachman, K. Kreisköther, and P. Campoy, “Towards Multi-object Detection and Tracking In Urban Scenario Under Uncertainties,” Proceedings of the 4th International Conference on Vehicle Technology and Intelligent Transport Systems , 2018. [88] W. Huang, H. Liang, L. Lin, Z. Wang, S. Wang, B. Yu, and R. Niu, “A Fast Point Cloud Ground Segmentation Approach Based on Coarse-To-Fine Markov Random Field,” IEEE Transactions on Intelligent Transportation Systems , p. 1–14, 2021. [89] S. Kato, S. Tokunaga, Y. Maruyama, S. Maeda, M. Hirabayashi, Y. Kitsukawa, A. Monrroy, T. Ando, Y. Fujii, and T. Azumi, “Autoware on Board: Enabling Autonomous Vehicles with Embedded Systems,” in 2018 ACM/IEEE 9th International Conference on Cyber-Physical Systems (ICCPS) , pp. 287–296, 2018. [90] B. Douillard, J. Underwood, N. Melkumyan, S. Singh, S. Vasudevan, C. Brunner, and A. Quadros, “Hybrid Elevation Maps: 3D Surface Models for Segmentation,” in 2010 IEEE/RSJ International Conference on Intelligent Robots and Systems , pp. 1532–1538, 2010. [91] A. Asvadi, P. Peixoto, and U. Nunes, “Detection and Tracking of Moving Objects Using 2.5D Motion Grids,” in 2015 IEEE 18th International Conference on Intelligent Transportation Systems , pp. 788– 793, 2015. [92] Q. Li, L. Zhang, Q. Mao, Q. Zou, P. Zhang, S. Feng, and W. Ochieng, “Motion Field Estimation for a Dynamic Scene Using a 3D LiDAR,” Sensors , vol. 14, no. 9, pp. 16672–16691, 2014. [93] X. Meng, Z. Cao, S. Liang, L. Pang, S. Wang, and C. Zhou, “A Terrain Description Method for Traversability Analysis Based On Elevation Grid Map,” International Journal of Advanced Robotic Systems , vol. 15, no. 1, pp. 1–12, 2018. [94] Y. Tanaka, Y. Ji, A. Yamashita, and H. Asama, “Fuzzy Based Traversability Analysis for A Mobile Robot On Rough Terrain,” in 2015 IEEE International Conference on Robotics and Automation (ICRA) , pp. 3965–3970, 2015. [95] P. Pfaff and W. Burgard, “An Efficient Extension Of Elevation Maps for Outdoor Terrain Mapping,” in Proc. of the Int. Conf. on Field and Service Robotics (FSR) , pp. 165–176, 2005. [96] R. Triebel, P. Pfaff, and W. Burgard, “Multi-Level Surface Maps for Outdoor Terrain Mapping and Loop Closing,” in 2006 IEEE/RSJ International Conference on Intelligent Robots and Systems , pp. 2276– 2282, 2006. REFERENCES 88 [97] H. Moravec and A. Elfes, “High Resolution Maps From Wide Angle Sonar,” in Proceedings. 1985 IEEE International Conference on Robotics and Automation , vol. 2, pp. 116–121, 1985. [98] B. Siciliano and O. Khatib, Springer Handbook of Robotics . Berlin, Heidelberg: Springer-Verlag, 2007. [99] S. Thrun, “Robotic Mapping: A Survey,” Science , vol. 298, 2002. [100] S. Thrun, M. Montemerlo, H. Dahlkamp, D. Stavens, A. Aron, J. Diebel, P. Fong, J. Gale, M. Halpenny, G. Hoffmann, K. Lau, C. Oakley, M. Palatucci, V. Pratt, P. Stang, S. Strohband, C. Dupont, L.-E. Jendrossek, C. Koelen, C. Markey, C. Rummel, J. van Niekerk, E. Jensen, P. Alessandrini, G. Bradski, B. Davies, S. Ettinger, A. Kaehler, A. Nefian, and P. Mahoney, “Stanley: The robot that won the DARPA Grand Challenge,” Journal of Field Robotics , vol. 23, no. 9, pp. 661–692, 2006. [101] D. Ferguson, M. Darms, C. Urmson, and S. Kolski, “Detection, Prediction, and Avoidance Of Dynamic Obstacles In Urban Environments,” in 2008 IEEE Intelligent Vehicles Symposium , pp. 1149– 1154, 2008. [102] S. Kammel, J. Ziegler, B. Pitzer, M. Werling, T. Gindele, D. Jagzent, J. Schöder, M. Thuy, M. Goebl, F. von Hundelshausen, O. Pink, C. Frese, and C. Stiller, Team AnnieWAY’s Autonomous System for the DARPA Urban Challenge 2007 , pp. 359–391. Berlin, Heidelberg: Springer Berlin Heidelberg, 2009. [103] M. Montemerlo, J. Becker, S. Bhat, H. Dahlkamp, D. Dolgov, S. Ettinger, D. Haehnel, T. Hilden, G. Hoffmann, B. Huhnke, D. Johnston, S. Klumpp, D. Langer, A. Levandowski, J. Levinson, J. Marcil, D. Orenstein, J. Paefgen, I. Penny, A. Petrovskaya, M. Pflueger, G. Stanek, D. Stavens, A. Vogt, and S. Thrun, Junior: The Stanford Entry in the Urban Challenge , pp. 91–123. Berlin, Heidelberg: Springer Berlin Heidelberg, 2009. [104] M. Himmelsbach, T. Luettel, and H.-J. Wuensche, “Real-time Object Classification in 3D Point Clouds Using Point Feature Histograms,” in 2009 IEEE/RSJ International Conference on Intelligent Robots and Systems , pp. 994–1000, 2009. [105] Z. Luo, M. V. Mohrenschildt, and S. Habibi, “A Probability Occupancy Grid Based Approach for Real-Time LiDAR Ground Segmentation,” IEEE Transactions on Intelligent Transportation Systems , vol. 21, no. 3, pp. 998–1010, 2020. [106] X. Hu, F. S. A. Rodríguez, and A. Gepperth, “A Multi-modal System for Road Detection and Segmentation,” in 2014 IEEE Intelligent Vehicles Symposium Proceedings , pp. 1365–1370, 2014. [107] A. Geiger, P. Lenz, and R. Urtasun, “Are We Ready for Autonomous Driving? The KITTI Vision Benchmark Suite,” in 2012 IEEE Conference on Computer Vision and Pattern Recognition , pp. 3354– 3361, 2012. [108] A. Josyula, B. Anand, and P. Rajalakshmi, “Fast Object Segmentation Pipeline for Point Clouds