Electronic fence rapid detection and early warning method
Through grid processing and longitude and latitude screening of the drone activity range, combined with the circle center distance method and the ray method, the problem of the surge in the number of electronic fences in the supervision of drone no-fly zones has been solved, rapid detection and early warning have been achieved, and the efficiency has been improved Regulatory efficiency and resource utilization.
Patent Information
- Application Number
- CN202410899479.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-10
AI Technical Summary
The existing drone no-fly zone supervision technology is relatively backward. Especially in the case of a large number of electronic fences, it cannot effectively detect and warn in real time, leading to safety hazards. The existing methods are computationally complex and cannot cope with the situation of a large number of electronic fences.
By importing the electronic fence data, extract the longitude and latitude range, delineate the drone activity range, perform grid processing, obtain the grid fence occupancy table, eliminate duplicate fences, and use longitude and latitude screening, circle center distance method, and ray method to determine whether the electronic fence has entered the electronic fence. Fence, processing data on the ground in advance to reduce onboard computing resource consumption.
It achieves rapid detection and early warning of a large number of electronic fences, reduces computing resource consumption, improves detection efficiency, and is compatible with different types of drone activity ranges.
Smart Images

Figure CN118629271A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned aerial vehicles, and more specifically, to a method for rapid detection and early warning of an electronic fence. Background Art
[0002] As the airspace continues to open up, a large number of drone no-fly zones will be introduced. At the same time, the task-generated method and the automatic generation method of the perception system will lead to a surge in the number of electronic fences. The huge amount of data and the ultra-large-scale distribution of fences will inevitably bring challenges to the existing real-time detection and early warning methods of electronic fences and no-fly zones.
[0003] Compared with the increasing maturity of drone technology, drone supervision technology is relatively backward, especially the supervision of drones around no-fly zones such as drone airports. In order to ensure low-altitude traffic safety and prevent drones around no-fly zones from entering the area and causing unnecessary safety accidents, it is necessary to conduct timely early warning and supervision of drones around no-fly zones.
[0004] Patent CN106846926B discloses a method for early warning of drones in no-fly zones. First, a certain number of latitude and longitude coordinate points of the drone's current flight are collected, and after coordinate conversion, they are converted into corresponding plane coordinate points in a plane rectangular coordinate system. Then, the improved least squares method is used to perform curve fitting on these corresponding discrete plane coordinate points to fit the flight trajectory of the drone during this period. Finally, the tangent of the fitting curve at the current point is calculated. By judging whether the tangent will intersect with the electronic fence describing the no-fly zone, it is judged whether the drone will enter the no-fly zone. If so, the real-time distance from the current point to the no-fly zone is calculated and an alarm is issued in time. If not, a prediction is made at the next moment. The no-fly zone drone early warning method of the present invention will have broad application prospects in the field of civil drone supervision, but the method needs to eliminate intersection points that are not on the edge of the rectangle through constraint conditions; select the point closest to the current point of the drone from the intersection points that meet the constraint conditions, and use the distance formula between two points to calculate the intersection point closest to the current point from the obtained intersection points; calculate the distance between the current point of the drone and the intersection point closest to the edge of the minimum circumscribed rectangle, which is the shortest distance between the drone and the no-fly zone at the current moment. This method has a complex calculation process and cannot cope with the situation of a large number of electronic fences. Summary of the invention
[0005] The purpose of the present invention is to solve the above-mentioned problem and provide a method for rapid detection and early warning of electronic fences. The method of directly using longitude and latitude to screen electronic fences can be compatible with both rotorcraft with a small range of activity and fixed-wing aircraft with a large range of activity. By screening and processing electronic fence data in advance on the ground, only a small number of electronic fences that actually pose a risk are checked after takeoff, which greatly reduces the number of electronic fences that need to be checked and the consumption of airborne computing platform resources by airborne electronic fence software, thereby improving the efficiency of the electronic fence software. The invention aims to solve the problem that after the airspace is gradually opened, the number of electronic fences of drones based on task generation has increased sharply and their distribution is wide, making conventional detection and early warning methods unable to cope with the situation.
[0006] The above technical objectives of the present invention are achieved through the following technical solutions: a method for rapid detection and early warning of electronic fences, the method comprising the following steps:
[0007] S1: Import geo-fence data;
[0008] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0009] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0010] S4: Gridding the activity range of the UAV;
[0011] S5: Obtaining a grid fence occupancy table;
[0012] S6: Remove duplicate fences in the grid;
[0013] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence.
[0014] The present invention is further configured as follows: the electronic fence data in S1 includes globally disclosed no-fly zones, electronic fences generated based on missions, and obstacle electronic fences established by a perception system in historical flight missions.
[0015] The present invention is further configured as follows: the basis for demarcation in S3 is the positioning and cruising distance of the UAV.
[0016] The present invention is further configured as follows: the activity range of the drone in S3 is a circle on the earth's spherical surface, and the longitude and latitude range covered by the activity range can be roughly obtained according to the drone positioning and distance conversion table, that is, the range defined by the longitude and latitude lines.
[0017] The present invention is further configured as follows: the gridding in S4 is to divide the activity range of the drone into a fixed number of square grids.
[0018] Through the above technical solution: to ensure stable search efficiency, the flight activity range is larger, the larger the grid is, and vice versa, the smaller the grid is, so as to adapt to different types of drones.
[0019] The present invention is further configured as follows: the fence occupancy table is obtained in S5 in the following manner:
[0020] S5-1: Determine the coverage relationship between each electronic fence in the electronic fence pre-selected set in S3 and the activity range grid in S4, and add the electronic fence whose longitude and latitude range of the electronic fence intersects with the longitude and latitude range of the aircraft activity range to the electronic fence pre-selected set;
[0021] S5-2: Record the occupancy status of the electronic fence in each covered grid of the drone activity range obtained in S5-1 to obtain an electronic fence occupancy table;
[0022] The present invention is further configured to: execute S5-1 to S5-2 for the added electronic fences during the flight, and update the electronic fence occupancy table.
[0023] The present invention is further configured as follows: the method for removing duplicate fences in S6 is: according to the positioning and cruising distance of the drone, the electronic fences in the grid where the longitude and latitude range of the electronic fence intersects with the longitude and latitude range of the aircraft activity range are extracted, and the duplicate fences are removed according to the electronic fence ID.
[0024] The present invention is further configured as follows: the electronic fence processing method in S7 is: expanding the electronic fence according to the warning distance.
[0025] The present invention is further configured as follows: the method for determining whether the electronic fence is entered in S7 adopts a circle center distance method and a ray method.
[0026] In summary, the present invention has the following beneficial effects:
[0027] The present invention first processes the imported electronic fence data; extracts the latitude and longitude ranges covered by each electronic fence in the electronic fence data; and saves the extracted latitude and longitude ranges for the national / global public no-fly zones; defines the activity range of the UAV according to the positioning and cruising distance of the UAV; compares whether the latitude and longitude ranges of the electronic fence and the latitude and longitude ranges of the activity range of the UAV have an intersection, and if there is an intersection, the electronic fence is added to the electronic fence pre-selection set; for the electronic fence added during the flight, it is also determined whether it needs to be added to the electronic fence pre-selection set according to the latitude and longitude range; the method directly uses the latitude and longitude to screen the electronic fence, which can be compatible with both the rotorcraft with a small activity range and the fixed-wing aircraft with a large activity range;
[0028] The invention grids the activity range of the unmanned aerial vehicle, and the number of grids is fixed to control resource consumption; similarly, according to the intersection relationship of longitude and latitude, the occupation of electronic fences in each grid is recorded to obtain a fence occupation table; when a new electronic fence is added to the electronic fence pre-selected set during flight, the fence occupation table is updated; according to the positioning and cruising distance of the unmanned aerial vehicle, the grid within the cruising distance is obtained through the intersection relationship of longitude and latitude, and the electronic fences within the grid are extracted, and duplicate fences are eliminated according to the electronic fence ID; the electronic fences within the grid are expanded according to the cruising distance, and whether they enter the electronic fence is determined by the center distance method and the ray method; the cruising distance is usually small in area, and the fence relationship judgment can be performed in a navigation coordinate system (a plane coordinate system); the activity range of the unmanned aerial vehicle is gridded, and the number of grids is fixed to control resource consumption; the method screens and processes electronic fence data in advance on the ground, and only checks a small number of electronic fences with real risks after takeoff, thereby greatly reducing the number of electronic fences that need to be checked and the consumption of airborne computing platform resources by airborne electronic fence software, thereby improving the efficiency of the electronic fence software. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a flow chart of a rapid detection and early warning method for a large number of electronic fences in Embodiment 1 of the present invention;
[0030] Figure 2 It is a flow chart of a method for generating an electronic fence of a drone based on geographic information objects and flight missions in Embodiment 1 of the present invention;
[0031] Figure 3 are the boundary lines and boundary points of the geographic information object selected in Embodiment 1 of the present invention;
[0032] Figure 4 is a schematic diagram of generating an electronic fence through Delaunay triangulation in Example 1 of the present invention;
[0033] Figure 5 It is a schematic diagram of expanding a triangulated network using the broken line parallel line method in Example 1 of the present invention;
[0034] Figure 6 is a flow chart of a method for online generation of an obstacle electronic fence based on a perception system in Embodiment 1 of the present invention;
[0035] Figure 7 This is the process in which the drone in Embodiment 1 of the present invention obtains the obstacle point cloud through the perception system;
[0036] Figure 8 Schematic diagram of the process of generating an electronic fence from an obstacle point cloud in Embodiment 1 of the present invention;
[0037] Fig. 9This is the process of generating the pre-selected set, gridding the activity range, and generating the grid occupancy table of the present invention. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solution of the present invention will be further described in detail below in conjunction with the embodiments of the present invention and the accompanying drawings. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.
[0039] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present invention can be combined with each other. The present invention will be described in detail below in conjunction with the embodiments.
[0040] Embodiment 1:
[0041] like Figure 1 As shown, a method for rapid detection and early warning of an electronic fence includes the following steps:
[0042] S1. Import electronic fence data;
[0043] The electronic fence data includes the national / global public no-fly zone efs1, the electronic fence efs2 generated based on the mission, and the obstacle electronic fence efs3 established by the perception system in the historical flight mission, efs = efs1 ∪ efs2 ∪ efs3;
[0044] 1. If Figures 2 to 4 As shown, a method for generating an electronic fence of a drone based on geographic information objects and flight missions includes the following steps:
[0045] 1.1. Select the geographic information object of interest and automatically set the electronic fence focus point;
[0046] The setting methods of the points of interest include selecting geographic information objects, manually selecting points of interest, and importing business data. Geographic information objects are objects contained in remote sensing maps and navigation maps (such as schools, hospitals, stations, factories, reservoirs, and bridges), and business data are business data of their geographical locations (such as common fire points, traffic accident-prone areas, geological disaster risk points, power grid wires, and poles and towers);
[0047] 1.2. Add the focus point to the pre-selected point set S;
[0048] 1.3. Set the geo-fence airspace attribute to no entry or no exit;
[0049] 1.4. The final fence points are formed through algorithm screening;
[0050] If the airspace attribute of the electronic fence is set to no entry, the algorithm is as follows: first cluster the unordered scattered points in the pre-selected point set S to obtain multiple pre-selected point subsets;
[0051] Using Delaunay triangulation on each of the pre-selected point subsets, and removing the extra-long edges of the outermost non-geographic information object boundary to obtain a unique triangulated network;
[0052] Expand the triangulated network using a broken line parallel line method to obtain an electronic fence coverage area;
[0053] The vertices of the electronic fence coverage area polygon are the fence points finally generated.
[0054] If the geo-fence airspace attribute is set to no exit, the algorithm is:
[0055] Set the fence convexity;
[0056] For concave electronic fences, the algorithm is the same as the electronic fence airspace attribute set to no entry;
[0057] For a convex hull geo-fence, then:
[0058] Perform Delaunay triangulation on the disordered scattered points in the pre-selected point set to obtain a unique triangulated network;
[0059] The triangulated network is indented using a broken line parallel line method to obtain an electronic fence coverage area;
[0060] The vertices of the electronic fence coverage area polygon are the fence points finally generated.
[0061] This embodiment takes the school as the object of attention and generates an electronic fence, which is as follows:
[0062] Select the school as the geographic information object of interest, such as Figure 3 As shown, select School, and automatically set the boundary points of the school geographical objects (primary school, middle school, university, kindergarten, etc.) within the map range as the electronic fence focus points;
[0063] Add the electronic fence focus points to the pre-selected point set S;
[0064] Set the geo-fence airspace attribute to no entry;
[0065] Use a clustering algorithm such as Kmeans to cluster the disordered scattered points in the pre-selected point set to obtain multiple pre-selected point subsets s. The clustering process regards the schools that are clustered together as the same no-fly zone, such as Figure 3 As shown, the three schools in the map are close to each other, forming a no-fly zone, and a pre-selected point subset is obtained;
[0066] Delaunay triangulation is used on the pre-selected point subset, and the extra-long edges of the outermost non-geographic information object boundary are eliminated (the boundary of the geographic information object itself is used as the basic boundary of the electronic fence and cannot be eliminated), and a unique triangulated network △ is obtained, such as Figure 3 As shown;
[0067] The principle of Delaunay triangulation algorithm is as follows:
[0068] Input: Vertex list
[0069] Output: List of determined triangles
[0070] Initialize the vertex list
[0071] Determine the super triangle
[0072] Add the super triangle vertex to the end of the vertex list
[0073] Add the super triangle to the triangle list
[0074] Iterate over the vertex list
[0075] Initialize edge list
[0076] Iterate over the triangle list
[0077] Calculate the center and radius of the circumcircle of the current triangle
[0078] If the current point is in the circumcircle of the current triangle, add the current triangle to the edge list three times and remove the current triangle from the triangle list
[0079] End if
[0080] End traversal
[0081] Remove all duplicate edges from the edge list
[0082] Add all triangles consisting of the edges in the edge list and the current triangle to the triangle list
[0083] End traversal
[0084] Remove the triangle associated with the super triangle vertex from the triangle list
[0085] Finally, the triangulated network is expanded using the polyline parallel line method to obtain the coverage area of the electronic fence;
[0086] like Figure 5 As shown, for each vertex P of the triangulated network △, point Q is obtained by dilation. The formula of the broken line parallel method is as follows:
[0087]
[0088]
[0089] Where d is the expansion distance, is the vector of the line parallel to point P to the L1 line segment through point Q, is the vector of the line parallel to point P to the L2 line segment through point Q, is the vector from point A to point P, is the vector from point B to point P, is the modulus of its corresponding vector, P x , Q x is the x-axis coordinate of point P and point Q, P y , Q y are the y-axis coordinates of points P and Q.
[0090] The vertices of the polygons in the electronic fence coverage area are the fence points that are finally generated. When an aircraft is flying in this area, it is forbidden to cross this area (intensive teaching area);
[0091] 2. If Figures 6 to 8 As shown, a method for generating an obstacle electronic fence online based on a perception system includes the following steps:
[0092] 2.1. During the flight mission, the onboard perception system continuously perceives the environment around the aircraft; the onboard perception system is a device with three-dimensional space perception capabilities, including depth cameras, stereo cameras, laser radars, millimeter-wave radars, and ultrasonic radars;
[0093] 2.2. When the perception system detects an obstacle within the safety distance or has triggered obstacle avoidance, it will build an electronic fence around the obstacle; the safety distance is consistent with the obstacle avoidance distance and can be adjusted dynamically;
[0094] 2.3. After confirming the construction of the obstacle electronic fence, according to the corresponding drone position information when the obstacle is perceived, including aircraft posture, sensor calibration parameters, etc., the obstacle three-dimensional point cloud is converted to the navigation coordinate system (North East Earth NED, Northeast Sky ENU);
[0095] Obstacle point cloud c Usually relative to the sensor coordinate system, the sensor external parameters And the current position of the aircraft Convert the point cloud to the navigation coordinate system and get p n ;
[0096]
[0097] 2.4. The converted three-dimensional point cloud is processed by the point cloud processing algorithm to obtain the obstacle electronic fence; specifically:
[0098] Downsample the point cloud obtained by the perception system (uniform or voxel filtering) to reduce the amount of data, and then remove outliers through radius or statistical filters;
[0099] Then project the filtered sparse 3D point cloud to the aircraft height plane (i.e., set the point cloud height to the aircraft height);
[0100] Perform Delaunay triangulation on the disordered point cloud to obtain a unique triangulated network, and then expand it according to the aircraft attributes (size) to finally obtain the obstacle fence points;
[0101] The point cloud processing algorithm includes downsampling the point cloud (uniform or voxel filtering) to reduce the amount of subsequent processing data, then removing outliers through radius or statistical filters, and then projecting the filtered sparse three-dimensional point cloud to the aircraft altitude plane (that is, setting the point cloud altitude to the aircraft altitude). After obtaining the processed point cloud, the obstacle electronic fence is obtained by Delaunay triangulation to generate a unique triangulated network, and triangulated network expansion combined with aircraft attributes;
[0102] 2.5. Finally, convert the electronic fence point to latitude and longitude, and add it to the obstacle electronic fence map. The obstacle map will check and warn the route when the next flight plan is uploaded.
[0103] The navigation coordinate system is converted to longitude, latitude and altitude using the following formula:
[0104] NED origin latitude and longitude Ori(O lat ,O lon ,O alt )
[0105] Fence point NED position P(x,y,z)
[0106] Earth's equatorial radius: E a =6378137
[0107] Earth's eccentricity e
[0108] Latitude coefficient: Rlat = E a (1-e 2 ) / (1-e 2 sin(O lat ) 2 ) 3 / 2 +O alt
[0109] Longitude coefficient: Rlon=(E a / (1-e 2 sin(O lat ) 2 ) 1 / 2 +O alt )*cos(O lat )
[0110] lat=x / Rlat+O lat
[0111] lon=y / Rlon+O lon
[0112] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0113] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0114] S4: Gridding the activity range of the UAV;
[0115] S5: Obtaining a grid fence occupancy table;
[0116] S6: Remove duplicate fences in the grid;
[0117] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence.
[0118] Embodiment 2:
[0119] A method for rapid detection and early warning of an electronic fence, which differs from Embodiment 1 in that the method comprises the following steps:
[0120] S1: Import geo-fence data;
[0121] S2: extract the latitude and longitude ranges covered by each electronic fence in the electronic fence data efs;
[0122] For all no-fly zones, extract and save the latitude and longitude range of the electronic fence, i.e. e(lat_min,lat_max,lon_min,lon_max);
[0123] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0124] S4: Gridding the activity range of the UAV;
[0125] S5: Obtaining a grid fence occupancy table;
[0126] S6: Remove duplicate fences in the grid;
[0127] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence.
[0128] Embodiment 3:
[0129] A method for rapid detection and early warning of an electronic fence, which differs from Embodiment 1 in that the method comprises the following steps:
[0130] S1: Import geo-fence data;
[0131] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0132] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0133] The basis for demarcation is the UAV positioning P (lat, lon) and the cruising distance S; the UAV activity range R is a circle on the earth's spherical surface. According to the UAV positioning and distance conversion table, the longitude and latitude range covered by the activity range can be roughly obtained, that is, the longitude and latitude demarcation range.
[0134] Table 1 Distance conversion table
[0135]
[0136] lat_min=lat-S / 1.1*0.00001°
[0137] lat_max=lat+S / 1.1*0.00001°
[0138] lon_min=lon-S*0.00001°
[0139] lon_max=lon+S*0.00001°.
[0140] S4: Gridding the activity range of the UAV;
[0141] S5: Obtaining a grid fence occupancy table;
[0142] S6: Remove duplicate fences in the grid;
[0143] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence.
[0144] Embodiment 4:
[0145] A method for rapid detection and early warning of an electronic fence, which differs from Embodiment 1 in that the method comprises the following steps:
[0146] S1: Import geo-fence data;
[0147] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0148] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0149] S4: Gridding the activity range of the UAV;
[0150] Gridding is to divide the drone's activity range into a fixed number of square grids;
[0151] S5: Obtaining a grid fence occupancy table;
[0152] S6: Remove duplicate fences in the grid;
[0153] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence.
[0154] Embodiment 5:
[0155] A method for rapid detection and early warning of an electronic fence, which differs from Embodiment 1 in that the method comprises the following steps:
[0156] S1: Import geo-fence data;
[0157] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0158] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0159] S4: Gridding the activity range of the UAV;
[0160] S5: Obtaining a grid fence occupancy table;
[0161] The fence occupancy table is obtained as follows:
[0162] S5-1: Determine the coverage relationship between each electronic fence in the electronic fence pre-selected set in S3 and the activity range grid in S4, and add the electronic fence whose longitude and latitude range of the electronic fence intersects with the longitude and latitude range of the aircraft activity range to the electronic fence pre-selected set;
[0163] S5-2: According to the coverage relationship obtained in S5-1, the occupancy status of the electronic fences in each of the grids is recorded to obtain a fence occupancy table.
[0164] S6: Remove duplicate fences in the grid;
[0165] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence.
[0166] Embodiment 6:
[0167] A method for rapid detection and early warning of an electronic fence, which differs from Embodiment 5 in that the method comprises the following steps:
[0168] S1: Import geo-fence data;
[0169] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0170] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0171] S4: Gridding the activity range of the UAV;
[0172] S5: Obtaining a grid fence occupancy table;
[0173] The fence occupancy table is obtained as follows:
[0174] S5-1: Determine the coverage relationship between each electronic fence in the electronic fence pre-selected set in S3 and the activity range grid in S4, and add the electronic fence whose longitude and latitude range of the electronic fence intersects with the longitude and latitude range of the aircraft activity range to the electronic fence pre-selected set;
[0175] The electronic fence pre-selection set includes electronic fences within and near the activity range of the drone, and the position relationship with the drone needs to be checked in real time.
[0176] S5-2: According to the coverage relationship obtained in S5-1, the occupancy status of the electronic fences in each of the grids is recorded to obtain a fence occupancy table.
[0177] S6: Remove duplicate fences in the grid;
[0178] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence.
[0179] Example 7
[0180] A method for rapid detection and early warning of electronic fences, which differs from Embodiment 6 in that, for electronic fences added during flight, S5-1 to S5-2 are executed, and the fence occupancy table is updated, specifically:
[0181] S1: Import geo-fence data;
[0182] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0183] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0184] S4: Gridding the activity range of the UAV;
[0185] S5: Obtaining a grid fence occupancy table;
[0186] The fence occupancy table is obtained as follows:
[0187] S5-1: Determine the coverage relationship between the newly added electronic fence and the activity range grid in S4, and add the electronic fence whose longitude and latitude range of the electronic fence intersects with the longitude and latitude range of the aircraft activity range to the electronic fence pre-selection set;
[0188] The electronic fence pre-selection set includes electronic fences within and near the activity range of the drone, and the position relationship with the drone needs to be checked in real time.
[0189] S5-2: According to the coverage relationship obtained in S5-1, the occupancy status of the newly added electronic fences is recorded, and a new fence occupancy table is updated.
[0190] S6: Remove duplicate fences in the grid;
[0191] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence.
[0192] Example 8
[0193] A method for rapid detection and early warning of an electronic fence, which differs from Embodiment 1 in that the method comprises the following steps:
[0194] S1: Import geo-fence data;
[0195] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0196] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0197] S4: Gridding the activity range of the UAV;
[0198] S5: Obtaining a grid fence occupancy table;
[0199] S6: Remove duplicate fences in the grid;
[0200] There may be multiple geo-fence IDs in the same grid. The same geo-fence may occupy multiple grids. If the geo-fence IDs in all grids are taken out, there will be duplicate IDs, which need to be removed.
[0201] The method for removing duplicate fences is: according to the positioning and cruising distance of the drone, the electronic fences in the grid where the longitude and latitude range of the electronic fence intersects with the longitude and latitude range of the aircraft activity range are extracted, and the duplicate fences are removed according to the electronic fence ID.
[0202] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence.
[0203] Example 9
[0204] A method for rapid detection and early warning of an electronic fence, which differs from Embodiment 1 in that the method comprises the following steps:
[0205] S1: Import geo-fence data;
[0206] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0207] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0208] S4: Gridding the activity range of the UAV;
[0209] S5: Obtaining a grid fence occupancy table;
[0210] S6: Remove duplicate fences in the grid;
[0211] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence;
[0212] The electronic fence processing method is: expansion processing according to the warning distance. The warning distance is set according to different warning requirements. For example, if the warning time is 30 seconds, the warning distance is 30*speed.
[0213] Example 10
[0214] A method for rapid detection and early warning of an electronic fence, which differs from Embodiment 1 in that the method comprises the following steps:
[0215] S1: Import geo-fence data;
[0216] S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data;
[0217] S3: Delineate the drone activity range and the longitude and latitude range covered;
[0218] S4: Gridding the activity range of the UAV;
[0219] S5: Obtaining a grid fence occupancy table;
[0220] S6: Remove duplicate fences in the grid;
[0221] S7: Based on the current position, process the risk electronic fence in the grid and determine whether to enter the electronic fence;
[0222] The method for judging whether to enter the electronic fence adopts the method of center distance and ray method.
[0223] Working principle:
[0224] First, import the electronic fence data; the electronic fence data includes the national / global public no-fly zone efs1, the electronic fence efs2 generated based on the mission, and the obstacle electronic fence efs3 established by the perception system in the historical flight mission, efs = efs1 ∩ efs2 ∩ efs3;
[0225] Then extract the latitude and longitude ranges covered by each electronic fence in the electronic fence data efs;
[0226] For all no-fly zones, extract and save the latitude and longitude range of the electronic fence, i.e. e(lat_min,lat_max,lon_min,lon_max);
[0227] According to the drone positioning P (lat, lon) and the cruising distance S, the drone activity range R is defined. The drone activity range is a circle on the earth's spherical surface. According to the drone positioning and distance conversion table, the longitude and latitude range covered by the activity range can be roughly obtained, that is, the longitude and latitude demarcation range;
[0228]
[0229] lat_min=lat-S / 1.1*0.00001°
[0230] lat_max=lat+S / 1.1*0.00001°
[0231] lon_min=lon-S*0.00001°
[0232] lon_max=lon+S*0.00001°
[0233] like Fig. 9 Assuming that the rotorcraft drone has an activity range of about 20 km, the current position P (30.67251, 104.06642) is used as the starting point to calculate the longitude and latitude of 20 km in the four directions of southeast, northwest, and northeast, that is, the longitude and latitude range covered by the activity range, that is,
[0234] R(lat_min,lat_max,lon_min,lon_max)=(30.49069,30.85433,103.86642,104.26642);
[0235] By comparing the latitude and longitude range e of each electronic fence with the latitude and longitude range R of the drone activity range, if there is an intersection, the electronic fence is added to the electronic fence pre-selection set ES, that is, like Fig. 9 As shown, ES = {e1, e2, e3, e4, e5};
[0236] The electronic fence pre-selection set includes electronic fences within and near the drone's activity range, and the relationship with the drone's position needs to be checked in real time;
[0237] For the increase of electronic fence during flight n , similarly, judging whether it is necessary to join the electronic fence pre-selection set ES according to the latitude and longitude range;
[0238] This method directly uses longitude and latitude to screen electronic fences, which can be compatible with both rotorcraft with a small range of activity and fixed-wing aircraft with a large range of activity.
[0239] Although this treatment excludes a large number of electronic fences outside the activity range, there may still be a huge number of electronic fences within the activity range;
[0240] Therefore, the drone activity range is gridded, and the number of grids is fixed to control resource consumption; Fig. 9 , the latitude and longitude area R of the ordinary rotor activity range is evenly divided into 8×8 grids, the latitude and longitude range of each grid is s, and the actual distance range is about 5×5Km.
[0241] The activity range is divided into a fixed number of square grids to ensure stable search efficiency. The larger the flight activity range, the larger the grid, and vice versa, the smaller the grid, so as to adapt to different types of drones.
[0242] By screening and processing the electronic fence data in advance on the ground, only a small number of electronic fences that actually pose a risk are checked after takeoff, which greatly reduces the number of electronic fences that need to be checked and the consumption of onboard computing platform resources by the onboard electronic fence software, thereby improving the efficiency of the electronic fence software.
[0243] According to the intersection of longitude and latitude, record the occupancy of the electronic fence in each grid t= Get the fence occupancy table T = {t};
[0244] Determine the coverage relationship between each electronic fence e in the electronic fence pre-selection set ES in S3 and the activity range grid t in S4;
[0245] According to the coverage relationship obtained in S5-1, the occupancy status of the electronic fences in each grid is recorded to obtain a fence occupancy table T;
[0246] When a new electronic fence e is added to the electronic fence pre-selection set ES during the flight, the fence occupancy table T is updated;
[0247] According to the positioning of the drone and the cruising distance W = {w1, w2, ...}, the grids t within the longitude and latitude of each level of cruising distance are extracted, and the electronic fences e within the grids are extracted. The duplicate fences are removed according to the electronic fence ID to obtain the electronic fence set to be checked, such as Fig. 9 As shown,
[0248] The electronic fence to be checked is set according to the corresponding cruising distance {d w1 ,d w2} is expanded to obtain E w1_dilate ={e 2d ,e 3d ,e 5d}, and then use the circle center distance method and ray method to determine whether it has entered the electronic fence warning area;
[0249] For circular electronic fences, the distance between the current position and the center of the circle is less than the radius of the circle to determine whether it is inside the electronic fence. The formula is as follows:
[0250]
[0251] For polygonal electronic fences, the ray method is used, that is, a ray is emitted to the right from the current position. If the number of intersections with the boundary of the electronic fence is odd, it is inside the fence, and if the number is even, it is outside the fence.
[0252] The cruising distance is usually small in area, and the fence relationship can be judged in the navigation coordinate system (a plane coordinate system, such as North East Earth NED, Northeast Sky ENU). The conversion formula is as follows:
[0253] NED origin latitude and longitude Ori(O lat ,O lon ,O alt )
[0254] Current position P(P lat ,P lon ,P alt )
[0255] Earth's equatorial radius: E a =6378137
[0256] Earth's polar radius: E b =6356725
[0257] Earth's flattening: f = 1-E b / E c
[0258] Current location radius: E c =E a (1-fsin 2 (O lat ))
[0259] Current locationNED:
[0260] x=(Plat -O lat )E c ,y=(P lon -O lon )E c cos(O lat ),z=P alt
[0261] like Fig. 9 As shown, the circle center distance method and the ray method are used to determine that the electronic fences e2, e3, and e5 are not within the warning area.
[0262] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.
Claims
1. A method for rapid detection and early warning of electronic fences, characterized by: The method comprises the following steps: S1: Import geo-fence data; S2: extracting and saving the latitude and longitude ranges covered by each electronic fence in the electronic fence data; S3: Delineate the drone activity range and the longitude and latitude range covered; S4: Gridding the activity range of the UAV; S5: Obtaining a grid fence occupancy table; S6: Remove duplicate fences in the grid; S7: According to the current position of the drone, process the risk electronic fence in the grid and determine whether it enters the electronic fence.
2. The method for rapid detection and early warning of an electronic fence according to claim 1 is characterized by: The electronic fence data in S1 includes the globally public no-fly zones, electronic fences generated based on missions, and obstacle electronic fences established by the perception system in historical flight missions.
3. The method for rapid detection and early warning of an electronic fence according to claim 1 is characterized by: The drone activity range and the longitude and latitude range covered in S3 are defined as the drone positioning and cruising distance.
4. The method for rapid detection and early warning of an electronic fence according to claim 1 is characterized by: The activity range of the drone in S3 is a circle on the earth's spherical surface, and the longitude and latitude range covered by the activity range is obtained according to the drone positioning and distance conversion table.
5. The method for rapid detection and early warning of an electronic fence according to claim 1 is characterized by: The gridding in S4 is to divide the activity range of the UAV into a fixed number of square grids.
6. The method for rapid detection and early warning of an electronic fence according to claim 1, characterized in that: The fence occupancy table in S5 is obtained in the following manner: S5-1: Determine the coverage relationship between each electronic fence in the electronic fence pre-selected set in S3 and the grid of the drone activity range in S4, and add the electronic fences whose longitude and latitude ranges of the electronic fences intersect with the longitude and latitude ranges of the drone activity range to the electronic fence pre-selected set; S5-2: Record the occupancy status of the electronic fence in each covered grid of the drone activity range obtained in S5-1 to obtain an electronic fence occupancy table.
7. The method for rapid detection and early warning of an electronic fence according to claim 6, characterized in that: For the added electronic fences during the flight, the above steps S5-1 to S5-2 are executed, and the electronic fence occupancy table is updated.
8. The method for rapid detection and early warning of an electronic fence according to claim 3 is characterized by: The method for removing duplicate fences in S6 is: according to the positioning and cruising distance of the drone, the electronic fences in the grid where the longitude and latitude range of the electronic fence intersects with the longitude and latitude range of the drone activity range are extracted, and the duplicate fences are removed according to the electronic fence ID.
9. The method for rapid detection and early warning of an electronic fence according to claim 3, characterized in that: The method for processing the risk electronic fence in S7 is: expansion processing is performed according to the warning distance.
10. The method for rapid detection and early warning of an electronic fence according to claim 1, characterized in that: The method for determining whether the electronic fence is entered in S7 is: the circle center distance method and the ray method.
Citation Information
Cited By
Fixed-wing unmanned aerial vehicle electronic fence avoidance method
CN120909319A
A fixed-wing unmanned aerial vehicle electronic fence avoidance method
CN120909319B
Well mining special vehicle electronic fence system fused with distance measurement
CN121037529A
