Indoor drone flight trajectory evaluation method

Through the optical capture system and three-dimensional grid map modeling technology, the problem of lack of global judgment in the evaluation of UAV flight trajectories is solved, the scientific evaluation of UAV flight trajectories is realized, and the accuracy and applicability of the evaluation are improved.

WO2024207699A1PCT designated stage expired Publication Date: 2024-10-10YUNNAN POWER GRID CO LTD TRANSMISSION BRANCH

Patent Information

Application Number
PCT/CN2023/121432
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-01
Filing Date
2023-09-26
Publication Date
2024-10-10

AI Technical Summary

Technical Problem

The existing technology lacks a global evaluation method in UAV flight trajectory evaluation, which leads to the problem that the system evaluation is qualified but the actual flight does not meet the requirements.

Method used

An optical capture system is used for calibration, UAV pose images are collected, a three-dimensional trajectory model is established, and data is processed through multi-view geometric principles and OpenGL standards. Combined with three-dimensional grid map modeling, the coincidence degree between the trajectory coverage area and the standard trajectory is calculated. , as the evaluation index.

Benefits of technology

It realizes the scientific evaluation of the global flight trajectory of UAVs, is suitable for various types of UAV competitions and driver's license assessment scenarios, and improves the accuracy and reliability of the evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023121432_10102024_PF_FP_ABST
    Figure CN2023121432_10102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention is an indoor drone flight trajectory evaluation method, comprising: calibrating an optical capture system; collecting an image used for calculating the pose of a drone; modeling pose data to generate a trajectory; and modeling a flight area and trajectory data of the drone. The present invention can be applied to racing of various types of FPV drones, is applicable to most drone racing applications or driving license examination scenes, has a wide application, and is simple and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

A method for evaluating indoor drone flight trajectories Technical Field

[0001] The present invention relates to the field of unmanned aerial vehicles (UAVs), and in particular to a method for evaluating the flight trajectory of indoor UAVs. Background Art

[0002] At present, indoor drone competitions have been gradually promoted. In the current drone competition judging, timing, circling the pole, crossing and other methods are mostly used to evaluate the drone pilot's control ability. There is no method to judge the global flight trajectory. In the drone pilot license assessment, there is a method to judge the flight trajectory, but it is only in the 8-shaped flight or fixed-point hovering, which is to add a laser device at the specific end point of the trajectory to determine whether the drone has flown over the designated location. Since this method only selects special points in the global trajectory for comparison, it has very large limitations and is prone to situations where the system is judged to be qualified, but the actual flight does not meet the requirements. Therefore, it is particularly important to design a method that can judge the global flight trajectory.

[0003] Summary of the Invention

[0004] The purpose of this section is to summarize some aspects of the embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the abstract and title of this application to avoid obscuring the purpose of this section, the abstract and the title of the invention, and such simplifications or omissions should not be used to limit the scope of the present invention.

[0005] In view of the problems existing in the prior art, the present invention is proposed.

[0006] Therefore, the technical problem to be solved by the present invention is

[0007] To solve the above technical problems, the present invention provides the following technical solutions: a method for evaluating the flight trajectory of an indoor UAV, which includes calibrating an optical capture system;

[0008] Collect images for calculating the drone's pose;

[0009] Modeling pose data to generate trajectories;

[0010] Model the flight area and trajectory data of the drone.

[0011] As a preferred solution of the indoor UAV flight trajectory evaluation method of the present invention, the working parameters of the optical capture system include internal and external parameters of the camera, structural parameters of the captured object, and the calibration content includes camera calibration and rigid body calibration.

[0012] As a preferred solution of the indoor UAV flight trajectory evaluation method of the present invention, according to the principle of multi-view geometry, multiple optical capture cameras are used to collect images of multiple marker points at different angles, the marker point position data is calculated, and further converted into rigid body posture data.

