Method and device for measuring absolute position of rail running vehicle
By arranging detection marks on the track and combining visual cameras and magnet detection sensors, the absolute position detection of rail-running vehicles is achieved, which solves the position measurement problems in the existing technology and provides an automated and intelligent control solution suitable for industrial sites.
Patent Information
- Application Number
- CN202410156766.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2024-09-13
AI Technical Summary
It is difficult to realize the absolute position detection of rail-running vehicles with existing technology, especially in the process of intelligent and digital transformation of industrial manufacturing. There is a lack of effective position measurement methods to support the automation and intelligent control of rail-running vehicles.
By arranging detection marks on the track, the vision camera is used to recognize the QR code image and the magnet detection sensor is combined to calculate the absolute position of the rail running vehicle, achieving non-contact and wear-free position measurement. The detection marks include magnets and QR code labels. The distance between the sensor and the mark meets a specific range to ensure detection accuracy.
It realizes the absolute position detection of rail running vehicles, the detection range is expandable, the sensor and the detection mark are non-contact, suitable for the harsh environment of industrial sites, and meets the needs of automation and intelligent control.
Smart Images

Figure CN118640781A
Abstract
Description
Technical Field
[0001] The present invention relates to an absolute position detection method and device, and in particular to an absolute position measurement method and device for a rail vehicle. Background Art
[0002] Rail vehicles are a common way of transporting materials in metallurgy, mining, mechanical processing and other fields. With the transformation and upgrading needs of industrial manufacturing towards intelligence and digitalization, the absolute position detection of rail vehicles is very important. The absolute position detection of rail vehicles allows manufacturing plants to perceive the current position of rail vehicles in real time, take corresponding control measures, and realize the automation and intelligence of the rail operation process. Summary of the invention
[0003] In order to solve the problems and needs existing in the background technology, the present invention proposes a method and device for measuring the absolute position of a rail vehicle.
[0004] The technical solution of the present invention is as follows:
[0005] 1. A method for measuring the absolute position of a rail vehicle
[0006] S1: Collect the absolute position of the magnet and the QR code label in each detection mark on the track, and the absolute position of the magnet and the corresponding QR code label form the mark information of each detection mark;
[0007] S2: After collecting the QR code image of the current detection mark by using the visual camera on the side of the track running vehicle and recognizing the QR code image, the absolute position of the magnet corresponding to the detection mark of the current QR code image is determined in combination with the mark information of each detection mark;
[0008] S3: using a magnet detection sensor on the track running vehicle side to obtain a magnet detection position;
[0009] S4: determining the absolute position of the rail vehicle according to the absolute position of the magnet and the magnet detection position;
[0010] S5: The track-running vehicle keeps running, and S2-S4 are repeated to continuously calculate the absolute position of the track-running vehicle.
[0011] In S1, the detection marks on the track are arranged in sequence along the track, and the distance Ln-1 between two adjacent detection marks satisfies [A, S], where A is the minimum distance between two detection marks that can be detected by the magnetic detection sensor at the same time, and S is the range of the magnetic detection sensor.
[0012] The detection mark includes a mounting base, a magnetic base, a magnet and a QR code label; the mounting base is fixedly mounted on the track, the magnetic base is fixedly mounted on the mounting base, a magnet is mounted in the magnetic base, and a QR code label is arranged on a side of the magnet close to the track-running vehicle.
[0013] The S4 is specifically:
[0014] When the magnet detection position is one, the relative position between the starting end of the magnet detection sensor and the magnet detection position is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle;
[0015] When there are two magnet detection positions, the relative position of the previous magnet detection position and the starting end of the magnet detection sensor is taken as the magnet relative position, or the relative position of the next magnet detection position and the starting end of the magnet detection sensor is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle.
[0016] 2. A device for measuring the absolute position of a rail vehicle
[0017] Absolute position measuring device for rail vehicles
[0018] It includes a detection mark, a two-dimensional code image recognition module, a magnet detection sensor and a position output module; each detection mark is arranged on the track in sequence and at intervals along the track, and the two-dimensional code image recognition module and the magnet detection sensor are fixedly installed on the side of the track vehicle; the two-dimensional code image recognition module collects and recognizes the two-dimensional code image, the magnet detection sensor collects the position of the magnet in the detection mark, and the position output module calculates the absolute position of the track vehicle according to the recognized two-dimensional code image and the position of the magnet in the collected detection mark.
[0019] The distance Ln-1 between two adjacent detection marks satisfies [A, S], where A is the minimum distance between two detection marks that can be detected by the magnetic detection sensor at the same time, and S is the range of the magnetic detection sensor.
[0020] The detection mark includes a mounting base, a magnetic base, a magnet and a QR code label; the mounting base is fixedly mounted on the track, the magnetic base is fixedly mounted on the mounting base, a magnet is mounted in the magnetic base, and a QR code label is arranged on a side of the magnet close to the track-running vehicle.
[0021] The two-dimensional code label is printed on the side of the magnet by laser engraving or printing.
[0022] When the magnet detection sensor collects only one magnet position, the relative position between the starting end of the magnet detection sensor and the magnet position is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle;
[0023] When there are two magnet detection positions, the relative position of the previous magnet position and the starting end of the magnet detection sensor is taken as the magnet relative position, or the relative position of the next magnet position and the starting end of the magnet detection sensor is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle.
[0024] The beneficial effects of the present invention are:
[0025] The present invention combines the non-contact position measurement of two-dimensional code label recognition and detection marks. By arranging the detection marks, the absolute position detection of rail vehicles can be realized. The detection range can be increased by adding detection marks, and is not limited by the sensor travel. During the detection process, the sensor and the detection mark are non-contact and wear-free, which can meet the use requirements of harsh environments in industrial sites. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is a schematic diagram of the absolute position measurement device for rail vehicles.
[0027] Figure 2 This is the overall schematic diagram of the detection mark.
[0028] Figure 3 Schematic diagram of the composition of the detection mark.
[0029] Figure 4 It is a schematic diagram of the relative motion between the sensor and the detection mark.
[0030] Figure 5 Detection schematic diagram when there are five detection marks.
[0031] Figure 6 The figure is a flow chart of the absolute position measurement method of a rail vehicle.
[0032] In the figure: 1. detection mark, 2. mounting base, 3-track, 4. track running vehicle, 5. sensor, 6. sensor clip, 7. clip fixing screw, 8. magnet base, 9. base fixing screw, 10. magnet, 11. QR code label, 12. base cover, 13. cover fixing screw. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the present invention, and thus to more clearly define the scope of the present invention, the present invention is described in detail with respect to some specific embodiments of the present invention. It should be noted that the following are only some specific implementation methods of the present invention, which are only part of the embodiments of the present invention, wherein the specific and direct description of the relevant structure is only for the convenience of understanding the present invention, and each specific feature does not naturally and directly limit the scope of implementation of the present invention. The conventional selection and replacement made by those skilled in the art under the guidance of the present invention, as well as the reasonable arrangement and combination of several technical features under the guidance of the present invention, should be regarded as within the scope of the present invention.
[0034] like Figure 6 As shown, a method for measuring the absolute position of a rail vehicle comprises the following steps:
[0035] S1: Collecting the absolute position of the magnet and the QR code label in each detection mark 1 on the track 3, the absolute position of the magnet and the corresponding QR code label form the mark information of each detection mark 1 and store it in the database;
[0036] In S1, the detection marks on the track 3 are arranged in sequence along the track 3, and the distance Ln-1 between two adjacent detection marks satisfies [A, S], where A is the minimum distance between two detection marks that can be detected by the magnetic detection sensor at the same time, S is the range of the magnetic detection sensor, and L = ∑Li (i = 1, 2...n-1). The number n of detection marks is related to the travel L of the track running vehicle and the range S of the sensor, and satisfies n≥L / S.
[0037] like Figure 1 , Figure 2 and Figure 3 As shown, the detection mark 1 includes a base fixing screw 9, a base cover plate 12, a cover plate fixing screw 13, a mounting base 2, a magnet base 8, a magnet 10 and a QR code label 11; the mounting base 2 is fixedly mounted on the track 3, the magnet base 8 is fixedly mounted on the mounting base 2 by the base fixing screw 9, the magnet 10 is installed in the magnet base 8, a magnet mounting cavity is provided in the magnet base 8, the magnet 10 is placed in the magnet mounting cavity, the base cover plate 12 is covered, so that the magnet 10 is stably placed in the magnet base 8, and the base cover plate 12 is fixedly connected to the magnet base 8 by the cover plate fixing screw 13. A QR code label 11 is provided on the side of the magnet 10 close to the track running vehicle 4.
[0038] A sensor 5 is fixedly mounted on the side of the rail vehicle 4 through a sensor clip 6 and a clip fixing screw 7. The sensor 5 includes a visual camera and a magnetic detection sensor. The magnetic detection sensor is a Hall detection module or a magnetostrictive detection module.
[0039] S2: After collecting the QR code image of the current detection mark 1 and recognizing the QR code image using the visual camera on the side of the rail vehicle 4, the absolute position of the magnet corresponding to the detection mark of the current QR code image is determined in combination with the mark information of each detection mark 1;
[0040] S3: using the magnet detection sensor on the side of the rail vehicle 4 to obtain the magnet detection position;
[0041] S4: determining the absolute position of the rail vehicle according to the absolute position of the magnet and the magnet detection position;
[0042] S4 is specifically:
[0043] When the magnet detection position is one, the relative position between the starting end of the magnet detection sensor and the magnet detection position is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle;
[0044] When there are two magnet detection positions, the relative position of the previous magnet detection position and the starting end of the magnet detection sensor is taken as the magnet relative position, or the relative position of the next magnet detection position and the starting end of the magnet detection sensor is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle.
[0045] S5: The rail-running vehicle 4 continues to run within the preset travel distance L, and S2-S4 are repeated to continuously calculate the absolute position of the rail-running vehicle 4.
[0046] The absolute position measuring device for a rail vehicle includes a detection mark, a two-dimensional code image recognition module, a magnet detection sensor and a position output module; each detection mark is arranged on the track 3 in sequence and at intervals along the track 3, and the two-dimensional code image recognition module and the magnet detection sensor are both fixedly installed on the side of the rail vehicle 4; the two-dimensional code image recognition module collects and recognizes the two-dimensional code image, and the magnet detection sensor collects the magnet position in the detection mark, and the recognition and detection are non-contact. The position output module calculates the absolute position of the rail vehicle according to the recognized two-dimensional code image and the position of the magnet in the collected detection mark.
[0047] The two-dimensional code label 11 is printed on the side of the magnet 10 by laser engraving or printing.
[0048] The QR code image recognition module includes a camera, an image recognition module and a data storage module. The QR code image recognition module recognizes the QR code label of the detection mark and saves it as a QR code label mark. The magnet absolute position detection module is a magnetic detection module, generally a Hall detection module or a magnetostrictive detection module. The position output module is a microcontroller and executes a control program for position measurement, generally a 51 single-chip microcomputer, or an ARM processor, or a DSP processor, or an FPGA processor, or a dedicated integrated circuit processor.
[0049] When the magnet detection sensor collects only one magnet position, the relative position between the starting end of the magnet detection sensor and the magnet position is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle;
[0050] When there are two magnet detection positions, the relative position of the previous magnet position and the starting end of the magnet detection sensor is taken as the magnet relative position, or the relative position of the next magnet position and the starting end of the magnet detection sensor is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle.
[0051] The workflow includes: system startup, first detection mark position detection, first detection mark QR code recognition, saving the absolute position of the first detection mark as P1, counting the starting position of the first detection mark as absolute position 0, that is, P1=0, establishing a correspondence table between the mark of the first detection mark QR code label and the starting position, that is, (f1, P1), maintaining the relative position detection of the first detection mark, and obtaining p1, the current absolute position is updated to the sum of the absolute position value of the first detection mark and the relative position value of the first detection mark, that is, l=P1+p1, until the second detection mark appears, stopping the first detection mark position detection, second detection mark QR code recognition, saving the current absolute position as the absolute position of the second detection mark, that is, P2=l, Establish a correspondence table between the mark of the second detection mark QR code label and the starting position, that is, (f2, P2), maintain the relative position detection of the second detection mark, and obtain p2, the current absolute position is updated to the sum of the absolute position value of the second detection mark and the relative position value of the second detection mark, that is, l=P2+p2, and successively establish a correspondence table between the absolute position and the starting position of the third to nth detection marks, that is, (f3, P3)...(fn, Pn), maintain the relative position detection of the third to nth detection marks, and obtain p3...pn, the current absolute position is updated to the sum of the absolute position value of the i-th (2<i≤n) detection mark and the relative position value of the i-th detection mark, that is, l=Pi+pi, and output the current absolute position l.
[0052] like Figure 4 and Figure 5 As shown, the detection schematic diagram of five detection marks. The five detection marks are composed of the first detection mark, the second detection mark, the third detection mark, the first detection mark, and the fifth detection mark. The distances between the detection marks are L1 = 1800mm, L2 = 600mm, L3 = 1500mm, and L4 = 800mm. The travel of the rail vehicle is L = L1 + L2 + L3 + L4 = 1800 + 600 + 1500 + 800 = 4700mm. The range of the sensor is S = 2000mm.
[0053] In this embodiment, the workflow includes: system startup, first detection mark position detection, first detection mark QR code recognition, saving the absolute position of the first detection mark as P1, counting the starting position of the first detection mark as absolute position 0, that is, P1=0, establishing a correspondence table between the mark of the first detection mark QR code label and the absolute position, that is, (f1,0), maintaining the relative position detection of the first detection mark, and obtaining p1, and updating the current absolute position to the sum of the absolute position value corresponding to the mark of the first detection mark QR code label and the relative position value of the first detection mark, that is, l=P1+p1= p1, until the second detection mark appears, stop the first detection mark position detection, the second detection mark QR code recognition, save the current absolute position as the starting position of the second detection mark, that is, P2=L1=1800mm, establish the correspondence table between the second detection mark QR code label mark and the absolute position, that is, (f2,1800), keep the relative position detection of the second detection mark, and get p2, the current absolute position is updated to the sum of the absolute position value corresponding to the mark of the second detection mark QR code label and the relative position value of the second detection mark, that is, l=P2+p2=1800+p2.
[0054] Until the third detection mark appears, stop the second detection mark position detection. The third detection mark QR code is recognized, and the current absolute position is saved as the absolute position of the third detection mark, that is, P3 = L1 + L2 = 1800 + 600 = 2400mm. A corresponding table between the mark of the third detection mark QR code label and the absolute position is established, that is, (f3, 2400). The relative position detection of the third detection mark is maintained, and p3 is obtained. The current absolute position is updated to the sum of the absolute position value corresponding to the mark of the third detection mark QR code label and the relative position value of the third detection mark, that is, l = P3 + p3 = 2400 + p3.
[0055] Until the fourth detection mark appears, stop the position detection of the third detection mark. The fourth detection mark QR code is recognized, and the current absolute position is saved as the absolute position of the fourth detection mark, that is, P4 = L1 + L2 + L3 = 1800 + 600 + 1500 = 3900 mm. A corresponding table between the mark of the fourth detection mark QR code label and the absolute position is established, that is, (f4, 3900). The relative position detection of the fourth detection mark is maintained, and p4 is obtained. The current absolute position is updated to the sum of the absolute position value corresponding to the mark of the fourth detection mark QR code label and the relative position value of the fourth detection mark, that is, l = P4 + p4 = 3900 + p4.
[0056] Until the fifth detection mark appears, stop the position detection of the fourth detection mark. Recognize the QR code of the fifth detection mark, save the current absolute position as the absolute position of the fifth detection mark, that is, P5 = L1 + L2 + L3 + L4 = 1800 + 600 + 1500 + 800 = 4700 mm, establish the correspondence table between the mark of the QR code label of the fifth detection mark and the absolute position, that is, (f5, 4700), keep the relative position detection of the fifth detection mark, and get p5, the current absolute position is updated to the sum of the absolute position value corresponding to the mark of the QR code label of the fifth detection mark and the relative position value of the fifth detection mark, that is, l = P5 + p5 = 4700 + p5.
[0057] Output the current absolute position l.
[0058] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for measuring the absolute position of a rail vehicle, characterized in that: The following steps are involved: S1: collecting the absolute position of the magnet and the QR code label in each detection mark (1) on the track, and the absolute position of the magnet and the corresponding QR code label form the mark information of each detection mark (1); S2: using a visual camera on the side of the rail vehicle (4) to collect the two-dimensional code image of the current detection mark (1) and recognize the two-dimensional code image, and then combining the mark information of each detection mark (1) to determine the absolute position of the magnet of the detection mark corresponding to the current two-dimensional code image; S3: using a magnet detection sensor on the side of the rail vehicle (4) to obtain a magnet detection position; S4: determining the absolute position of the rail vehicle according to the absolute position of the magnet and the magnet detection position; S5: The track-operated vehicle (4) keeps running, and S2-S4 are repeated to continuously calculate the absolute position of the track-operated vehicle (4).
2. A method for measuring the absolute position of a rail vehicle according to claim 1, characterized in that: In S1, the detection marks on the track are arranged in sequence along the track, and the distance Ln-1 between two adjacent detection marks satisfies [A, S], where A is the minimum distance between two detection marks that can be detected by the magnetic detection sensor at the same time, and S is the range of the magnetic detection sensor.
3. A method for measuring the absolute position of a rail vehicle according to claim 1, characterized in that: The detection mark (1) comprises a mounting base (2), a magnetic base (8), a magnet (10) and a two-dimensional code label (11); the mounting base (2) is fixedly mounted on the track (3), the magnetic base (8) is fixedly mounted on the mounting base (2), the magnet (10) is mounted in the magnetic base (8), and a two-dimensional code label (11) is arranged on a side of the magnet (10) close to the track-operated vehicle (4).
4. A method for measuring the absolute position of a rail vehicle according to claim 1, characterized in that: The S4 is specifically: When the magnet detection position is one, the relative position between the starting end of the magnet detection sensor and the magnet detection position is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle; When there are two magnet detection positions, the relative position of the previous magnet detection position and the starting end of the magnet detection sensor is taken as the magnet relative position, or the relative position of the next magnet detection position and the starting end of the magnet detection sensor is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle.
5. A device for measuring the absolute position of a rail vehicle, characterized in that: The invention comprises a detection mark, a two-dimensional code image recognition module, a magnet detection sensor and a position output module; each detection mark is arranged on the track in sequence and at intervals along the track, and the two-dimensional code image recognition module and the magnet detection sensor are fixedly installed on the side of a track-running vehicle (4); the two-dimensional code image recognition module collects and recognizes the two-dimensional code image, the magnet detection sensor collects the position of the magnet in the detection mark, and the position output module calculates and obtains the absolute position of the track-running vehicle according to the recognized two-dimensional code image and the position of the magnet in the collected detection mark.
6. The absolute position measuring device for a rail vehicle according to claim 5, characterized in that: The distance Ln-1 between two adjacent detection marks satisfies [A, S], where A is the minimum distance between two detection marks that can be detected by the magnetic detection sensor at the same time, and S is the range of the magnetic detection sensor.
7. The absolute position measuring device for a rail vehicle according to claim 5, characterized in that: The detection mark (1) comprises a mounting base (2), a magnetic base (8), a magnet (10) and a two-dimensional code label (11); the mounting base (2) is fixedly mounted on the track (3), the magnetic base (8) is fixedly mounted on the mounting base (2), the magnet (10) is mounted in the magnetic base (8), and a two-dimensional code label (11) is arranged on a side of the magnet (10) close to the track-operated vehicle (4).
8. The absolute position measuring device for a rail vehicle according to claim 7, characterized in that: The two-dimensional code label (11) is printed on the side of the magnet (10) by laser engraving or printing.
9. The absolute position measuring device for a rail vehicle according to claim 5, characterized in that: When the magnet detection sensor collects only one magnet position, the relative position between the starting end of the magnet detection sensor and the magnet position is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle; When there are two magnet detection positions, the relative position of the previous magnet position and the starting end of the magnet detection sensor is taken as the magnet relative position, or the relative position of the next magnet position and the starting end of the magnet detection sensor is taken as the magnet relative position, and the sum of the magnet relative position and the magnet absolute position is taken as the absolute position of the rail vehicle.
