Next Article in Journal
Real-Time Multiobject Tracking Based on Multiway Concurrency
Next Article in Special Issue
Vision-Based Hybrid Controller to Release a 4-DOF Parallel Robot from a Type II Singularity
Previous Article in Journal
Wearable Sensing Devices: Towards the Development of a Personalized System for Construction Safety and Health Risk Mitigation
Previous Article in Special Issue
Using Accelerometer Data to Tune the Parameters of an Extended Kalman Filter for Optical Motion Capture: Preliminary Application to Gait Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Track Geometry Measuring System Based on Multibody Kinematics, Inertial Sensors and Computer Vision

1
Department of Mechanical and Manufacturing Engineering, University of Seville, Seville 41092, Spain
2
Department of Materials and Transportation Engineering, University of Seville, Seville 41092, Spain
*
Author to whom correspondence should be addressed.
Submission received: 22 December 2020 / Revised: 14 January 2021 / Accepted: 15 January 2021 / Published: 20 January 2021

Abstract

:
This paper describes the kinematics used for the calculation of track geometric irregularities of a new Track Geometry Measuring System (TGMS) to be installed in railway vehicles. The TGMS includes a computer for data acquisition and process, a set of sensors including an inertial measuring unit (IMU, 3D gyroscope and 3D accelerometer), two video cameras and an encoder. The kinematic description, that is borrowed from the multibody dynamics analysis of railway vehicles used in computer simulation codes, is used to calculate the relative motion between the vehicle and the track, and also for the computer vision system and its calibration. The multibody framework is thus used to find the formulas that are needed to calculate the track irregularities (gauge, cross-level, alignment and vertical profile) as a function of sensor data. The TGMS has been experimentally tested in a 1:10 scaled vehicle and track specifically designed for this investigation. The geometric irregularities of a 90 m-scale track have been measured with an alternative and accurate method and the results are compared with the results of the TGMS. Results show a good agreement between both methods of calculation of the geometric irregularities.

1. Introduction

Measurement of track geometry irregularities is a fundamental task in railway track maintenance with immense economic significance worldwide. Geometric irregularity is the most important track feature affecting safety and comfort of the rail transport. There are two different equipment that rail administrations and infrastructure managers use for track irregularity measurement: man-driven rail track trolleys (RTT) and track recording vehicles (TRV), also called laboratory vehicles or inspection vehicles. There are many companies that manufacture both types of equipment. The technology behind the RTT is simple and accurate. The relative irregularities, this is, gauge and cross-level are measured with a distance sensor, like an LVDT, and an inclinometer, respectively. The absolute irregularities, alignment and longitudinal profile require and absolute positioning system, like a total station or a very accurate GNSS. The technology used in TRV is more varied. Essentially, there are two technologies [1]: versine measurement systems (VMS), also called chord-based measurement systems and inertial measurement systems (IMS) or optical-inertial measurement systems. In addition to the sensors used, the main difference between these two methods is on the reference kinematics. The VMS use a physical reference, the chord, that can be a solid bar or a laser beam, while the IMS use an inertial reference frame or, in other words, the frame does not physically exist. The existence of the physical reference is an important advantage of the VMS that improves its accuracy. The main drawback of the VMS is that only irregularities with wave-lengths shorter than the length of the physical reference can be measured. A purely inertial IMS, as those based on accelerometer measurements, is based on the premise that the measuring device follows a trajectory that is parallel to one of the rails or the track centerline. This is in practice very difficult to obtain, or even impossible, if one wants to get the four irregularities with a single device. However, the most serious problem of the IMS is not that but the need to integrate the sensor signals in time to get the irregularities. The resulting accuracy depends very much on the filtering and other signal processing techniques that are needed to avoid the signal drift due to the integration.
The scientific foundation of the VMS is based on simple kinematics that only requires the measurements of distance sensors. The main challenge is to find the transfer function between the chord measurements and the vertical and lateral track irregularities [1,2]. The kinematics of the IMS is much more involved, due to the use of the inertial frame, as mentioned previously, and the use of different sensors (distance sensors, optical and inertial) requiring sensor fusion algorithms. To the authors’ best knowledge, the description of the TRV used in the early eighties in British Rail by Lewis [3] remains the most complete description of the kinematics and signal processing behind the track geometry measurement with IMS. This paper tries to fill this gap. In a paper by Escalona [4], the calculation of the track vertical geometry using inertial sensors mounted on an un-suspended bogie was fully described, including analytical relationships, transfer functions, sensor fusion algorithms and signal processing. However, the method was valid only for the vertical geometry and the results were not experimentally validated.
Despite the existence of different measuring equipment, there is a need for improvement of the technology in track geometry inspection. RRT are much cheaper than TRV (small rail administrations cannot afford TRV) but much slower also. As a result, the frequency of track geometry inspection is not as high as desired. Due to this reason, there is an increasing tendency in the railway industry and research teams to developed track geometry measuring systems (TGMS) to be installed in in-service vehicles. That way, the frequency of the inspection is increased, the vehicle response to the irregularity can be measured simultaneously, and the time-evolution of the irregularities can be followed closely. However, what the sensors can get in an in-service vehicle, in general, is not a measurement of the irregularity but an estimation. There are two approaches: purely kinematic or model-based methods. Weston et al. published a set of papers [5,6,7] showing the measurement of vertical and lateral track irregularities using accelerometers and gyroscopes mounted in the bogie frame and a very simple kinematic model of the vehicle motion. Although these papers do not show results in frequency domain, the measured irregularities could only be relatively accurate for low frequencies, because the bogie frame does not follow the high frequency irregularities. Lee et al. [8] presented a Kalman filter data fusion approach based on accelerometer signals mounted on the body frame and the axle-box. Tsai et al. [9,10] presented a fast inspection technique based on the Hilbert–Huang Transform, that is a very useful time–frequency analysis technique, applied to the signal of an accelerometer mounted on the axle-box of an in-service car. Both methods that are based on axle-box-mounted accelerometers are only valid to measure vertical track irregularities. Tsumashima et al. [11] estimated the vertical track geometry using the accelerations measured in the car-body of the Japanese Shinkansen using a Kalman filter based on a very basic car model. In a more recent work, Tsumashima [12] has develop a method to detect and isolate track faults that are later classified using machine learning techniques. Tsumashima and Hirose [13] have applied the time–frequency Hilbert–Huang Transform method to identify track faults using the measured car-body acceleration as the input.
This paper describes a TGMS based on inertial sensors and computer vision that can be installed in in-service vehicles. The 3D kinematics used for the geometry measurements considers a general track design geometry, and the assumed kinematic approximations and simplifications are fully described. As a result of the background of the authors in on the development of multibody dynamics models for railway simulations [14,15,16], the presented kinematic equations follow the multibody formalism. The kinematic equations used for the computer vision are adapted to this formalism. The sensor fusion algorithms and signal processing tools used to find the track irregularities are explained also. The presented TGMS has been built, tested and validated in an experimental scale track facility. Compared with the existing IMS methods that are implemented in the industry, the contribution of the method presented in this paper lies in the description of the methodology and the experimental validation. To the authors’ best knowledge, the algorithms used to turn the sensors data into measured irregularities have not been described in the scientific literature, or they are described using an over-simplified track geometry, for example, assuming that the track is straight. This information is not provided by the companies that work in the important business of track inspection. In addition, an experimental proof of the accuracy of the equipment used for this task in not generally provided by these companies. This paper provides a full description of the signal processing that can be used to turn the sensors data into track irregularities. As shown below, the kinematic analysis needed to this end is not straightforward. This paper also provides an experimental validation of the measured irregularities. Authors do not claim that the presented method is more accurate or more efficient than existing methods, simply because the data are not accessible to compare.
This paper is organized as follows: Section 2 describes the sensors needed and the main features of the TGMS. Section 3 explains the kinematics of the irregular track and the rail vehicles based on the multibody dynamics formalism. Section 4 applies this formalism to the kinematics of the computer vision with the pin-hole camera model. Section 5 explains the method that is used to find the relative position of the rail cross-sections with respect to the moving vehicle using the computer vision data. Section 6 shows the kinematic relationships that are used to find the four track irregularities: gauge variation, cross-level, alignment and vertical profile, as a function of the sensors data. Section 7 describes a Kalman filter that is used to calculate the TGMS relative orientation with respect to the track. Section 8 describes an odometry algorithm that is used to locate at any instant the vehicle along the track. Section 9 explains the method that is used to find the relative trajectory of the TGMS with respect to the track centerline. The content of Section 5, Section 6, Section 7, Section 8 and Section 9 includes all the calculations needed to obtain the track irregularities out of the sensors data. Finally, Section 10 shows the experimental setup that has been used to build and validate the TGMS system and Section 11 compares the measured irregularities with accurate reference values. Summary and conclusions are given in Section 12.