[0013] As a preferred solution of the indoor UAV flight trajectory evaluation method of the present invention, the OpenGL standard is used to transform and process the posture data into multiple coordinate systems according to the posture data, and the three-dimensional trajectory model is converted into a two-dimensional image and displayed on the computer.

[0014] As a preferred solution of the indoor UAV flight trajectory evaluation method of the present invention, the method comprises: using a three-dimensional grid map modeling method to establish a three-dimensional grid map based on the flight area, fitting the trajectory into the three-dimensional grid map, and obtaining the fitted trajectory coverage area;

[0015] According to the trajectory coverage area, the overlap between the proposed trajectory and the standard trajectory coverage area is calculated as an indicator for judging the trajectory.

[0016] As a preferred solution of the indoor UAV flight trajectory evaluation method of the present invention, the optical capture system is calibrated, including calibrating multiple optical capture cameras, fixing the camera positions, and placing calibration bars in different directions and positions within the flight area to enable the cameras to collect sufficient marker point data;

[0017] Use the marker point data to calculate the relative position of the camera and set the camera's external parameters. The camera's internal parameters are significantly affected by lighting. For different lighting conditions, adjust the camera's internal parameters to reduce noise in the camera's field of view and improve the accuracy of captured data. Establish a spatial right-handed rectangular coordinate system with the center of the field of view as the origin of the coordinate system.

[0018] To calibrate the rigid body, install at least 4 marker balls on the drone and use the installed marker balls as capture points to build a rigid body model.

[0019] As a preferred solution of the indoor UAV flight trajectory evaluation method of the present invention, the method utilizes the computer multi-view geometry principle, combines multiple optical images of the same marker point, performs three-dimensional reconstruction, calculates the position data of the marker point, thereby obtaining the position data of each marker point of the rigid body model, and uses geometric relationships to obtain the posture data of the rigid body.

[0020] As a preferred solution of the indoor UAV flight trajectory evaluation method of the present invention, the three-dimensional model conversion method of OpenGL is used to calculate the two-dimensional coordinate data and fragment RGBA value of each model segment, and the pose data is converted into a visual trajectory image. The coordinate systems involved in OpenGL include the model coordinate system, the world coordinate system, the camera coordinate system, the clipping coordinate system and the viewport coordinate system.

[0021] As a preferred solution of the indoor UAV flight trajectory evaluation method of the present invention, the external environment is discretized into grids of the same size according to a specific resolution, and each grid is represented by a state, i.e., an occupied state and an idle state, indicating whether the grid position is an obstacle;

[0022] A three-dimensional grid map based on the flight area is established. The path planning algorithm occupies one grid and plans a path consisting of multiple grids by searching free grids and avoiding obstacles. A standard trajectory is obtained from the path planning, and the actual flight trajectory is fitted to the three-dimensional grid map. The overlap of the coverage areas of the two trajectories is calculated.

[0023] As a preferred solution of the indoor UAV flight trajectory evaluation method of the present invention, the actual flight trajectory F(t) is output by a motion capture system, F(t) is matched with a three-dimensional grid map, and the coverage matrix A[F(1), F(2), F(3)...F(n)] of the trajectory F(t) in the grid map is obtained, wherein the element F(n) is expressed as (x, y, z) grid coordinates, and n is the number of grids occupied by the trajectory. In the three-dimensional grid map, a coverage matrix B[G(1), G(2), G(3)...G(k)] of the preset trajectory is established, wherein the element G(n) is expressed as (x, y, z), and k is the number of grids occupied by the trajectory.

[0024] When k=n, directly perform XOR operations on the matrix A and the elements in the matrix one by one, and fill the output values ​​into the new matrix C as new elements. Then C is a 1xn matrix. The number of non-zero elements y in the matrix C is taken, and (1-y / n)*100% is the matching degree between the flight trajectory and the preset trajectory.

