Real-time path planning for autonomous vehicle based on teaching–learning-based optimization

This paper presents an online path planning approach for an autonomous tracked vehicle in a cluttered environment based on teaching–learning-based optimization (TLBO), considering the path smoothness, and the potential collision with the surrounding obstacles. In order to plan an efficient path that allows the vehicle to be autonomously navigated in cluttered environments, the path planning problem is solved as a multi-objective optimization problem. First, the vehicle perception is fully achieved by means of inertial measurement unit (IMU), wheels odometry, and light detection and ranging (LiDAR). In order to compensate the sensors drift to achieve more reliable data and improve the localization estimation and corrections, data fusion between the outputs of wheels odometry, LiDAR, and IMU is made through extended Kalman filter (EKF). Then, TLBO is proposed and applied to determine the optimum online path, where the objectives are to find the shortest path to reach the target destination, and to maximize the path smoothness, while avoiding the surrounding obstacles, and taking into account the vehicle dynamic and algebraic constraints. To check the performance of the proposed TLBO algorithm, it is compared in simulation to genetic algorithm (GA), particle swarm optimization (PSO), and a hybrid GA–PSO algorithm. Finally, real-time experiments based on robot operating system (ROS) implementation are conducted to validate the effectiveness of the proposed path planning algorithm.

segments that allow the vehicle to navigate safely through the working space towards the desired destination. Besides, the path planning algorithm must consider the collision avoidance with the surrounding obstacles, and achieve some other goals such as minimizing the traveled distance, the mission time, the consumed energy, and/or any other goals based on the mission type.
There are two major techniques for path planning: (i) global or off-line path planning approach, and (ii) local or online path planning approach [1]. Typically, a global path planning produces a high-level low-resolution path based on knowing its current and previous perceptive environmental information, or what is so called the environmental map. This technique is successful in developing an optimized path. Nevertheless, the reaction to dynamic or unexpected obstacles is inadequate. Local path planning provides a minimum-level high-resolution path based on the gathered on-board sensory information. However, when the environment is cluttered or the objective is a long distance far, this approach is inefficient. Therefore, it is better to combine both approaches to improve their benefits and reduce some of their weaknesses [2].
Path planning navigational approaches can be classified into classical and bio-inspired approaches [3]. Most of the classical approaches were used before the 2000s, while later bio-inspired methods became to be the most dominant [4]. The basic concept of classical approaches is either to discover a feasible solution or to confirm that there is no solution. The main classical approaches are: cell decomposition [5,6], roadmap [7], sampling-based algorithms [8], and artificial potential field (APF) [9,10]. These methods are not usually mutually incompatible, and mostly a hybrid algorithm to contain two classical techniques is applied to improve the path planning process [11]. Although the classical approaches are simple, they have some drawbacks such as: high computational time, not being suitable for real-time implementation, and regional minima trapping. Consequently, bio-inspired approaches are proposed to avoid these drawbacks [3,12].
In this work, a real-time online path planning algorithm for a tracked unmanned ground vehicle (UGV) in an unknown and cluttered environment is addressed in this paper. First, the vehicle perception is achieved using the data fusion between the wheels' odometry, light detection and ranging (LiDAR), and inertial measurement unit (IMU). Then, teaching-learning-based optimization (TLBO) is proposed to find the near-optimum online path, where the objectives are to get the shortest path to reach the target destination, and to maximize the path smoothness, while avoiding the surrounding obstacles, and taking into consideration the vehicle dynamic and algebraic constraints.
Compared with the related works in the literature, the major contributions can be summarized as follows: 1. Developing a near-optimal online path planning algorithm based on TLBO, that obtains the desired collisionfree path that the vehicle must follow in order to reach its destination; and 2. Implementation of the proposed algorithm in real-time to validate its applicability. The real-time experiments are performed based on robot operating system (ROS).
The rest of this paper is organized as follows. The related work is presented in Sect. 2. The formulation of the path planning problem as a multi-objective optimization problem is presented in Sect. 3. Next, TLBO approach is presented to solve the optimization problem in Sect. 4. Section 5 presents the simulation results of the proposed TLBO algorithm compared to genetic algorithm (GA), particle swarm optimization (PSO), and a hybrid GA-PSO. Section 6 illustrates the experimental results to validate the effectiveness and applicability of the presented approach. Finally, conclusions and future work recommendations are conducted in Sect. 7.

