A node selection algorithm to graph-based multi-waypoint optimization navigation and mapping

Autonomous robot multi-waypoint navigation and mapping have been demanded in many real-world applications found in search and rescue (SAR), environmental exploration, and disaster response. Many solutions to this issue have been discovered via graph-based methods in need of switching the robot’s trajectory between the nodes and edges within the graph to create a trajectory for waypoint-to-waypoint navigation. However, studies of how waypoints are locally bridged to nodes or edges on the graphs have not been adequately undertaken. In this paper, an adjacent node selection (ANS) algorithm is developed to implement such a protocol to build up regional path from waypoints to nearest


INTRODUCTION
Robotics system has been applied to numerous fields, such as transportation [1] , healthcare service [2,3] , agriculture [4] , manufacturing [5] , etc., in recent years.Robot navigation is one of the fundamental components in robotic systems, which includes multi-waypoint navigation system [6][7][8] .As an increasing demand and limited onboard resources for autonomous robots, it requires the ability to visit several targets in one mission to optimize multiple objectives, including time, robot travel distance minimization, and spatial optimization [9][10][11][12][13][14][15] .For example, due to a global pandemic, the world struggled to sanitize heavily populated areas, such as airports, hospitals, and educational buildings.Autonomous robots with multi-waypoint navigation systems can effectively sanitize all targeted areas without endangering the workers [14,16] .As well as in agriculture management, multi-waypoint strategies allow the robotic system to navigate and survey multiple areas to assist in production and collection.
In order to employ robotic systems in real-world scenarios, one critical factor is to develop autonomous robot multi-waypoint navigation and mapping system [17] .In order to solve the autonomous robot navigation problem, countless algorithms have been developed, such as graph-based [18,19] , ant colony optimization (ACO) [20][21][22] , bat-pigeon algorithm (BPA) [23] , neural networks [24][25][26] , fuzzy logic [27] , artificial potential field (APF) [28] , sampling-based strategy [14,29] , hybrid algorithms [30] , task planning algorithm [31] , etc. Chen et al. produced a hybrid graph-based reinforcement learning architecture to develop a method for robot navigation in crowds [18] .Luo et al. proposed an improved vehicle navigation method, which utilizes a heading-enabled ACO algorithm to improve trajectory towards the target [20] .Lei et al. developed a Bat-Pigeon algorithm with the ability to adjust the speed navigation of autonomous vehicles [23] .Luo et al. developed the model for multiple robots complete coverage navigation while using a bio-inspired neural network to dynamically avoid obstacles [32] .Na and Oh established a hybrid control system for autonomous mobile robot navigation that utilizes a neural network for environment classification and behavior-based control method to mimic the human steering commands [25] .Lazreg and Benamrane [27] developed a neuro-fuzzy inference system associated with a Particle Swarm Optimization (PSO) method for robot path planning using a variety of sensors to control the speed and position of a robot.Jensen-Nau et al. [28] integrated a Voronoi-based path generation algorithm and an artificial potential field path planning method, in which the latter is capable of establishing a path in an unknown environment in real-time for robot path planning and obstacle avoidance.Penicka and Scaramuzza [14] developed a sampling-based multi-waypoint minimum-time path planning model that allows obstacle avoidance in cluttered environments.Ortiz and Yu [30] proposed a sliding control method in combination with simultaneous localization and mapping (SLAM) method to overcome the bounded uncertainties problem, which utilizes a genetic algorithm to improve path planning capabilities.Bernardo et al. proposed a task planning method for home environment ontology to translate tasks given by other robots or humans into feasible tasks for another robot agent [31] .
In robotic path planning, one of the special topics is autonomous robot multi-waypoint navigation which has been studied for many years.For instance, Shair et al. proposed a model for real-world waypoint navigation using a variety of sensors for accurate environmental analysis [33] .The system is designed utilizing the wide area augmentation system (WAAS) and the European geostationary navigation overlay service (EGNOS) for GPS in combination with aerial images to provide valuable positioning data to the system.Yang [34] brought about a multi-waypoint navigation system based on terrestrial signals of opportunity (SOPs) transmitters, which has the ability to operate in environments that are not available to global navigation satellite systems (GNSS) for unmanned aerial vehicles (UAV).Janoš et al. proposed a sampling-based multi-waypoint path planner, space- filling forest method to solve the problem of finding collision-free trajectories while the sequence of waypoints is formed by multiple trees [29] .However, the aforementioned approaches have not taken into account the safety of the robot during navigation.In real-world applications, an autonomous vehicle has odometry errors during operation.The safety-aware road model is developed utilizing the Generalized Voronoi diagram (GVD) approach.Once the safety-aware roads are defined, a particle swarm optimization (PSO) algorithmbased multi-waypoint path planning algorithm is proposed to visit each waypoint in an explicated sequence while simultaneously avoiding obstacles.In this paper, the Adjacent Node Selection (ANS) algorithm is developed to select the closest nodes on the safety-aware roads to generate the final collision-free trajectories with minimal distance.Furthermore, in our hybrid algorithm, we utilize a histogram-based reactive local navigator to avoid dynamic and unknown obstacles within the workspace.Through all of these methods, an effective and efficient safety-aware multiple waypoint navigation model was established, which has been validated by both simulations and comparison studies.This paper proposes an Adjacent Node Selection (ANS) algorithm for obtaining an optimal access node into graph-based maps.To the best of our knowledge, there are no known similar algorithms that improve the paths created from the waypoint to the graph.The ANS algorithm can be applied to any graph-based mapping environment, which improves the various graph-based models used for autonomous robotic path planning systems.In finding an access point into the graph utilizing one of the nodes in the system, the ANS algorithm conducts point-to-point selection in dense obstacle field of environments to obtain a node to gain access to the graph that forms a resumable path from a waypoint to the graph.The algorithm' s overall goal is to find a node in a graph-based map and shorten the overall path length from each waypoint to waypoint, and the waypoint to the graph.
One can see in Figure 1 the overall framework of our proposed model.Initially, the model is provided with a global map of its environment and the location of each target waypoint.The GVD utilizes the global map to construct the safety-aware roads, which are used to guide the robot throughout the environment.The targeted waypoint locations are used as input to the improved PSO (IPSO) algorithm that act as our waypoint sequencing module, which is utilized to find a near-optimal sequence to visit each waypoint.The ANS algorithm utilizes the output from the previous stages.The ANS algorithm finds the best node for each waypoint to use as an access point to the graph.If there is no direct path from one waypoint to a node in the graph, the algorithm conduces point-to-point navigation with nodes within a specified range, which will be explained in later sections of the paper.Once each waypoint has found its access point, the safety-aware path is constructed, which is then applied to our path smoothing algorithm.Finally, we utilize a reactive local navigation system to detect obstacles autonomously and simultaneously build a map of the environment along the generated path.
The main contributions of this paper with this framework of concurrent multi-waypoint navigation and mapping with collision avoidance as are summarized as follows: (1) An adjacent node selection (ANS) algorithm is proposed to build up regional bridges from waypoints to nodes or edges on the graph in multi-waypoint navigation and mapping; (2) a concurrent multi-waypoint navigation and mapping framework of an autonomous robot is developed by the generalized Voronoi diagram (GVD) and IPSO algorithm as well as a local navigator; (3) a GVD method is employed to plan safety-aware trajectories in an obstacle populated environment, while the sequence of multiple waypoints is created by the IPSO algorithm to minimize the total distance cost; (4) a sensor-based histogram robot reactive navigator coupled with map building is adopted for moving obstacle avoidance and local mapping.An improved B-spline curve-based speed modulation module is adopted for smoother navigation.
The structure of this paper is as follows.Section II presents the safety-aware model that constructs the safetyconscious roads for robot traversal.Section III describes the proposed adjacent node selection algorithm to find an access node into the graph-based map.Section IV, the improved PSO-based (IPSO) multi-waypoint navigation model for waypoint sequencing is explained.Section V illustrates the reactive local navigator for real-time workspace building and obstacle avoidance.Section VI depicts simulation results and comparative analyses.Several important properties of the proposed framework are summarized in Section VII.

