Abstract
In the article, a global localization algorithm based on improved ultra-wide-band-based adaptive Monte Carlo localization is proposed for quick and robust kidnap recovery of mobile robot. First, two ultra-wide-band modules, the tag installed inside the mobile robot and the anchor installed inside charging station, are used to obtain the relative distance between the mobile robot and the charging station. Second, the global grid map is converted into a map with obstacle noise given the ranging accuracy of the ultra-wide-band modules with different obstacles. Third, while the robot is kidnapped, matching grids are screened based on the range information of ultra-wide-band modules and the obstacle noise of the grids. Finally, global localization algorithm is performed based on ultra-wide-band-based adaptive Monte Carlo localization to convert randomly generated particles from the whole map into randomly generated particles in the local map. Experimental results based on gazebo simulation and a real scenario showed that our global localization algorithm based on improved ultra-wide-band-based adaptive Monte Carlo localization not only significantly helped to improve the chances of the robot global pose recovery from lost or kidnapped state but also enabled the robot kidnap recovery with a smaller number of randomly generated particles, thus reducing the time to recover its accurate global localization. The algorithm was also more effective especially for kidnap recovery in a similar and large scenario.
Introduction
Intelligent mobile robots are playing a more and more important role as logistics robots, cleaning robots, food delivery robots, and so on. The accurate global localization technology is a key problem for the mobile robot navigation. 1 –3 However, when the robot is in a complex and dynamic working environment, it is particularly prone to losing its global poses.
Depending on how mobile robot localizes itself in the global coordinate system, it can be divided into relative and absolute localization. 4 Relative localization of mobile robot, also known as position tracking, assumes that the initial position of mobile robot is known and uses sensor information from adjacent moments to track and estimate the robot’s current position. Common relative localization methods include the odometry and inertial navigation methods. 5 Absolute localization is also known as global positioning and the initial robot position is also unknown in advance. Global localization of mobile robot requires a predetermined environment model or external localization information provided directly by the robot from sensors to estimate the robot’s position in the global coordinate system. Common absolute localization methods mainly include landmark localization, map matching and probabilistic localization, and so on. 6 In this article, the ultra-wide-band (UWB) modules for point-to-point ranging can be classified as absolute positioning according to this classification.
In robotics, the process of describing the environment and understanding it by mobile robot relies mainly on global maps. There are four main types of map representation: grid map, feature point map, direct representation, and topological map. 7 The most common description is the grid map, which divides the environment into a series of grids, each of which is given a possible value that indicates the probability of the grid may be occupied. 8 Feature point map represents the environment in terms of relevant geometric features (e.g. points, lines, faces) and are commonly used in visual SLAM. 9 The direct representation method, which eliminates the intermediate mitigation of features or rasters, directly uses data from sensors to construct the robot’s positional space. 10 Topological map is a relatively more abstract form of map. The indoor environment is represented as a topological structure map with nodes and associated connecting lines. 11 In this article, an obstacle noise variable based on UWB ranging accuracy is introduced for each grid based on the grid map, which reduces the area range of randomly generated particles during robot localization while avoiding the loss of correct particles due to the influence of UWB ranging accuracy.
The difficulties and challenges of global localization arise from three main aspects. 12 First, a priori position is lost, that is, the position of the robot in the previous application is unknown. Second, changes occur during repositioning and closed-loop detection. 13 Third, the problem of large scale exists, when matching the information observed by the sensors with the different positional information in the map, and results in computational complexity. 14
Adaptive Monte Carlo localization (AMCL) is an optimization of the Monte Carlo localization (MCL) algorithm that allows the robot to recover from a global localization failure. In fact, the particle can only survive in the vicinity of a single scene, and if that scene happens to be incorrect, the algorithm will not be able to recover. This means that in practice we need to use a larger number of particles to cover as much of that pose as possible. A large number of particles mean a huge amount of computation, and the trade-off between efficiency and the probability of successfully recovering the global localization is important.
Based on the grid map and AMCL, this article uses the UWB modules to obtain the precise point-to-point distance between the mobile robot and the charging station, and in view of the influence of different obstacles on the UWB ranging accuracy, the grid map is converted into a grid map representation with obstacle noise. Two UWB modules used in the article consist of an anchor and a tag. The UWB modules can offer the rough distance data from the tag to the anchor, which are easily and separately installed inside the robot and the charging station. Based on the ranging distance date given by the tag module, we propose an occupied raster map with obstacle noise based on the ranging characteristics of the UWB modules, which facilitates mobile robot to localize a more accurate particle generation area during global localization. The effective ranging distance of the UWB modules is relatively far, even more than 300 m. They are suitable for very large working scene. We only need to localize the charging station on the robot global map. Then the position of the anchor is known and motionless. The tag may move along with the mobile robot. Additionally, the UWB modules do not need to be deployed in advance in the working scene. The prices of the UWB modules are very low and the ranging data of the tag can be obtained in real time. The UWB modules are very easy to use in a word. The global localization of the AMCL algorithm is optimized, and the randomly particles generated by the global localization are converted into randomly particles generated by the localization. This work has substantially improved the chances of the robot recovering global positioning. In addition, the global map scattering approach is optimized for local map scattering, effectively reducing the number of particles required for localization and reducing the time required to recover global localization. The mobile robot can also easily recover its global pose in a similar and large scenario.
In summary, our main contributions are: Based on the UWB ranging accuracy in different obstacles, the map rasterization is optimized in such a way that for each grid in addition to the occupied state, the noise of different obstacles is included; UWB-based relative distance is used to improve efficiency of AMCL global localization; Extensive experiments have been carried out in a real environment and the scheme is effective in reducing the number of particles required by the AMCL, thus reducing the time and having a higher success probability of relocalization.
Related works
There are several algorithms for solving the global localization problem. The most classical approach is the AMCL algorithm proposed by Fox et al., a standard and popular tool in the field of mobile robotics. 15 –17 This approach used 2D laser, artificial features, and optimized computational methods to complete the global localization process. This approach represented the probability density involved by maintaining a set of samples that are randomly drawn from it. Using a sampling-based representation to obtain a localization method that could represent arbitrary distributions. The resulting method was able to efficiently localize a mobile robot without knowledge of its starting location.
Bosse et al. presented an enhanced algorithm for matching laser-scanned maps using histogram correlation. 18 The histogram representation effectively summarizes the salient features of the map so that map pairs could be matched efficiently without the need to guess their alignment in advance. To work well in outdoor unstructured environments, the algorithm was enhanced in the following ways: a series of entropy measures of the projected histogram can be used instead of the orientation histogram, the projected histogram was weighted by the orientation of the scanned points to make the projected histogram more salient, and an empirical method was used to determine a threshold for the quality metric which produces few false positives. This technique greatly improved the ability of Atlas scan matching to achieve real-time closure of large loops, even when the odometer was unavailable. In addition, the ability to quickly identify matches without the need for an initial guess at alignment allowed for real-time resolution of mobile robots. 19
Olson proposed and experimentally validated a 2D SLAM system that combined scan-to-submap matching with loop closure detection and graphical optimization. 20 Individual submap trajectories were created using a local, grid-based SLAM approach. In the background, all scans were matched to nearby submaps, using pixel-accurate scan matching to create loop closure. The constraint maps for submaps and scan poses were regularly optimized in the background. 21
Ding and Feng presented the DeepMapping, a novel alignment framework that used deep neural networks (DNNs) as an auxiliary function to align multiple point clouds from scratch to a globally consistent framework. 22 They used DNNs to model highly nonconvex mapping processes that traditionally involve manual data correlation, sensor pose initialization, and global refinement. The key novelty was that “training” these DNNs with properly defined unsupervised losses was equivalent to solving potential alignment problems, but was not iterative closest points (ICP) sensitive to good initialization.
Fahima and Abdelkrim proposed a novel method for mobile robot localization and navigation based on multispectral visual odometry. 23 The proposed approach consisted in combining visible and infrared images to localize the mobile robot under different conditions (day, night, indoor, and outdoor). The proposed approaches were validated with success experimentally for trajectory tracking using the mobile robot called Pioneer P3-AT through the real experiments.
Zhao et al. proposed a coupled UWB/inertial navigation sensor (INS) localization framework which combining the UWB technique and the INS. 24 A minimum variance unbiased finite impulse response (MVU FIR) method was then applied to obtain accurate position and velocity estimations from noisy measurements. It could handle the kidnapped problem, and recover from some extreme failures satisfactorily. Moreover, the MVU FIR filtering algorithm was fast and easily implementable.
System overview
The flow of the improved global localization system is shown in Figure 1. The mobile robot is given a global grid map of the scene before it is localized. The internal odometer