Related work
Most recently, computational intelligent approaches have become the most dominant in the field of unmanned systems' navigation due to their ability to handle the uncertainties in the robot's surrounding environment, and to find the nearoptimal path considering the vehicle's algebraic and dynamic constraints, as well as any other constraints corresponding to the vehicle or its assigned mission. The main bio-inspired approaches used for UGVs path planning are: GA, fuzzy logic (FL), neural network (NN), PSO, firefly algorithm (FFA), and most recently, TLBO. In [13], a path planning algorithm for a mobile robot is proposed based on GA to find a collision-free path. The proposed approach incorporates GA with a modified mutation operation as a solution technique to ensure a selection of grids from the available zones without any repetition. The proposed model tries to shrink the search space, which in turn reduces the computational complexity. In [14], navigation from narrow passages is investigated. The authors proposed a dependent behavior modulation combining motor schema and FL. Nevertheless, the scalability of this algorithm is its major demerit and results in a huge number of fuzzy rules in the case of a complicated behavior-based systems. Changwon et al. [15] presented a fuzzy analytic hierarchy process (FAHP) for navigation of a mobile robot to be efficiently handled by means of a decision-making multi-objective problem. The presented FAHP differs from traditional AHP in using triangulation of fuzzy number-based extent analysis to produce the weight vectors. In [16], a fast simultaneous localization and mapping technique (SLAM) based on NN is exploited to mitigate the error accumulation caused by the imprecise linearization of the SLAM nonlinear function, and the improper odometry model. Results showed the capability of a wheeled mobile robot (WMR) to safely navigate in an unknown and cluttered environment. In [17], an online path planner is based on NN, where the performance of this algorithm is estimated based on two offline training path data sets. Nevertheless, experimental results are omitted, and simulation results are obtained. In [18], the localization and mapping of a mobile robot during the navigation in an unknown environment is addressed. A multi-agent particle filter is applied to handle the mapping and localization challenges, where PSO is exploited to improve the computational burden and the convergence characteristics. To avoid the problems of premature convergence and local-minima trapping associated with PSO, an improved PSO algorithm is proposed in [19] to obtain a near-optimal path for mobile robots. Besides, the path smoothness is achieved based on a continuous high-degree Bézier curve. Fengling et al. [20] exploited an optimal path planning algorithm based on FFA with self-adaptive population size. Two nonlinear functions are presented to get the population size based on the degree of a potential collision. Results showed that the proposed algorithm is stable and its convergence speed and computational time are acceptable.
It can be noted that all the bio-inspired approaches have some merits and suffer from other demerits. Therefore, many hybrid algorithms consist of two approaches are proposed to enhance the overall efficiency and performance of the path planner [21][22][23][24]. Also, all swarm and evolutionary techniques are random and probabilistic. As a result, they must have some common controlling parameters, such as the population size. Furthermore, each algorithm has its own specific control parameters such as the crossover and mutation rates in GA, and the inertia weight and cognitive and social parameters in PSO. It is worth noted that the proper tuning of the algorithm-specific parameters is a critical factor affecting the computational time and obtaining the feasible solution. Considering this fact, TLBO is proposed as it does not need any specific parameters.
TLBO is a meta-heuristic approach proposed by Rao et al. in 2011 [25]. It is inspired by the learning and teaching process, via a simplified mathematical model of knowledge enhancements gained by learners in the classroom [26]. In TLBO, the population is defined as a group of learners, while the most learned one is assigned as a teacher, i.e. the learner with the best results. Based on that, there are two stages of TLBO: the teacher stage and the learner stage. In the first stage, all learners improve their knowledge from the teacher. Then, in the second stage, learners continue learning and improving through peer interaction between them.
TLBO is widely proposed for path planning of robotic manipulators [27,28]. However, very few works use TLBO for UGV path planning. In [29], path planning algorithm for a mobile robot navigation is presented based on nonlinear inertia weighted TLBO (NIWTLBO). Based on a coordinate system transformation, a new map model is built. Then, a global path is obtained by means of NIWTLBO. The proposed algorithm performance is tested through simulation. However, experimental results are omitted. In [30], a path planner based on adaptive neural fuzzy inference system (ANFIS) is applied, where TLBO is implemented to find the main parameters of ANFIS. Compared with PSO, invasive weed optimization (IWO), and biogeography-based optimization (BBO), simulation results showed a better performance for the proposed algorithm. In [31], a conformal geometric algebra and TLBO are proposed for a mobile robot's path planning. First, the robot and the obstacles are considered as conformal spheres. Then, in order to convert the robot sphere to a new sphere location, a conformal translator is provided. Finally, TLBO algorithm is applied to optimize this translator by minimizing the distance between the desired position and the new position, in addition to maximize the distance between all possible obstacles positions and the new position. In [32], TLBO technique is proposed for path planning to navigate a three-wheeled robot. The considered objective function is to safely reach the desired target. In [33], a path planning algorithm based on shuffled frog leaping algorithm (SFLA) is exploited. To improve the exploitation and increase the convergence rate of SFLA, a hybrid SLFA-TLBO algorithm is presented. Simulation results emphasize the applicability of this hybrid algorithm compared with the traditional TLBO and PSO.
From the literature review, the following results are summarized for the problem of unmanned tracked vehicles' path planning: 1. Classical approaches are simple. However, they have some disadvantages like high computational time, the difficulty of online implementation, and local minima trapping; 2. Bio-inspired approaches are able to find the near-optimal path. However, their main demerit is the tuning of the algorithm's control parameters; 3. TLBO is widely applied in path planning of robotic manipulators [27,28]. However, very few works focused on applying TLBO for UGV path planning [31][32][33]; and 4. Most of the existing TLBO techniques have not yet been validated experimentally.

