Abstract
Autonomous underwater vehicles (AUVs) have become the most widely used tools for undertaking complex exploration tasks in marine environments. Their synthetic ability to carry out localization autonomously and build an environmental map concurrently, in other words, simultaneous localization and mapping (SLAM), are considered to be pivotal requirements for AUVs to have truly autonomous navigation. However, the consistency problem of the SLAM system has been greatly ignored during the past decades. In this paper, a consistency constrained extended Kalman filter (EKF) SLAM algorithm, applying the idea of local consistency, is proposed and applied to the autonomous navigation of the C-Ranger AUV, which is developed as our experimental platform. The concept of local consistency (LC) is introduced after an explicit theoretical derivation of the EKF-SLAM system. Then, we present a locally consistency-constrained EKF-SLAM design, LC-EKF, in which the landmark estimates used for linearization are fixed at the beginning of each local time period, rather than evaluated at the latest landmark estimates. Finally, our proposed LC-EKF algorithm is experimentally verified, both in simulations and sea trials. The experimental results show that the LC-EKF performs well with regard to consistency, accuracy and computational efficiency.
Keywords
Introduction
Since the first relevant equation was put forward, simultaneous localization and mapping (SLAM), which is one of the key issues that need to be addressed for truly autonomous vehicles probing an unknown environment, has drawn tremendous attention in the realm of mobile robotics. Roughly speaking, SLAM can be categorized according to the means of map representation and the algorithms of its estimation technique. The well-known approaches of describing environmental maps are the feature-based method, the grid-based method, and the topological method. In addition, substantial estimation algorithms have been introduced to solve the SLAM issue, for instance, the extended Kalman filter (EKF) [1], the Extended Information Filter (EIF) [2], the unscented Kalman filter (UKF) [3], FastSLAM [4] and many other variants. However, EKF is the most common choice among the aforementioned algorithms, because it can be easily implemented, especially with lower computational complexity. Essentially speaking, EKF is a state filter or estimator. Therefore, consistency evaluation is essential for checking a filter design and evaluating its optimality.
Ever more appealing developments have been made in addressing the SLAM problem during the past decades. However, a large proportion of the attention has been devoted to handling the problems of computational complexity [5, 6], loop closing [7] and data association [8]. Another fundamental problem, of crucial importance, the consistency issue, has been greatly ignored and has only started to receive much attention, recently. The work by Julier and Uhlmann [9] pointed out for the first time that the SLAM algorithm inevitably obtains an inconsistent environment map by analysing a special case (namely, an immobile vehicle without process noise), as well as the general case of a mobile vehicle with process noise. Castellanos et al. [10] demonstrated that the EKF-SLAM state filter becomes inconsistent because of the linearization error and proposed a consistency-improved robocentric mapping approach. Bailey et al. [11] checked a large amount of inconsistent situations for EKF-SLAM and reached the conclusion that the uncertainty of the vehicle's orientation is the core reason for filter inconsistency. Later, theoretical analyses and experimental results presented by Huang and Dissanayake [12] also validated the corresponding conclusions reached by Bailey et al. and showed that the constrained Jacobians (i.e., Lemma 3.8 in reference [12]) could satisfy the prerequisite of filter consistency.
Technically speaking, the referenced works presented numerous inconsistent symptoms in EKF-SLAM, but did not reveal the deeper reasons for the filter inconsistency. Recently, the consistency problem of the EKF-SLAM was researched, based on an observability analysis, by Guoquan Huang et al. [13, 14] and a novel EKF-SLAM algorithm, based on the first estimates Jacobian (FEJ) was put forward to ameliorate the filter consistency. FEJ-EKF has been proved to have better consistency, compared with the standard EKF. However, the landmark estimates used for the linearization in FEJ-EKF are fixed after the first time within the global observation time and never updated. The weakness of FEJ-EKF is obvious: if the landmark estimates are inaccurate (this is a common situation), the resulting linearization errors will increase with them. To overcome this problem, we try to explore the consistency issue of EKF-SLAM in the local time period, delimited by the system order, rather than in the global time like the FEJ-EKF estimator. In this paper, a consistency constrained EKF-SLAM model based on the idea of local consistency is proposed and applied for the autonomous navigation of the C-Ranger AUV, which is developed as our experimental platform. The main contributions of this paper are as follows:
On the theoretical basis of local observability, we introduce the concept of local consistency, which is useful for the consistency analysis of the EKF-SLAM system in the local period;
A novel LC-EKF estimator is proposed to improve the filter consistency of the EKF-based SLAM system efficiently by applying the methodology of local consistency.
Sea trials on our own test platform, C-Ranger AUV are carried out to evaluate the performance of the LC-EKF. We also adopt the process of sensor data updating into the LC-EKF estimator for the purpose of improving performance.
The remainder of this work is structured as follows: section 2 briefly restates the basic theory of the standard EKF-SLAM. In section 3, we introduce the concept of local consistency and then propose the LC-EKF estimator to improve the filter consistency in EKF-SLAM systems. Section 4 presents the general framework of our test platform, the C-Ranger AUV, as well as the on-board sensors installed on the C-Ranger. In Section 5, a set of experimental comparisons using simulations and our own datasets are carried out, while we also discuss the corresponding experimental results. Lastly, section 6 sketches out the crucial conclusions of this work.
As a recursive solution to the SLAM problem, the EKF model estimates the system state by minimizing the mean of the square error [15]. In this section, we briefly restate the state vector, the process model and prediction stage, the measurement model and update stage of the standard EKF-SLAM algorithm.
State vector in EKF-SLAM
In stochastic mapping, we can represent the system state at time step k by an augmented vector x k including the vehicle pose vector x R k and the position vector p L k of a set of Nk landmarks in a known global reference frame and its covariance matrix P k by correlations between the vehicle and landmarks:
where the vehicle pose
The process model for the state prediction of the EKF-SLAM system is usually written as a first order non-linear formulation.
where u k is the known control input, w k ∼N(0, Qk) denotes the zero mean white Gaussian noise. The prediction formulation above Equation (3) can also be expressed by Equations 4–(6) in detail as:
where C(·) presents the rotation matrix, the displacement
Aside from the frequently used expression above, we can also express the EKF-SLAM system in its indirect form, i.e., the error-state space equation, where the state error
That is,
where the transition matrices
with
The measurement model for the on-board sensor (e.g., sonar), observing the environmental features, can be expressed by the following nonlinear function h(·):
where v k ∼N(0, Rk) is the zero mean white Gaussian noise. The general relative position measurement can be written, in detail, as:
where
That is,
where
where ∇h k is the Jacobian matrix of h(·) calculated by the landmark's local position in the vehicle's coordinate system. Then, the innovation covariance matrix and the Kaiman gain can be evaluated as:
Finally, the system state vector and its covariance matrix are updated as:
where v k presents the innovation sequence (also called the measurement residual).
Inevitably, the nonlinear functions in Equation (3) and (13) will cause errors, and the corresponding estimate results of the process and measurement model are not always accurate. In addition, the Jacobians in Equation (8), (9), (17) and (18) are evaluated using the latest estimated value of the system state vector, rather than its true value. Therefore, it is inevitable that the EKF system will confront the inconsistency problem. In this section, the consistency issue will be discussed in a local period for the classical EKF-SLAM system.
Local consistency based on observability analysis
Simply speaking, the typical EKF-SLAM system can be roughly classified into two sub-systems: the nonlinear SLAM sub-system and the linearized EKF sub-system.
Observability analysis for the nonlinear SLAM sub-system
Through the derivations of previous works [13, 14, 16], based on the important theory of observability rank condition [17], the observability matrix of the nonlinear SLAM sub-system with M k observed landmarks at time step k can be given by 1
where sϕ and cϕ are the simplified modes of
Conclusion 1: The rank of the observability matrix for the general nonlinear SLAM sub-system, with Mk observed landmarks at time step k, is 2Mk.
Since the EKF system has been proven to be unobservable [16, 19], the local rather than the global observability matrix is chosen for the observability analysis for the EKF sub-system. The local observability matrix [20, 21] over the time period [k, k + n − 1] is defined as
where n is the order of the linear time-varying (LTV) dynamical system, described by the error-state space Equations (7) and (15). According to reference [22], the system order n is defined as the number of state variables in the system, represented by state-space equations. Parameter n here is equal to the size of the state vector x
k
in Equation (1). For example, the state vector is
Suppose Mk+i landmarks are observed at time step k + i, where i = 0,1, …, n-1, then the measurement matrix can be written as
Substituting the above equation into Equation (24), the observability matrix O k L now becomes
1) Ideal EKF sub-system
The ideal EKF sub-system refers to a system where the true value of the state vector is known and thus
Then, we can obtain that
Substituting it into Equation (26), we can obtain 2
Since the landmarks are static and their true values are known, the positions of the landmarks do not change with time, that is
So Equation (31) can be simplified as
Since O2I is composed of n repetitive block rows, which can be described as:
where i = 0,1, …, n − 1, and the size of each block row Ok+i is 2Mk+i X (2Mk+i + 3). That is,
The elements of ok+1, ···, ok+n-1 can be converted to zero by the Gaussian elimination, as ok+1, ···, ok+n-1 ⊆ o k . There are 2Mk nonzero rows in ok, thus the rank of O2I is 2Mk. Therefore, we can reach the following conclusion that:
Conclusion 2: The rank of the observability matrix over the local time period [k, k + n − 1]for the ideal EKF sub-system, with Mk observed landmarks at time step k, is 2Mk, if Mk+1, ···, Mk+n-1 ≤ M k .
We can see the rank of the observability matrix for the ideal EKF sub-system is equal to the nonlinear SLAM sub-system over the local time period, namely, they have the same observability property.
2) Standard EKF sub-system
For the standard EKF sub-system, Jacobian matrices are calculated using the latest estimated state, and thus
Furthermore, we can also derive a formula analogous to Equation (30) as
Substituting it into Equation (26), we can obtain that
As the state estimates generally differ at different times, the following formulas are normally tenable:
Therefore, variables in the third column of O2S are not equal for different rows. Thus, we have to perform the column operations for the Gaussian elimination. As only the first two columns of O2S, which comprise 2Mk + 3 columns, can be eliminated, the rank of O2S is 2Mk + 1. Then we can conclude that:
Conclusion 3: The rank of the observability matrix over the local time period [k, k + n − 1] for the standard EKF sub-system, with Mk observed landmarks at time step k, is 2M k + 1, if Mk+1, ···, Mk+n-1 ≤ M k .
We can see that the standard EKF sub-system is not identical to the rank of the observability matrix of the nonlinear SLAM sub-system, in other words, the observability properties of the two sub-systems are not the same.
In the preceding section, we performed an observability analysis of the nonlinear SLAM sub-system and the linearized EKF sub-system with any number of landmarks. Specially, when the number of landmarks is just one, we can come to the same conclusions as those in work [13] and find the corresponding relationship between observability and consistency as follows:
The ideal EKF sub-system has the same observability properties as the nonlinear SLAM sub-system within the local time period [k, k + n −1], consequently, the ideal EKF-SLAM system is consistent.
The standard EKF sub-system's observability matrix has a higher rank than that of the nonlinear SLAM subsystem over the local time period [k, k + n − 1], which makes the standard EKF-SLAM system inconsistent.
The two corollaries above, as well as the three conclusions drawn in section 3.1, look similar to those presented in references [13, 14], but they are actually restricted to the local time period rather than the global one, used by Huang et al. We think our conclusions are precise, because the theoretical basis of all the derivations, namely the local observability matrix, is defined over the local time period [k, k + n − 1]. So it is necessary to introduce the concept of local consistency for the EKF-SLAM system.
Definition: The EKF-SLAM system is “locally consistent” if the linearized EKF sub-system has the same observability properties as the nonlinear SLAM sub-system over the time period [k, k + n − 1], where n is the order of the system.
The local consistency, thus defined, differs from the well-known complete consistency, for the latter, the statement in the definition must be true for all values of k. Therefore, a system can be locally consistent for certain time intervals but not completely consistent.
As the extreme limit for FEJ-EKF is the usage of initial state estimates at the global time period for computing the filter Jacobians, we try to solve this problem in the local period by modifying the algorithm as follows:
If the Jacobian matrix in the EKF prediction stage is evaluated using the predicted value
If the Jacobian matrices
Then it is easy to obtain that
So, the observability matrix is
If k+1, ···, Mk+n-1 ≤ M k , the rank of the observability matrix is 2M k . Consequently, the above-modified system, which we call local consistency (LC) EKF SLAM, is locally consistent. The main process of the LC-EKF SLAM can be outlined by the following algorithm description.
The C-Ranger vehicle was initially developed as a research platform for the testing and verification of various algorithms in underwater navigation. As detailed in our previous works [23–25], C-Ranger (Figure 1) is an open-frame-structure vehicle with the architecture of a control system, presented in Figure 2.