SAFETY-AWARE MODEL
Computational geometry has exceedingly studied the Voronoi diagrams (VD) model, which is an elemental data structure used as a minimizing diagram of a finite set of continuous functions [28,35] .The minimized function defines the distantance to an object within the workspace.The VD model decomposes the workspace into several regions, each consisting of the points near a given object than the others.Let G = { 1 • • • ,   } be a set of points of R  to each   associated with a specific Voronoi region  (  ).This can be expressed by the following equation [36,37] : The intersection of  − 1 half spaces can be denoted by the region  (  ).Each half space holds a point   along with another point of G.The regions  (  ) are convex polyhedrons due to the bisectors acting as hyperplanes between each region.The generalized Voronoi diagram (GVD) is a modified version of the VD model defined as the set of points Euclidean distance from two obstacles [37] .The workspace is represented as a graph by the GVD model consisting of nodes, edges, and vertices [28] .
The proposed ANS algorithm utilizes nodes and edges obtained from the GVD illustrated in Figure 2A.The nodes in the GVD act as junctions to connect waypoints, whereas the edges are used to determine the search range in view of waypoints.Solely the nodes in the search range are calculated, other than the entire workspace, thus reducing the computational expense.Figure 2B reveals that the range of some edges fails to evaluate how spare of the workspace is configurated.These edges with short lengths are distractors for evaluating and computing the search range, thus need to be eliminated shown in Figure 2B.In our ANS algorithm, those edges with the shortest 10% are eliminated, while the rest of the edges are averaged to compute the radius of the search range.One circumstance is exhibited in Figure 2C, in which some nodes fail to fall into the search range once the excessively short edges are excluded.The original search space in solid circles and modified search space in dashed circles based on the ANS algorithm are shown in Figure 2C.As may be seen, after excessively short edges are effectively eliminated, an appropriate search range is achieved.
GVD nodes form the Euclidean distance between two or more obstacles, while the edges are the junction of two nodes that depict the distance between each neighboring node to another.Vertices are the connection points between three or more nodes.Using these features from the GVD model, an obstacle-free path with our safety-aware model is effectively created.The safety-aware model is constructed by inputting an image and extracting all significant features from the image, thus allowing the model to construct a map from the input image.The safety-aware roads are the clearest path between obstacles that occupy the available space in the map , which can be seen in Figure 2.
In this paper, in order to explain our proposed ANS algorithm, how the nodes are determined and constructed with the GVD will be presented in some detail.We will introduce some definitions and notations.Lee and Drysdale [36] derive four basic definitions for determining the optimal placement of edges and nodes within the GVD graph.DEFINITION 1.A closed line segment  consists of two endpoints  and .A straight line is denoted by (, ), which is also known as an open segment.Elements within the derivation are referred to as points or segments.The straight line containing  is denoted by DEFINITION 2. The projection (, ) of a point  onto a closed segment , is the intersection of ← →  and is perpendicular to  and passing through .DEFINITION 3. The distance between (, ) is a point  and a closed segment  in the Euclidean metric is defined as the distance (, (, )) between the point  and its projection onto  if (, )) belongs to  and is min ((, ), (, )) otherwise.In other words, (, ) = min ∈ (, ).The point of , which is closest to , is called the image  (, ) of  on .DEFINITION 4. The bisector (  ,   ) of two elements   and   is the locus of points equidistant from   and   .The bisector (, ) of two sets of elements  and  is defined to be the locus of points equidistant from  and , where the distance (, ) between a point  and a set of elements  is defined to be min ∈ (, ).The bisector (  ,   ) is said to be oriented if a direction is imposed upon it so that elements   and   lie to the left and the right of it, respectively.An oriented bisector (, ) is defined similarly.
Utilizing these four definitions, we can easily establish edges among spaces or obstacles, which uses the equidistant to create an optimal edge that lies directly between the two spaces.As seen in the above definitions, we can also create edges between irregular-shaped spaces and obstacles.
To characterize the GVD, we expect the robot to be operated at a point within the workspace, a , which is populated by convex obstacles  1 , ...,   .Non-convex obstacles are displayed as the union of convex shapes.The distance between a point and an obstacle is the minimal distance between the point and all points of the obstacle.The distance function, and its "gradient" are represented as: where in Equation ( 2)   is the distance to obstacle   from a point , and in Equation ( 3) ∇  () is the unit vector in the direction from  to  0 , where  0 is the closest point to  in   .The essential structure block of the GVD is the arrangement of points equidistant to two sets   and   , with the end goal that each set in this set is the minimal distance to the obstacles   and   than other obstacles.This type of structure is known as the two-equidistant face, Each face has a co-dimension in the ambient space, which causes the two-equidistant faces to be seen as onedimensional.The intersection of both faces forms the GVD and is denoted by the following equation:

