Dynamic compensation method and system for contact rail detection data when vehicle body vibrates
By installing a laser profiler on the inspection vehicle to collect the contour curves of the contact rail and running rail, and calculating the tilt compensation angle for correction, the accuracy problem of the subway contact rail inspection data when the car body vibrates is solved, and higher detection accuracy and real-time.
Patent Information
- Application Number
- CN202211424873.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-11-14
AI Technical Summary
It is difficult to realize real-time and accurate compensation and correction of subway contact rail detection data with existing technology, resulting in insufficient detection accuracy, especially when the car body vibrates.
The first laser profiler and the second laser profiler are installed on the same side of the inspection vehicle. By collecting the profile curves of the contact rail and the running rail, the tilt compensation angle is calculated after segmentation processing, and horizontal and vertical compensation is performed based on this angle. Calibration to ensure the accuracy of pull-out value and lead-in value after dynamic compensation.
The compensation accuracy of the contact rail detection data is improved, the deviation caused by the dynamic vehicle body vibration is reduced, and a more accurate detection of the contact rail geometric parameters is achieved, and the dynamic compensation error is controlled within 3mm.
Smart Images

Figure CN115682956B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of vehicle detection, and in particular to a method and system for dynamically compensating contact rail detection data when a vehicle body vibrates. Background Art
[0002] With the rapid development of urbanization in my country, the urban population has increased dramatically, and traffic congestion has become increasingly serious. The subway has become the main tool to solve urban traffic congestion with its advantages of speed, safety, and large passenger capacity. As the passenger capacity increases, the vehicle density also increases, which places higher and higher requirements on the power supply performance of the train. The power supply performance of the train directly affects the safety performance of the subway train, and it is also the basis for the formulation of the basic parameters of the maintenance work plan of the subway power supply department.
[0003] Subway power supply is mainly divided into two modes: contact network power supply and contact rail power supply. Most of the existing technologies use contact network for power supply, so there are more studies on contact network, while there are relatively few studies on the detection method of subway contact rail (also known as third rail). In practical applications, the contact rail's height (i.e., the distance between the bottom surface of the third rail and the track surface) and the pull-out value (i.e., the distance between the center of the third rail and the inner side of the same side track) must be measured regularly to understand the relative position relationship between the contact rail and the track, so as to make adjustments to ensure that the train is in the right position with the third rail during operation, thereby ensuring the normal operation of the power supply system.
[0004] There are clear regulations in the technical requirements and specifications related to the third rail inspection: the third rail geometric parameters must be inspected no less than twice per quarter. For the increasingly serious inspection tasks of urban rail transit, the traditional three-rail inspection method relying on manual labor can no longer meet the requirements. These manual inspection methods have a low degree of automation and are easily interfered by human factors during inspection, resulting in reduced inspection accuracy. Therefore, there is an urgent need for an efficient, high-precision, and high-reliability inspection method for the third rail inspection.
[0005] The double-track inspection vehicle in operation is a vibration system with multiple degrees of freedom. Due to various random unevenness of the line, the vehicle vibrates. The vibration of the vehicle body will directly affect the accuracy of the inspection data. If no compensation calculation is performed, large errors will occur. In particular, when the inspection vehicle vibrates vertically up and down, swings horizontally left and right, and rolls sideways, it will have a direct impact on the data and lead to erroneous results.
[0006] Traditional methods use wire-type displacement sensors, capacitive displacement sensors, and image processing-based vibration compensation methods for vehicle body vibration compensation, among which:
[0007] The wire displacement sensor method is to install the wire sensor on the bogie, tie the wire to the car body, and measure the electrical signal proportional to the moving distance of the wire rope to obtain the vibration displacement of the car body relative to the bogie. However, since the wire sensor adopts a contact measurement method, there is mechanical wear and it is not suitable for long-term use.
[0008] The capacitive displacement sensor method fixes one plate electrode to the car body and the other to the axle box. The capacitance of the parallel plate capacitor is inversely proportional to the distance between the plates, and the capacitance measurement can be obtained through the LC oscillator frequency for offset compensation. This method is applied to the contact rail pull-out value detection. The average value of the absolute value of the pull-out value error is reduced from 34.41mm to 13.74mm. The compensation effect is obvious, but the accuracy still cannot meet the requirements of accurate measurement.
[0009] Compared with the above two vibration compensation methods, the use of image processing for vibration compensation avoids the cumulative error caused by the step-by-step calculation of the vibration offset of the car body relative to the bogie and the superposition of the vibration offset between the wheel and rail. It has higher accuracy, but cannot meet real-time requirements and has higher hardware requirements.
[0010] In the related technology, "Application of vibration compensation method based on image processing in contact rail detection, Zheng Rui et al., "Urban Rail Transit Research", three sensors are arranged to measure the contact rail and two running rails respectively to achieve vibration compensation of the running rails, and the sampling interval is relatively large. The sampling interval at 20km / h is as high as 92.5mm, and the sampling frame rate is 60 frames per second, which cannot meet the real-time requirements. As the speed of the inspection vehicle increases, the sampling interval will become larger and larger, and some abnormal data may be missed.
[0011] In “Research on contact rail detection method based on structured light measurement technology, Yang Liu, Railway Transportation Engineering Science and Technology II”, only sensors are set on the contact rail for parameter detection of the contact rail instead of compensation.
[0012] "Vibration compensation method and application of contact rail inspection vehicle based on computer vision, Zhan Dong et al., Journal of Railway Sciences" only involves displacement compensation in the horizontal and vertical directions for the compensation of contact rail inspection data, but does not perform angle compensation. The compensation results of contact rail inspection data are not accurate.
[0013] The Chinese invention patent application document with publication number CN107401979A discloses a vehicle body vibration displacement compensation device and method for contact network detection. The device uses the detection vehicle as the carrying platform, and specifically comprises: a laser measurement unit is installed on the bottom of the detection vehicle, and is used to obtain the two-dimensional displacement data of the left and right rails of the detection vehicle; a position determination module, a compensation parameter determination module, and a geometric parameter determination module are respectively installed inside the detection vehicle, and the position determination module is used to calculate the vertical displacement and lateral displacement of the left and right rails relative to the laser measurement unit according to the two-dimensional displacement data; the compensation parameter determination module is used to calculate the vehicle body vibration displacement compensation parameters of the detection vehicle relative to the left and right rails according to the vertical displacement and the lateral displacement; the geometric parameter determination module is used to obtain the contact network geometric parameter measurement values, and calculate the contact network geometric parameter measurement values of the detection vehicle relative to the rail plane according to the contact network geometric parameter measurement values and the vehicle body vibration displacement compensation parameter measurement values.
[0014] This solution is used to calculate the geometric parameters of the contact network rather than the geometric parameters of the contact rail. The contact network is located above the running rail, while the contact rail is located on the side of the running rail. The laser measurement unit is installed on the bottom of the inspection vehicle, and the data collected is only the data of the running rail. The installation angle of the laser measurement unit is fixed at 30 or 45 degrees. The dynamic roll angle is obtained by calculating the vertical displacement relative to the left and right running rails, and the dynamic compensation error is large. Summary of the invention
[0015] The technical problem to be solved by the present invention is to solve the problem of real-time compensation and correction of contact rail detection data when the vehicle body vibrates, thereby meeting the detection accuracy of contact rail geometric parameters.
[0016] The present invention solves the above technical problems through the following technical means:
[0017] The present invention proposes a method for dynamically compensating contact rail detection data when a vehicle body vibrates. A first laser profiler and a second laser profiler are installed on the same side of a detection vehicle. The method comprises:
[0018] During the movement of the detection vehicle, the first laser profiler is used to collect the profile curve of the contact rail, and the second laser profiler is used to collect the profile curve of the running rail on the same side as the contact rail;
[0019] Performing segmentation processing on the contour curve of the running rail, dividing the contour of the running rail into a rail top section and a rail waist and rail bottom section;
[0020] Calculating a tilt compensation angle based on the rail waist and rail bottom sections and a standard profile curve;
[0021] Based on the tilt compensation angle, the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler, compensation correction is performed on the profile curve of the contact rail, the profile curve of the running rail, and the horizontal distance and vertical distance between the two laser profilers;
[0022] Based on the compensated and corrected contour curve of the contact rail, the compensated and corrected contour curve of the running rail, and the compensated and corrected horizontal distance and vertical distance between the two laser profilers, the pull-out value and the guide height value after dynamic compensation are calculated.
[0023] The present invention obtains the tilt compensation angle by aligning the contour of the running rail on the same side of the contact rail with the standard contour, and uses the tilt compensation angle to compensate and correct the contour of the contact rail, the contour of the running rail, and the horizontal distance and vertical distance between the two laser profilers, and performs data compensation for the deviation that may be caused by the vibration of the vehicle body during dynamic operation, thereby calculating the pull-out value and the guide height value after dynamic compensation; this solution not only compensates for the displacement in the horizontal and vertical directions, but also compensates for the angle, so that the compensation result of the contact rail detection data is more accurate.
[0024] Furthermore, the contour curve of the running rail is segmented to divide the contour of the running rail into a rail top section and a rail waist and rail bottom section, including:
[0025] For each point on the contour curve of the running rail, the distance between other points and the current point is calculated. If the current point is taken as the origin, the first set value is the circle radius. If there is only one point within the circle radius, the point is a noise point and is removed.
[0026] When the distances between two adjacent points within a range are all less than a second set value, all points within the range are divided into the same curve segment, so as to divide the contour of the running rail into a rail top segment, a rail waist segment and a rail bottom segment.
[0027] Further, the calculating of the tilt compensation angle based on the rail waist and rail bottom section and the standard profile curve comprises:
[0028] According to the first circle radius range and the second circle radius range, two feature point sets of the rail waist and rail bottom sections and two feature point sets of the standard contour curve are respectively extracted;
[0029] Fitting the two characteristic point sets of the waist rail bottom section respectively to determine a group of circle center positions A1 and B1, and fitting the two characteristic point sets of the standard contour curve respectively to determine a group of circle center positions A2 and B2;
[0030] The two sets of circle center positions are iteratively aligned using a matching algorithm to calculate the tilt compensation angle θ.
[0031] Further, the compensation correction of the profile curve of the contact rail, the profile curve of the running rail, and the horizontal distance and the vertical distance between the two laser profilers based on the tilt compensation angle, the static calibration angle of the first laser profiler, and the static calibration angle of the second laser profiler includes:
[0032] According to the tilt compensation angle and the static calibration angle of the first laser profiler, the real-time angle of the contact rail is corrected to: β1=α1+θ, θ is the tilt compensation angle, and α1 is the static calibration angle of the first laser profiler;
[0033] According to the tilt compensation angle and the static calibration angle of the second laser profiler, the real-time angle of the running rail is corrected to: β2=θ+α2, where α2 is the static calibration angle of the second laser profiler;
[0034] Based on the angles β1 and β2, respectively, the contour curve of the running rail and the contour curve of the contact rail are compensated and corrected to obtain the contour curve of the running rail and the contour curve of the contact rail after compensation and correction;
[0035] Based on the tilt compensation angle, the horizontal distance L0 and the vertical distance H0 between the first laser profiler and the second laser profiler are compensated and corrected as follows:
[0036] L=S*cosα',H=S*sinα'
[0037] Where: S is the straight-line distance between the first laser profiler and the second laser profiler, S 2 =L0 2 +H0 2 ; α'=α-θ, α is the angle between the straight line between the first laser profiler and the second laser profiler and the horizontal straight line.
[0038] Further, the calculation of the pull-out value and the guide height value after dynamic compensation based on the profile curve of the contact rail after compensation correction, the profile curve of the running rail after compensation correction, and the horizontal distance and vertical distance between the two laser profilers after compensation correction includes:
[0039] Extracting the coordinates of the characteristic points of the guide rail height pull-out value according to the contour curve of the contact rail after compensation correction and the contour curve of the running rail after compensation correction;
[0040] According to the coordinates of the characteristic points of the guide height pull-out value and the horizontal distance and vertical distance between the two laser profilers after compensation correction, the pull-out value a' and the guide height value b' after dynamic compensation are calculated as follows:
[0041] a'=L+x't -x t
[0042] b'=y t +y' t -H
[0043] Where: x t ,y t x' is the coordinate of the feature point extracted from the contour curve of the running rail; t , y' t are the coordinates of the feature points extracted from the profile curve of the contact rail; L is the horizontal distance between the two laser profilers after compensation correction; and H is the vertical distance between the two laser profilers after compensation correction.
[0044] Further, the extracting the coordinates of the feature points of the conductor height pull-out value according to the compensated and corrected contour curve of the contact rail and the compensated and corrected contour curve of the running rail comprises:
[0045] Calculating the slope of a line connecting any two points on the profile curve of the contact rail after compensation correction, and determining an inflection point based on a change in the slope;
[0046] According to the distance between the inflection point and the center point of the bottom of the contact rail, the coordinates of the center point are extracted as the coordinates of the rail bottom feature point;
[0047] After performing denoising on the contour curve of the running rail after compensation correction, a horizontal line is drawn at the highest point of the curve;
[0048] After the horizontal line is moved down a set distance, the intersection point with the contour curve of the running rail is taken as the rail top feature point, and the coordinates of the rail top feature point are extracted.
[0049] Furthermore, during the movement of the detection vehicle, before respectively collecting the profile curve of the contact rail using the first laser profiler and collecting the profile curve of the running rail on the same side of the contact rail using the second laser profiler, the method further includes:
[0050] The first laser profiler and the second laser profiler are calibrated to determine a static calibration angle of the first laser profiler and a static calibration angle of the second laser profiler.
[0051] Further, the calibrating the first laser profiler and the second laser profiler to determine a static calibration angle of the first laser profiler and a static calibration angle of the second laser profiler includes:
[0052] When the inspection vehicle is in a stationary state, the first laser profiler is used to collect the contour straight line of the vertical panel, and the second laser profiler is used to collect the contour curve of the running rail, wherein the vertical panel is placed beside the contact rail;
[0053] Performing segmentation processing on the contour curve of the running rail collected in a static state, dividing the contour curve of the running rail into a rail top section and a rail waist and rail bottom section;
[0054] calculating a static calibration angle of the second laser profiler based on the rail top segment;
[0055] The contour straight line of the vertical panel is fitted to obtain a straight line slope, and the straight line slope is converted into a static calibration angle of the first laser profiler.
[0056] Further, the calculating the static calibration angle of the second laser profiler based on the rail top segment includes:
[0057] By calculating edge points and polygons, approximating and extracting rail top feature points of the rail top section;
[0058] A distance threshold is set, and the position of the rail top feature point is calculated using the nearest point algorithm based on the rail top feature point and the edge point, so as to construct a point cloud set Q;
[0059] Based on the point cloud set Q, searching for corresponding coordinate points in the two-dimensional point cloud set corresponding to the standard contour curve to form a point cloud set P;
[0060] Based on the point cloud set Q and the point cloud set P, a matching algorithm is used to perform iterative alignment to obtain a static calibration angle of the second laser profiler.
[0061] Furthermore, the iterative registration is performed based on the point cloud set Q and the point cloud set P using a matching algorithm to obtain a static calibration angle of the second laser profiler, including:
[0062] After normalizing the point cloud set Q and the point cloud set P, searching for corresponding point pairs in the point cloud set Q and the point cloud set P;
[0063] According to the corresponding point pairs, calculate the transformation matrix and translation vector:
[0064]
[0065] T=PQ*R
[0066] Where: is the x-axis coordinate of the i-th point in the point cloud set P, is the y-axis coordinate of the i-th point in the point cloud set P, is the x-axis coordinate of the i-th point in the point cloud set Q, is the y-axis coordinate of the i-th point in the point cloud set Q;
[0067] Updating point cloud data using the transformation matrix and the translation vector;
[0068] When the iteration loss is less than a set threshold or reaches a maximum number of iterations, a static calibration angle of the second laser profiler is obtained.
[0069] Further, after calibrating the first laser profiler and the second laser profiler to determine a static calibration angle of the first laser profiler and a static calibration angle of the second laser profiler, the method further includes:
[0070] Based on the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler, a horizontal distance and a vertical distance between the two laser profilers are calculated.
[0071] Further, the calculating the horizontal distance and the vertical distance between the two laser profilers based on the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler includes:
[0072] The inspection vehicle is placed statically on a standard rail surface, and an instrument is used to measure the height conduction value b and the pull-out value a in this state;
[0073] respectively collecting a profile curve of the contact rail and a profile curve of the running rail using the first laser profiler and the second laser profiler;
[0074] Based on the static calibration angle of the first laser profiler, the profile curve of the contact rail is converted into first two-dimensional coordinate system data with the emission point of the first laser profiler as the origin and the direction perpendicular to the rail surface as the y-axis;
[0075] Based on the static calibration angle of the second laser profiler, the profile curve of the running rail is converted into data of a second two-dimensional coordinate system with the emission point of the second laser profiler as the origin and the direction perpendicular to the rail surface as the y-axis;
[0076] Based on the guide height value b and the pull-out value a, respectively searching for coordinates of corresponding feature points in the first two-dimensional coordinate system data and the second two-dimensional coordinate system data;
[0077] Based on the coordinates of the corresponding feature points, the horizontal distance L0 and the vertical distance H0 between the two laser profilers are calculated:
[0078] L0=a-x'+x
[0079] H0=y+y'-b
[0080] Wherein: x, y are the coordinates of the feature point found from the first two-dimensional coordinate system data; x', y' are the coordinates of the feature point found from the second two-dimensional coordinate system data.
[0081] In addition, the present invention also proposes a dynamic compensation system for contact rail detection data when the vehicle body vibrates, the system comprising: a first laser profiler, a second laser profiler and a data processing device, the first laser profiler and the second laser profiler are installed on the same side of the detection vehicle, the first laser profiler and the second laser profiler are used to collect the profile curve of the contact rail and the profile curve of the running rail on the same side as the contact rail respectively;
[0082] The first laser profiler and the second laser profiler are both connected to the data processing device, and the data processing device includes:
[0083] A segmentation module, used for segmenting the contour curve of the running rail, dividing the contour of the running rail into a rail top section and a rail waist and rail bottom section;
[0084] A tilt compensation angle calculation module, used to calculate the tilt compensation angle based on the rail waist and rail bottom section and the standard profile curve;
[0085] A compensation correction module, used for compensating and correcting the profile curve of the contact rail, the profile curve of the running rail, and the horizontal distance and the vertical distance between the two laser profilers based on the tilt compensation angle, the static calibration angle of the first laser profiler, and the static calibration angle of the second laser profiler;
[0086] The parameter calculation module is used to calculate the pull-out value and the guide height value after dynamic compensation based on the contour curve of the contact rail after compensation correction, the contour curve of the running rail after compensation correction, and the horizontal distance and vertical distance between the two laser profilers after compensation correction.
[0087] Furthermore, the first laser profiler and the second laser profiler are installed on a rigid mechanical structure, and the rigid mechanical structure is connected to a double-track rail ultrasonic flaw detector.
[0088] The advantages of the present invention are:
[0089] (1) The present invention obtains the tilt compensation angle by aligning the running rail profile on the same side of the contact rail with the standard profile, and uses the tilt compensation angle to compensate and correct the profile of the contact rail, the profile of the running rail, and the horizontal distance and vertical distance between the two laser profilers, and performs data compensation for the deviation that may be caused by the vibration of the vehicle body during dynamic operation, thereby calculating the pull-out value and the guide height value after dynamic compensation; this scheme not only compensates for the displacement in the horizontal and vertical directions, but also compensates for the angle, so that the compensation result of the contact rail detection data is more accurate.
[0090] (2) The installation angle of the laser profiler in the present invention is not a pre-fixed value, but is calibrated and measured later to reduce the calculation error in dynamic state.
[0091] (3) The present invention combines a laser profiler with a dual-track ultrasonic flaw detector to realize ultrasonic detection of the rails and detection of the positional relationship of the contact rail relative to the rails. The sampling interval is small, reaching about 40 mm per 20 km / h, which can achieve high-speed measurement of the position of the contact rail relative to the rails. Due to the particularity of railway safety requirements, special requirements must be met for devices that can travel on rails under power. The dual-track ultrasonic flaw detector meets these requirements and is allowed to travel on the railway under its own power.
[0092] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Figure 1 It is a flow chart of a method for dynamically compensating contact rail detection data when a vehicle body vibrates, which is proposed in one embodiment of the present invention;
[0094] Figure 2 is a schematic diagram of the overall process of dynamic compensation in one embodiment of the present invention;
[0095] Figure 3 is a schematic diagram of the outline of 60 tracks in one embodiment of the present invention;
[0096] Figure 4 is a schematic diagram of a subdivision process of step S1 in one embodiment of the present invention;
[0097] Figure 5 is a schematic diagram of an angle calibration process in one embodiment of the present invention;
[0098] Figure 6 is a schematic diagram of a subdivision process of step S2 in one embodiment of the present invention;
[0099] Figure 7is a schematic diagram of a calculation process of a horizontal distance and a vertical distance between two laser profilers in one embodiment of the present invention;
[0100] Figure 8 It is a structural schematic diagram of a dynamic compensation system for contact rail detection data when a vehicle body vibrates, proposed by an embodiment of the present invention;
[0101] Fig. 9 It is a schematic diagram of the installation structure of a laser profiler in one embodiment of the present invention. DETAILED DESCRIPTION
[0102] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0103] like Figure 1 to Figure 2 As shown, the first embodiment of the present invention proposes a method for dynamic compensation of contact rail detection data when the vehicle body vibrates, wherein a first laser profiler and a second laser profiler are installed on the same side of the detection vehicle, and the method comprises the following steps:
[0104] S10, during the movement of the inspection vehicle, using the first laser profiler to collect a profile curve of the contact rail, and using the second laser profiler to collect a profile curve of the running rail on the same side as the contact rail;
[0105] It should be noted that the first laser profiler is used to collect the contour curve of the contact rail from bottom to top, and the second laser profiler is used to collect the contour curve of the running rail on the same side of the contact rail from top to bottom. The first laser profiler and the second laser profiler are installed on the inspection vehicle, and the inspection vehicle can move on the rails.
[0106] S20, performing segmentation processing on the contour curve of the running rail, dividing the contour of the running rail into a rail top section and a rail waist and rail bottom section;
[0107] It should be noted that the profile of the running rail includes three parts, namely, the rail top, the rail waist and the rail bottom. In this embodiment, the running rail profile is divided into two sections, namely, the rail top section and the rail waist and rail bottom section.
[0108] S30, calculating a tilt compensation angle based on the rail waist and rail bottom sections and a standard profile curve;
[0109] It should be noted that during the movement of the trolley, the height of the two sides relative to the rails will change, and the car body cannot be used as a reference to determine the rail track plane, which will lead to errors in the measurement of the height guide value. This embodiment calculates the inclination compensation angle of the trolley relative to the running rail as the compensation angle, thereby performing data compensation for the deviation that may be caused by the vibration of the car body during dynamic conditions.
[0110] S40, based on the tilt compensation angle, the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler, compensating and correcting the profile curve of the contact rail, the profile curve of the running rail, and the horizontal distance and the vertical distance between the two laser profilers;
[0111] S50, calculating the pull-out value and the guide height value after dynamic compensation based on the compensated and corrected contour curve of the contact rail, the compensated and corrected contour curve of the running rail, and the compensated and corrected horizontal distance and vertical distance between the two laser profilers.
[0112] This embodiment obtains the tilt compensation angle by aligning the running rail profile on the same side of the contact rail with the standard profile, and uses the tilt compensation angle to compensate and correct the profile of the contact rail, the profile of the running rail, and the horizontal and vertical distances between the two laser profilers, and performs data compensation for the deviation that may be caused by the vibration of the vehicle body during dynamic operation, thereby calculating the pull-out value and the guide height value after dynamic compensation; this solution not only compensates for the displacement in the horizontal and vertical directions, but also compensates for the angle, so that the compensation result of the contact rail detection data is more accurate, and the measurement error under dynamic operation is within 3mm.
[0113] In one embodiment, the step S20: performing segmentation processing on the contour curve of the running rail to divide the contour of the running rail into a rail top section and a rail waist and rail bottom section, specifically comprises the following steps:
[0114] S21, for each point on the contour curve of the running rail, calculate the distance between other points and the current point, if the current point is taken as the origin, the first set value is the circle radius, if there is only one point within the circle radius, then the point is a noise point and is removed;
[0115] S22. When the distances between two adjacent points within a range are less than a second set value, all points within the range are divided into the same curve segment, so as to divide the contour of the running rail into a rail top segment, a rail waist segment and a rail bottom segment.
[0116] It should be noted that the first set value can be 2mm, and the second set value can be 10mm. This embodiment uses the coordinates in the two-dimensional coordinate system to calculate the distance and position of any two points on the contour curve. After calculating the distance between the current point and the nearest point, it is compared with the set circle radius of 2mm. If there is only one point within the radius, it is considered to be a noise point and is removed.
[0117] By removing noise points, interference can be removed when searching for feature points, fitting the center of a circle, and searching for point sets. If the distance between all two adjacent points in a range is less than a set value such as 10mm, all points in the range are one segment. This method can be used to divide the entire contour curve into two segments.
[0118] It should be noted that the present embodiment can divide the contour curve of the contact rail into two sections: a rail bottom section and a side section by using the same method.
[0119] In one embodiment, the step S30 of calculating the tilt compensation angle based on the rail waist and rail bottom sections and the standard profile curve specifically includes the following steps:
[0120] S31, extracting two sets of feature points of the rail waist and rail bottom sections and two sets of feature points of the standard contour curve respectively according to the first circle radius range and the second circle radius range;
[0121] It should be noted that, for the running rail, the rail bottom and rail waist will not be worn, so the feature point set of the rail bottom and rail waist section is extracted according to the circle radius range.
[0122] It should be noted that if Figure 3 As shown, the first circle radius range and the second circle radius range are respectively two arcs with a radius of 400 mm and a radius of 20 mm in the 60-gauge under the national standard, and the standard contour curve refers to the contour curve of the 60-gauge under the national standard.
[0123] S32, respectively fitting the two sets of characteristic points of the waist rail bottom section to determine a set of circle center positions A1 and B1, and respectively fitting the two sets of characteristic points of the standard contour curve to determine a set of circle center positions A2 and B2;
[0124] It should be noted that this embodiment specifically uses the least squares method to fit two sets of feature points to determine a set of circle center positions A1 and B1, and uses the least squares method to fit two sets of feature points of the standard contour curve to determine a set of circle center positions A2 and B2.
[0125] S33, using a matching algorithm to iteratively align the two sets of circle center positions, and calculate the tilt compensation angle θ.
[0126] It should be noted that this embodiment specifically uses the ICP algorithm (Iterative Closest Point) to iteratively align the two sets of circle center positions, and subtracts the static calibration angle α2 from the calculated real-time tilt angle β2 to obtain the tilt compensation angle θ: θ=β2-α2.
[0127] In one embodiment, the step S40: based on the tilt compensation angle, the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler, compensating and correcting the profile curve of the contact rail, the profile curve of the running rail and the horizontal distance and the vertical distance between the two laser profilers specifically includes the following steps:
[0128] S41, according to the tilt compensation angle and the static calibration angle of the first laser profiler, correcting the real-time angle of the contact rail to: β1=α1+θ, θ is the tilt compensation angle, α1 is the static calibration angle of the first laser profiler;
[0129] S42, according to the tilt compensation angle and the static calibration angle of the second laser profiler, correcting the real-time angle of the running rail to: β2=α2+θ, where α2 is the static calibration angle of the second laser profiler;
[0130] It should be noted that the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler are respectively obtained by pre-calibration when the vehicle is stationary.
[0131] S43, based on the angles β2 and β1, respectively performing compensation correction on the contour curve of the running rail and the contour curve of the contact rail to obtain the contour curve of the running rail and the contour curve of the contact rail after compensation correction;
[0132] It should be noted that, in the process of correcting the profile data of the contact rail and the running rail, the profile curve of the original running rail and the profile curve of the contact rail are multiplied by their respective rotation matrices R2 and R1, respectively, to obtain the profile curve of the running rail after compensation correction and the profile curve of the contact rail after compensation correction as follows:
[0133] Q1=Q*R1, Q2=Q'*R2, Q and Q' are the point sets corresponding to the contour curve of the original contact rail and the contour curve of the running rail, and Q1 and Q2 are the point sets corresponding to the corrected contour curve.
[0134]
[0135] S44, based on the tilt compensation angle, the horizontal distance L0 and the vertical distance H0 between the first laser profiler and the second laser profiler are compensated and corrected as follows:
[0136] L=S*cosα',H=S*sinα'
[0137] Where: S is the straight-line distance between the first laser profiler and the second laser profiler, S 2 =L0 2 +H0 2 ; α'=α-θ, α is the angle between the straight line between the first laser profiler and the second laser profiler and the horizontal straight line.
[0138] It should be noted that the horizontal distance and vertical distance between the two laser profilers are pre-calculated based on the static calibration angles of the two laser profilers.
[0139] In one embodiment, the step S50: calculating the pull-out value and the guide height value after dynamic compensation based on the compensated corrected contour curve of the contact rail, the compensated corrected contour curve of the running rail, and the compensated corrected horizontal distance and vertical distance between the two laser profilers, specifically includes the following steps:
[0140] S51, extracting the coordinates of the feature points of the conductor height pull-out value according to the contour curve of the contact rail after compensation correction and the contour curve of the running rail after compensation correction;
[0141] S52, according to the coordinates of the characteristic points of the guide height pull-out value and the horizontal distance and vertical distance between the two laser profilers after compensation correction, the pull-out value a' and the guide height value b' after dynamic compensation are calculated as follows:
[0142] a'=L+x' t -x t
[0143] b'=y t +y' t -H
[0144] Where: x t ,y t x' is the coordinate of the feature point extracted from the contour curve of the running rail; t , y' t are the coordinates of the feature points extracted from the profile curve of the contact rail; L is the horizontal distance between the two laser profilers after compensation correction; and H is the vertical distance between the two laser profilers after compensation correction.
[0145] It should be noted that this embodiment removes noise that affects the results through radius filtering, and removes interference when searching for feature points, fitting the center of a circle, and searching for a point set; and uses the measured values for static calibration calculations to make the relative position relationship and angle between devices more accurate. During dynamic compensation, not only the horizontal and vertical translations are taken into account, but also compensation for the roll angle is added to make the results more accurate.
[0146] In one embodiment, the step S51: extracting the coordinates of the feature points of the conductor height pull-out value according to the compensated and corrected contour curve of the contact rail and the compensated and corrected contour curve of the running rail, specifically comprises the following steps:
[0147] S511, calculating the slope of a line connecting any two points on the contour curve of the contact rail after compensation correction, and determining an inflection point based on a change in the slope;
[0148] S512, extracting the coordinates of the center point as the coordinates of the rail bottom feature point according to the distance between the inflection point and the center point of the bottom of the contact rail;
[0149] S513, after performing denoising processing on the contour curve of the running rail after compensation correction, a horizontal line is drawn at the highest point of the curve;
[0150] S514: After the horizontal line is moved down a set distance, the intersection point with the contour curve of the running rail is taken as a rail top feature point, and the coordinates of the rail top feature point are extracted.
[0151] It should be noted that the characteristic point of the contact rail contour curve is the center point of the bottom of the rail. The contour curve of the contact rail has an inflection point where the curvature changes significantly at the edge of the contact rail. The slope of the line connecting the two points can be compared with the slope of the straight line as the basis for judging the inflection point, and then the coordinates of the center point are extracted by calculating the distance between the center point and the inflection point.
[0152] After removing noise points according to the corrected contour, the y value of the highest point is obtained, and a horizontal line is drawn from this point, which is moved down 16 mm. The intersection of the horizontal line and the contour is the characteristic point of the contour curve of the running rail.
[0153] In one embodiment, before the step S10: during the movement of the detection vehicle, respectively collecting the profile curve of the contact rail using the first laser profiler and collecting the profile curve of the running rail on the same side of the contact rail using the second laser profiler, the method further comprises the following steps:
[0154] S1. Calibrate the first laser profiler and the second laser profiler to determine a static calibration angle of the first laser profiler and a static calibration angle of the second laser profiler.
[0155] In one embodiment, if Figures 4 to 5 As shown, the step S1: calibrating the first laser profiler and the second laser profiler to determine the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler specifically includes the following steps:
[0156] S101, when the inspection vehicle is in a stationary state, using the first laser profiler to collect the contour straight line of the vertical panel, and using the second laser profiler to collect the contour curve of the running rail, wherein the vertical panel is placed beside the contact rail;
[0157] S102, performing segmentation processing on the contour curve of the running rail collected in a static state, and dividing the contour curve of the running rail into a rail top section and a rail waist and rail bottom section;
[0158] It should be noted that the process of dividing the contour curve is the same as the above step S20, which will not be repeated here.
[0159] S103, calculating a static calibration angle of the second laser profiler based on the rail top segment;
[0160] S104, fitting the contour straight line of the vertical panel to obtain a straight line slope, and converting the straight line slope into a static calibration angle of the first laser profiler.
[0161] It should be noted that, in this embodiment, a vertical panel is arranged next to the contact rail, and the position of the vertical panel is close to the position of the contact rail. The first laser profiler is used to collect the contour of the vertical panel as a straight line, and the slope of the straight line is fitted using the least squares method. The slope is then converted into an angle, which is the static calibration angle of the first laser profiler.
[0162] In this embodiment, the installation angle of the laser profiler is not a pre-fixed value, but is calibrated and measured later to reduce calculation errors in dynamic state.
[0163] In one embodiment, the step S103: calculating the static calibration angle of the second laser profiler based on the rail top segment specifically includes the following steps:
[0164] S131, approximating and extracting rail top feature points of the rail top segment by calculating edge points and polygons;
[0165] Specifically, after the contour curve of the running rail is segmented, the top segment of the rail is taken, and the edge point is calculated according to the position relationship. The edge point feature is that the coordinate x value is the largest and the y value is the smallest within this range, x is horizontal, and y is vertical; then the Douglas-Peucker polygon approximation algorithm (threshold ε=0.6) is used, firstly, a straight line AB is connected between the first and last points A and B of the contour curve to obtain the point C on the curve with the largest distance from the straight line, and its distance d from AB is calculated, and the size of d and ε is compared. If the distance is greater than the threshold, then the current contour is divided into two segments at point C, and then the above process is repeated until all the line segments meet the maximum distance constraint (d<ε). Finally, the longest line segment, that is, the straight line part of the rail contour curve, is found, and the endpoint coordinates on both sides of the straight line are taken as the rail top feature points; finally, the edge points and the rail top feature points calculated by polygonal approximation are used as starting feature points to construct a point cloud set.
[0166] S132, setting a distance threshold, taking the rail top feature point and the edge point as a reference, using a nearest point algorithm to calculate the position of the rail top feature point, and constructing a point cloud set Q;
[0167] Specifically, the steps to construct the point cloud set Q are:
[0168] (1) Sort the contour points of the entire contour curve from small to large in the x direction;
[0169] (2) Determine the coordinates and position of the rail top feature point, taking the rail top feature point as the starting point and recording it as q1;
[0170] (3) Traverse the entire contour in both the forward and backward directions according to q1;
[0171] (4) Search backward for the closest point 3 mm from point q1, record it as q2, and continue searching backward from q2 to obtain the closest point q3 3 mm from point q1. The same goes for searching forward.
[0172] (5) Until the entire contour traversal is completed or another rail top feature point is encountered, the rail top feature point is taken as the starting point;
[0173] (6) Collect all points q1, q2, q3, ..., and obtain the point cloud set Q under the contour.
[0174] It should be noted that this embodiment uses the extracted rail top feature points as a reference, and takes points at intervals of 3 mm to obtain a point cloud set Q in this state. The number of point clouds obtained by the 3 mm threshold will be relatively sparse, which makes the subsequent calculation speed fast.
[0175] S133, based on the point cloud set Q, searching for corresponding coordinate points in the two-dimensional point cloud set corresponding to the standard contour curve to form a point cloud set P;
[0176] It should be noted that the standard profile curve here refers to the profile curve of 60 rails under the national standard, such as Figure 3 As shown, the standard profile curve has the center of the rail bottom as the origin, the right side is the positive x direction, and the top is the two-dimensional profile of the positive y direction.
[0177] In this embodiment, by searching for the corresponding rail top feature point in the standard contour, the feature points of the standard contour and the measured contour are aligned, so that a large amount of calculation time can be saved in the next step of the ICP algorithm.
[0178] S134. Based on the point cloud set Q and the point cloud set P, an iterative alignment is performed using a matching algorithm to obtain a static calibration angle of the second laser profiler.
[0179] In one embodiment, the step S134: performing iterative registration using a matching algorithm based on the point cloud set Q and the point cloud set P to obtain a static calibration angle of the second laser profiler specifically includes the following steps:
[0180] After normalizing the point cloud set Q and the point cloud set P, searching for corresponding point pairs in the point cloud set Q and the point cloud set P;
[0181] According to the corresponding point pairs, calculate the transformation matrix and translation vector:
[0182]
[0183] T=PQ*R
[0184] Where: is the x-axis coordinate of the i-th point in the point cloud set P, is the y-axis coordinate of the i-th point in the point cloud set P, is the x-axis coordinate of the i-th point in the point cloud set Q, is the y-axis coordinate of the i-th point in the point cloud set Q;
[0185] Updating point cloud data using the transformation matrix and the translation vector;
[0186] When the iteration loss is less than a set threshold or reaches a maximum number of iterations, a static calibration angle of the second laser profiler is obtained.
[0187] It should be noted that the iteration loss in this embodiment is the sum of the distances between corresponding point pairs (closest points).
[0188] It should be understood that the calculation process of the tilt compensation angle θ is similar to this.
[0189] In one embodiment, after the step S1: calibrating the first laser profiler and the second laser profiler to determine a static calibration angle of the first laser profiler and a static calibration angle of the second laser profiler, the method further includes:
[0190] S2: Calculate the horizontal distance and the vertical distance between the two laser profilers based on the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler.
[0191] In one embodiment, if Figure 6 to Figure 7 As shown, the step S2: calculating the horizontal distance and the vertical distance between the two laser profilers based on the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler, comprises the following steps:
[0192] S201, placing the inspection vehicle on a standard rail surface at rest, and using an instrument to measure the height guide value b and the pull-out value a in this state;
[0193] It should be noted that the instrument used here is a track ruler specially used to measure contact rails in subways.
[0194] S202, collecting a profile curve of the contact rail and a profile curve of the running rail using the first laser profiler and the second laser profiler respectively;
[0195] S203, based on the static calibration angle of the first laser profiler, converting the profile curve of the contact rail into first two-dimensional coordinate system data with the emission point of the first laser profiler as the origin and the direction perpendicular to the rail surface as the y-axis;
[0196] S204, based on the static calibration angle of the second laser profiler, converting the profile curve of the running rail into second two-dimensional coordinate system data with the emission point of the second laser profiler as the origin and the direction perpendicular to the rail surface as the y-axis;
[0197] S205, based on the guide height value b and the pull-out value a, searching for coordinates of corresponding feature points in the first two-dimensional coordinate system data and the second two-dimensional coordinate system data respectively;
[0198] S206. Calculate the horizontal distance L0 and the vertical distance H0 between the two laser profilers based on the coordinates of the corresponding feature points:
[0199] L0=a-x'+x
[0200] H0=y+y'-b
[0201] Wherein: x, y are the coordinates of the feature point found from the first two-dimensional coordinate system data; x', y' are the coordinates of the feature point found from the second two-dimensional coordinate system data.
[0202] It should be noted that since the laser profiler emission point is inside the device, the horizontal distance and vertical distance between the two laser profilers cannot be directly obtained by measuring instruments. This embodiment can accurately obtain the horizontal distance and vertical distance between the two laser profilers by calculating the collected data.
[0203] The dynamic compensation method proposed in this embodiment only involves the matrix transformation of the two-dimensional point cloud and the search and calculation of the relevant coordinate points, and performs real-time compensation and correction on the contact rail detection data when solving the vibration of the vehicle body. The final result is not only highly accurate but also extremely real-time. The working speed of the detection vehicle can reach 15km / h, the dynamic compensation accuracy is controlled within 3mm, and 100 frames per second can be processed in real time, thereby meeting the detection accuracy and speed of the contact rail geometric parameters.
[0204] In addition, if Figure 8 As shown, the second embodiment of the present invention proposes a dynamic compensation system for contact rail detection data when the vehicle body vibrates, the system comprising: a first laser profiler 10, a second laser profiler 20 and a data processing device 30, the first laser profiler 10 and the second laser profiler 20 are installed on the same side of the detection vehicle, the first laser profiler 10 and the second laser profiler 20 are respectively used to collect the profile curve of the contact rail and the profile curve of the running rail on the same side as the contact rail;
[0205] The first laser profiler 10 and the second laser profiler 20 are both connected to the data processing device 30, and the data processing device 30 includes:
[0206] A segmentation module 31, used for segmenting the contour curve of the running rail, dividing the contour of the running rail into a rail top section and a rail waist and rail bottom section;
[0207] A tilt compensation angle calculation module 32, used to calculate the tilt compensation angle based on the rail waist and rail bottom section and the standard profile curve;
[0208] A compensation correction module 33, configured to perform compensation correction on the profile curve of the contact rail, the profile curve of the running rail, and the horizontal distance and the vertical distance between the two laser profilers based on the tilt compensation angle, the static calibration angle of the first laser profiler, and the static calibration angle of the second laser profiler;
[0209] The parameter calculation module 34 is used to calculate the pull-out value and the guide height value after dynamic compensation based on the compensated and corrected contour curve of the contact rail, the compensated and corrected contour curve of the running rail, and the compensated and corrected horizontal distance and vertical distance between the two laser profilers.
[0210] This embodiment obtains the tilt compensation angle by aligning the running rail profile on the same side of the contact rail with the standard profile, and uses the tilt compensation angle to compensate and correct the profile of the contact rail, the profile of the running rail, and the horizontal and vertical distances between the two laser profilers, and performs data compensation for the deviation that may be caused by the vibration of the vehicle body during dynamic operation, thereby calculating the pull-out value and the guide height value after dynamic compensation; this solution not only compensates for the displacement in the horizontal and vertical directions, but also compensates for the angle, so that the compensation result of the contact rail detection data is more accurate, and the measurement error under dynamic operation is within 3mm.
[0211] In one embodiment, the tilt compensation angle calculation module 32 includes:
[0212] A feature point extraction unit is used to extract two feature point sets of the rail waist and rail bottom sections and two feature point sets of the standard contour curve respectively according to the first circle radius range and the second circle radius range;
[0213] A fitting unit is used to fit the two sets of characteristic points of the waist rail bottom section respectively to determine a set of circle center positions A1 and B1, and to fit the two sets of characteristic points of the standard contour curve respectively to determine a set of circle center positions A2 and B2;
[0214] The angle calculation unit is used to iteratively align the two sets of circle center positions using a matching algorithm to calculate the tilt compensation angle θ.
[0215] In one embodiment, the compensation correction module 33 includes:
[0216] A first static calibration angle calculation unit, used for correcting the real-time angle of the contact rail to: β1=α1+θ according to the tilt compensation angle and the static calibration angle of the first laser profiler, θ is the tilt compensation angle, and α1 is the static calibration angle of the first laser profiler;
[0217] A second static calibration angle calculation unit, used for correcting the real-time angle of the running rail to: β2=θ+α2 according to the tilt compensation angle and the static calibration angle of the second laser profiler, where α2 is the static calibration angle of the second laser profiler;
[0218] It should be noted that the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler are respectively obtained by pre-calibration when the vehicle is stationary.
[0219] A compensation correction unit, used to perform compensation correction on the contour curve of the running rail and the contour curve of the contact rail based on the angles β2 and β1, respectively, to obtain the contour curve of the running rail and the contour curve of the contact rail after compensation correction;
[0220] It should be noted that, in the process of correcting the profile data of the contact rail and the running rail, the profile curve of the original running rail and the profile curve of the contact rail are multiplied by their respective rotation matrices R2 and R1, respectively, to obtain the profile curve of the running rail after compensation correction and the profile curve of the contact rail after compensation correction as follows:
[0221]
[0222] A distance compensation correction unit is used to compensate and correct the horizontal distance L0 and the vertical distance H0 between the first laser profiler and the second laser profiler based on the tilt compensation angle as follows:
[0223] L=S*cosα',H=S*sinα'
[0224] Where: S is the straight-line distance between the first laser profiler and the second laser profiler, S 2 =L0 2 +H0 2 ; α'=α-θ, α is the angle between the straight line between the first laser profiler and the second laser profiler and the horizontal straight line.
[0225] In one embodiment, the parameter calculation module 34 includes:
[0226] A feature point coordinate calculation unit, used to extract the feature point coordinates of the conductor height pull-out value according to the contour curve of the contact rail after compensation correction and the contour curve of the running rail after compensation correction;
[0227] The pull-out height value calculation unit is used to calculate the pull-out value a' and the height value b' after dynamic compensation according to the coordinates of the characteristic points of the height pull-out value and the horizontal distance and vertical distance between the two laser profilers after compensation correction:
[0228] a'=L+x' t -x t
[0229] b'=y t +y' t -H
[0230] Where: x t ,y t x' is the coordinate of the feature point extracted from the contour curve of the running rail; t, y' t are the coordinates of the feature points extracted from the profile curve of the contact rail; L is the horizontal distance between the two laser profilers after compensation correction; and H is the vertical distance between the two laser profilers after compensation correction.
[0231] In one embodiment, the feature point coordinate calculation unit is specifically configured to perform the following steps:
[0232] Calculating the slope of a line connecting any two points on the profile curve of the contact rail after compensation correction, and determining an inflection point based on a change in the slope;
[0233] According to the distance between the inflection point and the center point of the bottom of the contact rail, the coordinates of the center point are extracted as the coordinates of the rail bottom feature point;
[0234] After performing denoising on the contour curve of the running rail after compensation correction, a horizontal line is drawn at the highest point of the curve;
[0235] After the horizontal line is moved down a set distance, the intersection point with the contour curve of the running rail is taken as the rail top feature point, and the coordinates of the rail top feature point are extracted.
[0236] In one embodiment, the data processing device 30 further includes an angle calibration module, which is used to calibrate the first laser profiler and the second laser profiler to determine a static calibration angle of the first laser profiler and a static calibration angle of the second laser profiler.
[0237] The angle calibration module specifically includes:
[0238] A static profile acquisition unit, used for acquiring a straight line profile of a vertical panel using the first laser profiler and acquiring a curve profile of the running rail using the second laser profiler when the inspection vehicle is in a stationary state, wherein the vertical panel is placed beside the contact rail;
[0239] A segmentation unit, used for segmenting the contour curve of the running rail collected in a static state, and dividing the contour curve of the running rail into a rail top section and a rail waist and rail bottom section;
[0240] It should be noted that the process of dividing the contour curve is the same as the above step S20, which will not be repeated here.
[0241] a first calibration unit, configured to calculate a static calibration angle of the second laser profiler based on the rail top segment;
[0242] The second calibration unit is used to fit the contour straight line of the vertical panel to obtain the straight line slope, and convert the straight line slope into a static calibration angle of the first laser profiler.
[0243] In one embodiment, the data processing device 30 further includes a distance calibration module for calculating the horizontal distance and the vertical distance between the two laser profilers based on the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler.
[0244] Specifically, the distance calibration module includes:
[0245] A measuring unit, used to place the inspection vehicle statically on a standard rail surface, and use an instrument to measure the height conduction value b and the pull-out value a in this state;
[0246] A profile acquisition unit, used for acquiring a profile curve of the contact rail and a profile curve of the running rail using the first laser profiler and the second laser profiler respectively;
[0247] A first conversion unit, configured to convert the profile curve of the contact rail into first two-dimensional coordinate system data with the emission point of the first laser profiler as the origin and the direction perpendicular to the rail surface as the y-axis based on the static calibration angle of the first laser profiler;
[0248] A second conversion unit is used to convert the profile curve of the running rail into a second two-dimensional coordinate system data with the emission point of the second laser profiler as the origin and the direction perpendicular to the rail surface as the y-axis based on the static calibration angle of the second laser profiler;
[0249] A search unit, used for searching the coordinates of the corresponding feature points in the first two-dimensional coordinate system data and the second two-dimensional coordinate system data respectively based on the guide height value b and the pull-out value a;
[0250] The distance calculation unit is used to calculate the horizontal distance L0 and the vertical distance H0 between the two laser profilers based on the coordinates of the corresponding feature points:
[0251] L0=a-x'+x
[0252] H0=y+y'-b
[0253] Wherein: x, y are the coordinates of the feature point found from the first two-dimensional coordinate system data; x', y' are the coordinates of the feature point found from the second two-dimensional coordinate system data.
[0254] In one embodiment, if Fig. 9 As shown, the first laser profiler 10 and the second laser profiler 20 are installed on a rigid mechanical structure 40 , and the rigid mechanical structure 40 is connected to a double-track rail ultrasonic flaw detector 50 .
[0255] It should be noted that the rigid mechanical structure 40 is an aluminum profile splicing structure with a light overall weight. The two laser profilers installed on the rigid mechanical structure can maintain a consistent vibration frequency, are easy to install, have a simple structure, and can flexibly adjust the position of the equipment and can be interchanged left and right.
[0256] In this embodiment, a laser profiler is combined with a double-track ultrasonic flaw detector to realize ultrasonic detection of the rails and detection of the positional relationship of the contact rail relative to the rails. The sampling interval is small, reaching about 40 mm per 20 km / h, which can realize high-speed measurement of the position of the contact rail relative to the rails. Due to the particularity of railway safety requirements, special requirements must be met for devices that can travel on rails with power, and the double-track rail ultrasonic flaw detector meets these requirements and is allowed to use its own power to travel on the railway.
[0257] It should be noted that other embodiments or implementation methods of the dynamic compensation system for contact rail detection data when the vehicle body vibrates according to the present invention can refer to the above-mentioned method embodiments, which will not be repeated here.
[0258] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0259] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0260] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0261] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0262] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for dynamic compensation of contact rail detection data when a vehicle body vibrates, characterized in that: A first laser profiler and a second laser profiler are installed on the same side of the inspection vehicle, and the method comprises: During the movement of the detection vehicle, the first laser profiler is used to collect the profile curve of the contact rail, and the second laser profiler is used to collect the profile curve of the running rail on the same side as the contact rail; Performing segmentation processing on the contour curve of the running rail, dividing the contour of the running rail into a rail top section and a rail waist and rail bottom section; Calculating a tilt compensation angle based on the rail waist and rail bottom sections and a standard profile curve; Based on the tilt compensation angle, the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler, the profile curve of the contact rail, the profile curve of the running rail and the horizontal distance and vertical distance between the two laser profilers are compensated and corrected, including: according to the tilt compensation angle and the static calibration angle of the first laser profiler, the real-time angle of the contact rail is corrected to: β1=α1+θ, θ is the tilt compensation angle, α1 is the static calibration angle of the first laser profiler; according to the tilt compensation angle and the static calibration angle of the second laser profiler, the real-time angle of the running rail is corrected to: β2=θ+α2, α2 is the static calibration angle of the second laser profiler; based on the angles β1 and β2, the profile curve of the running rail and the profile curve of the contact rail are compensated and corrected respectively to obtain the profile curve of the running rail and the profile curve of the contact rail after compensation and correction; based on the tilt compensation angle, the horizontal distance L0 and the vertical distance H0 between the first laser profiler and the second laser profiler are compensated and corrected; Based on the compensated and corrected contour curve of the contact rail, the compensated and corrected contour curve of the running rail, and the compensated and corrected horizontal distance and vertical distance between the two laser profilers, the pull-out value and the guide height value after dynamic compensation are calculated.
2. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 1, characterized in that: The step of segmenting the contour curve of the running rail to divide the contour of the running rail into a rail top section and a rail waist and rail bottom section includes: For each point on the contour curve of the running rail, the distance between other points and the current point is calculated. If the current point is taken as the origin, the first set value is the circle radius. If there is only one point within the circle radius, the point is a noise point and is removed. When the distances between two adjacent points within a range are all less than a second set value, all points within the range are divided into the same curve segment, so as to divide the contour of the running rail into a rail top segment, a rail waist segment and a rail bottom segment.
3. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 1, characterized in that: The calculating of the tilt compensation angle based on the rail waist and rail bottom sections and the standard profile curve comprises: According to the first circle radius range and the second circle radius range, two feature point sets of the rail waist and rail bottom sections and two feature point sets of the standard contour curve are respectively extracted; Fitting the two characteristic point sets of the waist rail bottom section respectively to determine a group of circle center positions A1 and B1, and fitting the two characteristic point sets of the standard contour curve respectively to determine a group of circle center positions A2 and B2; The two sets of circle center positions are iteratively aligned using a matching algorithm to calculate the tilt compensation angle θ.
4. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 1, characterized in that: Based on the tilt compensation angle, the horizontal distance L0 and the vertical distance H0 between the first laser profiler and the second laser profiler are compensated and corrected as follows: L=S*cosα',H=S*sinα' Where: S is the straight-line distance between the first laser profiler and the second laser profiler, S 2 =L0 2 +H0 2 ; α'=α-θ, α is the angle between the straight line between the first laser profiler and the second laser profiler and the horizontal straight line.
5. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 1, characterized in that: The calculation of the pull-out value and the guide height value after dynamic compensation based on the profile curve of the contact rail after compensation correction, the profile curve of the running rail after compensation correction, and the horizontal distance and vertical distance between the two laser profilers after compensation correction includes: Extracting the coordinates of the characteristic points of the guide rail height pull-out value according to the contour curve of the contact rail after compensation correction and the contour curve of the running rail after compensation correction; According to the coordinates of the characteristic points of the guide height pull-out value and the horizontal distance and vertical distance between the two laser profilers after compensation correction, the pull-out value a' and the guide height value b' after dynamic compensation are calculated as follows: a’=L+x’ t -x t b’=y t +y’ t -H Where: x t ,y t x' is the coordinate of the feature point extracted from the contour curve of the running rail; t , y' t are the coordinates of the feature points extracted from the profile curve of the contact rail; L is the horizontal distance between the two laser profilers after compensation correction; and H is the vertical distance between the two laser profilers after compensation correction.
6. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 5, characterized in that: The step of extracting the coordinates of the feature points of the conductor height pull-out value according to the compensated and corrected contour curve of the contact rail and the compensated and corrected contour curve of the running rail comprises: Calculating the slope of a line connecting any two points on the profile curve of the contact rail after compensation correction, and determining an inflection point based on a change in the slope; According to the distance between the inflection point and the center point of the bottom of the contact rail, the coordinates of the center point are extracted as the coordinates of the rail bottom feature point; After performing denoising on the contour curve of the running rail after compensation correction, a horizontal line is drawn at the highest point of the curve; After the horizontal line is moved down a set distance, the intersection point with the contour curve of the running rail is taken as the rail top feature point, and the coordinates of the rail top feature point are extracted.
7. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 1, characterized in that: During the movement of the detection vehicle, before respectively using the first laser profiler to collect the profile curve of the contact rail and using the second laser profiler to collect the profile curve of the running rail on the same side as the contact rail, the method further includes: The first laser profiler and the second laser profiler are calibrated to determine a static calibration angle of the first laser profiler and a static calibration angle of the second laser profiler.
8. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 7, characterized in that: The calibrating the first laser profiler and the second laser profiler to determine a static calibration angle of the first laser profiler and a static calibration angle of the second laser profiler includes: When the inspection vehicle is in a stationary state, the first laser profiler is used to collect the contour straight line of the vertical panel, and the second laser profiler is used to collect the contour curve of the running rail, wherein the vertical panel is placed beside the contact rail; Performing segmentation processing on the contour curve of the running rail collected in a static state, dividing the contour curve of the running rail into a rail top section and a rail waist and rail bottom section; calculating a static calibration angle of the second laser profiler based on the rail top segment; The contour straight line of the vertical panel is fitted to obtain a straight line slope, and the straight line slope is converted into a static calibration angle of the first laser profiler.
9. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 8, characterized in that: The step of calculating the static calibration angle of the second laser profiler based on the rail top segment comprises: By calculating edge points and polygons, approximating and extracting rail top feature points of the rail top section; A distance threshold is set, and the position of the rail top feature point is calculated using the nearest point algorithm based on the rail top feature point and the edge point, so as to construct a point cloud set Q; Based on the point cloud set Q, searching for corresponding coordinate points in the two-dimensional point cloud set corresponding to the standard contour curve to form a point cloud set P; Based on the point cloud set Q and the point cloud set P, a matching algorithm is used to perform iterative alignment to obtain a static calibration angle of the second laser profiler.
10. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 9, characterized in that: The step of iteratively registering the point cloud set Q and the point cloud set P using a matching algorithm to obtain a static calibration angle of the second laser profiler includes: After normalizing the point cloud set Q and the point cloud set P, searching for corresponding point pairs in the point cloud set Q and the point cloud set P; According to the corresponding point pairs, calculate the transformation matrix and translation vector: T=PQ*R Where: is the x-axis coordinate of the i-th point in the point cloud set P, is the y-axis coordinate of the i-th point in the point cloud set P, is the x-axis coordinate of the i-th point in the point cloud set Q, is the y-axis coordinate of the i-th point in the point cloud set Q; Updating point cloud data using the transformation matrix and the translation vector; When the iteration loss is less than a set threshold or reaches a maximum number of iterations, a static calibration angle of the second laser profiler is obtained.
11. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 7, characterized in that: After calibrating the first laser profiler and the second laser profiler to determine a static calibration angle of the first laser profiler and a static calibration angle of the second laser profiler, the method further includes: Based on the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler, a horizontal distance and a vertical distance between the two laser profilers are calculated.
12. The method for dynamic compensation of contact rail detection data when the vehicle body vibrates as claimed in claim 11, characterized in that: The calculating the horizontal distance and the vertical distance between the two laser profilers based on the static calibration angle of the first laser profiler and the static calibration angle of the second laser profiler includes: The inspection vehicle is placed statically on a standard rail surface, and an instrument is used to measure the height conduction value b and the pull-out value a in this state; respectively collecting a profile curve of the contact rail and a profile curve of the running rail using the first laser profiler and the second laser profiler; Based on the static calibration angle of the first laser profiler, the profile curve of the contact rail is converted into first two-dimensional coordinate system data with the emission point of the first laser profiler as the origin and the direction perpendicular to the rail surface as the y-axis; Based on the static calibration angle of the second laser profiler, the profile curve of the running rail is converted into data of a second two-dimensional coordinate system with the emission point of the second laser profiler as the origin and the direction perpendicular to the rail surface as the y-axis; Based on the guide height value b and the pull-out value a, respectively searching for coordinates of corresponding feature points in the first two-dimensional coordinate system data and the second two-dimensional coordinate system data; Based on the coordinates of the corresponding feature points, the horizontal distance L0 and the vertical distance H0 between the two laser profilers are calculated: L0=a-x'+x H0=y+y'-b Wherein: x, y are the coordinates of the feature point found from the first two-dimensional coordinate system data; x', y' are the coordinates of the feature point found from the second two-dimensional coordinate system data.
13. A dynamic compensation system for contact rail detection data when a vehicle body vibrates, characterized in that: The system comprises: a first laser profiler, a second laser profiler and a data processing device, wherein the first laser profiler and the second laser profiler are installed on the same side of the inspection vehicle, and the first laser profiler and the second laser profiler are used to collect the profile curve of the contact rail and the profile curve of the running rail on the same side as the contact rail respectively; The first laser profiler and the second laser profiler are both connected to the data processing device, and the data processing device includes: A segmentation module, used for segmenting the contour curve of the running rail, dividing the contour of the running rail into a rail top section and a rail waist and rail bottom section; A tilt compensation angle calculation module, used to calculate the tilt compensation angle based on the rail waist and rail bottom section and the standard profile curve; A compensation correction module is used to compensate and correct the profile curve of the contact rail, the profile curve of the running rail, and the horizontal distance and vertical distance between the two laser profilers based on the tilt compensation angle, the static calibration angle of the first laser profiler, and the static calibration angle of the second laser profiler, including: according to the tilt compensation angle and the static calibration angle of the first laser profiler, the real-time angle of the contact rail is corrected to: β1=α1+θ, θ is the tilt compensation angle, α1 is the static calibration angle of the first laser profiler; according to the tilt compensation angle Angle and the static calibration angle of the second laser profiler, the real-time angle of the running rail is corrected to: β2=θ+α2, α2 is the static calibration angle of the second laser profiler; based on the angles β1 and β2, the contour curve of the running rail and the contour curve of the contact rail are compensated and corrected respectively to obtain the contour curve of the running rail after compensation and the contour curve of the contact rail after compensation and correction; based on the tilt compensation angle, the horizontal distance L0 and the vertical distance H0 between the first laser profiler and the second laser profiler are compensated and corrected; The parameter calculation module is used to calculate the pull-out value and the guide height value after dynamic compensation based on the contour curve of the contact rail after compensation correction, the contour curve of the running rail after compensation correction, and the horizontal distance and vertical distance between the two laser profilers after compensation correction.
14. The dynamic compensation system for contact rail detection data when the vehicle body vibrates as claimed in claim 13, characterized in that: The first laser profiler and the second laser profiler are installed on a rigid mechanical structure, and the rigid mechanical structure is connected to a double-track rail ultrasonic flaw detector.