2. Description of the TGMS

The TGMS sketched in Figure 1 (only right-side equipment in shown here) comprises:
  • Two video cameras.
  • Two laser line-projectors.
  • An IMU.
  • A rotary encoder.
It is important that the cameras, lasers and IMU are installed in a solid that can be considered as a rigid body when moving with the vehicle. The lasers and cameras must be equipped with orientation mechanisms that can be fully locked when the TGMS is working. The laser projectors draw red lines (when using a red laser) in the rail-heads (one on the left, one on the right) that are filmed by the video cameras. The information provided by the position and orientation of the red lines in the rails, together with the acceleration and angular velocity acquired with the IMU, are used to find the track geometry irregularities.
The main features of the proposed system are:
  • It is capable to measure track alignment, vertical profile, cross-level, gauge, twist and rail-head profile using non-contact technology.
  • It can be installed in in-service vehicles. It is compact and low cost. Provided that the equipment sees the rail heads when the vehicle is moving, it can be installed in any body of the vehicle: at the wheelsets level, above primary suspension (bogie frame) or above the secondary suspension (car body).
Measuring devices must be selected taking into account the dusty environment under the train, affecting mainly the computer vision system, and the high level of accelerations that they will be subjected to. Protecting the video cameras and laser projectors may be solved, in part, locating them in a closed box with a polycarbonate window that must be cleaned frequently. Regarding the high level of accelerations, their expected value depends on the solid where the equipment is installed. The most critical body would be the axle-box (wheelset level) where the vertical accelerations can reach 100 g in high velocity trains. Reducing the possibility of damaging the measuring devices due to excessive accelerations is achieved if the equipment is installed at the car-body level.

3. Kinematics of the Irregular Track and the Railway Vehicle

This section includes the kinematic description of the rail geometry as a combination of a design geometry and the irregularities, and the kinematic description of an arbitrary body moving along the track, like the TGMS. Before presenting the kinematics, the different frames that are used and the nomenclature used to describe vectors, matrices and their components are described.

3.1. Frames of Reference

As shown in Figure 2 and Figure 3, four different frames are used in railroad kinematics:
  • The inertial and global frame (GF) < X , Y , Z > . It is a frame fixed in space.
  • The track frame (TF) < X t , Y t , Z t > . It is not a single frame but a field defined for each value of the arc-length coordinate along the track s. The position R t s and orientation matrix A t s of the TF with respect to the GF are functions of an arc-length coordinate s along the center line of the design track (without irregularities). These functions are implemented computationally in a track preprocessor.
  • The body frame (BF) < X i , Y i , Z i > of each body i. It is a frame rigidly attached to the body. In this document, the body i is the TGMS. The body frame of the TGMS is denoted as < X t g m s , Y t g m s , Z t g m s >
  • The rail profile frames. Left rail-profile frame (LRP), < X l r p , Y l r p , Z l r p > , and right-profile frame (RRP), < X r r p , Y r r p , Z r r p > . These frames are not unique frames but fields defined for each value of the arc-length coordinate along the track s. These frames are rigidly attached to the rail-heads.
The definition of the TF is such that the X t axis is tangent to the track design centerline, the Y t axis is perpendicular to X t and connects the origin O l r p of the LRP and the origin O r r p of the RRP in the design track geometry (with no track irregularities) and the Z t axis is perpendicular to both X t and Y t . Therefore, the TF is not the Frenet frame of the design track centerline. Each body i moving along the track has an associated TF at each instant of time. Its position and orientation can be obtained substituting the position of the body along the track, s i ( t ) , in the functions R t s and A t s that are explained in next section. More details about the rail kinematics and the nomenclature used in this work for vectors and rotation matrices can be found in [17].

3.2. Kinematics of the Design Track Centerline

Track geometry is the superposition of the design geometry and the irregularities. The components of the absolute position vector of an arbitrary point on the design track centerline with respect to an inertial and global frame is a function of the arc-length s, as follows:
R t s = R x t s R y t s R z t s
where R t contains the components of vector R t shown in Figure 2. The geometry of the track centerline 3D-curve is defined by the horizontal profile and the vertical profile. Both profiles are defined in the rail industry using sections of variable length. Points between two sections are called vertices. Horizontal profile vertices do not necessary coincide with vertical profile vertices. Horizontal profile includes three types of sections: tangent (straight), curve (circular) and transitions (clothoid). Vertical profile includes two types of sections: constant-slope (straight) and transitions (cubic).
At each track section, the track centerline geometry is characterized by the following geometric values:
  • Horizontal curvature: ρ h .
  • Vertical curvature: ρ v .
  • Twist curvature: ρ t w .
  • Spatial-derivative of horizontal curvature: ρ h .
  • Vertical slope: α v .
Figure 2 shows the TF < X t , Y t , Z t > associated with the track centerline at each value of s. The orientation of the TF with respect to a GF can be measured with the Euler angles ψ t ( a z i m u t h or h e a d i n g angle), θ t (vertical slope, positive when downwards in the forward direction) and φ t ( c a n t or s u p e r e l e v a t i o n a n g l e ). The rotation matrix from the TF to the GF is given by:
A t s = c θ t c ψ t s φ t s θ t c ψ t c φ t s ψ t s φ t s ψ t + c φ t s θ t c ψ t c θ t s ψ t c φ t c ψ t + s φ t s θ t s ψ t c φ t s θ t s ψ t s φ t c ψ t s θ t s φ t c θ t c φ t c θ t
The azimuth ψ t can have an arbitrary value, however, the slope θ t and cant φ t angles can be considered as small angles, such that the rotation matrix from the TF to the GF can be approximated to:
A t s c ψ t s ψ t φ t s ψ t + θ t c ψ t s ψ t c ψ t θ t s ψ t φ t c ψ t θ t φ t 1
An ideal body that moves along the track, taking the same orientation as the track frame with a forward velocity V and a forward acceleration V ˙ , has the following absolute velocity and acceleration:
R ˙ ¯ t = V 0 0 , R ¨ ¯ t = V ˙ ρ h V 2 ρ v V 2
Similarly, the absolute angular velocity and the absolute angular acceleration of that body are given by:
ω ¯ t = ρ t w V ρ v V ρ h V , α ¯ t = ρ t w V ˙ ρ v V ˙ ρ h V ˙ + ρ h V 2

3.3. Kinematics of the Irregular Track

Figure 3 shows the displacement of the rail heads due to irregularity in a cross-section of the track ( Y t Z t plane). The irregularity vectors r l i r ( l i r , left rail i r regularity) and r r i r ( r i r , right rail i r regularity) describe the displacement of the rail centerlines with respect to their design positions. The components of these vectors in the TF are functions of s, given by:
r ¯ l i r = 0 y l i r z l i r , r ¯ r i r = 0 y r i r z r i r
In the railway industry, the following four combinations of the rail head centerlines irregularities are measured:
  • Alignment:     ξ a l = ( y l i r + y r i r ) / 2
  • Vertical profile: ξ v p = ( z l i r + z r i r ) / 2
  • Gauge variation:       ξ g v = y l i r y r i r
  • Cross level:   ξ c l = z l i r z r i r