[0025] When k≠n, create a new matrix D, perform XOR operations on the first element of matrix A and the elements of B one by one, and fill the output value into the first row of matrix D as the new element. Perform XOR operations on the second element of matrix A and the elements of B one by one, and fill the output value into the second row of matrix D as the new element. Repeat this process until D becomes an n×k matrix. Multiply the k elements of each row of matrix D and fill them into the new matrix E, then E becomes a 1xk matrix. The number of non-zero elements y in matrix C is obtained, and (1-y / k)*100% is the matching degree between the flight trajectory and the preset trajectory.

[0026] The beneficial effects of the present invention are as follows: the method is applicable to various types of drone racing and can be applied to most drone racing applications or driver's license assessment scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0028] FIG1 is a schematic diagram of the use of the motion capture system in the first embodiment.

[0029] FIG2 is a schematic diagram (top view) of the three-dimensional flight trajectory in the first embodiment.

[0030] FIG3 is a schematic diagram of a three-dimensional grid map in the second embodiment. DETAILED DESCRIPTION

[0031] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0032] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0033] Secondly, the term "one embodiment" or "embodiment" herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in various places throughout this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive of other embodiments.

[0034] Example 1

[0035] As a first embodiment of the present invention, this embodiment provides an indoor UAV flight trajectory evaluation method, which is characterized by comprising: calibrating an optical capture system;

[0036] Collect images for calculating the drone's pose;

[0037] Modeling pose data to generate trajectories;

[0038] Model the flight area and trajectory data.

[0039] The working parameters of the optical capture system include the internal and external parameters of the camera, the structural parameters of the captured object, and the calibration content includes camera calibration and rigid body calibration.

[0040] According to the principle of multi-view geometry, multiple optical capture cameras are used to collect images of multiple marker points at different angles, calculate the position data of the marker points, and further convert them into rigid body pose data.

[0041] According to the posture data, the OpenGL standard is used to transform and process the posture data into multiple coordinate systems, and the three-dimensional trajectory model is converted into a two-dimensional image and displayed on the computer.

[0042] A 3D grid map modeling method is used to build a 3D grid map based on the flight area. The trajectory is fitted into the 3D grid map to obtain the fitted trajectory coverage area.

[0043] According to the trajectory coverage area, the overlap between the proposed trajectory and the standard trajectory coverage area is calculated as an indicator for judging the trajectory.

[0044] Further, specifically including:

[0045] S1: Calibrate the optical capture system, including calibrating multiple optical capture cameras, fixing the camera positions, and placing calibration bars in different directions and positions within the flight area to enable the cameras to collect sufficient marker point data;

[0046] Use the marker point data to calculate the relative position of the camera and set the camera's external parameters. The camera's internal parameters are significantly affected by lighting. For different lighting conditions, adjust the camera's internal parameters to reduce noise in the camera's field of view and improve the accuracy of captured data. Establish a spatial right-handed rectangular coordinate system with the center of the field of view as the origin of the coordinate system.

[0047] To calibrate the rigid body, install at least 4 marker balls on the drone and use the installed marker balls as capture points to build a rigid body model.

[0048] S2: Using the principles of computer multi-view geometry, multiple optical images of the same marker point are combined to perform three-dimensional reconstruction and calculate the position data of the marker point. In this way, the position data of each marker point of the rigid body model is obtained, and the geometric relationship is used to obtain the position data of the rigid body.

[0049] S3: Using OpenGL's 3D model conversion method, calculate the 2D coordinate data and RGBA value of each model segment, and convert the pose data into a visual trajectory image. The coordinate systems involved in OpenGL include the model coordinate system, world coordinate system, camera coordinate system, clipping coordinate system, and viewport coordinate system.

[0050] S4: The external environment is discretized into grids of the same size according to a specific resolution. Each grid is represented by a state, i.e., occupied state and idle state, indicating whether the grid position is an obstacle;

[0051] A three-dimensional grid map based on the flight area is established. The path planning algorithm occupies one grid and plans a path consisting of multiple grids by searching free grids and avoiding obstacles. A standard trajectory is obtained from the path planning, and the actual flight trajectory is fitted to the three-dimensional grid map. The overlap of the coverage areas of the two trajectories is calculated.