C-Ranger AUV

Control system of C-Ranger
The C-Ranger is 1.6m long, 1.3m wide and 1.1m high. The total weight of the C-Ranger is about 206kg when working at full load. The maximum speed of the C-Ranger is close to 3 knots (1.5 m/s). Its continuous running time can reach eight hours when the C-Ranger travels at a speed of 1 knot and is fully charged.
Numerous internal sensors, such as gyroscopes, digital compasses, pressure sensors and AHRS (Attitude and Heading Reference Systems), are installed on the C-Ranger. In addition, there are some external sensors–sonar, GPS and DVL (Doppler Velocity Log), for example.
The basic sensors installed on the C-Ranger AUV are detailed in Table 1, as well as the newly added sensors, which enable the C-Ranger to perform the visual SLAM and multi-AUV SLAM.
Sensors installed on C-Ranger AUV
In this section, the following five algorithms are compared by using a large number of Monte Carlo simulations and our own sea trial dataset:
the ideal EKF SLAM
the standard EKF SLAM
the FEJ-EKF SLAM
the OC-EKF SLAM [26]
the proposed LC-EKF SLAM
It should be noted that for the standard EKF SLAM, we relied on an existing Matlab implementation, developed by Tim Bailey, and the other three algorithms are all modified based on this. All the algorithms are executed in Matlab R2009a with 2.60GHz Pentium® Dual-Core CPU E5300 and 2GB RAM.
The first test was carried out in a simulated environment, which allows comparison between the true states and the estimates to be made, as the true locations of the vehicle and landmarks are both available. In particular, all the simulations were carried out with known data association, so as to eliminate the influence of mismatching on the estimation of performance. As shown in Figure 3, there are 34 randomly generated point features and a vehicle trajectory with loop closure in a 200mx200m environment. The simulation parameters are detailed in Table 2.