The orientation of the rail head frames with respect to the TF is given by the following rotation matrices:
A t , l r p = 1 0 0 0 cos β + δ sin β + δ 0 sin β + δ cos β + δ , A t , r r p = 1 0 0 0 cos β + δ sin β + δ 0 sin β + δ cos β + δ ,
where β is the orientation angle of the rail profiles, δ = z l i r z r i r z l i r z r i r 2 L r 2 L r is the linearized rotation angle due to the irregularity, and L r is the distance from the track centerline to the rail profile frames. These angles and distance can be observed in Figure 3.
The absolute position vectors of two points, P and Q, defined in the right and left rail heads, respectively, are given by:
R P r r p = R t + A t r ¯ r r p + r ¯ r i r + A t , r r p u ^ P r r p R Q l r p = R t + A t r ¯ l r p + r ¯ l i r + A t , l r p u ^ Q l r p
where u ^ P r r p and u ^ Q l r p contain the components of the position vector of points P and Q in the rail head profiles as shown in Figure 3. These vectors are parameterized following the rail head profile geometry:
u ^ P r r p = 0 s 2 r r h r s 2 r r , u ^ Q l r p = 0 s 2 l r h r s 2 l r
where l r and r r stand for “left rail” and “right rail”, and h r is the function that defines the rail head profile.

3.4. Kinematics of a Body Moving along the Track

The coordinates used to describe the position and orientation of an arbitrary body i, as shown in Figure 2, or the TGMS shown in Figure 1, moving along the track are:
q i = s i r y i r z i φ i θ i ψ i T
where s i is the arc-length along the track of the position of the body, r y i and r z i are the non-zero components of the position vector r i of the BF with respect to the TF, this is r ¯ i = 0 r y i r z i T , and φ i , θ i and ψ i are three Euler angles (roll, pitch and yaw, respectively) that define the orientation of the BF with respect to the TF. Note that, out of the six coordinates used for the kinematic description of a body, only the arc-length coordinate s i is an absolute coordinate, being the other 5 track-relative coordinates.
The three Euler angles are assumed to be small, such that the following kinematic linearization is used:
A t , i 1 ψ i θ i ψ i 1 φ i θ i φ i 1
The absolute position vector of point P that belongs to body i, as shown in Figure 2, is given by:
R P i = R t + A t r ¯ i + A t , i u ^ P i
Using basic rigid body kinematics (see details in [17]), the absolute velocity and acceleration of point P are given by:
R ˙ ¯ P i = R ˙ ¯ t + r ¯ ˙ i + ω ¯ ˜ t r ¯ i + A t , i ω ^ ˜ i u ^ P i
R ¨ ¯ P i = R ¨ ¯ t + r ¯ ¨ i + α ¯ ˜ t + ω ¯ ˜ t ω ¯ ˜ t r ¯ i + 2 ω ¯ ˜ t r ¯ ˙ i + A t , i α ^ ˜ i + ω ^ ˜ i ω ^ ˜ i u ^ P i ,
where these vectors are projected to the track frame. In order to compute Equations (13) and (14), the orientation matrices, angular velocities and angular accelerations of the different frames need to be computed as a function of the generalized coordinates and velocities. The angular velocity ω ¯ t and acceleration α ¯ t vectors of the TF are given in Equation (5). The absolute angular velocity of body i is obtained as:
ω ^ i = ω ^ t + ω ^ t , i = A t , i T ω ¯ t + ω ^ t , i
The relative angular velocity of body i with respect to the TF, under the small-angles assumption, is given by:
ω ^ t , i = φ ˙ i θ ˙ i ψ ˙ i , ω ¯ t , i = A t , i ω ^ t , i = 1 ψ i θ i ψ i 1 φ i θ i φ i 1 φ ˙ i θ ˙ i ψ ˙ i
The absolute angular acceleration of body i, α ^ t is simply calculated as the time-derivative of Equation (15).

4. Kinematics of the Computer Vision

Using the pin-hole model of the camera, Figure 4 shows the relation between the position vector n P i m of an arbitrary point P in the camera frame < X c a m , Y c a m , Z c a m > (in our problem it can be left cam l c a m or right cam r c a m ) and the position vector of the recorded point P’ in the image plane < X i m , Y i m > .
Figure 5 shows the location of the camera in the TGMS and the relation between the position vector v P c a m of the arbitrary point P in the camera frame and its position vector u P t g m s in the TGMS frame.
The components of vectors n P i m and u P t g m s are related through the equation [18,19]:
c n P i m 1 = M i n t M e x t u ^ P t g m s 1
where c is an unknown s c a l e f a c t o r . The matrix product on the right-hand side of this equation is called projection matrix P = M i n t M e x t . The column matrix n P i m is 2 × 1 (image is planar), and its components are given in pixel units (dimensionless) while the column matrix u ^ P t g m s is 3 × 1 , and its components are given in meters. Due to these dimensions, the projection matrix P is 3 × 4 . Matrix M i n t is 3 × 3 and it is called matrix of intrinsic parameters of the camera, and matrix M e x t is 3 × 4 , it is called matrix of extrinsic parameters of the camera, and it is given by:
M e x t = A t g m s , c a m T A t g m s , c a m T u ^ c a m t g m s
Matrices of intrinsic and extrinsic parameters can be experimentally obtained, for example, using the Zhang calibration method [18]. In this investigation, the calibration method is based on Zhang method but adapted to the application at hand. This method is fully detailed in [19].
Just using the 3 scalar equations in Equation (17), the position vector u ^ P t g m s of the point P cannot be obtained using the values of n P i m because there are 4 unknowns (three components of u ^ P t g m s and the scale factor c). One exception occurs when the point P moves on a surface whose equation is known in the TGMS frame. This is the case at hand if P belongs to the plane highlighted by the laser projector. In this case, the following system of equations can be solved to find u ^ P t g m s :
c n P i m 1 = M i n t M e x t u ^ P t g m s 1 A l a s u P t g m s x + B l a s u P t g m s y + C l a s u P t g m s z + D l a s = 0
where A l a s , B l a s , C l a s and D l a s are the constants that define the laser plane (left laser, l l a s , or right laser, r l a s , in our case), and u P t g m s k k = x , y , z means the component k of the vector u P t g m s in the TGMS frame. The constants that define the laser planes have to be experimentally obtained in the TGMS computer vision-calibration process [19]. Equation (19) is a system of 4 algebraic equations with 4 unknowns that can be used to find vector components u ^ P t g m s using as input data the vector components n P i m and the parameters of the cameras and the lasers.

5. Detecting the Rail Cross-Section from a Camera Frame

As a result of the solution of Equation (19) for all highlighted pixels in the image frames, a cloud of points P i in the right rail and a cloud of points Q i in the left rail, with position vectors u ^ P t g m s and u ^ Q t g m s , respectively, that belong to the rails cross-sections can be identified. In fact, the points do not really belong to cross-sections, just to sections, because the laser planes are not necessarily perpendicular to the rails center line. However, because the relative angles of the TGMS with respect to the TF are very small, the irregularities are also small, and the lasers are set to project the light plane at right angles with respect to the rails, it will be assumed in this paper that the highlighted sections are actually cross-sections.
Figure 6a shows a sketch of the cloud of points and, in dashed line, the theoretical rail-head profile. The theoretical rail-head profiles, when they are new, not worn, have a known geometry that is made of circular and straight segments. An example is the UIC 54 E1 rail-head profile shown in Figure 6b. Detecting the rail cross-section from a camera frame can be solved with the well-developed computer vision algorithms of feature detection or feature tracking [20]. However, in this investigation, because the feature to be detected can be represented analytically, an optimization approach has been developed. The optimization problem consists of finding the position u ^ O r p t g m s and angle φ t g m s , r p of the rail profile that better fits the cloud of points. This will be the assumed position and orientation of the rail head profile ( l r p or r r p ) in the TGMS frame when the vehicle is moving. The objective function to minimize is the sum of the squares of the distance of the points in the cloud to the theoretical profile curve shown in Figure 6b.

