1. Introduction
The term unmanned ground vehicles (UGVs) refers to robots that can travel on land without human operators [
1]. In some cases, UGVs can operate autonomously, while in others, operators can control them remotely [
2]. In the so called “follow-me” mode, the operator does not have to manually control the platform. This mode allows the vehicle to follow the route set by the guide [
3]. Navigating UGVs in “follow-me” mode requires the precise location of the guide to be determined. Guides are responsible for creating paths for UGVs, as mentioned earlier. Maintaining a set distance from the guide and keeping the platform’s heading are the most important aspects of this mode [
4]. UGVs should be able to follow the guide in a smooth motion, but if there is an emergency, the guide may stop during movement [
5]. It is possible to implement these functionalities using the components of the “follow-me” system, including the guide’s observation subsystem, the path planning subsystem, and the control subsystem [
6]. “Follow-me” systems can be divided, inter alia, because of the mode of interaction and degree of autonomy [
3]. Mode of interaction refers to the way that the platform interacts with the guide and it can be explicit or implicit. If a human does not directly command the platform, the mentioned mode is explicit. On the other hand, in the case of the degree of autonomy, the most common variant is partial autonomy. Fully autonomous systems use multiple technologies simultaneously and are extremely expensive. The use of “follow-me” systems in dangerous terrain means that the UGV relies heavily on the guide’s movement (implicit mode of interaction and partial autonomy). The platform also does not have to follow the guide in real-time, if it is not necessary in a given situation. To do this, the guide moves first, marking a certain path, then stops and waits for the UGV to reach it. In this case, determining the exact location of the guide is crucial.
Knowing the guide’s location is the basis of the “follow-me” system, and this task is performed within the guide’s observation subsystem [
7]. This article is based on the field test results of an outdoor localization subsystem based on ultra-wideband (UWB) technology [
8] constituting one of the elements of the “follow-me” system. In order to locate objects using UWB technology, very short data packets are sent wirelessly with a very low power spectral density using the radio energy scattering technique (time of flight). It provides the bandwidth needed to transfer the required amounts of data [
9,
10].
The mentioned outdoor localization subsystem consists of a total of five UWB modules. Four of them (receivers) were deployed on an existing UGV, while the fifth module (transmitter) was attached to the guide as a part of the developed subsystem. The described subsystem estimates the relative operator’s position based on distance measurements [
11,
12]. Various technologies are used in commercial “follow-me” system solutions, including UWB [
13,
14]. Because the main task of the platform in the above-mentioned cases is to keep following the guide (not necessarily along the path indicated by him), a smaller number of receivers is used (usually two), which results in a lower accuracy of the guide’s localization.
Using the guide’s location subsystem, the UGV’s desired route is determined based on the above premise. In the path planning subsystem, successfully calculated guide positions are used to create a route [
15,
16]. Finally, the planning subsystem aims to provide input signals to the control systems that facilitate the execution of the planned path [
17].
The problem of determining the route of a guide’s movement requires solving the problem of fitting a continuous function to a discrete set of the guide’s locations. The numerical methods used in solving the data fitting problem are interpolation and approximation [
18]. Interpolation is rarely used in relation to data from experimental measurements because of the presence of disturbances in devices (the interpolation function must pass through the given points) [
19]. Approximation, in turn, allows for smoothing and simplifying the course of the analyzed data sets [
20]. In addition, this method can be used for large data sets as opposed to interpolation.
The approximation is the problem of describing a data set using approximating functions f(x). When using the approximation methods, a certain set of base functions is assumed, from which the approximating function is defined and the method of its use is determined. The most frequently used form of approximating functions is the so-called general polynomials. The approximation task consists of finding the coefficient values of the generalized polynomial so that the approximating function minimizes the adopted criterion, e.g., the sum of the squared differences. The concept of approximation is also closely related to the concept of regression, which is a solution to the problem of point approximation for a data set, but its final result is, apart from the sought function coefficients, also a function model. Regression allows for determining the symbolic form of the function, which, meeting the adopted criteria, reflects the individual values of the dependent variable for the previously defined set of independent variable values [
18,
21].
Regression can be divided into two main types: parametric and non-parametric [
22]. Some sources also distinguish semiparametric methods, which are rarely used [
22]. Mentioned regression models are chosen according to the prior knowledge of the functional form and the random error distribution. The most important criterion, however, is the knowledge of the functional form. If it is known, parametric regression will be able to fit the data. The parametric approach requires knowledge of a mathematical model, which can be simple (e.g., linear regression), and its parameters are assumed directly [
23]. Because the guide can move in any direction, marking the platform’s path, it is impossible to make any assumptions about its route. Therefore, the application of the parametric regression approach in the analyzed case becomes very difficult to implement.
There are also non-parametric regression methods in which the form of the model is not clearly defined and their parameters are not taken directly [
24,
25]. Nonparametric regression methods, including Kernel regression [
26,
27], LOWESS (locally weighted scatterplot smoothing) [
22], and smoothing spline [
28,
29,
30,
31], have an extensive form of a mathematical model. Nonparametric regression models are much more flexible and computationally complex compared with parametric models. In addition, they avoid erroneous fitting results when the wrong model is used. The result of the application of the above-mentioned methods is not a mathematical relationship; therefore, the mentioned results are also difficult to export [
22].
To determine the guide’s route, the desired method should be characterized by a moderate computational complexity, have the ability to parametrically shape the smoothing of the coordinates of the guide’s location, and be able to estimate the missing coordinates based on the present values.
Kernel regression smoothing is a technique that uses kernel functions as a weighing function for developing a non-parametric regression model. It can be applied to high-dimensional data sets and it can be used for fitting the data without making any distributional assumptions about it. It is more flexible than other non-parametric approaches, but it does not have any direct smoothing parameter [
32,
33]. In turn, the LOWESS method is based on the simplicity of linear least squares regression, which makes it highly exposed to the effects of outliers in the data set [
34]. Similar to the mentioned Kernel regression method, LOWESS does not have a direct smoothing parameter. Additionally, the Kernel method is much more computationally complex than the LOWESS method.
However, the only analyzed non-parametric method that meets the mentioned criteria is a smoothing spline. Among other methods of non-parametric regression, it is distinguished by a lower computational complexity and the presence of a direct parameter smoothing the given waveform. Moreover, it is not exposed to the effects of outliers in the data set. Therefore, a smoothing spline was chosen as the method for calculating the guide’s route.
Researchers have focussed on the study of path planning algorithms of autonomous robots (which can also work under the “follow-me” system) using various modern methods, including smoothing splines [
35]. No studies were found on the use of the smoothing spline method in the context of planning the movement of the UGV (or robot in general) as part of the “follow-me” system, hence the article is an innovation in the field. Moreover, no studies were found on the influence of the smoothing parameter on the estimation on the guide’s path.
The aim of the article is to determine the route of the guide using a smoothing spline based on the designated locations using UWB technology. In order to generate a smoothing spline, it is necessary to specify a value for the smoothing parameter. Because of this, it is necessary to conduct research on the influence of the aforementioned parameter on the estimation of the guide’s route and select a value that meets the selected evaluation criterion, e.g., minimization of the sum of errors.
2. Materials and Methods
A smoothing spline (so-called polynomial spline or polynomial smoothing curve) is a k-th degree piecewise polynomial that has k−1 continuous derivatives. The mentioned curve is most often used to approximate a data set of points with cubic polynomials (3rd order, two continuous derivatives). The advantage of using the mentioned curve is the possibility of reaching a compromise between two opposing aims:
In order to describe the mathematical model of a polynomial curve, the first step is to define the vectors of the dependent variables q and the independent variables t:
Then, the parameters of the aforementioned curve s(t) are obtained by minimizing the dependence S:
where
—the so-called smoothing parameter,
—smoothing spline function parameters [
22].
The curve parameters are determined for each node, while the nature of its estimation is determined by the smoothing parameter λ, which takes values in the range of [0, 1]. In extreme cases, when λ = 0, a linear approximation is obtained using the least squares method, and for λ = 1, interpolation using a cubic polynomial is obtained. Thus, when λ tends to zero, the smoothing effect of the course is maximized, while when λ tends to 1, the fidelity of the mapping of the set of points is maximized [
36].
2.1. Determination of the Value of the Smoothing Parameter
The present article is a direct extension of the research carried out in [
8]. Moreover, the results of the mentioned research form the basis of the article.
A Decawave TREK1000 evaluation kit [
37], which consists of five UWB modules, was used in the research. The developed system consists of five modules: four receivers called anchors and a transmitter called a tag, carrying out continuous distance measurements with a frequency of 10 Hz. UWB modules were placed on the UGV (anchors) and the guide (tag). The accuracy of a single anchor–tag measurement is approximately 10 cm using the two-way ranging time-of-flight (TOF) technique. The UWB system provides information about the distance from the individual anchors to the tag.
For the research, it was assumed that the human guide moves along seven rectilinear paths inclined at an angle of 0°, 30°, 60°, 90°, 120°, 150°, and 180°, respectively, to the
x-axis of the xy coordinate system in the area satisfying the following inequalities: −10 m < x < 10 m and 0 m < y < 20 m (
Figure 1).
Next, guide paths no. 1–7 (
Figure 1) were recreated with the assumption that the UGV remains stationary. Moreover, the guide was supposed to turn 180 around its axis after reaching the turning point and then return along the same track to the starting point. The arrangement of the anchors on the UGV is shown in
Figure 2 (spatial configuration of the anchors for the correct operation of the location subsystem).
During the movement, the guide carried a specially made frame with the necessary equipment (mobile location kit): a UWB tag, a GPS module, and a power supply system (
Figure 3).
In order to determine the location errors of the results obtained with the UWB technology, SwiftNav DURO satellite receivers operating in the RTK mode were used (error: 1 cm horizontally and 1.5 cm vertically) [
38].
The starting point of the article is the final results of research on the described location system based on UWB technology using the nonlinear programming (NLP) method based on the Levenberg–Marquardt (LM) algorithm [
8]. The mentioned results (
Figure 4) are the basis for the further determination of the guide’s path.
In order to calculate the guide’s route, first, the smoothing parameter value should be specified. Then, after determining said parameter, it becomes possible to implement a polynomial curve for the results of the experimental research of the location subsystem.
The following values were adopted to evaluate the obtained results:
where
is the error of mapping the guide’s location on the
x-axis of the coordinate system at time t,
is the error of mapping the guide’s location on the
y-axis of the coordinate system at time t.
where l is the number of distance measurements [
6].
Most often, the value of the smoothing parameter is determined using the following relationship:
where p is the average spacing of data points [
36].
The smoothing parameter calculated according to dependence 7 (p = 0.1) is approximately λ
p = 0.99. Such a high value indicates the maximization of data fidelity, which, due to the presence of disturbances resulting in localization errors, is not always the most recommended solution. Therefore, the influence of the smoothing parameter on the guide’s route estimation is determined in the article. In order to achieve the above-mentioned purpose and to select the final value of the smoothing parameter smoothing splines were calculated for the smoothing parameters λ ∈ [0.05; 0.1; 0.15,…, 0.95] and routes no. 1–7 (
Figure 4). Then, for each value of the smoothing parameter, the quality indicator Q and finally the average value of quality indicator Q
av were determined. Additionally, for each case, the mean square value of the acceleration a
RMS (the second derivative of the dependent variable) was also determined. Based on the minimization of the average quality indicator, the final value of the smoothing parameter was selected. The knowledge of a chosen smoothing parameter made it possible to determine the estimation of guide routes no. 1–7 using a smoothing spline. Matlab/Simulink software with the Curve Fitting Toolbox was used in the research.
2.2. The Influence of the Smoothing Parameter on the Guide’s Path Estimation
The results of the research on the influence of the smoothing parameter on the values of the Q quality indicator and the average square acceleration values for guide routes no. 1–7 are shown in
Figure 5,
Figure 6,
Figure 7,
Figure 8,
Figure 9,
Figure 10 and
Figure 11.
Figure 12 shows the values of the average quality indicator and the mean square root acceleration values for all of the considered results.
The values of certain quality indicators Q (
Figure 5,
Figure 6,
Figure 7,
Figure 8,
Figure 9,
Figure 10 and
Figure 11) obtain values ranging from about 79 m (traffic path no. 2) to about 375 m (traffic path no. 3). Determination of the average value of the quality indicator Q
av allows for generalizing the obtained results and for determining the final value of the smoothing parameter minimizing the indicator, which is the sum of the total errors (dependence 5). On the other hand, the courses of the mean square values of acceleration a
RMS for all of the considered paths (
Figure 5,
Figure 6,
Figure 7,
Figure 8,
Figure 9,
Figure 10 and
Figure 11) show an increasing trend obtaining the minimum quality indicator Q for the value of λ = 0.05 and the maximum for the value of λ = 0.95.
The Q
av indicator obtained the minimum value for the smoothing parameter λ = 0.15 (
Figure 12), which was adopted in the further part of the research as the smoothing parameter of the smoothing spline.
4. Conclusions
The method of determining the guide’s route using a smoothing spline was discussed in the article. In the context of the “follow-me” systems, there has been no systematic study of the application of the smoothing spline method for planning the movement of the UGV, so the article represents an innovation in the field.
The influence of the smoothing parameter on the estimation of the guide’s route was also determined in the article. In addition, no studies were found that examined the impact of the described parameter on path estimation.
As a result of the implemented mathematical model, it has been shown that the smoothing spline can recreate the path of the guide after a 10 s period of decay of the guide’s localization results. The occurrence of the aforementioned guide’s location decays increased the total errors for estimating the guide’s route.
The value of the smoothing parameter affects the guide’s route estimation. The choice of the final value of the smoothing parameter requires additional experimental studies. The dependence existing in the literature [
36] that allows for automatically determining the value of the smoothing parameter for any data is not universal and it is only a preliminary estimate of the parameter value. It always has to be adapted to the application under consideration.
The value of the smoothing parameter also affects the estimation of the linear acceleration of the guide. An increase in the value of the smoothing parameter increases the mean square value of the linear acceleration of the guide.