Flow chart of the global localization system.
The heading angle
where Pk
is an estimate covariance; Pk
is usually set to a constant near to 1, considering that the IMU can provide very accurate angle data in a short sampling time. We can compute the new odometry pose estimate
else if
where
AMCL is a probabilistic localization system for mobile robot moving in the 2D horizontal space, using the particle filter (PF) to track robot poses in an already known map, and works well for a wide range of local localization problems.
However, the global localization algorithm is triggered while the robot is kidnapped or lost. The original AMCL algorithm uses randomly generated particles over the entire map, and updates the particles through a resampling process and releases new particles, eventually converging to a cluster of particles that may or may not be correct. The improved AMCL algorithm introduces the UWB modules, which consist of an anchor and a tag and are used to measure the distance
Preparation for algorithm
The distance measurement of UWB
In this article, two UWB modules are used as nodes, one node called anchor is placed at the charging station and the other node called tag is placed on the robot. UWB modules are communication device similar to Bluetooth, and their ranging principle is based on calculating the product of the time of flight (TOF) and the speed of electromagnetic wave propagation, so the main mechanism of the modules is to record the time of sending and arrival of information by exchanging messages and the UWB modules have a high static ranging accuracy of
As shown in Figure 2, we place the charging station in the designated position

The distance measurement of UWB modules. UWB: ultra-wide-band.
In addition, as the UWB ranging principle is calculated based on TOF, the farther the robot is from the charging station, the wider the TOF of the electromagnetic waves and the more accurate the measurement will be. For example,
UWB-based occupied grid map with obstacle noise
The pre-built global map is one of the basic input data for localization and navigation of robots. In this article, an occupied grid map is used. This map is a rasterization of the working scene into a series of grids, for each of which the status is either occupied, free or unknown as shown in Figure 3. Each grid is therefore given a possible value that indicates the probability that it will be occupied.