The simulation environment
Simulation parameters
To evaluate the performance of the estimators, 50 Monte Carlo tests are performed in the simulation scenario, where the vehicle fulfils five loops. The average Root Mean Square (RMS) errors of the vehicle pose are shown in Figure 4 to evaluate the accuracy of the five filters: the ideal EKF, the standard EKF, FEJ-EKF, OC-EKF and the LC-EKF. In addition, the average Consistency Index (CI) [5] of the vehicle pose presented in Figure 5 is used to evaluate the filters' consistency. It can be seen that our proposed LC-EKF algorithm performs better than the standard EKF and the FEJ-EKF, and has a performance comparable with the OC-EKF, pertaining to the accuracy and consistency.

Mean RMS errors of the vehicle pose

Mean consistency index (CI) of the vehicle pose
SLAM for C-Ranger
Consider that in our current system, the C-Ranger always remains stable in the DOFs (degrees of freedom) of roll and pitch, the state vector of the C-Ranger can be presented by:
where [xR yR zR ϕ R ]T denotes the 3-D coordinates and the heading of the C-Ranger in the global reference frame and [vx vy vz]T are the linear velocities in the vehicle reference frame.
The motion model of the C-Ranger moving at a constant velocity from time k-1 to k can be written as
with the displacements:
where the control input vector u k = [w ax ay az]T is composed of the angular velocity and the accelerations. 3 Furthermore, w k denotes the white Gaussian control noise with a zero mean and covariance matrix Qk:
For the C-Ranger, using sonar as the observing sensor, the range-bearing measurement model can be written in the form 4
where v k S denotes the white Gaussian measurement noise for sonar with zero mean and covariance matrix R k S :
As described in Section 4, the C-Ranger is also equipped with many other sensors, which can supply direct observations of components in the state vector. For the pressure sensor, the digital compass and the DVL, the measurement models are linear, and their measurement matrix and measurement noise can be given as:
Substituting Equations (54) and (55) into Equations (19)–(22), the sensor data in the state vector can be updated. This process is called sensor data updating, which can make the sensor data more accurate before they are fed into the motion model of the C-Ranger.
We carried out the sea trial at Tuandao Bay, in Qingdao, China. Figure 6 demonstrates the experimental results integrated with the environmental satellite image. The magenta points denote the point features, extracted from the sonar data, which match well with landmarks in the real world.