ADJACENT NODE SELECTION ALGORITHM
The details of the adjacent node selection algorithm are shown in Figure 3. Within the search range obtained, we applyIPSO-based path planning algorithm to generate the connection path from the waypoint to all the potential nodes in the range.The connection path is planned in the grid-based map as shown in Figure 3A.The search range in the larger map is shown in Figure 3B, which is also a part of Figure 6.Finally, with the formation of a collision-free path to the adjacent nodes from the two waypoints, we obtain the optimal path selection by calculating the overall path length L  + L  .
To show the necessity of IPSO-based path planning from waypoints to adjacent nodes, a more specific scenario is shown in Figure 4.In Figure 4A, all straight lines connecting nodes and waypoints are separated by obstacles.Among them, points  and point  are located in our search range.If we only rely on the Euclidean distance between node and waypoint, it can be found that the point  is closer to the waypoint.However, after considering the path with obstacle avoidance, the path for point  to the waypoint is longer.To sum up, the obtained search range with ANS algorithm and the IPSO-based path planning algorithm can reduce the computational cost while ensuring a short and safe trajectory.The details of the procedure are described in Algorithm 2.  We carry out further discussions on our proposed ANS algorithm.Figure 5A and Figure 5B are parts of Figure 11 and Figure 13 (enclosed in pink dashed boxes), respectively.As shown in Figure 5A, the solid circles represent the search radius of the waypoints in the simulation and the red solid dots depict the nodes in the workspace.In Figure 11, we end up with the trajectory that follows the generated safe-aware road.However, if the space in the map is more sparse, our search radius R may increase to R , which may achieve the waypoints in their respective search spaces.Thus, instead of following the safe-awareness road, a new connection path is obtained through the improved PSO algorithm directly, as shown in dashed lines in Figure 5A.Moreover, the sparseness of the overall workspace may not represent the complexity of local obstacles.Therefore, the choice of the radius of the search space may require more mathematical proof and analysis.
With the increasing radius of the potential search range, more nodes are applicable for selection, such as the nodes connected with dashed lines in Figure 5B.Enlarging the search space may avoid some unnecessary detours and give a shorter path.Therefore, the trade-off between path length and safety of the autonomous robot still requires more consideration.