6. Equations for Geometry Measurement

The equations that can be used to measure the track irregularities are easily deduced with the help of Figure 7. In this figure, vectors u ^ O l r p t g m s and u ^ O r r p t g m s are output data of the computer vision algorithm explained in previous section. The following equalities can be easily identified with the help of the figure:
r t g m s + u O l r p t g m s = r l r p + r l i r r t g m s + u O r r p t g m s = r r r p + r r i r
Subtracting these vector equations, one gets:
u O l r p t g m s u O r r p t g m s = r l r p + r l i r r r r p + r r i r
In this equation, the position vector r t g m s of the TGMS does not appear. This vector equation can be projected in the TF, as follows:
A t , t g m s u ^ O l r p t g m s u ^ O r r p t g m s = r ¯ l r p r ¯ r r p + r ¯ l i r r ¯ r i r
Using again the small-angles assumption, the Y , Z components of this equation are given by:
1 φ t g m s φ t g m s 1 u ^ O l r p t g m s y u ^ O r r p t g m s y u ^ O l r p t g m s z u ^ O r r p t g m s z = 2 L r 0 + r y l i r r y r i r r z l i r r z r i r
where L r is half the distance between the rail-head profiles without irregularities. In this equation, the result r ¯ l r p r ¯ r r p = 2 L r 0 T has been used. According to the definition given in Section 3.3, the components of the last column matrix of Equation (23) are the gauge variation ( g v ) and the cross-level ( c l ). Therefore, rearranging Equation (23) yields:
ξ g v = u ^ O l r p t g m s y u ^ O r r p t g m s y φ t g m s u ^ O l r p t g m s z u ^ O r r p t g m s z 2 L r ξ c l = φ t g m s u ^ O l r p t g m s y u ^ O r r p t g m s y + u ^ O l r p t g m s z u ^ O r r p t g m s z
Adding the vector equations Equation (20), one gets:
2 r t g m s + u Q t g m s + u P t g m s = r l i r + r r i r
where the fact that r l r p + r r r p = 0 has been used. Using again the small-angles assumption, the Y , Z components of this equation are given by:
2 r y t g m s r z t g m s + 1 φ t g m s φ t g m s 1 u ^ O l r p t g m s y + u ^ O r r p t g m s y u ^ O l r p t g m s z + u ^ O r r p t g m s z = r y l i r + r y r i r r z l i r + r z r i r
According to the definition given in Section 3.3, the components of the last column matrix of Equation (26) are twice the alignment irregularity ( ξ a l ) and twice the vertical profile ( ξ v p ). Therefore, rearranging Equation (26) yields:
ξ a l = 1 2 u ^ O l r p t g m s y + u ^ O r r p t g m s y φ t g m s 2 u ^ O l r p t g m s z + u ^ O r r p t g m s z + r y t g m s ξ v p = φ t g m s 2 u ^ O l r p t g m s y + u ^ O r r p t g m s y + 1 2 u ^ O l r p t g m s z + u ^ O r r p t g m s z + r z t g m s
Therefore, Equations (24) and (27) can be used to find all track irregularities. The following conclusions are highlighted:
(1)
The calculation of the relative track irregularities ( ξ g v and ξ c l ), as shown in Equation (24), needs as an input the output of the computer vision u ^ O l r p t g m s and u ^ O r r p t g m s and the roll angle of the TGMS with respect to the track φ t g m s .
(2)
The calculation of the absolute track irregularities ( ξ a l and ξ v p ), as shown in Equation (27), needs, in addition, the relative trajectory r ¯ t g m s of the TGMS with respect to the TF.
The next section is devoted to the calculation of the TGMS to TF relative orientation, that includes the calculation of φ t g m s . Section 9 is devoted to the calculation of the relative trajectory r ¯ t g m s of the TGMS with respect to the TF.

7. Measurement of TGMS to TF Relative Orientation

The calculation of the relative rotation of the TGMS with respect to the TF requires the calculation of the absolute orientation of the TGMS and the absolute orientation of the TF. As given in Equations (2) and (3), finding the orientation of the TF just requires the instantaneous value of the arc-length s, because the track design geometry is known. The value of s has to be known accurately. The odometry algorithm explained in the next section has been developed to this end.
The calculation of the absolute orientation of the TGMS is obtained with the IMU sensor. Most IMU sensors come with their own internal algorithm to calculate the orientation angles or quaternions. However, these algorithms are not accurate in the application at hand. They are based on the sensor fusion of the data of the gyroscope, the accelerometer and the magnetometer, as follows:
  • The gyroscope provides three signals that are proportional to the components of the angular velocity vector in the sensor frame (the sensor frame is assumed to be parallel to the TGMS frame), as follows:
    ω i m u = ω ^ a b s t g m s
    These components are non-linearly related to the coordinates that define the TGMS orientation and their time-derivatives, as shown later.
  • The accelerometer signals are proportional to the components of the absolute acceleration in the local frame plus the absolute gravity vector field, as follows:
    a i m u = R ¨ ^ t g m s + A t g m s T 0 0 g T
    This is the absolute acceleration in the sensor frame, plus the gravitational constant g, that is assumed to act in the absolute Z direction.
  • The magnetometer signals are proportional to the components of the Earth’s magnetic field in the local frame. This information can be used to find the direction of the Earth’s magnetic north.