[0052] The actual flight trajectory F(t) is output by the motion capture system, and F(t) is matched with the three-dimensional grid map to obtain the coverage matrix A[F(1), F(2), F(3)...F(n)] of the trajectory F(t) in the grid map, where the element F(n) is expressed as (x, y, z) grid coordinates and n is the number of grids occupied by the trajectory. In the three-dimensional grid map, the coverage matrix B[G(1), G(2), G(3)...G(k)] of the preset trajectory is established, where the element G(n) is expressed as (x, y, z) and k is the number of grids occupied by the trajectory.

[0053] When k=n, directly perform XOR operations on the matrix A and the elements in the matrix one by one, and fill the output values ​​into the new matrix C as new elements. Then C is a 1xn matrix. The number of non-zero elements y in the matrix C is taken, and (1-y / n)*100% is the matching degree between the flight trajectory and the preset trajectory.

[0054] When k≠n, create a new matrix D, perform XOR operations on the first element of matrix A and the elements of B one by one, and fill the output value into the first row of matrix D as the new element. Perform XOR operations on the second element of matrix A and the elements of B one by one, and fill the output value into the second row of matrix D as the new element. Repeat this process until D becomes an n×k matrix. Multiply the k elements of each row of matrix D and fill them into the new matrix E, then E becomes a 1xk matrix. The number of non-zero elements y in matrix C is obtained, and (1-y / k)*100% is the matching degree between the flight trajectory and the preset trajectory.

[0055] Example 2

[0056] As the second embodiment of the present invention, this embodiment is based on the previous embodiment, and the solution adopted by the present invention to solve the technical problem is:

[0057] The present invention adopts a marker point-based optical motion capture system to collect spatial position information of the UAV, and the marker ball of the motion capture system is installed on the UAV before the competition begins.

[0058] Furthermore, in the motion capture system, a small ball attached to the drone is used to build a rigid body model. When the drone flies in the field, the motion capture system can collect the spatial position information of the rigid body model, that is, the spatial position information of the drone, in real time.

[0059] Based on the motion capture system's spatial coordinate system, a quadtree-based 3D terrain rendering algorithm is used to create a 3D grid map. The far point and three-axis coordinate directions of the 3D grid map are the original coordinates and three-axis coordinate directions of the motion capture system. The grid unit of the 3D grid map is a 5*5*5cm grid.

[0060] Furthermore, after the drone flight competition is completed, the drone's spatial position information is processed and used to construct a flight trajectory. This information is then matched against the 3D grid map to determine the trajectory's coverage within the 3D grid map. Simultaneously, based on the competition's requirements, a pre-set trajectory coverage is manually added to the 3D grid map. Finally, the two coverages are compared to determine the degree of overlap between the flight trajectories.

[0061] Example 3

[0062] As the third embodiment of the present invention, this embodiment is based on the previous embodiment, and marker points are installed. The positions of multiple marker points must be able to form a rigid body.

[0063] Three-dimensional reconstruction uses four cameras to collect images of the same rigid body taken from different directions at the same time to reconstruct the rigid body in three dimensions. The key steps of reconstruction are the relationship between corresponding points in the images and camera calibration.

[0064] The relationship between corresponding points in the images is obtained by using a layered reconstruction algorithm to perform fusion calculation on multiple images, process image information, and obtain image coordinate data. The multiple image coordinate data of the same point are used for projective transformation, affine transformation, and finally rigid body transformation to obtain preliminary three-dimensional coordinate data. The preliminary three-dimensional coordinate data are then calculated using camera calibration parameters to obtain the final three-dimensional spatial position information of the marker point.

[0065] The spatial position information of multiple marker points is used to calculate the spatial position information of the rigid body.