IMPROVED PSO-BASED MULTI-WAYPOINT NAVIGATION
The particle swarm optimization (PSO) algorithm is a swarm-based bio-inspired algorithm based on the behavioral observation of birds.It uses an iterative methodology to optimize randomly initialized particles to define a path from the initial position to the goal [27] .In this section an improved PSO (IPSO) algorithm by introduction of a weighted particles is addressed to resolve the multi-waypoint sequence issue.

Multiwaypoint visiting sequence
In real-world scenarios, one important factor is that the GPS coordinates provide portions for the multiple waypoints.Traveling from one waypoint to another, the distance between them determines their associated cost.The primary purpose of traveling from one waypoint to another is to simultaneously find the minimal cost of all generated trajectories.Using the coordinates of each waypoint and the PSO algorithm, the minimal-distance path can be found within the environment.The PSO algorithm finds the best waypoint visiting sequence by initializing randomized particles.The algorithm denotes the local best position as   and the global best position as   .Then by taking advantage of a fitness function, the algorithm guides each particle towards the local and global best positions.The particle velocities are updated as follows: where,   () represents the velocity of particle  at instant ,   () is the position of particle  at instant ,  1 and  2 are the positive acceleration constants used to scale the contribution of cognitive and social components. 1 and  2 are the uniform random number between 0 and 1.    () is the best position the particle  achieved up to instant  at current iteration,    () is the global position that any of 's neighbors has reached up to instant .However, if a particle   lies close to the    () and    (), only one term guides the   to search the potential solution.The optimization process in our navigation issue is more likely trapped in local minima.Thus, an improved PSO algorithm is utilized to provide a more promising search direction for all particles during the optimization process.
where  is a positive constant, α is the weighted constant of each particle.F(•) is the fitness function.The worst and the best fitness values of all personal best particles are represented by max 1≤ ≤ (F ) and ), respectively.The order is optimized through this method, in which each waypoint is visited.A sequence of particles are initialized to compose a population in the original PSO algorithm.A possible optimal solution to an optimization issue in our multi-waypoint sequence is discovered by one particle in the PSO.This particle indicates a possible optimal solution to the multi-waypoint navigation issue and moves to explore an optimal solution in a certain search space.In this paper, a weighted particle is introduced into a swarm to suggest a more reasonable search direction for all the particles.As a result, the best position of particle and neighbor guides the particle to move along the corrected direction for better covergence.
The multi-waypoint visiting sequence problem can be used to solve the transportation planning problem and Covid-19 disinfection robot path planning in hospitals, in which agents (vehicles) need to be delivered as well as the overall cost and time need to be minimized [14] .The algorithm of the improved PSO to finding multiwaypoint visiting sequence is explained in Algorithm 1.The objective of the algorithm is to minimize the total trajectory length of Cartesian coordinates (  ,   ) of waypoints given.
In the IPSO model the P  represents the particle agent, which is denoted by the P  : {P  , P  , N }.N holds a group of particle agents which are predetermined as neighbors of P  .The P  are defined by the following parameters.
(1) Each P  requests each neighbor' s current personal best location.
(2) Each P  returns its current personal best to neighbors.
(3) Obtains the center location of each surrounding cluster.(4) Determines if the current position has been visited.
(5) Determines if current position is optimal if not record current position.
Every P  obtains a set of neighbors of positions during the initial setup.Utilizing a variety of topologies one can create numerous properties of neighboring particle agents to obtain better performance.Within the proposed model, we assume that each P  has a static set of neighbors.Each P  keeps track of its local best solution, P  , which is where a solution closest to the optimal solution is found in the problem space, while the global best solution is recorded in the parameter P  .During each iteration the P  evaluates its current position and determines if it needs to perform a fitness evaluation, while simultaneous checking if the termination criteria has been met.If the termination criteria have not been met then it updates its P  , obtains the neighbor' s P  and calculates the P  , and marks the current position as visited.