In the algorithm developed in this investigation to find the TGMS absolute orientation, the magnetometer’s signals are not used. This is mainly because out of the three Euler angles needed to define the orientation, the yaw angle lacks interest in our application. It is mainly the yaw angle which can be identified with the help of the magnetometer.
Following an Euler’s angle sequence yaw-pitch-roll, as done with the TF to get the rotation matrix given in Equation (2), the absolute angular velocity of the TGMS that appear in Equation (28) can be obtained as follows:
ω ^ a b s t g m s = sin θ a b s t g m s cos θ a b s t g m s sin φ a b s t g m s cos θ a b s t g m s cos φ a b s t g m s ψ ˙ a b s t g m s + 0 cos φ a b s t g m s sin φ a b s t g m s θ ˙ a b s t g m s + 1 0 0 φ ˙ a b s t g m s = = 1 0 sin θ a b s t g m s 0 cos φ a b s t g m s cos θ a b s t g m s sin φ a b s t g m s 0 sin φ a b s t g m s cos θ a b s t g m s cos φ a b s t g m s φ ˙ a b s t g m s θ ˙ a b s t g m s ψ ˙ a b s t g m s = G ^ t g m s Φ ˙ a b s t g m s ,
where Φ a b s t g m s = [ φ a b s t g m s θ a b s t g m s ψ a b s t g m s ] T is the set of absolute angles (with respect to the global frame) of the TGMS. This expression is non-linear in terms of the TGMS absolute angles, but linear in term of their time-derivative. This equation can be inverted to isolate the time-derivatives of the angles, as follows:
φ ˙ θ ˙ ψ ˙ = G ^ 1 ω ^ = 1 sin φ sin θ cos θ cos φ sin θ cos θ 0 cos φ sin φ 0 sin φ cos θ cos φ cos θ ω ^ x ω ^ y ω ^ z
where, as done in the rest of this section, the superscript t g m s and subscript a b s have been eliminated in the symbols for simplicity. Using again the small-angles assumption of the roll and pitch angles, the following linearized formulas result:
φ ˙ = ω ^ x + sin φ sin θ cos θ ω ^ y + cos φ sin θ cos θ ω ^ z ω ^ x + θ ω ^ z θ ˙ = cos φ ω ^ y sin φ ω ^ z ω ^ y φ ω ^ z ψ ˙ = sin φ cos θ ω ^ y + cos φ cos θ ω ^ z φ ω ^ y + ω ^ z
For the accelerometer signals, Equation (29) can be linearized as follows:
a i m u R ¨ ^ tgms + g θ φ 1
where:
R ¨ ^ tgms = A t , tgms T R ¨ ¯ tgms , A t , tgms 1 ψ t g m s θ t g m s ψ t g m s 1 φ t g m s θ t g m s φ t g m s 1
Again, because of the small-angles assumption and for the sake of simplicity, the following approximation is used:
R ¨ ^ tgms R ¨ ¯ tgms
Using the result of Equation (14), the absolute acceleration of the TGMS is given by:
R ¨ ¯ tgms = R ¨ ¯ t + r ¯ ¨ tgms + α ¯ ˜ t + ω ¯ ˜ t ω ¯ ˜ t r ¯ tgms + 2 ω ¯ ˜ t r ¯ ˙ tgms
In this equation, the last three terms on the right-hand side are unknown. These are the TGMS to TF relative acceleration, the tangential and centripetal relative accelerations and the Coriolis acceleration, respectively. In order to calculate these terms, the value of the relative position vector r ¯ tgms , velocity r ¯ ˙ tgms and acceleration r ¯ ¨ tgms of the TGMS with respect to the TF are needed. As it can be observed in Figure 8, the trajectory followed by the TGMS when the vehicle is moving is a 3D curve that slightly differs with respect to the track centerline. In fact, the difference between these 3D curves is needed to measure the absolute track irregularities. However, in order to find the TGMS to TF relative orientation, it is going to be assumed that the acceleration equals the one of a particle moving along the track centerline, this is:
R ¨ ¯ tgms R ¨ ¯ t = V ˙ ρ h V 2 ρ v V 2
Therefore, the influence of the last three terms in Equation (36) has been neglected.
The sequence of approximations that has been assumed to calculate the acceleration of the TGMS may look rough for some readers. However, it has to be taken into account that in most algorithms used to find orientation from IMU’s signals [21,22] the true acceleration measured by the sensor is neglected in comparison with the gravity term in Equation (33). In the application at hand, this approximation is not accurate and the “compensation” introduced with Equation (36) is much better than nothing.
Finally, the following measurement equation is used to account for the accelerometer signals:
a c o r r i m u = a f i l t i m u V ˙ ρ h V 2 ρ v V 2 g θ φ 1
where a c o r r i m u is the “corrected” accelerometer signal and a f i l t i m u is the low-pass filtered acceleration signal. The reason for low-pass filtering the acceleration signals is that the effect of the TGMS to TF relative accelerations that have been neglected in Equation (36) contribute to relatively high-frequencies to the signals. This way their contribution is, in part, filtered out of the signals.
Using the two first gyroscope equations given in Equation (30) and the last two accelerometer equations given in Equation (38), the following linear dynamic system can be formulated in state-space form:
x ˙ = φ ˙ θ ˙ = 0 ω ^ z ω ^ z 0 φ θ + ω ^ x ω ^ y = Fx + u z = a c o r r i m u x a c o r r i m u y = 0 g g 0 φ θ = Hx
where the state vector x = φ θ T just includes the roll and pitch angles, the state transition matrix F is not constant but depends on the measured vertical angular velocity, the measurement matrix H is constant, the measurement vector z includes the x and y measured-corrected accelerations and the input vector u includes the x and y measured angular velocities. The linear system shown in (39) is a very simple set of equations that can be used with a standard Kalman filter algorithm to find the TGMS to TF relative angles φ and θ .

8. Odometry Algorithm

The odometry algorithm presented here can be used when the TGMS has no access to the data of a precise odometer of the vehicle and/or a GNSS cannot be used, for example, as it happens in underground trains. Underground trains use to be metropolitan. Being metropolitan, there used to be many narrow curved sections. Curved sections facilitate the method presented next.
As shown in Figure 9, the design geometry of a railway track (horizontal profile, as explained in Section 3.2) is a succession of segments of three types: straight (s in the figure) with zero curvature, circular (c in the figure) with constant curvature and transitions (t in the figure) with linearly varying curvature. The curvature function can be decomposed into a set of zero segments (straight segments) plus a set of curvature functions that have trapezoidal shape (normal curve) or double-trapezoidal shape (S-curve). The location of the curvature functions (start and end points) is exactly identified along the track using the design geometry provided by the track preprocessor.
The curvature of the track can be experimentally approximated in the TGMS with the installed sensors. The curvature of the trajectory followed by the TGMS can be obtained as:
ρ h exp ω ^ z t g m s V
Of course, this approximate measure is a noisy version of the track horizontal curvature. However, experimental measures show that the overall shape of the curvature functions can be clearly obtained with this approximation.
The concept of the odometry algorithm is to monitor the experimental curvature during the ride of the train using Equation (40) and to store the data together with the approximate coordinate s a p p t g m s obtained with the help of the installed encoder and the assumption of rolling-without-slipping of the wheel. The plot of the experimental curvature looks like the plot at the top of Figure 10. Using the track preprocessor, the design value of the curvature of the track ρ h d e s i g n in the area where the train is located, may look like the lower plot in Figure 10. As shown in the figure, this information can be used to correct the value of s a p p t g m s at points 1, 2, 3 and 4 located at the entry or exit of the curves. Measures of s a p p t g m s between these corrected points are also corrected using a linear mapping, as shown in Figure 11. Where, black arrows mean odometry corrections due to the algorithm output. Coloured arrows mean odometry correction using linear interpolation of the algorithm output. Different colours are just used to distinguish the curvature function sections
The problem is how to detect the entry and exit of the curves using the functions ρ h exp s a p p t g m s and ρ h d e s i g n s t g m s . In fact, it is the exit of the curves that is detected first. Once the TGMS leaves a curve, the shape of the curvature function that the TGMS has ahead is known. Therefore, when the measured curvature ρ h exp s a p p t g m s “looks similar” to the expected curvature function ρ h d e s i g n s t g m s , the exit of the curve has been reached. This similarity is computed by calculating at each instant the squared-error of the experimentally measured curvature and the expected curvature function, as follows:
e 2 s = s ¯ = s Δ s s ¯ = s ρ h exp s ¯ ρ h d e s i g n s ¯ s + s e x i t 2 d s ¯
where e 2 s is the squared error (s substitute s a p p t g m s for simplicity in the formula), Δ s is the length of the expected curvature function and s e x i t is the location of the exit of the curve in the design geometry. For a better accuracy, the value of the squared error is normalized for each curvature function using the following factor:
I 2 = s ¯ = 0 s ¯ = Δ s ρ h d e s i g n s ¯ 2 d s ¯
The normalization factors, that are different for each curvature function, are of course computed in a preprocesing stage. The normalized squared-error is given by:
n e 2 s = e 2 s I 2
Thanks to the normalization, the value of n e 2 varies between approximately 1, in straight track sections, and 0 when there is a perfect matching between ρ h exp s a p p t g m s and ρ h d e s i g n s t g m s . A typical plot of the function is observed in Figure 12. This function used to be smooth, such that detecting the local minimum that indicates the detection of the exit of the curve is a very easy task. Once the exit of the curve is detected, the expected curvature function is substituted by the next curve ahead along the track. It can be shown that this method can be run in real-time. The main computational cost is the one associated with the calculation of the integral given in Equation (41).

9. Measurement of TGMS to TF Relative Motion