The definition of grids.
In an occupied grid map, we use
Bringing the Bayesian formula into this equation
Take the logarithm of both sides of the equation (6), the term containing the measured value is left with only
In the program, the map is transferred from the world coordinate system to a grid coordinate system, each grid has two numbers i, j and the size of the grid is related to the resolution of the map. For example, a map resolution of

The occupied grid map with obstacle noise.
Improved global localization based on UWB-based AMCL
MCL is a localization algorithm that represents confidence
The core of our algorithm lies in the PF, which uses a large number of samples to describe the probability density of states. UWB modules are used to help robot global localization using fewer samples, reducing time while maintaining the success rate of the robot in recovering global localization. Similarly, our algorithm goes through four stages of initializing the particle swarm, recursive sample, weight calculation, and resampling.
In this article, the mobile robot is in a known two-dimensional map of the environment, where the coordinate and heading angle of motion of the mobile robot are randomly generated, a maximum
For each particle, a prediction of the next state is performed based on the robot’s motion state. The relative poses provided by the wheel odometry and IMU are used for prediction in this article, and point cloud matching using laser is used to calculate the degree of proximity and assign weights
Maintain a weight for each particle and initialize the weight to 1
KLD sampling algorithm is taken for sampling, and KLD algorithm generates new particles until the number of particles exceeds
As shown in Algorithm 1, the UWB-based AMCL localization algorithm is given. The first to fifth lines of the Algorithm 1 filter all the free grids on the map according to the distance data provided by the UWB, and only those grids that match the UWB ranging data can have particles on them. The fifth line calls the
AMCL with the relative distance of UWB.
Figure 5 shows a running process of the algorithm flow of the original AMCL and UWB-based AMCL optimization. As can be seen, AMCL algorithm before the improvement attempts to recover localization over the whole global grid map, converging to a particle swarm after continuous iteration. However, UWB-based AMCL algorithm provides a rough distance between the robot and the charging station as a range of possible areas to delineate the scattering point, effectively reducing the size of the map to be matched, i.e. substantially improving the efficiency of the matching and, at the same time, being more robust for the success of recovering the global pose.