Safetyaware IPSO multiwaypoint path planning
To ensure the robot safely reaches the waypoints via the planned visiting sequence, the safety-aware road is selected to guide the autonomous robot.Nevertheless, there is a problem with the connection path from the location of the waypoints to safety-aware roads.When we integrate the position information of a waypoint in the workspace, it may be necessary to obtain the collision-free connection path length from the waypoint to all nodes, which is computationally expensive.As shown in Figure 6A, with N nodes obtained in the workspace, there are N possible connection paths from the waypoints to the nodes in the workspace.With the initial N × N adjacent distance matrix obtained from GVD graph and the increasing M waypoints in the workspace, the size of new distance matrix is expanded to (N + M) × (N + M).Since most of the connection path computations are unnecessary, a new adjacent node selection (ANS) algorithm is proposed to reduce the computational effort by restricting the search space in local regions rather than the entire working region.
The local regions are shown in Figure 6B, and the dark blue nodes, such as  and  nodes in the regions, are potential adjacent nodes to connect.The radius R of the local area shall be determined by the potential workspace, which determines the number of nodes in the search range.For instance, in an area with clustered obstacles, there are many nodes in the environment; thus, the search radius may be small.However, In an area with sparse obstacles, there are fewer nodes in the environment; thus, the search radius needs to be larger to include all potential nodes.Since the entire workspace is projected through the GVD graph, we can interpret the sparseness of the entire workspace through the distance of the edge list E. Nevertheless, some edge distances cannot represent the sparseness of the entire workspace, such as the edges enclosed by the red dotted line in Figure 6B.Therefore, to exclude these extraneous edges of distance, we sort the entire edge list before removing the lowest 10%.The radius R of the search range is defined as the average of the remaining edge distance.After obtaining the nodes in the search environment, we plan a collision-free trajectory from the current waypoint to reach each node through the IPSO algorithm.
The IPSO navigation algorithm is initiated in the search range to obtain the optimal path.The local search region is interpreted into grid-based map, where the obstacle areas are inaccessible grids in the workspace.Dijkstra' s algorithm is utilized as a local search algorithm and the cost function within the model.For graphbased maps, they must be a method for traveling from one node to another utilizing the edges within the graph.One method of this is Dijkstra' s algorithm, which utilizes a weighted graph to determine the shortest path from a source node to a target node.The algorithm also keeps track of the known shortest distances from each node while simultaneously updating their weights to improve the overall shortest path from each node.By recursively establishing a path with random solutions generated in the workspace, the IPSO algorithm can construct the collision-free path with the least fitness value, which also represents the path with minimum length.Therefore, the length of the connecting path L  can be obtained, and by combining the length of the GVD path L  , the optimal safety-aware trajectory is obtained as shown in Figure 6C.
To effectively reduce and smooth the overall path from each waypoint to the waypoint, various methods have been developed to achieve this goal, for example, the B-spline curve, which works by taking a set of points that are used to curve sharp close turns around obstacles and is very effective and thus widely used in smooth polylines, due to its closed-form expression of the position coordinates.The original methodology of the Bspline curve method, in some cases, changes the trajectory of the original path created by the global navigation system.The problem can be mediated by implementing the piecewise B-spline method, which only smooths the path around each obstacle.Lei et al. evaluated the effectiveness of the improved B-spline method, and ultimately found that the hybrid method was able to reduce the overall all path in point-to-point navigation [38] .The B-spline curve can be defined by a cardinal functions  , (), control points   and degree ( − 1), which is given by the following equations.

𝐾 (𝑞) =
∑  , ()  (11)   where   = [  ,    ] are the ( + 1) control points and a knot vector . , () are the basic functions, which are defined recursively as follows:  , () Geometric continuity  2 is the metric used to evaluate smoothing methods, which is defined by the tangent unit and curvature vector at the intersection of two continuous segments [38] [Figure 7A].To achieve  2 continuity, the control points   of B-spline curve to the path point,   , is defined as where  is smoothing length ratio  =  1 / 2 , and  −1 defines the unit vector of  −1   .  represents the unit vector of the line    +1 .The combined sum of  1 and  2 is the smoothed length.The half of the corner angle is denoted as: Γ = /2.Using a knot vector of [0, 0, 0, 0, 0.5, 1, 1, 1, 1], the smoothing error distance  and maximum curvature   within the smooth path can be expressed as: Using the previous equations the smoothing error distance  can be defined by the existing maximum curvature   given by the robot: The improved B-spline model has specific advantages over the basic B-spline model, one of which is its ability to smooth many different trajectories with various angles, as seen in Figure 7B.The curve produced by the improved B-spline model is significantly closer to the original path than the original model.When considering the constraints of the robot, the improved B-spline mode performs better in various degrees of angles.The overall advantages of the improved B-spline model are as follows: (1) The path generated is tangent and curvature continuity, so that the robot can have a smooth steering command, which can correct any discontinuity of normal acceleration and establish a safer path for the robot to follow.
(2) The improved model generates a better curve by solely affecting the two lines within the corner of the original trajectory.Each curve generated affects others within the lines.
(3) The improved model easily adjusts to the smoothed path based on the environment constraints or the robot.