Path planning problem
Let q ∈ C be the vector of generalized coordinates for the vehicle, q = [x, y] T , and C is the vehicle's configuration space. The vehicle moves in an unknown cluttered environment starting from S p with coordinates (x s ,y s ), while the goal is to reach the target location T p with coordinates (x t ,y t ) as shown in Fig. 1. During motion, let q be the current posture of the vehicle's center of gravity with coordinates (x, y) and orientation angle θ , then: In the vehicle configuration space C, the start and the target points are linked with a line segment regardless the obstacles considered as the shortest path. This line is divided into (M − 1) segments, and M points starting from P 1 to P M , where every two successive points define a segment which is part of the path linking S p to T p . Consequently, to avoid the potential collision with the surrounding obstacles, and considering all other constraints, a new path consists of (M−1) segments and M points (including source and target locations) is planned.
Based on the aforementioned explanation, the objective of the path planning algorithm is to determine the optimum coordinates of (M − 2) points (as S p and T p are already known) that minimizes the path length, maximizes the path smoothness, and avoids the potential collision with the surrounding obstacles. For this purpose, TLBO is proposed. As illustrated before, the vector of vehicle position is defined as: As the path is divided into (M − 1) segments, at the end of any segment, the vehicle position can be obtained as:

Remark 1
In this work, points P 1 and P M are considered as the starting and target points S p and T p , respectively.
Consequently, the optimal path planning problem can be declared as: finding the optimum coordinates (x i , y i ) and orientation angle θ i , i ∈ {2, 3, . . . , (M − 1)} in order to minimize the path length and maximize the path smoothness, such that: where J (u) is the total objective function, J 1 (u) is the objective function that minimizes the path length, J 2 (u) is the objective function that maximizes the path smoothness, w 1 and w 2 are weighting factors, and u is the vector of m design variables, such that: The values of J 1 and J 2 can be calculated as follows: 1. Minimizing the path length: The total path length is determined by: where S(P i , P i+1 ) presents the distance between two successive points P i and P i+1 .

Maximizing the path smoothness:
The smoothness of a path is a significant factor in vehicle path planning, as the vehicle should not abruptly alter its orientation. The path smoothness leads to lesser time consumption and energy. So, the smoothness is considered as a secondary concern. Consequently, maximizing path smoothness equals minimizing the total turning angle of the vehicle [34]. As a result, the following is the objective function of the vehicle's turning angle: where θ i is the angle between two vectors The optimization problem is subjected to the following constraints:

The boundary constraints:
In which the coordinates of P i be always within the vehicle's configuration space C, i.e.
2. The collision avoidance constraint: During vehicle motion, the distance between the vehicle and the j th obstacle, j = {1, 2, . . . , N obs }, where N obs is the number of detected obstacles, can be defined as: where obs j denotes the center of gravity of the jth obstacle. As shown in Fig. 2, each obstacle j is surrounded by To prevent the collision between the vehicle and the jth obstacle, d j must be greater than the minimum safety distance δ j obs presented as: where; where ζ is a weighting factor, andb is the tracked vehicle width.