Schematic diagram of global localization based on original AMCL and improved UWB-based AMCL. (a) Global localization based on original AMCL. (b) Global localization based on improved UWB-based AMCL.AMCL: adaptive Monte Carlo localization; UWB: ultra-wide-band.
Algorithm 2 shows the strategy for calling the UWB-based AMCL algorithm for global localization, distinguishing whether the robot is powered on or off. Power on or off determines whether the IMU is calibrated, optimizing the all-random nature of the particles when the AMCL algorithm recovers the global poses. The calibrated IMU provides a better heading angle, and the particles generated at this moment can converge quickly to a correct pose. When the robot is switched off and restarted, the IMU is not calibrated, the data are invalid and the heading angles of the generated particles are random, but the UWB can still provide a defined region to speed up convergence.
Global Localization in both power-on and power-off conditions.
Figure 6 shows a gazebo simulation map scene of the algorithm demonstration map, with the actual robot position marked with yellow circles on the map and the UWB anchor marked with red squares. The robot positions in the gazebo scene and the demonstration map can easily be seen that the UWB-based AMCL algorithm found the correct position, while the original AMCL algorithm found an incorrect position in Figure 5(b). This position was also a high scoring region during resampling, but the original AMCL probably did not find the correct position because the particles were out at the correct position. In summary, the UWB-based AMCL algorithm reduces the probability of losing particles with the correct poses and has better robustness.

The gazebo scene of the schematic diagram.
Experiment and result analysis
Environmental map and equipment parameters
In order to verify the effectiveness of the global localization of the improved AMCL algorithm, the experimental analysis was carried out and a mobile robot turtlebot2 was adopted. The UWB modules used were the LinkTracKP manufactured by
In Figure 7(a), the real experimental environment consisted of the indoor environment and the corridor environment. The charging station was set up in the indoor room. The real scene size of the map was about

Experimental indoor environment and grid map. (a) The real experimental environment. (b) The grid map built by Gmapping.
Figure 8 shows the whole process of how to recover its global pose after turtlebot2 was lost. The robot continuously obtained the relative distance data from tag of UWB modules and accurate heading angles from IMU sensor. While turtlebot2 was judged to be lost, the UWB-based AMCL algorithm began to run. Finally, the robot localized itself accurately within a short time.

The whole process of improved UWB-based AMCL algorithm. (a) 0s, (b) 3.50s, (c) 6.35s, and (d) 9.78s. AMCL: adaptive Monte Carlo localization; UWB: ultra-wide-band.
The ranging accuracy of UWB
In the UWB modules’ ranging principle, we mentioned that the UWB modules could have a large impact due to TOF and obstacles, so here we tested the accuracy of UWB ranging in static and dynamic condition without the impact of obstacles and the impact of different obstacles on the UWB ranging accuracy respectively. The results of this experiment facilitated us to correct for the noise of obstacles in the map. In addition, a dynamic factor was provided to adjust the UWB distance accuracy at different distances.
Figure 9 shows the distance accuracy in the static case when the actual distance of the UWB modules was