REACTIVE LOCAL NAVIGATION
A crucial aspect in developing a multi-waypoint model is accounting for moving and unknown obstacles [39,40] .In a real-world setting, not all objects are static and known.To develop a more efficient model, we propose the use of a local navigator to remedy this issue.
In order to avoid dynamic and unknown obstacles, the proposed model employs the Vector Field Histogram  (VFH) model as a reactive local navigator.An autonomous robot uses a velocity command to and from each waypoint, provided by the local navigator [41] .By applying the VFH to the overall global trajectory with a sequence of markers, the path can be broken down into various segments to improve the efficiency in obstaclepopulated workspaces.The local navigator builds a map depicting the free space and obstacles in the map by utilizing a 2D histogram grid with equally sized cells [42] .As the robot follows the generated trajectory within the workspace, the map is simultaneously built, shown in Figure 8.In developing an autonomous obstacle avoidance model, concurrent map building and navigation are crucial.The robot pose (,  ,  ) is used to determine the map building.Thus, the precise registration of the built local map as a part of the global map can be carried out.This map building aims to construct an occupancy-cell-based map.The values for each cell in the map vary over the range [-127, 128] [42] .The initial value is zero, which indicates that the cell is neither occupied nor unoccupied.The value is 128 if one cell is occupied with certainty and -127 if one cell is unoccupied with certainty.The values falling into (-127, 128) express contain a level of certainty in the range.When the VFH model is employed in conjunction with the GVD and IPSO algorithm, the robot can be successfully navigated through our built map with obstacle avoidance.In combination with our local navigator, a sensor configuration can be developed for the local navigator to perform it.In Figure 9 one can see the overview of our sensor configuration.The proposed configuration utilizes a 270-degree SICK LMS LiDAR sensor to detect obstacles within a range of 20 m @ 0.25-degree resolution.The LiDAR sensor scans at a rate of 25Hz.Then, it needs a method of finding our current position and the waypoints within the map.A Novatel' s ProPak-LB Plus DGPS sensor is utilized to obtain our current position and how it correlates to the coordinates of each waypoint.Next, a PNI TCM6 digital compass is employed to establish our heading with an accuracy of 0.5 degrees.The sensor updates at 20Hz, which allows the robot to operate efficiently.Lastly, the configuration utilizes an AVT Stingray F-080C 1/3" CCD camera, which enables our robot to sense obstacles of various heights, shapes and sizes.The stingray camera is perfect for robot vision because it uses the IIDC IEEE 1394B protocol to transfer images.The system needs a computer system to house our operating system, sensor data, and programs for the robot.In this portion of the sensor configuration, a MackBook Pro i s equipped to suit our needs.The last step in the process is to establish a method of communication from the sensors to the computer systems.A sort of UART to USB hub is utilized for this purpose and fuses the sensor data together without losing any sensor information.The type of sensor confusion can be used on most ground-based robot systems for indoor and outdoor use.

SIMULATION AND COMPARISON STUDIES
In this section, simulation and comparison studies are performed to illustrate the value and vitality of the proposed model.In the first experiment, simulations are conducted using a well-known Traveling Salesman Problem (TSP) based data set, and results are compared with other heuristic-based algorithms.).(B) It represents the proposed method point order and traversed path.The point order is illustrated by the violet arrows, while the orange path represents the robot path.Safety-aware roads are depicted by the blue dashed lines.The waypoints are illustrated by the violet circles.
models.The Simulated Annealing (SA) algorithm, Grey Wolf Optimization (GWO) algorithm, Ant Colony Optimization (ACO) algorithm, Genetic Algorithms (GA), Imperialist Competitive Algorithm (ICA), and Self-Organizing Maps (SOM) were chosen as the heuristic-based algorithms used in the comparison studies.The ICA algorithm is a biologically inspired algorithm by the human, which simulates the social-political process of imperialism and imperialistic competition.The SOM algorithm is similar to a typical artificial neural network algorithm, except it utilizes a competitive learning process instead of backpropagation that utilizes gradient descent.
Heuristic-based algorithms have similar attributes; due to this feature, the same parameters can be used to construct a stable comparison study for our proposed IPSO algorithm.The conducted comparison studies focus on six key attributes such as: min length (), average length (), length standard deviation (), min time (), average time (), and time standard deviation ().The variance between each algorithm can be seen by assessing each parameter.The above analyses show how effective the IPSO model can generate the minimum overall global trajectory in Table 1.The global trajectory generated by the compared algorithms is notably larger than the IPSO model.However, regarding the time aspect, the IPSO model was unable to achieve the shortest time.The significance of the proposed model can be seen in the STD evaluation parameter.The results of the comparison studies more than show the validity and performance of the proposed model to discover the optimal waypoint visiting sequence.