Remark 2
The weighting factor ζ is a critical value to ensure the collision avoidance of the vehicle. Therefore, 0.5 < ζ < 1. The selection of ζ value is significantly critical. While increasing ζ will ensure collision avoidance, it will decrease the possibility of finding the feasible solution of the optimization problem, results in a high computational burden. In this work, ζ is selected to be 2 3 .
As a result, the collision avoidance constraint can be expressed as follows: Finally, the path planning multi-objective optimization problem can be mathematically represented as follows: subjected to: As TLBO is a stochastic technique, the above-mentioned constrained optimization problem presented in Eqs. (12) to (14) should be handled as an unconstrained problem, where all the constraints must be explicitly considered in the overall objective function. This can be achieved by adding penalties to the objective function for violating the constraints [35]. Generally, the objective function of a constrained optimization problem with c constraints can be expressed as an unconstrained problem based on the following general form: where G j is the penalty function for the constraint g j , and a k is the penalty parameter, a k > 0. According to Eq. (15), while minimizing the objective function, a positive penalty parameter is added whenever the constraint is violated [35].
There are various penalty functions. In this paper, the proposed penalty is proportional to the degree of the violation, where the constants a k are adapted to adjust the contribution of the penalty terms to the objective function's magnitude. As a result, Eq. (12) can be re-formulated as: where σ is the penalty coefficient, and R j obs can be calculated as follows: meaning that if d j is greater than δ j obs , i.e., the distance between the vehicle and the jth obstacle is safe. Therefore, the collision avoidance constraint is not violated, and no penalty is applied to the total objective function. However, if d j is less than δ j obs , the vehicle will collide with the jth obstacle. As a result, a penalty is added to the objective function in order to avoid the potential collision.

Remark 3
Since the path is composed of line segments, it is differentiable everywhere, except at the unions between the line segments. Therefore, a high-degree Bézier curve is applied [19]. This will get the path differentiable everywhere, results in improving the path smoothness, and obtaining a suitable path for vehicle motion control.

TLBO Algorithm
After defining the optimization problem in Sect. 3, The TLBO algorithm is provided to obtain the near-optimum path that minimizes the total objective function presented in Eq. (15).
Teaching-learning is an important process in which each learner seeks to learn something from the other learner in order to improve themselves. TLBO was proposed by Rao et al. [25,36] and Rao and Patel [37], which simulates the phenomenon of teaching-learning in a classroom. In TLBO, two basic types of learning are employed: (i) from the teacher to learners (known as the teacher phase) and (ii) from the interaction between learners (known as the learner phase). In TLBO, a population consists of a group of students, where various subjects offered to the students are considered as the design variables. The objective function of the optimization problem is equivalent to the mean result of each student in all subjects. The best student with the best objective function's value is assigned as a teacher, while TLBO tries to improve the solution with each iteration.