The final and most difficult step needed to find the absolute irregularities of the track using Equation (27) is to obtain the relative trajectory r ¯ t g m s of the TGMS with respect to the TF shown in Figure 8. Equation (36) can be treated as a second order differential equation in terms of r ¯ t g m s . This equation has the following scalar components:
R ¨ ¯ t g m s = V ˙ ρ h V 2 ρ v V 2 + 0 r ¨ y t g m s r ¨ z t g m s + r y t g m s V ˙ ρ h + V 2 ρ h ρ t w ρ v + r z t g m s V 2 ρ t w ρ h + V ˙ ρ v r y t g m s V 2 ρ t w 2 + ρ h 2 r z t g m s V 2 ρ v ρ h + V ˙ ρ t w r y t g m s V 2 ρ v ρ h + V ˙ ρ t w r z t g m s V 2 ρ t w 2 + ρ v 2 + + 2 V r ˙ z t g m s ρ v V r ˙ y t g m s ρ h V r ˙ z t g m s ρ t w V r ˙ y t g m s ρ t w
Alternatively, the absolute acceleration of the TGMS can be obtained using the measurement of the accelerometer given in Equation (29). If the vectors in Equation (29) are projected to the TF, it yields:
R ¨ ¯ t g m s = A t , t g m s a i m u A t T 0 0 g T = a x i m u a y i m u ψ t g m s + a z i m u θ t g m s a y i m u + a x i m u ψ t g m s a z i m u φ t g m s a z i m u a x i m u θ t g m s + a y i m u φ t g m s + g θ t g φ t g
where the small-angles assumption has been used again. The left-hand sides of Equations (44) and (45) represent the same physical magnitudes, therefore, the right hand sides of these equations can be equated. Using just the second and third components of the right hand sides and rearranging yields:
r ¨ y t g m s r ¨ z t g m s + 0 2 V ρ t w 2 V ρ t w 0 r ˙ y t g m s r ˙ z t g m s + V 2 ρ t w 2 + ρ h 2 V 2 ρ v ρ h V ˙ ρ t w V 2 ρ v ρ h + V ˙ ρ t w V 2 ρ t w 2 + ρ v 2 r y t g m s r z t g m s = a y i m u + a x i m u ψ t g m s a z i m u φ t g m s g φ t ρ h V 2 a z i m u a x i m u θ t g m s + a y i m u φ t g m s g + ρ v V 2
This is a 2 n d order linear system of ordinary differential equations (ODE) with time-variant coefficients (linear time-varying system, LTV). This ODE has to be integrated forward in time to find the TGMS to TF relative trajectory ( r y t g m s t and r z t g m s t ). The inputs of these equations are all calculated or measured so far. These inputs are:
  • The accelerometer data a imu .
  • The instantaneous forward velocity V and acceleration V ˙ of the vehicle. This is obtained from the encoder data.
  • The position s t g m s of the TGMS along the track. This is the output of the odometry algorithm explained in previous section. The position s t g m s is used as an entry to the track preprocessor to get the track design cant angle φ t and the curvatures ρ t w , ρ v and ρ t w .
  • The relative orientation of the TGMS with respect to the TF that is calculated in Section 7.
In the case of a tangent (straight) track, where all track curvatures are zero, Equation (46) reduces to:
r ¨ y t g m s r ¨ z t g m s = a y i m u + a x i m u ψ t g m s a z i m u φ t g m s a z i m u a x i m u θ t g m s + a y i m u φ t g m s g
Numerical integration of Equation (46) can be used to find the TGMS to TF relative motion. However, a close look to Equation (46) shows that these differential equations are equivalent to the equations of motion of a linear 2-degrees of freedom system with negative-definite stiffness and damping matrices. It is a highly unstable system. Therefore, serious problems of drift of the resulting displacements are expected. As a result that the track irregularity is a relatively-high frequency component of the track geometry (being the design geometry the low-frequency component), the drift of the solution can be solved using several methods, like these two:
  • Using a digital signal processing approach for the integration that combines double-integration and high-pass filtering of the signal [3].
  • Using a Kalman filter approach that adds to the system dynamic equations, Equation (46), a set of measurements. These measurements are virtual sensors that in practice always provide a zero value of the TGMS to TF relative motion. The assumed covariance of these measurements is the expected covariance of the track irregularities. This method has been successfully applied in [23] to eliminate the drift in the results while keeping a good accuracy.
The second method is used in this investigation to get the results presented in Section 11.

10. Experimental Setup

A scale track has been built at the rooftop of the School of Engineering at the University of Seville. Figure 13 on the left shows an aerial view of the 90 m-track. The scale is approximately 1:10 (5-inch gauge). The track includes a tangent section (next to end A), a 26 m-curved section and a 12 m-curved section, among other features. The track is supported on a set of mechanisms that can be observed on the right of the figure that are separated 10 cm. These mechanisms can be used to create any irregularity profile. Details of the track design can be found in [24].
Figure 14 shows the scale vehicle that has been used to install the TGMS. The vehicle has a classical architecture of 4 wheelsets, 2 bogies and 1 car-body. The TGMS is attached to the car-body. The right picture shows a detail of the vehicle where the video cameras and the laser beam can be observed. The vehicle drive is an electric motor with a chain transmission. Details of the vehicle design can be found in [24]. The TGMS is equipped with two video cameras Ximea MQ003CG-CM. The VGA cameras have a resolution of 648 × 488 pixels. They include a CMOS RGB bayer matrix sensor. Their maximum frame acquisition rate reaches 500 fps. The camera has a C-mount lens FUJINN 2/3” 12.5 F1.2–F1.6 MI E1.5MP MV that allows the adjustment of focus and exposure. The projection lasers have a power of 10 mW and they illuminate in red. The IMU is a LORD Microstrain 3DM-GX5-25 AHRS, an triaxial accelerometer, gyroscope and magnetometer industrial sensor fully calibrated and temperature compensate. It has a maximum sampling rate of 1 kH. The accelerometer has two different measuring ranges ±8 g (25 g/ Hz ) or ±20 g (80 g/ Hz ). The gyroscope has an angle random walk of 0.3 / h . The traveled distance by the vehicle along the track is obtained using a precision digital encoder Kubler 2400 series. It is a two channel encoder with up to 1440 pulses per revolution.
In order to have a reference value of the track irregularities, an accurate track geometry measurement has been performed. The relative irregularities have been measured with the instrument that can be observed in the right of Figure 15. This instrument slides along the track. It includes a LVDT to measure the gauge variation and an inclinometer to measure the cross-level. In order to measure the absolute irregularities, alignment and longitudinal profile, the total station shown in the left hand side of the figure has been used. Details of the track geometry measurement can be found in [24].

11. Computer Implementation and Comparison of TGMS Measurement with Reference Irregularity

The methods and algorithms described in this paper have been implemented in Matlab environment. However, only built in functions of the basic package have been used, avoiding the use of functions, for example, of the computer vision toolbox. The program that produces the track irregularity out of the sensor data includes the following modules:
  • Pre-process: Camera calibration module. It finds the cameras’ intrinsic and extrinsic parameters using pictures of a checkerboard pattern [19].
  • Pre-process: Track pre-processor module. It is set to provide the design geometry of the track.
  • Process: Computer vision module. It finds the position and orientation of the rail cross-sections using the recorded frames and the method described in Section 5.
  • Process: Odometry module. As described in Section 8, it finds the position, velocity and acceleration of the TGMS every time instant.
  • Process: TGMS orientation module. It finds the orientation of the TGMS using the method described in Section 7.
  • Process: TGMS trajectory module. It finds the relative trajectory of the TGMS with respect to the TF using the method described in Section 9.
  • Process: Irregularity module. It calculates the track irregularities with the method of Section 6.
The results of this program are now compared with the reference value of the irregularities that were obtained with the method described in the previous section. Figure 16, Figure 17, Figure 18 and Figure 19 show the comparison between the reference geometry measurement explained in the previous section and the measurement of the TGMS developed in this investigation. The experiment was done with the vehicle shown in Figure 14 at a forward velocity of 2.5 m/s, that, considering the scale, it is equivalent to 25 m/s = 90 km/h of a real train. This is approximately the maximum forward velocity of metropolitan trains. The figures show the irregularities in the first 56 m of the track. The complete length of the scale track could not be measured because the vehicle had difficulties to negotiate the 12 m-radius curve at that forward velocity. The irregularities shown in the figures are high-pass filtered with a cut-off wave length of 3 m (wavelengths above 3 m are filtered out). It is a common practice in the geometry measurement of metropolitan trains to measure just wave lengths below 30 m, what is equivalent to 3 m in our scaled track.
The cross-level shown in Figure 16 shows a good agreement between the reference geometry and the measure of the TGMS. The agreement in gauge variation shown in Figure 17 is even better. Both curves are almost identical. However, in both figures, some edge effect is observed at the beginning of the measurement.
The absolute irregularities are compared in Figure 18 and Figure 19. As it can be observed, the agreement is fine, but not as good as the agreement of the relative track irregularities. The reason is clearly the influence in the results of the approximations and noise associated with the calculation of the TGMS to TF relative trajectory explained in Section 9. Recall that this relative trajectory is not needed for the calculation of the relative irregularities. It can also be observed that the measurements of the designed TGMS shows higher spatial-frequencies than the measurement with the total station. However, these higher frequencies must not be considered as noise, because the measuring method used with the total station can not detect high-frequency (short wavelength) irregularities.