UWB ranging accuracy without obstacle effects.
It could be easy to see that the robot was less accurate at shorter distances from the charging station due to the TOF, for example, the distance was only displayed by UWB modules near
When ranging, the obstruction of an obstacle could cause an increase in ranging error. When the obstruction was close to the robot or charging station, the effects of the obstacles were very high. When the distance was farther away, the electromagnetic waves of the UWB could easily cross over and had less effects. Considering that the use of our mobile robot was mainly in indoor, we defaulted to the obstruction being very close to our equipment. The obstacle was considered to be close to the robot. In addition, we set the charging station
Table 1 shows the impact of common obstacles in indoor environments on the UWB modules. Among them, wooden board and cardboard have essentially no effect on the UWB ranging accuracy, which comes from the error of the UWB modules. The greatest impact was from solid walls, where a wall could cause a maximum error in ranging of around
The ranging errors of UWB affected by different obstacles.
UWB: ultra-wide-band.
Results of the improved global localization
Here we tested the global localization of the original AMCL algorithm and the UWB-based AMCL algorithm separately. We compared the robot movements in three ways: first, the robot was stationary in place and performs a mandatory No-Motion update. Second, the robot only performed a rotational motion in place to trigger the PF to work. Third, we controlled the robot to move randomly around the map to trigger the PF to work. Each scenario was measured
As shown in Table 2, the maximum number of particles was set to
Comparison between algorithms when the max number of particles is 2000 and the min number is 500.
AMCL: adaptive Monte Carlo localization; UWB: ultra-wide-band.
a Number of times correct localization/number of all times.
b Average time-consuming.
Compared to the original AMCL, the UWB-based AMCL algorithm had a good probability of recovering the pose without motion or with rotation only, especially when the robot was controlled for random motion. In addition, the convergence time to the final pose was about three times more efficient in terms of average time spent, which significantly reduced time and improved efficiency.
As shown in Table 3, the maximum number of particles was set to
Comparison between algorithms when the max number of particles is 500 and the min number is 200.
AMCL: adaptive Monte Carlo localization; UWB: ultra-wide-band.
a Number of times correct localization/number of all times.
b Average time-consuming.
Compared to the original AMCL algorithm, the UWB-based AMCL algorithm had a lower probability of recovering the localization without the motion and with rotation only, but still had a good success rate. In addition, there was still a good success rate in the case of controlled random robot movements. In terms of time efficiency, the improvement was small, with a reduction of about
Conclusion
In this article, we propose a global localization algorithm based on improved UWB-based AMCL for quick and robust kidnap recovery of mobile robot. Two UWB modules are used to obtain the rough distance data, which can be easily installed inside the robot and the charging station. Based on the distance date given by tag of UWB modules, we propose an occupied raster map with obstacle noise based on the original occupied raster map and the ranging characteristics of UWB, which facilitates mobile robot to localize a more accurate particle generation area during global localization. Then based on the rough distance data, the global localization process of AMCL algorithm is further improved, and the convergence of the generated random particles of the whole map is improved to the convergence of the generated random particles of the local map, which solves the problem that the original AMCL global localization takes too much long time and the global localization especially in a similar scenario is totally wrong. From the experiments of gazebo simulation and a real scenario, our global localization algorithm based on improved UWB-based AMCL not only significantly helps to improve the chances of the robot global pose recovery from lost or kidnapped state, but also enables the robot global pose recovery with a smaller number of randomly generated particles, thus reducing the time to recover its accurate global localization. The algorithm is also more effective especially for kidnap recovery in a similar and large scenario.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received financial support for the research, authorship, and/or publication of this article: This project is supported by National Key Research and Development Program of China under Grant No. 2019YFB1310004 and National Natural Science Foundation of China under Grant No. 61973336.