Remark 4
During the following explanation of the TLBO algorithm, the subscripts i, j, and k refer to the iteration number, the subject, and the learner, respectively.
The following steps show the execution of the TLBO algorithm: Step 1. Construction of the design variables vector X (the vector of learners' subjects): For each student k, the vector of D v subjects (the number of design variables) is: As a result, the length of the vector of design variables is:

Step 2. Initialization:
• Choose the number of learners N p .
• Choose the maximum number of iterations i max .
• Set the iteration counter i to 1 Step 3. Initial generation of random population: Generate a random population of learners offered D v subjects as follows: where, r j is a random number with a uniform distribution within the range ∈ [0, 1], N p denotes the number of learners in a class, and X max j and X min j represent the upper and lower boundaries of each design variable j, respectively.
Step 4. Teacher Phase: In this phase, the objective is to find the best student in the class to be the teacher. Then, all other students are considered as learners.
The following are the steps of the teacher phase: Step 4.1 Evaluate the mean result (M i, j ): The mean result of all learners on a particular subject j, is given as follows: Step 4.2 Evaluate the objective function: For each learner k, evaluate the objective function J presented in Eq. (15). Under normal circumstances, the teacher is usually considered to be a learner with a high degree of learning ability to educate the other learners, so they can have better learning achievement. In accordance with the teacher's abilities, the teacher tried to increase the average learning achievements of learners in the subjects they taught.
Step 4.4 Evaluate the difference mean: Evaluate the difference between the current mean result M i, j and the teacher results in each subject j as follows: where r j is a random number with a uniform distribution within the range ∈ [0, 1], and T f is the teaching factor, T f ∈ [1, 2] [26], which is determined randomly as follows: Step 4.5 Update the design variables' values: For each learner, and based on Dif_Mean i, j , the vector of design variables X is updated using the following formula: Step 4.6 Update the solution: Recalculate the objective function according to the updated values X new (i,k, j) .
If X new (i,k, j) yields a better solution than X (i,k, j) , then X new (i,k, j) replaces X (i,k, j) . Otherwise, X (i,k, j) is maintained, i.e.,: This means that the knowledge of each learner is improved from the interaction with the teacher. By the end of this step, the teacher phase in ended, and the learning phase will start. Step 5. Learner phase: During this phase, each learner interacts with other learners randomly to improve Step 5.1 Interaction: Consider two learners P and Q, the interaction between them to improve their knowledge can be obtained as follows: Step 5.
Step 6. Termination criterion: Check for convergence of the iterative process after each iteration. If the termination criterion is met, terminate the algorithm. Otherwise, set i = i + 1 and, go to Step 4.

Remark 5
The termination criterion used in this study is that the optimization algorithm is ended if the objective function does not change after 30 iterations.
The flowchart of the TLBO procedure is shown in Fig. 3.

Simulation results analysis
In simulation, the proposed path planning algorithm is validated. The goal of the simulation is to prove that the presented path planning algorithm can find the near-optimal global offline obstacle-free path, and to check the stability and performance of the presented TLBO approach compared to GA, PSO and a hybrid GA-PSO algorithm [38]. All the parameters of GA and PSO are tuned based on [39].

Assumption 1
In simulation, it is assumed that all obstacles are already detected, and the vehicle's workspace is completely known.

Path planning results
In simulation, the vehicle's start point S p = (200, 0), and the target location is T P = (700, 300). Also, there are four detected obstacles in the configuration space with known locations, while the safety distance for each obstacle is d safe = 30 cm. As can be seen from Fig. 4, the presented algorithm succeeded to generate a planned path with avoiding the collision with surrounding obstacles. Also, Fig. 5 shows the convergence rate of the objective function in cases of TLBO, GA, PSO, and GA-PSO. It can be seen that TLBO is better than the other techniques as it converges in 28 iterations to an objective function value below the values obtained by GA-PSO, PSO, and GA, that converge in 37, 60, and 92 iterations, respectively.

TLBO performance and stability analysis
Since TLBO is a meta-heuristic optimization technique, the first iteration is based on a random population, it is not assured that the global optimum solution will be obtained. As a result, it is of great importance to test its performance and stability. This can be obtained by executing the proposed algorithm many times to ensure that the result is close to the optimal result. The proposed algorithm is executed 50 times, and results are shown in Table 1. As can be seen, the proposed TLBO algorithm is better than GA, PSO, and GA-PSO as it converges to the minimum value of the objective function in a smaller number of iterations, results in less computational time. Also, from the point-of-view of stability, TLBO is more stable as the standard deviation value in the case of TLBO is less than that in case of GA, PSO, and GA-PSO.

Evaluation of trajectory quality
To evaluate the quality of the planned trajectory, the proposed algorithm is executed 25 times, and the values of J 1 and J 2 are evaluated in case of TLBO, GA, PSO, and GA-PSO, as J 1 and J 2 can be considered as the indicators for the quality of the trajectory. As can be seen from Fig. 6, TLBO always finds the minimum values of J 1 and J 2 compared to the other optimization techniques. Also, it can be observed from Table  2 that TLBO is more stable as the standard deviation (STD) for the values of J 1 and J 2 is less than those obtained by GA, PSO, and GA-PSO.

Effect of weights w 1 and w 2
As mentioned in Sect. 3, the multi-objective optimization problem is converted to a single objective one by means of weight aggregation. So, it is important to study the effect of weights on the objective function. This is achieved by means of the multivariate partial least square (PLS) method [40]. The proposed algorithm is executed 38 times, where w 1 and w 2 are changing in each execution, then J 1 , J 2 , and J are evaluated. The PLS model is fitted by cross-validation to get a two-component model with R X = 0.97 and Q X = 0.93. R X is known as the goodness of fit which is an estimate of the explanation ability of the model, where Q X is known as goodness of prediction which is an estimate of the predictive ability of the model. Figure 7 demonstrates the scatter plot of the two score vectors, which indicates the distribution of the data results during the 38 executions. More analysis is conducted by examining the loading plots to investigate the relationships between different variables. Figure 8 shows the loading plot, clarifying the effect of the weights on the total objective function J . It can be noticed that w 1 has a remarkable effect on the total objective function J . A sensitivity analysis was conducted on w 1 , w 2 , J 1 , and J 2 in an attempt   Figure 9 shows the variable importance plot (VIP) of all available parameters. The influence of J 1 and w 1 along the data set is clearly noticed. Finally, in Fig. 10, a Pareto front is obtained. Based on this, the weights w 1 and w 2 are selected to be 0.65, 0.35, respectively.

Platform description
To validate the proposed path planning algorithm presented in this study, the real-time analysis of the path planning is implemented in a cluttered environment, where the vehicle is surrounded by different obstacles. The experiment is conducted on a plane surface and is implemented on a small tracked vehicle shown in Fig. 11. All the vehicle parameters are obtained in Table 3.
The vehicle is powered by ROS. As shown in Fig. 11, it is driven by two EMG49 DC motors with wheel encoders. A power amplifier MD49 motor drive board is used as the motors controller and driver. A sensor fusion is used to improve the accuracy of the odometry by means of an IMU  The proposed ROS framework consists of packages and the nodes to interface the proposed controllers with the ROS environment, while the controllers, localization nodes and other components are implemented as C ++ and Python libraries. The ROS framework allows the tracked vehicle to contribute and synchronize messages between nodes in the off-board master PC and with the client PC by using a network as shown in Fig. 12.
Before path planning, The vehicle navigation system has to solve two different problems: mapping and localization. After that, a path planning algorithm can be applied. To achieve the navigation task, the navigation nodes are designed to integrate the mapping and localization together. In order to build the map of the workspace and, get the instantaneous location of the vehicle, the navigation nodes received the information from wheels odometry, IMU, and LiDAR. Also, it received the location of the target position. Then, the path planning algorithm can be implemented to generate the near-optimal path as required velocity and pose, Finally, the controller nodes produce the safe velocity commands and send it to the vehicle. The data fusion between the outputs of wheels odometry, LiDAR, and IMU is made through EKF in order to compensate the sensors drift to achieve more reliable data to improve the localization estimation and corrections.
It's worth noting that navigation nodes don't need a prior static map. In fact, it can be started with or without a map. When started without a prior map, and based on the vehicle's on-board sensors, the vehicle will have online information about the surrounded obstacles. Consequently, the vehicle will avoid the detected obstacles. At this stage, the vehicle will generate a global path for unknown places, which may collide with undiscovered obstacles. When the vehicle receives more information from its sensors about these unknown places, it will be able to re-plan its path. Fig. 13 demonstrates the ROS transformation tree frames diagram rqt_tf_tree for path planning, where the transformation tree system builds the dynamic transformation that relates all reference frames in the system (drivers, IMU, and LiDAR) related to the frame body named base link.
According to the ROS computation framework shown in Fig. 14 that represents the ROS computation graph diagram rqt_graph for the proposed path planning TLBO algorithm. The odometry is provided by the nav_msgs/ Odometry message through ROS, which stores an estimation of the vehicle's position and velocity in free space in order to identify its location. To avoid any obstacles, the sensor data is sent through sensor_msgs/LaserScan or sensor_msgs/PointCloud messages over ROS. The destination point is delivered to the navigation nodes via geometry_msgs/PoseStamped message. The velocity commands are sent by the controller nodes using the /cmd_vel topic in geometry_msgs/Twist messages.
To create a map using ROS, the /mapping node is proposed to construct an occupancy grid map. The /mapping node is considered as the implementation of simultaneous localization and mapping (SLAM), a technique that constructs a map of an environment simultaneously with the vehicle motion. Obviously, during the vehicle navigation through the environment, it gets information from the environment via its sensors and develops a map for the vehicle's configuration space as a result. The node /rplidarNode generates the laser range data sensor_msgs/LaserScan, the /mapping node is used to build 2D occupancy grid maps. So, the /mapping node is used to create a map of an unknown environment as well as update an existing map. This can be seen in Fig. 15 where the vehicle motion in the generated map is visualized via the visualization environment "Rviz".

Results and analysis
In the experimental scenario, the start and target points are known where the vehicle moves in a cluttered environment, in which twelve random obstacles with different shapes and dimensions are existing as shown in Fig. 16. The configuration space dimensions are (5m × 5m), while the coordinates of the start and target points are S p = (0, 0) and T p = (3.6, 3.9), respectively. All the values of the TLBO parameters are given in Table 4. Figure 17 shows the experimental generated path. It can be seen that the vehicle reached the destination point, and evade the collision with the surrounding obstacles. As illustrated in Fig. 2, each obstacle is surrounded by two circles with radii    Fig. 17 that the generated path safely avoids the collision, as the path does not touch any of the circles with radius δ j obs . As can be illustrated from Fig. 18, the presented TLBO algorithm can satisfy the collision avoidance constraint presented in Eq. (14), as it succeeded to ensure that the planned path guarantees the safety of the vehicle by keeping a safe distance greater than δ j obs from the surrounding obstacles. Figure 19 shows eight snapshots of the real-time experiment, where the tracked vehicle moves in the configuration space between the obstacles through a collision-free path during the experiment. At the top-right screen of each snapshot, the vehicle pose between the detected obstacles and the generated path is visualized in ROS/Rviz environment. The tracked vehicle analyzes the environment information from LiDAR, IMU, and driving motors' encoders through the sensor fusion by using EKF. The TLBO algorithm is implemented as a node to the ROS ecosystem by using C ++ language to obtain the path with collision-free. The presented path planning TLBO algorithm is very effective since it recognizes and avoids obstacles in the surrounding environment, and it accomplishes the navigational task in a short time. Also, the computational time is measured to be 1.34 s for each frame that updates every 1.83 s.

Conclusions
This paper addresses the path planning algorithm for an autonomous tracked UGV in a cluttered environment based on TLBO algorithm. The proposed algorithm succeeded in obtaining the near-optimal paths with avoiding the sur-rounding obstacles, and it can handle the problem of system kinematic and algebraic constraints. TLBO algorithm is applied to get the near-optimal path between the start and goal locations, considering the minimization of the path length, the maximization of the path smoothness, and avoiding the potential collision with the nearby obstacles. Many remarkable features are achieved by the proposed algorithm: (1) it is simple approach and can be implemented in real-time; and (2) using TLBO does not need the adjustment of specific parameters such as GA, FFA, PSO, and other meta-heuristic optimization techniques. Finally, the proposed path planning algorithm is experimentally evaluated in real-time in an indoor cluttered environment, and is implemented on an autonomous tracked vehicle based on ROS to emphasize the effectiveness of the presented path planning algorithm and its applicability.
The main future directions of this work can be summarized as: (1) the extension of the proposed path planning algorithm to deal with a dynamic environment, in which the target destination and obstacles are dynamic, (2) dealing with non-convex and irregular shapes obstacles, and (3) improve the path planning algorithm by embedding a vision system with a single digital camera or stereo camera. This will aid the navigation processes to detect the surrounding environ- Fig. 18 The distances between the tracked vehicle and the surrounding obstacles Fig. 19 Real-time snapshots of the tracked vehicle moving between the obstacles through a collision-free path ment as well as the terrain type, results in improving the path planning procedure.
Author contribution ADS contributed to conceptual design, methodology, validation, and original draft preparation. MAK contributed to supervision, methodology, validation, thoroughly correction of the manuscript, and final draft preparation. ES contributed to supervision, discussion, and resources. WMH contributed to supervision, discussion, and resources.
Funding Open access funding provided by The Science, Technology & Innovation Funding Authority (STDF) in cooperation with The Egyptian Knowledge Bank (EKB). No funding was received to do this study.
Data availability All simulation and experimental data in this article are included in this article.

Code Availability
Code generated or used in this study can be provided from the corresponding author upon request.

Conflict of interest
The authors declared that there are no conflicts of interest to declare that are relevant to this study.

Consent for publication Not applicable.
Ethical approval The authors confirm that there are no potential acts of misconduct in this work, and approve of the journal upholding the integrity of the scientific record.
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecomm ons.org/licenses/by/4.0/.