Results of the sea trial combined with the satellite image
A clear path comparison is presented in Figure 7, where the GPS trajectory (the cyan line) works as the ground truth for the comparison of the algorithms. It can be seen that the path deviation of our proposed LC-EKF relative to the GPS is smaller than that of the standard EKF and the FEJ-EKF. The LC-EKF's outperformance can also be confirmed by comparisons with RMS (Figure 8) and CI (Figure 9).

Path comparison

RMS errors of the vehicle pose

CI of the vehicle pose
Moreover, the computational cost is used to evaluate the performance of the estimator. The standard EKF, FEJ-EKF and LC-EKF estimators are all based on the EKF-SLAM systems, and the essential differences between them are just their usage of state estimates to compute the Jacobian matrix at different time points. Therefore, the computational costs for the standard EKF, FEJ-EKF and LC-EKF estimators are almost the same. We only need to compare the proposed LC-EKF with the OC-EKF. The total cost of the CPU time for the LC-EKF is 131.5 seconds and that for the OC-EKF is about 1108.8 seconds. The detailed CPU time required for each timestep is shown in Figure 10. As the time cost of the LC-EKF is far less than that of the OC-EKF, the LC-EKF is more appropriate for real time application.

CPU time for each timestep
In this paper a consistency constrained EKF-SLAM algorithm based on the idea of local consistency is proposed and applied for the autonomous navigation of our test platform, the C-Ranger AUV. The concept of local consistency is introduced after an explicit theoretical derivation of the EKF-SLAM system. Furthermore, we present a locally consistency-constrained EKF-SLAM design, LC-EKF, in which the landmark estimates used for linearization are fixed at the beginning of each local time period rather than evaluated at the latest landmark estimates. Finally, the experimental results of our simulation and real-world tests show that our proposed LC-EKF algorithm performs well with respect to consistency, accuracy and computational efficiency. With this improved algorithm, autonomous navigation systems can be extended to numerous engineering applications, such as autonomous underwater vehicles (AUV), unmanned land vehicles and unmanned aerospace vehicles (UAV).
Footnotes
7.
This work is partially supported by the High Technology Research and Development Program of China (Grant No. 2006AA09Z231), Natural Science Foundation of China (Grant No. 41176076, 31202036, 51075377).
1
The superscripts ‘N’ and ‘L’ in equation (23) and
stand for the nonlinear and linearized system respectively.
2
We use the superscripts, ‘I’ and ‘S’, to stand for the ideal and standard EKF sub-systems in the following derivation.
3
The accelerations can be obtained from the on-board sensor of the AHRS.
1
superscripts ‘S’, ‘P’, ‘C’, ‘D’ in Equations (52)–
denote the sonar, pressure sensor, compass and DVL, respectively.