Model comparison studies
The compared models were developed to address the issues of multi-waypoint navigation and mapping in various applications.Each model uses some variation of a global navigation system in combination with an obstacle avoidance technique.The models were selected based on their map configuration and overall efficiency in solving the multi-waypoint navigation problem.Our comparison studies analyze the number of nodes, the trajectories produced, and the total time to fulfill the fastest route.Illustration of the path created from the other models [44] .(A) It depicts the path created by Asl and Taghirad model by the green lines (redrawn by Asl and Taghirad, 2019 [44] ).(B) It represents the proposed method point order and traversed path.The point order is illustrated by the violet arrows, while the orange path represents the robot path.Safety-aware roads are depicted by the blue dashed lines.The waypoints are illustrated by the violet circles.
Figure 12.Illustration of the path created from the compared models [45] .(A) It depicts the path created by Zhuang et al.'s model by the green lines (redrawn from Zhuang et al., 2021 [45] ).(B) It represents the proposed method point order and traversed path.The point order is illustrated by the violet arrows, while the orange path represents the robot path.Safety-aware roads are depicted by the blue dashed lines.The waypoints are illustrated by the violet circles.
It is clear that the waypoint order and paths obtained by each model are created in an obstacle-free environment, as illustrated in Figure 10A.The length created by the Zhang' s model was 240.84 m, while the proposed model produced a shorter trajectory of 219.99 m.This is due to the founded waypoint orders in the environment.In Zhang' s comparison study, the proposed model establishes more nodes, and the overall path is expanded by 1.09%, but the proposed model generates a solution 6.1% faster than the compared model.Zhang' s proposed model has to utilize a node selection algorithm to establish its shortest path, while the proposed model does not.Due to this feature, the compared model was evaluated before this crucial step and discovered that the nodes established were vastly greater than the proposed model, as seen in Table 2. Considering this factor, the proposed model can surpass and outperform Zhang' s model.Asl and Taghirad aimed to solve the multi-goal Figure 13.Illustration of the path created from the compared models [46] .(A) It depicts the path created by Vonásek's model shown by the green lines (redrawn from Vonásek and Pe nic ka, 2019 [46] ).navigation problem by developing a traveling salesman problem in the belief space [44] .
From Figure 11, one can see the established path using both Asl' s method as well as the method proposed in this paper.The method proposed by Asl and Taghirad has the advantage of creating a shorter path but requires a greater number of nodes than the proposed method.Figure 12 depicts the model comparison between Zhuang et al.' s model and the proposed method [45] .The simulation studies reveal that the proposed model had an increased length of approximately 0.05% over Zhuang et al.' s model.Once the compared model requires a greater number of nodes to complete its multi-waypoint navigation, another key point from this comparison is the path created from Zhuang et al.' s model and the proximity to the obstacles in the map.In a real-world environment, the robot could obtain server damage or cause an accident if it is too close to the surrounding obstacles [45] .The proposed method established an effective path without risking the robots well being.Vonásek and Penicka [46] models had similar results to the previous models, with an increased length of approximately 0.05%, as seen in Figure 13.The two compared models have the same problem as Zhuang et al.' model [45] .The paths are excessively close to obstacles in the map and thus are not efficient for real-world implementation.
In such an environment, it is very important to consider the robot safety because of the narrow paths created being tightly packed with triangular shaped obstacles.Although most of our model comparison results showed that the path constructed with the proposed model increased from the compared models, we achieved our goal of constructing safety-aware roads for robot safety and establishing an obstacle-free path.
From Figure 14, it is observed how the local navigator establishes a map through vision sensors such as LiDAR.
In Figure 14, it is obvious that the map in various stages is shown as the robot traverses along the generated trajectory found in the Vonásek' s simulation [Figure 13] [46] .
The robot is able to reconstruct the outer boundary of the obstacles through the LiDAR scan.These are depicted as the poly-shaped figures with a rough background and a white center.
In Figure 15A, it is clear to see the original starting position as well as the planned trajectory, which was found utilizing our proposed IPSO model.From the figures, one could observe fully and partly detected obstacles as well as the outer boundary being detected.The map depicted in Figure 15 has a height and width of 60 .The dimensions of the robot are approximately 0.82  long and 0.68  wide.In Figure 15A, the robot has successfully traversed one third of the map, while simultaneously avoiding the obstacles.In Figure 15B, it illustrates the robot' s planned trajectory and the map being simultaneously constructed along the path.The portions of the figure depicted in a yellow field are the built map sensed by the onboard sensors.Finally, in Figure 15C, the robot has successfully visited each waypoint and reached its final destination, and it shows the complete depiction of the map along the projected path.

CONCLUSION
We proposed an adjacent node selection (ANS) algorithm to find a node in the graph to connect waypoints.This algorithm is utilized in the safety-aware multi-waypoint navigation and mapping by an improved PSO and GVD model.An IPSO-based multi-waypoint algorithm has been developed to define an order for waypoint navigation.Through our proposed ANS algorithm, connections among the waypoints and the safety-aware routes to reach multi-objective optimization can be created.The feasibility and effectiveness of our model by conducting a benchmark test and model comparison studies and analyses have been demonstrated.

Figure 1 .
Figure 1.Illustration of the proposed model framework.

Figure 2 .
Figure 2. Illustration of the ANS algorithm and the safety-aware model by creation of the GVD.(A) Depicts the equidistance property of the nodes and edges in the GVD model.(B) illustrates how we remove extraneous edge distances, which are small edges within the graph that reduce the search space or range in the ANS algorithm.(C) illustrates how the removal of those extraneous edges improves the range and how an access node to the graph can be found.

Figure 3 .
Figure 3. Details of the Adjacent Node Selection (ANS) algorithm.(A) The IPSO-based connection path planning in the search range.(B) The search range determination and node selection inside.(C) The final generated path with the minimum path length.

Figure 4 .
Figure 4. Illustration of ANS method within a more specific sense, where an obstacle obstructing the connection path.(A) The multiple connection paths have been obstructed by the obstacles.(B) It selects the nodes in the defined range.(C) It conducts IPSO point-to-point algorithm to achieve the optimal path to the selected node.