[0066] Furthermore, based on the motion capture system's spatial coordinate system and the on-site calibration results, a quadtree-based 3D terrain rendering algorithm was used to create a 3D grid map. The far point and three-axis coordinate directions of the 3D grid map corresponded to the original coordinates and three-axis coordinate directions of the motion capture system. The grid unit of the 3D grid map was a 5*5*5cm grid.

[0067] Furthermore, after the drone flight competition is completed, the actual flight trajectory F(t) is output through the motion capture system. F(t) is matched with the three-dimensional grid map to obtain the coverage matrix A[F(1), F(2), F(3)...F(n)] of the trajectory F(t) in the grid map, where the element F(n) is expressed as (x, y, z) grid coordinates and n is the number of grid cells occupied by the trajectory. At the same time, the coverage matrix B[G(1), G(2), G(3)...G(k)] of the preset trajectory is established in the three-dimensional grid map, where the element G(n) is expressed as (x, y, z) and k is the number of grid cells occupied by the trajectory.

[0068] Further compare the values ​​of k and n. When k=n, directly perform XOR operation on matrix A and the elements in the matrix one by one, and fill the output value into the new matrix C as a new element. Then C is a 1xn matrix. The number of non-zero elements y in matrix C is proposed, and (1-y / n)*100% is the matching degree between the flight trajectory and the preset trajectory.

[0069] When k≠n, create a new matrix D, perform XOR operations on the first element of matrix A and the elements of B one by one, and fill the output value into the first row of matrix D as a new element. Perform XOR operations on the second element of matrix A and the elements of B one by one, and fill the output value into the second row of matrix D as a new element. Repeat this until D becomes an n×k matrix. Multiply the k elements of each row of matrix D and fill in the new matrix E, then E becomes a 1xk matrix. Determine the number of non-zero elements y in matrix C, and then (1-y / k)*100% is the matching degree between the flight trajectory and the preset trajectory.

[0070] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for judging the flight trajectory of an indoor UAV, characterized by: include, Calibrate the optical capture system; Collect images used to calculate the drone’s position and posture; Model the pose data to generate trajectories; Model the flight area and trajectory data of the drone.

2. A method for judging indoor UAV flight trajectory according to claim 1, characterized in that: The working parameters of the optical capture system include the internal and external parameters of the camera, the structural parameters of the captured object, and the calibration content includes camera calibration and rigid body calibration.

3. A method for judging indoor UAV flight trajectory according to claim 1, characterized in that: According to the principle of multi-view geometry, multiple optical capture cameras are used to collect images of multiple marker points at different angles, calculate the position data of the marker points, and further convert them into rigid body pose data.

4. A method for judging indoor UAV flight trajectory according to claim 1, characterized in that: According to the posture data, the OpenGL standard is used to transform and process the posture data in multiple coordinate systems, and the three-dimensional trajectory model is converted into a two-dimensional image and displayed on the computer.

5. A method for judging indoor UAV flight trajectory according to claim 1, characterized in that: A three-dimensional grid map modeling method is used to establish a three-dimensional grid map based on the flight area, and the trajectory is fitted into the three-dimensional grid map to obtain the coverage area of ​​the fitted trajectory; According to the trajectory coverage area, the overlap degree is calculated with the standard trajectory coverage area as an indicator for judging the trajectory.

6. A method for judging indoor UAV flight trajectory according to claim 5, characterized in that: Calibration of the optical capture system includes calibrating multiple optical capture cameras, fixing the camera positions, and placing calibration bars in different directions and positions within the flight area to allow the cameras to collect enough marker point data. Use the marker point data to calculate the relative position of the camera and set the camera's external parameters. The camera's internal parameters are significantly affected by lighting. For different lighting conditions, adjust the camera's internal parameters to reduce noise in the camera's field of view and improve the accuracy of captured data. Establish a spatial right-handed rectangular coordinate system with the center of the field of view as the origin of the coordinate system. To calibrate the rigid body, install no less than 4 marker balls on the drone, and build a rigid body model using the installed marker balls as capture points.