12. Summary and Conclusions

This paper explains the numeric algorithms used to calculate track geometry irregularities with a new TGMS. These algorithms are basically kinematic relationships that describe the motion of a body moving along a track. After the description of the system and the sensors needed, the multibody-based kinematics is described in detail as well as the approximations used due to the small angles assumption. In this kinematic description, the track geometry (design geometry plus irregularities) is assumed totally arbitrary. As a result that the TGMS uses a computer vision system, the kinematic equations needed to locate the recorded rail cross-sections in the TGMS frame have been deduced, as well as a method to find the relative coordinates of the rail cross-sections with respect to the TGMS frame.
Section 6 shows the equations that can be used to find the value of the four independent track irregularities: gauge and cross-level in Equation (24), and alignment and vertical profile in Equation (27), as a function of the output of the computer vision system (explained in Section 5), the relative TGMS to TF relative orientation and the relative TGMS to TF relative trajectory. However, there is a long way to go to apply these equations.
Section 7 explains the development of a linear dynamic model that can be used to find the TGMS to TF relative orientation using the installed inertial sensors, 3D accelerometer and 3D gyroscope. This model is the basis of a Kalman filter that provides as the output the required TGMS angles. The application of this algorithm requires a precise knowledge of the position of the TGMS along the track. This position together with the vehicle forward velocity are needed to calculate the accelerations due to the motion of the TGMS along the design geometry of the track. In turn, these accelerations are needed to calculate the relative orientation based on the accelerometer signals. Section 8 explains the odometry algorithm that is used in this investigation for the precise calculation of the value of the arc-length s of the TGMS along the track. This algorithm is based on the measurement of the track horizontal curvature and the knowledge of the track design geometry.
The most difficult step for the calculation of the track irregularities is to obtain the TGMS to TF relative trajectory. Fortunately, this trajectory is needed to find the absolute irregularities but not needed to find the relative irregularities. The calculation of the relative trajectory is explained in Section 9. After a set of approximations, Equation (46) shows a second-order linear system of ordinary differential equations that can be solved to find the TGMS to TF relative trajectory. However, these equations are intrinsically unstable, requiring special solution methods that need to be improved, as it can be deduced from the experimental results.
The calculation of the track irregularities has been experimentally validated in a scale track that is described in Section 10 as well as the alternative method used to measure the track irregularities. This alternative method is accurate and based on the sensors used in the commercial rail track trolleys, LVDT and inclinometer, and a total station. The comparison of the measurements of the TGMS presented in this paper and this reference measurement is shown in Section 11. The relative irregularities are measured with high accuracy. The measurement of the absolute irregularities can be considered as acceptable, but the accuracy is much less. It can be concluded that the method of calculation of the TGMS to TF relative trajectory, that is the additional input needed for the calculation of the absolute irregularities, needs to be improved.

Author Contributions

Conceptualization and algorithm implementation, J.L.E.; Investigation, J.L.E., P.U. and S.M.; Design of the experiments, J.L.E., P.U. and S.M.; Instrumentation of the vehicle and data acquisition, P.U.; Experimentation, P.U. and S.M.; Writing, J.L.E.; Supervision, J.L.E. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Conserjería de Economía, Conocimiento, Empresas y Universidad de la Junta de Andalucía under the project reference US-1257665. This support is gratefully acknowledged.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
TGMSTrack geometry measurement system.
RTTRail track trolleys.
TRVTrack recording vehicles.
VMSVersine measurement systems.
IMSInertial measurement systems.
< X , Y , Z > Global frame (GF).
< X t , Y t , Z t > Track frame (TF).
< X i , Y i , Z i > Body frame i (BF).
< X t g m s , Y t g m s , Z t g m s > TGMS frame.
< X l r p , Y l r p , Z l r p > Left rail-profile frame (LRP).
< X r r p , Y r r p , Z r r p > Right rail-profile frame (RRP).
R Position vector with respect to the GF.
R t Position vector of the TF with respect to the GF.
r Position vector with respect to the TF.
u Position vector with respect to the BF, LRP or RRP.
u P i Position vector of point P that belongs to body i.
v Components of a generic vector v in the GF.
v ¯ Components of a generic vector v in the TF.
v ^ Components of a generic vector v in the BF, LRP or RRP.
A t Rotation matrix of the TF with respect to the GF.
A i Rotation matrix of the BF of body i with respect to the GF.
A t , i Rotation matrix from the BF of body i to the TF.
ρ h , ρ v , ρ t w Horizontal, vertical and twist curvatures of the track centerline.
ρ h Spatial-derivative of horizontal curvature.
α v Vertical slope of the track centerline.
ψ t , θ t , φ t Euler angles that describe the orientation of the TF with respect to
the GF.
ψ i , θ i , φ i Euler angles that describe the orientation of the body i with respect to
the TF.
ψ a b s i , θ a b s i , φ a b s i Euler angles that describe the orientation of the body i with respect to
the GF.
sArc-length coordinate.
V, V ˙ Forward velocity and acceleration.
ω t , α t Absolute angular velocity and acceleration vectors of the TF.
ω i , α i Absolute angular velocity and acceleration vectors of body i.
ω t , i , α t , i Angular velocity and acceleration vectors of body i with respect to
the TF.
r l i r = [ 0, y l i r , z l i r ]            Irregularity vector of the left rail.
r r i r = [ 0, y r i r , z r i r ]Irregularity vector of the right rail.
ξ a l , ξ v p , ξ g v , ξ c l Alignment, vertical profile, gauge variation and cross level.