Figure 5 .
Figure 5. Illustration of the ANS algorithm analysis.(A) From Figure 11 it is enclosed by a pink dashed box.(B) From Figure 13 it is enclosed by a pink dashed box.

Figure 6 .
Figure 6.Illustration of the Adjacent Node Selection (ANS) algorithm.(A) The workspace with nodes, edges and waypoints.(B) The node selection in the search range.(C) The final generated path.

Figure 7 .
Figure 7. Illustration of the B-spline function.(A) The improved segmented B-spline curve.(B) The same path smoothed by the fundamental B-spline and the improved B-spline function.

Algorithm 2 :
Pseudocode for the adjacent node selection (ANS) algorithm Input: Edge list E, N nodes coordinates (N  , N  ), N × N distance matrix D and the location of the waypoint , (  ,   ) and the waypoint , (  ,   ).Output: The path length of the trajectory L    = (E); // Number of the edges in the workspace [E  , ] =  (E); // Sort the edge list from low to high  =   10 ; // Exclude 10% of extraneous edge distance E  = 0; for i =   :   do E  = E  + E  (); end R = E    −  ; //The radius of the search range for j = 1 : N do if (N , , N , in range of R from   ,   ) then A  = [A  ; N , , N , ]; // Add the potential adjacent nodes of waypoint  in the list end if (N , , N , in range of R from   ,   ) then A  = [A  ; N , , N , ]; // Add the potential adjacent nodes of waypoint  in the list end end  = (A  );   = (A  ); // Number of the points in the search range Apply IPSO-based path planning algorithm; Obtain the length of the connection path L  and L  in the search range; L  = ∞; for  = 1 :   do for  = 1 :   do L   = L  () + D(N , , N , ) + L  (); // Calculate the total path end if L  > L   then L  = L   ; // Achieve the minimum path length end end

Figure 8 .
Figure 8. Illustration of how the VHF uses a probability along with histogram-based grid to detect and build a map simultaneously.

Figure 9 .
Figure 9. Robot sensor configuration for multi-waypoint navigation and mapping.

6. 1 .
Comparison studies with benchmark datasetsTo show the effectiveness of our IPSO waypoint sequencing model, a comparison study was conducted with well-known TSP data sets and various heuristic-based algorithms.The employed datasets and algorithms are as follows: (a) 561-city problem by Kleinschmidt (pa561); (b) 299-city problem by Patberg/Rinaldi (pr299); (c) 200-city problem A, by Krolik/Felts/Nelson (kroA200); and (d) 150-city problem by Chur Ritz (ch150).The selected datasets have been verified and widely used to prove the validity of multi-waypoint sequencing

Figure 10 .
Figure10.Illustration of the path created from the other models[43] .(A) It depicts the path created by Zhang et al.'s model by the green lines (redrawn by Zhang et al., 2021[43] ).(B) It represents the proposed method point order and traversed path.The point order is illustrated by the violet arrows, while the orange path represents the robot path.Safety-aware roads are depicted by the blue dashed lines.The waypoints are illustrated by the violet circles.

Figure 11 .
Figure11.Illustration of the path created from the other models[44] .(A) It depicts the path created by Asl and Taghirad model by the green lines (redrawn by Asl and Taghirad, 2019[44] ).(B) It represents the proposed method point order and traversed path.The point order is illustrated by the violet arrows, while the orange path represents the robot path.Safety-aware roads are depicted by the blue dashed lines.The waypoints are illustrated by the violet circles.
Figure13.Illustration of the path created from the compared models[46] .(A) It depicts the path created by Vonásek's model shown by the green lines (redrawn from Vonásek and Pe nic ka, 2019[46] ).(B) It represents the proposed method point order and traversed path.The point order is illustrated by the violet arrows, while the orange path represents the robot path.Safety-aware roads are depicted by the blue dashed lines.The waypoints are illustrated by the violet circles.(C) It depicts how the B-spline curve is applied to the known path, which smooths and reduces the path for a local navigator to traverse.

Figure 14 .
Figure 14.Illustration of the scenario in Figure 13 navigation and mapping simulation.(A) It depicts the robot traversing a majority of the map, while avoiding obstacles in the environment.(B) It illustrates a polar histogram and how the obstacles are viewed while the robot is in motion, as well as points of high impact.The obstacles are viewed as lines since the LiDAR sensor can only see the part of the object that faces the LiDAR sensor.The picked direction portion of part (B) depicts the probability of colliding with obstacles while also selecting the best direction to move the robot.(C) It demonstrates the map being simultaneously built as the the robot traverses the established trajectory.

Figure 15 .
Figure 15.Illustration of the navigation and mapping ability of the proposed model.(A) The robot follows the generated trajectory and detects obstacle boundaries by the LiDAR sensor.(B) The simultaneous map building and navigation capabilities of the proposed model.(C) The fully generated trajectory and established map.