7. A method for judging indoor UAV flight trajectory according to claim 6, characterized in that: By using the principle of computer multi-view geometry and combining multiple optical images of the same marker point, three-dimensional reconstruction is performed to calculate the position data of the marker point, thereby obtaining the position data of each marker point of the rigid body model, and using geometric relationships to obtain the position and posture data of the rigid body.

8. A method for judging indoor UAV flight trajectory as claimed in claim 3, characterized in that: Using OpenGL's three-dimensional model conversion method, the two-dimensional coordinate data and fragment RGBA value of each fragment of the model are calculated, and the pose data is converted into a visible trajectory image. The coordinate systems involved in OpenGL include the model coordinate system, world coordinate system, camera coordinate system, clipping coordinate system, and viewport coordinate system.

9. A method for judging indoor UAV flight trajectory according to claim 8, characterized in that: The external environment is discretized into grids of the same size according to a specific resolution, and each grid is represented by a state, i.e., an occupied state and an idle state, indicating whether the grid position is an obstacle; A three-dimensional grid map based on the flight area is established. The path planning algorithm occupies one grid and plans a path composed of multiple grids by searching free grids and avoiding obstacles. A standard trajectory is obtained by path planning, and the actual flight trajectory is fitted into the three-dimensional grid map. The overlap of the coverage areas of the two trajectories is calculated.

10. An indoor UAV flight trajectory evaluation method as claimed in claim 9, characterized in that: The actual flight trajectory F(t) is output by the motion capture system, and F(t) is matched with the three-dimensional grid map to obtain the coverage matrix A[F(1), F(2), F(3)...F(n)] of the trajectory F(t) in the grid map, where the element F(n) is expressed as (x, y, z) grid coordinates, and n is the number of grids occupied by the trajectory. In the three-dimensional grid map, the coverage matrix B[G(1), G(2), G(3)...G(k)] of the preset trajectory is established, where the element G(n) is expressed as (x, y, z), and k is the number of grids occupied by the trajectory. When k=n, directly perform XOR operation on the matrix A and the elements in the matrix one by one, and fill the output value into the new matrix C as a new element. Then C is a 1xn matrix. The number of non-zero elements y in the matrix C is taken, and (1-y / n)*100% is the matching degree between the flight trajectory and the preset trajectory. When k≠n, create a new matrix D, perform XOR operations on the first element of matrix A and the elements in B one by one, and fill the output value into the first row of matrix D as a new element. Perform XOR operations on the second element of matrix A and the elements in B one by one, and fill the output value into the second row of matrix D as a new element. Repeat this process until D becomes an n×k matrix. Multiply the k elements of each row of matrix D and fill them into a new matrix E, then E becomes a 1xk matrix. The number of non-zero elements y in matrix C is taken, then (1-y / k)*100% is the matching degree between the flight trajectory and the preset trajectory.

Citation Information

Patent Citations

  • Indoor navigation map construction method and system

    CN111768489A

  • Feasibility evaluation method for digital twinning of unmanned aerial vehicle based on Vicon motion capture system

    CN112286214A

  • Space environment unmanned aerial vehicle trajectory planning method based on improved ant colony algorithm

    CN115657721A

  • Indoor unmanned aerial vehicle flight path judgment method

    CN116563481A

  • Unmanned aerial vehicle navigation map construction system and method based on three-dimensional image reconstruction technology

    US20210358206A1

Cited By

  • Unmanned aerial vehicle logistics transportation capability analysis method

    CN119128463A

  • A method for analyzing the logistics transportation capacity of unmanned aerial vehicles

    CN119128463B

  • Low-altitude economic flight data management method and system based on edge calculation

    CN119484307A

  • Aircraft flap component robot compliant assembly control method and system

    CN119550320A

  • Method for carrying out quantitative analysis on building space design by utilizing VR (virtual reality) to collect walking tracks

    CN119577880A