References

  1. Grassie, S.L. Measurement of railhead longitudinal profiles: A comparison of different techniques. Wear 1996, 191, 245–251. [Google Scholar] [CrossRef]
  2. Aknin, P.; Chollet, H. A new approach for the modelling of track geometry recording vehicles and the deconvolution of versine measurements. Veh. Syst. Dyn. 1999, 33, 59–70. [Google Scholar] [CrossRef]
  3. Lewis, R.B. Track-recording techniques used on British Rail. IEE Proc. B Electr. Power Appl. 1984, 131, 73–81. [Google Scholar] [CrossRef]
  4. Escalona, J.L. Vertical Track Geometry Monitoring Using Inertial Sensors and Complementary Filters. In Proceedings of IDETC/CIE 2016; ASME: Charlotte, NC, USA, 2016. [Google Scholar]
  5. Weston, P.; Ling, C.S.; Roberts, C.; Goodman, C.J.; Li, P.; Goodall, R.M. Monitoring vertical track irregularity from in-service railway vehicles. Proc. Inst. Mech. Eng. Part F: J. Rail Rapid Transit 2007, 221, 75–88. [Google Scholar] [CrossRef]
  6. Weston, P.; Ling, C.S.; Goodman, C.J.; Roberts, C.; Li, P.; Goodall, R.M. Monitoring lateral track irregularity from in-service railway vehicles. Proc. Inst. Mech. Eng. Part F: J. Rail Rapid Transit 2007, 221, 89–100. [Google Scholar] [CrossRef]
  7. Weston, P.; Roberts, C.; Yeo, G.; Stewart, E. Perspectives on railway track geometry condition monitoring from in-service railway vehicles. Veh. Syst. Dyn. 2015, 53, 1063–1091. [Google Scholar] [CrossRef]
  8. Seok Lee, J.; Choi, S.; Kim, S.S.; Park, C.; Guk Kim, Y. A Mixed Filtering Approach for Track Condition Monitoring Using Accelerometers on the Axle Box and Bogie. IEEE T. Instrum. Meas. 2012, 61, 749–758. [Google Scholar]
  9. Tsai, H.C.; Wang, C.Y.; Huang, N. Fast Inspection and Identification Techniques for Track Irregularities Based on HHT Analysis. Adv. Adapt. Data Anal. 2012, 4. [Google Scholar] [CrossRef]
  10. Tsai, H.C.; Wang, C.Y.; Huang, N.; Kuo, T.W.; Chieng, W.H. Railway track inspection based on the vibration response to a scheduled train and the Hilbert-Huang transform. Proc. Inst. Mech. Eng. Part F: J. Rail Rapid Transit 2014, 229. [Google Scholar] [CrossRef]
  11. Tsunashima, H.; Naganuma, Y.; Kobayashi, T. Track geometry estimation from car-body vibration. Veh. Syst. Dyn. 2014, 52, 207–219. [Google Scholar] [CrossRef]
  12. Tsunashima, H. Condition Monitoring of Railway Tracks from Car-Body Vibration Using a Machine Learning Technique. Appl. Sci. 2019, 9, 2734–2746. [Google Scholar] [CrossRef] [Green Version]
  13. Tsunashima, H.; Hirose, R. Condition monitoring of railway track from car-body vibration using time-frequency analysis. Veh. Syst. Dyn. 2020, 1–18. [Google Scholar] [CrossRef]
  14. Muñoz, S.; Aceituno, J.F.; Urda, P.; Escalona, J.L. Multibody model of railway vehicles with weakly coupled vertical and lateral dynamics. Mech. Syst. Signal Process. 2019, 115, 570–592. [Google Scholar] [CrossRef]
  15. Escalona, J.L.; Aceituno, J.F. Multibody simulation of railway vehicles with contact lookup tables. Int. J. Mech. Sci. 2019, 155, 571–582. [Google Scholar] [CrossRef]
  16. Escalona, J.L.; Aceituno, J.F.; Urda, P.; Balling, O. Railway multibody simulation with the knife-edge-equivalent wheel-rail constraint equations. Multibody Syst. Dyn. 2020, 48, 373–402. [Google Scholar] [CrossRef]
  17. Escalona, J.L. A methodology for the measurement of track geometry based on computer vision and inertial sensors. arXiv 2020, arXiv:2008.03763v1. [Google Scholar]
  18. Zhang, Z. A Flexible New Technique for Camera Calibration; Technical Report MSR-TR-98-71 for Microsoft Research; Microsoft Corporation: Redmond, WA, USA, 1998. [Google Scholar]
  19. Escalona, J.L. Kinematics of motion tracking using computer vision. arXiv 2020, arXiv:2008.00813v1. [Google Scholar]
  20. Szelinski, R. Computer Vision. Algorithms and Applications; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
  21. Madgwick, S.; Harrison, A.; Vaidyanathan, A. Estimation of IMU and MARG orientation using a gradient descent algorithm. In Proceedings of the IEEE International Conference on Rehabilitation Robotics, Zurich, Switzerland, 29 June–1 July 2011. [Google Scholar]
  22. Valenti, R.; Dryanovski, I.; Xiao, J. Keeping a good attitude: A quaternion-based orientation filter for IMUs and MARGs. Sensors 2015, 15, 19302–19330. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  23. Muñoz, S.; Ros, J.; Escalona, J.L. Estimation of lateral track irregularity through Kalman filtering techniques. arXiv 2020, arXiv:2003.05222. [Google Scholar]
  24. Urda, P.; Muñoz, S.F.; Aceituno, J.; Escalona, J. Application and Experimental Validation of a Multibody Model with Weakly Coupled Lateral and Vertical Dynamics to a Scaled Railway Vehicle. Sensors 2020, 20, 3700. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Kinematics of the Track Geometry Measuring System (TGMS) installed in a vehicle moving along the track.
Figure 1. Kinematics of the Track Geometry Measuring System (TGMS) installed in a vehicle moving along the track.
Sensors 21 00683 g001
Figure 2. Kinematics of a body moving along the track.
Figure 2. Kinematics of a body moving along the track.
Sensors 21 00683 g002
Figure 3. Kinematics of the irregular track cross-section.
Figure 3. Kinematics of the irregular track cross-section.
Sensors 21 00683 g003
Figure 4. Kinematics of the computer vision.
Figure 4. Kinematics of the computer vision.
Sensors 21 00683 g004
Figure 5. TGMS frame and camera frame.
Figure 5. TGMS frame and camera frame.
Sensors 21 00683 g005
Figure 6. Cloud of points detected with computer vision (a). UIC 54 E1 rail-head profile (b).
Figure 6. Cloud of points detected with computer vision (a). UIC 54 E1 rail-head profile (b).
Sensors 21 00683 g006
Figure 7. Planar view of the TGMS.
Figure 7. Planar view of the TGMS.
Sensors 21 00683 g007
Figure 8. TGMS trajectory.
Figure 8. TGMS trajectory.
Sensors 21 00683 g008
Figure 9. Design horizontal curvature of a railway track.
Figure 9. Design horizontal curvature of a railway track.
Sensors 21 00683 g009
Figure 10. Odometry algorithm.
Figure 10. Odometry algorithm.
Sensors 21 00683 g010
Figure 11. Correction of t g m s .
Figure 11. Correction of t g m s .
Sensors 21 00683 g011
Figure 12. Normalized squared-error.
Figure 12. Normalized squared-error.
Sensors 21 00683 g012
Figure 13. Scaled track at the School of Engineering, University of Seville. (a) Aerial view, (b) detail of track supports.
Figure 13. Scaled track at the School of Engineering, University of Seville. (a) Aerial view, (b) detail of track supports.
Sensors 21 00683 g013
Figure 14. Scale vehicle, (a) global view of instrumented scale vehicle, (b) detail showing video cameras and laser beam.
Figure 14. Scale vehicle, (a) global view of instrumented scale vehicle, (b) detail showing video cameras and laser beam.
Sensors 21 00683 g014
Figure 15. Irregularity measurement. (a) Robotic total station, (b) LVDT and inclinometer.
Figure 15. Irregularity measurement. (a) Robotic total station, (b) LVDT and inclinometer.
Sensors 21 00683 g015
Figure 16. Measurements of cross level.
Figure 16. Measurements of cross level.
Sensors 21 00683 g016
Figure 17. Measurements of gauge variation.
Figure 17. Measurements of gauge variation.
Sensors 21 00683 g017
Figure 18. Measurements of alignment.
Figure 18. Measurements of alignment.
Sensors 21 00683 g018
Figure 19. Measurements of vertical profile.
Figure 19. Measurements of vertical profile.
Sensors 21 00683 g019
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Escalona, J.L.; Urda, P.; Muñoz, S. A Track Geometry Measuring System Based on Multibody Kinematics, Inertial Sensors and Computer Vision. Sensors 2021, 21, 683. https://0-doi-org.brum.beds.ac.uk/10.3390/s21030683

AMA Style

Escalona JL, Urda P, Muñoz S. A Track Geometry Measuring System Based on Multibody Kinematics, Inertial Sensors and Computer Vision. Sensors. 2021; 21(3):683. https://0-doi-org.brum.beds.ac.uk/10.3390/s21030683

Chicago/Turabian Style

Escalona, José L., Pedro Urda, and Sergio Muñoz. 2021. "A Track Geometry Measuring System Based on Multibody Kinematics, Inertial Sensors and Computer Vision" Sensors 21, no. 3: 683. https://0-doi-org.brum.beds.ac.uk/10.3390/s21030683

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop