A method and system for automatically tracking distribution line towers
By constructing the three-dimensional spatial coordinate system of the vehicle pole and calculating the movement angle data of the vehicle-mounted pan/tilt, automatic tracking of distribution line poles and towers is achieved, which solves the problems of heavy manual inspection workload, high cost, and low safety, and improves inspection efficiency. and security.
Patent Information
- Application Number
- CN202111183609.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-10-11
AI Technical Summary
Existing distribution line inspections rely on manual handheld devices, resulting in heavy workload, high labor costs and low safety.
The spatial relationship between vehicle poles is used to construct a three-dimensional coordinate system, and the vehicle-mounted pan/tilt automatically tracks distribution line poles and towers. The movement angle data is calculated based on the position of the inspection vehicle and control instructions are generated to realize automatic positioning and tracking of the vehicle-mounted pan/tilt.
It reduces the labor cost and workload of distribution line inspections, improves the safety index of inspections, and enables real-time positioning and tracking of poles and towers.
Smart Images

Figure CN113869265B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of power distribution line inspection, and in particular relates to a method and system for automatically tracking a power distribution line tower. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] At present, the layout and development of distribution lines are getting faster and faster, and the length of distribution lines is growing. Inspection of distribution lines is becoming more and more important. At present, the inspection of distribution line tower equipment is mainly carried out by manual handheld equipment inspection. It is necessary to get close to the tower and manually adjust the angle of the detection equipment to capture the tower. This mode has the disadvantages of large workload, high labor cost and low safety. Summary of the invention
[0004] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a method and system for automatic tracking of distribution line towers, which can achieve the purpose of automatic tracking of distribution line towers by a vehicle-mounted pan-tilt head based on the spatial relationship between the vehicle and the poles, thereby reducing the manpower cost and workload of distribution line inspection and increasing the safety index of distribution line inspection.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] A first aspect of the present invention provides a method for automatically tracking a distribution line tower, comprising:
[0007] Obtain the longitude and latitude coordinate information of the distribution line tower and the real-time longitude and latitude coordinate information of the inspection vehicle;
[0008] According to the positional relationship between the inspection vehicle and the distribution line tower, a three-dimensional space coordinate system of the vehicle and the tower is constructed;
[0009] According to the quadrant where the inspection vehicle is located, calculate the movement angle data of the vehicle-mounted pan / tilt tracking tower;
[0010] The vehicle-mounted pan-tilt head tracking motion angle data is converted into control instructions to guide the vehicle-mounted pan-tilt head to move automatically, so that the vehicle-mounted pan-tilt head can maintain positioning and tracking of the tower.
[0011] A second aspect of the present invention provides a distribution line tower automatic tracking system, comprising:
[0012] A latitude and longitude coordinate information acquisition module, which is used to obtain the latitude and longitude coordinate information of the distribution line tower and the real-time latitude and longitude coordinate information of the inspection vehicle;
[0013] A vehicle-pole three-dimensional spatial coordinate system construction module, which is used to construct a vehicle-pole three-dimensional spatial coordinate system according to the positional relationship between the inspection vehicle and the distribution line tower;
[0014] The pan-tilt tracking angle calculation module is used to calculate the movement angle data of the vehicle-mounted pan-tilt tracking the pole tower according to the quadrant where the inspection vehicle is located;
[0015] The control instruction generation module is used to convert the vehicle-mounted pan-tilt head tracking motion angle data into control instructions to guide the vehicle-mounted pan-tilt head to move automatically so that the vehicle-mounted pan-tilt head can maintain positioning and tracking of the pole tower.
[0016] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-mentioned method for automatic tracking of distribution line towers.
[0017] A fourth aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the automatic tracking method for distribution line towers as described above are implemented.
[0018] Compared with the prior art, the present invention has the following beneficial effects:
[0019] The present invention constructs a three-dimensional spatial model of a vehicle pole, proposes an automatic tracking method for distribution line pole towers, solves the problems of heavy workload, high labor cost and low safety of manual handheld equipment inspection, calculates the motion angle data of the vehicle-mounted pan / tilt tracking the pole tower according to the quadrant in which the inspection vehicle is located, converts the vehicle-mounted pan / tilt tracking motion angle data into control instructions to guide the automatic movement of the vehicle-mounted pan / tilt, realizes real-time tracking of the tower head of the distribution line pole tower, reduces the labor cost and workload of distribution line inspection, and increases the safety index of distribution line inspection.
[0020] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0022] Figure 1 is a flow chart of a method for automatically tracking a distribution line tower according to an embodiment of the present invention;
[0023] Figure 2 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt head when the pole tower of the embodiment of the present invention is located in the first quadrant and the vehicle travels in the north-west direction;
[0024] Figure 3 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt tracking when the pole tower of an embodiment of the present invention is located in the first quadrant, the vehicle travels in the direction of north-east, and the vehicle travels in the direction of left of the vehicle-to-pole line;
[0025] Figure 4 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt tracking when the pole tower of an embodiment of the present invention is located in the first quadrant, the vehicle travels in the direction of north-east, and the vehicle travels in the direction of the right side of the vehicle-to-pole line;
[0026] Figure 5 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt head when the pole tower of the embodiment of the present invention is located in the second quadrant and the vehicle travels in the north-east direction;
[0027] Figure 6 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt tracking when the pole tower of an embodiment of the present invention is located in the second quadrant, the vehicle travels in the direction of north-west, and the vehicle travels in the direction of the right side of the vehicle-to-pole line;
[0028] Figure 7 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt tracking when the pole tower of an embodiment of the present invention is located in the second quadrant, the vehicle travels in the direction of north-west, and the vehicle travels in the direction of the left side of the vehicle-to-pole line;
[0029] Figure 8 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt head when the pole tower of the embodiment of the present invention is located in the third quadrant and the vehicle travels in the north-east direction;
[0030] Fig. 9 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt tracking when the pole tower of an embodiment of the present invention is located in the third quadrant, the vehicle travels in the south-west direction, and the vehicle travels in the right direction of the vehicle-to-pole line;
[0031] Fig.10 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt tracking when the pole tower of an embodiment of the present invention is located in the third quadrant, the vehicle travels in the south-west direction, and the vehicle travels in the left direction of the vehicle-to-pole line;
[0032] Fig.11 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt head when the pole tower of the embodiment of the present invention is located in the third quadrant and the vehicle travels in the north-west direction;
[0033] Fig.12 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt head when the pole tower of the embodiment of the present invention is located in the fourth quadrant and the vehicle travels in the north-east direction;
[0034] Fig.13It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt tracking when the pole tower of an embodiment of the present invention is located in the fourth quadrant, the vehicle travels in the south-east direction, and the vehicle travels in the left direction of the vehicle-to-pole line;
[0035] Fig.14 It is a schematic diagram of calculating the horizontal tracking angle of the pan-tilt tracking when the pole tower of the embodiment of the present invention is located in the fourth quadrant, the vehicle travels in the south-east direction, and the vehicle travels in the right direction of the vehicle-to-pole line;
[0036] Fig.15 is a schematic diagram of a tower pitch tracking angle calculation method according to an embodiment of the present invention;
[0037] Fig.16 is a schematic diagram of horizontal tracking angle conversion according to an embodiment of the present invention;
[0038] Fig.17 is a schematic diagram of pitch tracking angle conversion according to an embodiment of the present invention;
[0039] Fig.18 It is a schematic diagram of the structure of the automatic tracking system for distribution line towers according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0041] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0042] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0043] Embodiment 1
[0044] like Figure 1 As shown, this embodiment provides a method for automatically tracking a distribution line tower, which specifically includes the following steps:
[0045] Step S101: Acquire the longitude and latitude coordinate information of the distribution line tower and the real-time longitude and latitude coordinate information of the inspection vehicle.
[0046] As a preferred implementation, the latitude and longitude coordinate information of the vehicle and the distribution line tower is accurate to centimeters. Centimeter-level positioning can improve the accuracy of angle calculation and tower tracking.
[0047] Use geographic information positioning equipment with centimeter-level accuracy to collect the longitude and latitude coordinate data of the distribution line towers, store the collected longitude and latitude coordinates of the towers, the lines they belong to, the tower numbers and other information into the system database, and build a coordinate library for the distribution line towers. At the same time, during the inspection process, the inspection control system (e.g., the positioning equipment mounted on the roof) collects the real-time longitude and latitude coordinate data of the inspection vehicle at a set frequency (e.g., 5 times / second).
[0048] It should be noted here that those skilled in the art may also select other acquisition frequencies according to actual conditions, but the acquisition frequency shall not be less than 2 times / second.
[0049] Step S102: constructing a vehicle-tower three-dimensional space coordinate system according to the positional relationship between the inspection vehicle and the distribution line tower.
[0050] In the specific implementation, the distribution line tower coordinates are used as the origin, longitude, latitude and altitude are used as the x-axis, y-axis and z-axis, and the inspection vehicle position point is used as the point in the coordinate system to construct a three-dimensional space coordinate system of the vehicle-tower.
[0051] Step S103: Calculate the movement angle data of the vehicle-mounted pan / tilt head tracking the pole tower according to the quadrant where the inspection vehicle is located.
[0052] Among them, the motion angle data of the vehicle-mounted gimbal tracking the tower includes the horizontal tracking angle and the pitch tracking angle.
[0053] Calculation of horizontal tracking angle: Based on the constructed three-dimensional space coordinate system, the inspection vehicle is divided into different quadrants of the coordinate system according to the position coordinates of the inspection vehicle relative to the tower, and the horizontal tracking angle of the tower is calculated in each quadrant. The specific algorithm is as follows:
[0054] According to the longitude and latitude coordinates of the tower (Lng 1 , Lat 1 ) and the latitude and longitude coordinates of the vehicle (Lng 2 , Lat 2 ) Calculate the straight-line distance L between the car and the pole, the calculation formula is as follows:
[0055] (1) radLat 1 = Lat 1 * Math.PI / 180.0
[0056] (2) radLat 2 = Lat 2 * Math.PI / 180.0
[0057] (3) Lng = (Lng 1 -Lng 2 )*Math.PI / 180.0
[0058] (4) Lat = (Lat 1 -Lat 2 )*Math.PI / 180.0
[0059] (5)L = (2 * Math.Asin(Math.Sqrt(Math.Pow(Math.Sin(Lng / 2),2)
[0060] +Math.Cos(radLat 1 )*Math.Cos(radLat 2 )* Math.Pow(Math.Sin(Lng / 2), 2))) )* Earth radius
[0061] Among them, Math.PI refers to the mathematical function, pi; Math.Asin is the mathematical trigonometric function, the inverse sine function; Math.Sqrt is the mathematical function, the square root; Math.Pow is the mathematical function, the power function; Math.Sin is the mathematical function, the sine function; Math.Lng is the calculation result of formula (3); Math.Cos is the mathematical function, the cosine function; Math.radLat 2 is the calculation result of formula (2).
[0062] Calculate the vertical distance Y_D between the vehicle position and the x-axis according to the latitude and longitude coordinates of the tower and the vehicle;
[0063] According to L and Y_D, the angle ∠β between the line connecting the vehicle and the pole and the north direction of the y-axis is calculated. The calculation formula is as follows:
[0064] ∠β = Math.ASin (Y_D / L ) * (180 / Math.PI )
[0065] According to the data of the vehicle-mounted dual positioning device, calculate the angle ∠α between the vehicle's driving direction and the north direction of the y-axis:
[0066] Depending on the quadrant the vehicle is located in, different formulas are used to calculate the rotation angle of the gimbal tracking. The detailed calculation rules are as follows: Figure 2-Figure 14 As shown. Figure 2-Figure 14 In the figure, X_D represents the vertical distance between the vehicle position and the tower.
[0067] Pitch tracking angle calculation: Based on the constructed three-dimensional space coordinate system, the pitch tracking angle data of the tower tracking is calculated according to the position coordinates of the inspection vehicle relative to the tower and the height data of the inspection equipment components and the tower head. The calculation method is as follows: Fig.15 As shown:
[0068] Calculate the straight-line distance L between the vehicle and the pole according to the latitude and longitude coordinates of the pole tower and the vehicle;
[0069] According to the tower head height H 1 Height H with vehicle inspection equipment 2 , the height difference h between the two is obtained, and the calculation formula is as follows:
[0070] h = H 1 – H 2
[0071] According to the height difference h and the straight-line distance L between the vehicle and the pole, the pitch tracking angle ∠γ of the gimbal is calculated using the following formula:
[0072] ∠γ = Math.Atan( h / L ) * (180 / Math.PI )
[0073] Step S104: converting the tracking motion angle data of the vehicle-mounted pan / tilt head into control instructions to guide the vehicle-mounted pan / tilt head to move automatically, so that the vehicle-mounted pan / tilt head can keep tracking the positioning of the pole tower.
[0074] In the specific implementation, the vehicle-mounted gimbal tracking motion angle data is converted into control instructions according to the PELCO-D protocol to guide the vehicle-mounted gimbal to automatically perform horizontal and pitch movements.
[0075] Horizontal tracking angle, looking from top to bottom, the command values corresponding to the gimbal rotating clockwise at each angle are as follows Fig.16 As shown: Pitch tracking angle, the corresponding angle relationship is as follows Fig.17 As shown, looking up controls the gimbal upwards, and looking down controls the gimbal downwards.
[0076] The converted angle data is converted into the corresponding hexadecimal control instruction according to the protocol format, and the instruction is sent to the detection pan-tilt table to control the pan-tilt table to move according to the specified angle. The format of the control instruction is:
[0077] Byte 1 is the start byte, byte 2 is the PTZ address, byte 3 is command word 1, byte 4 is command word 2, byte 5 is data 1, byte 6 is data 2, and byte 7 is the end byte.
[0078] Specifically, the control command format is shown in Table 1:
[0079] Table 1 Control command format
[0080]
[0081] Embodiment 2
[0082] like Fig.18 As shown, this embodiment provides a distribution line tower automatic tracking system, which includes:
[0083] A latitude and longitude coordinate information acquisition module, which is used to obtain the latitude and longitude coordinate information of the distribution line tower and the real-time latitude and longitude coordinate information of the inspection vehicle;
[0084] A vehicle-pole three-dimensional spatial coordinate system construction module, which is used to construct a vehicle-pole three-dimensional spatial coordinate system according to the positional relationship between the inspection vehicle and the distribution line tower;
[0085] The pan-tilt tracking angle calculation module is used to calculate the movement angle data of the vehicle-mounted pan-tilt tracking the pole tower according to the quadrant where the inspection vehicle is located;
[0086] The control instruction generation module is used to convert the vehicle-mounted pan-tilt head tracking motion angle data into control instructions to guide the vehicle-mounted pan-tilt head to move automatically so that the vehicle-mounted pan-tilt head can maintain positioning and tracking of the pole tower.
[0087] It should be noted that the modules of this embodiment correspond one-to-one to the steps in the first embodiment, and the specific implementation process is the same, which will not be repeated here.
[0088] Embodiment 3
[0089] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the automatic tracking method for distribution line towers as described above are implemented.
[0090] Embodiment 4
[0091] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the automatic tracking method for distribution line towers as described above are implemented.
[0092] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0093] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0094] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0095] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for automatically tracking a distribution line tower, characterized in that: include: Obtain the longitude and latitude coordinate information of the distribution line tower and the real-time longitude and latitude coordinate information of the inspection vehicle; According to the positional relationship between the inspection vehicle and the distribution line tower, a three-dimensional space coordinate system of the vehicle and the pole is constructed. The process is as follows: the coordinates of the distribution line tower are taken as the origin, the longitude, latitude and altitude are taken as the x-axis, y-axis and z-axis, and the inspection vehicle position point is taken as the point in the coordinate system to construct the three-dimensional space coordinate system of the vehicle and the pole; According to the quadrant where the inspection vehicle is located, the motion angle data of the vehicle-mounted pan / tilt tracking the pole tower is calculated; the motion angle data of the vehicle-mounted pan / tilt tracking the pole tower includes the horizontal tracking angle and the pitch tracking angle; the horizontal tracking angle calculation process is: based on the constructed three-dimensional space coordinate system, according to the position coordinates of the inspection vehicle relative to the pole tower, the inspection vehicle is divided into different quadrants of the coordinate system, and the horizontal tracking angle of the pole tower is calculated in each quadrant. The specific algorithm is as follows: The straight-line distance L between the vehicle and the pole is calculated based on the longitude and latitude coordinates of the pole tower (Lng1, Lat1) and the longitude and latitude coordinates of the inspection vehicle (Lng2, Lat2). The calculation formula is as follows: (1) radLat1= Lat1* Math.PI / 180.0; (2) radLat2= Lat2* Math.PI / 180.0; (3) Lng = (Lng1 - Lng2) * Math.PI / 180.0; (4)Lat = (Lat1 - Lat2) * Math.PI / 180.0; (5)L = (2 * Math.Asin(Math.Sqrt(Math.Pow(Math.Sin(Lng / 2),2) +Math.Cos(radLat1)*Math.Cos(radLat2)* Math.Pow(Math.Sin(Lng / 2), 2))) ) *Earth radius; Among them, Math.PI refers to the mathematical function, pi; Math.Asin mathematical trigonometric function, inverse sine function; Math.Sqrt mathematical function, square root; Math.Pow mathematical function, power function; Math.Sin mathematical function, sine function; Math.Cos mathematical function, cosine function; Calculate the vertical distance Y_D between the vehicle position and the x-axis according to the latitude and longitude coordinates of the tower and the vehicle; According to L and Y_D, the angle ∠β between the line connecting the vehicle and the pole and the north direction of the y-axis is calculated. The calculation formula is as follows: ∠β = Math.ASin (Y_D / L ) * (180 / Math.PI ); According to the data of the vehicle-mounted dual positioning device, calculate the angle ∠α between the vehicle's driving direction and the north direction of the y-axis: Calculate the horizontal tracking angle based on the quadrant the vehicle is in and ∠α and ∠β; Steps for calculating the pitch tracking angle: Based on the constructed three-dimensional space coordinate system, the pitch tracking angle data of the tower tracking is calculated according to the position coordinates of the inspection vehicle relative to the tower and the height data of the inspection equipment components and the tower head. The calculation process is as follows: Calculate the straight-line distance L between the vehicle and the pole according to the latitude and longitude coordinates of the pole tower and the vehicle; According to the tower head height H1 and the vehicle inspection equipment component height H2, the height difference h between the two is obtained, and the calculation formula is as follows: h = H1 – H2; According to the height difference h and the straight-line distance L between the vehicle and the pole, the pitch tracking angle ∠γ of the gimbal is calculated using the following formula: ∠γ = Math.Atan( h / L ) * (180 / Math.PI ); The vehicle-mounted pan-tilt head tracking motion angle data is converted into control instructions to guide the vehicle-mounted pan-tilt head to move automatically, so that the vehicle-mounted pan-tilt head can maintain positioning and tracking of the tower; wherein, the vehicle-mounted pan-tilt head tracking motion angle data is converted into control instructions according to the PELCO-D protocol to guide the vehicle-mounted pan-tilt head to automatically perform horizontal and pitch movements.
2. The automatic tracking method of distribution line tower according to claim 1, characterized in that: The latitude and longitude coordinate information of vehicles and distribution line towers is accurate to centimeters.
3. The automatic tracking method of distribution line tower according to claim 1, characterized in that: The control instruction is a hexadecimal control instruction.
4. The automatic tracking method for distribution line towers according to claim 1, characterized in that: The format of the control instruction is: Byte 1 is the start byte, byte 2 is the PTZ address, byte 3 is command word 1, byte 4 is command word 2, byte 5 is data 1, byte 6 is data 2, and byte 7 is the end byte.
5. A distribution line tower automatic tracking system, characterized in that: include: A latitude and longitude coordinate information acquisition module, which is used to obtain the latitude and longitude coordinate information of the distribution line tower and the real-time latitude and longitude coordinate information of the inspection vehicle; The vehicle-pole three-dimensional space coordinate system construction module is used to construct the vehicle-pole three-dimensional space coordinate system according to the positional relationship between the inspection vehicle and the distribution line tower. The process is as follows: the distribution line tower coordinates are used as the origin, the longitude, latitude and altitude are used as the x-axis, y-axis and z-axis, and the inspection vehicle position point is used as the point in the coordinate system to construct the vehicle-pole three-dimensional space coordinate system; The pan-tilt tracking angle calculation module is used to calculate the motion angle data of the vehicle-mounted pan-tilt tracking the pole tower according to the quadrant where the inspection vehicle is located; the motion angle data of the vehicle-mounted pan-tilt tracking the pole tower includes the horizontal tracking angle and the pitch tracking angle; the horizontal tracking angle calculation process is: based on the constructed three-dimensional space coordinate system, according to the position coordinates of the inspection vehicle relative to the pole tower, the inspection vehicle is divided into different quadrants of the coordinate system, and the horizontal tracking angle of the pole tower is calculated in each quadrant. The specific algorithm is as follows: The straight-line distance L between the vehicle and the pole is calculated based on the longitude and latitude coordinates of the pole tower (Lng1, Lat1) and the longitude and latitude coordinates of the inspection vehicle (Lng2, Lat2). The calculation formula is as follows: (1) radLat1= Lat1* Math.PI / 180.0; (2) radLat2= Lat2* Math.PI / 180.0; (3) Lng = (Lng1 - Lng2) * Math.PI / 180.0; (4)Lat = (Lat1 - Lat2) * Math.PI / 180.0; (5)L = (2 * Math.Asin(Math.Sqrt(Math.Pow(Math.Sin(Lng / 2),2) +Math.Cos(radLat1)*Math.Cos(radLat2)* Math.Pow(Math.Sin(Lng / 2), 2))) ) *Earth radius; Among them, Math.PI refers to the mathematical function, pi; Math.Asin mathematical trigonometric function, inverse sine function; Math.Sqrt mathematical function, square root; Math.Pow mathematical function, power function; Math.Sin mathematical function, sine function; Math.Cos mathematical function, cosine function; Calculate the vertical distance Y_D between the vehicle position and the x-axis according to the latitude and longitude coordinates of the tower and the vehicle; According to L and Y_D, the angle ∠β between the line connecting the vehicle and the pole and the north direction of the y-axis is calculated. The calculation formula is as follows: ∠β = Math.ASin (Y_D / L ) * (180 / Math.PI ); According to the data of the vehicle-mounted dual positioning device, calculate the angle ∠α between the vehicle's driving direction and the north direction of the y-axis: Calculate the horizontal tracking angle based on the quadrant the vehicle is in and ∠α and ∠β; Steps for calculating the pitch tracking angle: Based on the constructed three-dimensional space coordinate system, the pitch tracking angle data of the tower tracking is calculated according to the position coordinates of the inspection vehicle relative to the tower and the height data of the inspection equipment components and the tower head. The calculation process is as follows: Calculate the straight-line distance L between the vehicle and the pole according to the latitude and longitude coordinates of the pole tower and the vehicle; According to the tower head height H1 and the vehicle inspection equipment component height H2, the height difference h between the two is obtained, and the calculation formula is as follows: h = H1 – H2; According to the height difference h and the straight-line distance L between the vehicle and the pole, the pitch tracking angle ∠γ of the gimbal is calculated using the following formula: ∠γ = Math.Atan( h / L ) * (180 / Math.PI ); A control instruction generation module is used to convert the vehicle-mounted pan-tilt head tracking motion angle data into control instructions to guide the vehicle-mounted pan-tilt head to move automatically, so that the vehicle-mounted pan-tilt head maintains positioning and tracking of the tower; wherein, the vehicle-mounted pan-tilt head tracking motion angle data is converted into control instructions according to the PELCO-D protocol to guide the vehicle-mounted pan-tilt head to automatically perform horizontal and pitch movements.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the automatic tracking method for distribution line towers as described in any one of claims 1 to 4 are implemented.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the automatic tracking method for distribution line towers according to any one of claims 1 to 4 are implemented.
