A method for adaptive height adjustment of unmanned aerial vehicles based on visual positioning
The UAV is equipped with a wide-angle camera module to collect the position information of the ground car in real time, calculate the geometric center and error of the formation, and use incremental PD control and proportional coefficient to adjust the height of the UAV, which solves the limitations of ground positioning equipment and computing equipment in the existing technology. For demanding problems, it achieves multi-robot collaborative control and high adaptability in complex environments, improving positioning accuracy and system independence.
Patent Information
- Application Number
- CN202210963578.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-11
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-08-11
AI Technical Summary
The existing technology has problems with ground positioning equipment limitations, high computing equipment requirements, and insufficient real-time image processing in UAV height adjustment, making it difficult to achieve effective positioning and height adaptation for multi-robot collaborative control in complex environments.
The UAV is equipped with a wide-angle camera module to collect the position information of the ground vehicle in real time. By establishing the body positioning coordinate system and visual tracking controller, the formation geometric center and error are calculated, and the incremental PD control and proportional coefficient are used to adjust the UAV flight height. Make sure the car formation is within view and adjust accordingly.
It reduces the site requirements, reduces the computing burden of the host computer, achieves accurate positioning and high adaptability of UAVs in multi-robot collaborative control, improves positioning accuracy and system independence, and has strong adaptability.
Smart Images

Figure CN115373417B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of mobile machines, and more specifically, relates to a method for adaptively adjusting the height of an unmanned aerial vehicle based on visual positioning. Background Art
[0002] The vision-based positioning method is to obtain the image or video stream from the camera sensor to calculate the position of the carrier robot in the current coordinate system.
[0003] In recent years, mobile robot technology has developed rapidly. As the complexity of tasks increases, there are often scenarios where a single robot is unable to handle the task. Compared with a single robot system, a multi-robot system can combine the different advantages of multiple robots to achieve stronger performance and better robustness. Multi-robot application scenarios include: target detection and tracking, joint coverage and path planning, collaborative transportation, etc. Among them, positioning is the core issue of multi-robot collaborative control. Obtaining the position information of multiple mobile robots in a complex environment is helpful to achieve collaborative control of multiple mobile robots.
[0004] The invention is proposed due to the need for robot positioning in the design and implementation of collaborative control of heterogeneous multi-robots. In the collaborative control design and implementation, the UAV needs to autonomously adjust the flight altitude and position according to the position information of the ground unmanned vehicle, so that the projection position of the UAV is always at the geometric center of the ground unmanned vehicle, and at the same time, ensure that all ground vehicles are within the wide-angle camera range of the UAV.
[0005] For this demand, existing technologies are mainly concentrated in two directions: one is to locate the unmanned vehicle through ground equipment and return the location information to the host computer to control the position of the drone; the other is based on machine vision, the drone uses machine learning methods to locate the target based on the camera data collected, and adjust the drone position. The first solution is limited by the ground positioning equipment, and has high requirements for the ground environment in actual applications, and is not widely applicable; the second solution requires high-performance computing equipment, relies on the support of high-performance machine learning models, has high requirements for the host computer available for deployment, and has deficiencies in the real-time performance of image processing. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method for adaptive height adjustment of drones based on visual positioning, which specifically implements a method for dynamic positioning of drones for ground multi-robots; when the ground vehicles perform formation tasks and formation switching, visual tracking coverage is achieved for the ground vehicle formation. Among them, the position measurement of the ground vehicle depends on the wide-angle camera carried by the drone, and the flight position of the drone depends on real-time calculation.
[0007] To achieve the above-mentioned purpose of the invention, the present invention provides a method for adaptively adjusting the height of a drone based on visual positioning, comprising the following steps:
[0008] Step 1: The drone takes off vertically above the car formation, and the airborne wide-angle camera module collects the position information of each car on the ground and sends it to the host computer to establish the body positioning coordinate system;
[0009] Step 2: Read the current plane position coordinates (x i ,y i ), take the origin (0,0) as the virtual point, and divide the polygon formed by each car into n finite triangles X1,X2,...,X n , n represents the total number of ground vehicles; the geometric center C of each triangle is calculated by the formula j and the area of the triangle S j ;
[0010]
[0011] The geometric center (C x ,C y ), which is the coordinate of the center of the current formation;
[0012]
[0013] Step 3: The visual tracking controller transmits speed control instructions based on the vehicle formation posture information to control the UAV to fly above the center point of the vehicle formation;
[0014] Step 3.1: In the body positioning coordinate system, the wide-angle camera obtains the coordinate information set of each ground vehicle and obtains the center position of the formation;
[0015] Step 3.2: Calculate the error between the center position of the formation and the expected position, transmit the flight control command to the drone, and use incremental PD control to move point A on the drone to another point B. Point A is the original position of the drone, and point B is a certain height above the expected geometric center. The calculated error is the error between the center position of the formation obtained at point A and the expected position.
[0016] Step 3.3: The current position p and the expected position p of the drone d The calculation formula of error e and speed increment is as follows;
[0017] e=pp d
[0018] Δu(k)=K P [e(k)-e(k-1)]+K D [e(k)-2e(k-1)+e(k-2)]
[0019] Among them, K P represents gain, e(k) represents error;
[0020] Step 4: By setting the proportion coefficient of the rectangle formed by the car formation in the picture, the flight altitude of the drone is adaptively adjusted;
[0021] Step 4.1: Assume the proportionality coefficient η, and the calculation formula is as follows;
[0022]
[0023] Among them, m and n are the length and width of the smallest rectangle surrounding the ground vehicle formation, and M and N are the length and width of the corresponding field of view at the current drone height h;
[0024] Step 4.2: Calculate the current expected flight altitude H of the UAV by the proportional coefficient η, and transmit the control command to ascend or descend to the altitude;
[0025] Step 4.3: Based on the above steps, the aircraft is now flying at the desired altitude, providing a good visual coverage for the ground vehicle; when the ground vehicle performs formation switching and formation movement operations, repeat steps 2 and 3 to instantly calculate the current desired altitude H;
[0026] Step 4.4: When the convoy expands, the current flight altitude h < the expected altitude H, the expected altitude H is calculated, and a speed control command is sent to make the drone rise to the expected altitude H;
[0027] Step 4.5: When the convoy is reduced in size, the current flight altitude h> the expected altitude H, the expected altitude H is calculated, and a speed control command is sent to make the drone descend to the expected altitude H;
[0028] Step 5: Real-time positioning of each ground vehicle, feedback of the current position information to the host computer, and then repeat steps 3 and 4.
[0029] The object of the invention of the present invention is achieved in this way:
[0030] The method for adaptive height adjustment of unmanned aerial vehicles (UAVs) based on visual positioning of the present invention collects position information of labels placed on various ground vehicles through a wide-angle camera module carried by the UAV, and sends the information to a host computer through a local area network to establish a body positioning coordinate system; when a ground vehicle formation performs a formation task, each vehicle is accurately positioned, and the position information of each ground vehicle is obtained by solving the original coordinate information, and the central position of the vehicle formation is calculated; the UAV flies to a certain height above the central position and follows, ensuring that the vehicles move within the field of view of the wide-angle camera; the proportion of the vehicle formation in the current camera image is calculated, and the corresponding control command is sent to adaptively adjust the flight height of the UAV.
[0031] At the same time, the method for adaptive height adjustment of unmanned aerial vehicles based on visual positioning of the present invention also has the following beneficial effects:
[0032] (1) In the previous positioning scheme, each car needs to be positioned separately by the positioning tag it carries and the base station, which has high requirements for the site, and all calculation processes are performed on the host computer. In the present invention, the drone is used to visually position all cars, which greatly reduces the requirements for the site. The calculation process is undertaken by the drone and the host computer respectively. The host computer only needs to send control instructions to the drone, which reduces the burden on the host computer and enables the host computer to efficiently calculate and transmit the position information;
[0033] (2) In the method of flying the drone at a fixed altitude, as the formation of the ground car fleet expands, the car may go out of the field of view of the wide-angle camera and be lost; at the same time, as the flying altitude of the drone increases, the positioning accuracy of the car will decrease. Simply setting a higher flying altitude cannot guarantee a higher positioning accuracy. The present invention is based on the visual positioning of the drone. By constructing the flight rules for the drone to follow the car formation, a system structure that is technically easier to implement is realized. Each ground car relies on the positioning of the drone to complete the position update, and accurate positioning can be achieved without any communication equipment between ground cars.
[0034] (3) In the overall system with a host computer, the UAV and the ground vehicles are independent of the host computer, maintaining their independence in traditional distributed control. The overall system is easier to implement in engineering than traditional positioning solutions. At the same time, the required algorithms can be formulated in the system according to actual needs, and it has high adaptability to different environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of the method for adaptive height adjustment of unmanned aerial vehicles based on visual positioning of the present invention;
[0036] Figure 2 It is a schematic diagram of the visual positioning system;
[0037] Figure 3 It is a schematic diagram of the change of three-dimensional coordinates during the movement of the UAV;
[0038] Figure 4 It is a schematic diagram of the change of the Z-axis displacement component during the movement of the UAV. DETAILED DESCRIPTION
[0039] Figure 1 The present invention is a flow chart of the method for adaptive height adjustment of unmanned aerial vehicles based on visual positioning.
[0040] In this embodiment, if Figure 1As shown, the present invention provides a method for adaptively adjusting the height of a UAV based on visual positioning, comprising the following steps:
[0041] S1, drone initialization, take-off to 2m;
[0042] The wide-angle camera module carried by the drone collects the location information of the tags placed on various ground vehicles, and sends it to the host computer through the main base station to establish the body positioning coordinate system;
[0043] In this embodiment, the schematic diagram of the body positioning coordinate system is as follows: Figure 2 As shown; establish the origin, horizontal axis and vertical axis of the body coordinate system, confirm the coordinates of each car tag in the body coordinate system, and transmit the original position coordinate information to the host computer; after the host computer processes the original position coordinate information sent by the base station, the position coordinate information of the four robots is obtained, as shown in Table 1.
[0044] Table 1 is the initial position coordinate information table of the mobile robot.
[0045] Robot ID <![CDATA[G1]]> <![CDATA[G2]]> <![CDATA[G3]]> <![CDATA[G4]]> Horizontal axis 0.50 -0.50 -0.50 0.50 Vertical axis 0.50 0.50 -0.50 -0.50
[0046] Table 1
[0047] S2, calculate the geometric center of the car formation;
[0048] Divide the polygon formed by the car into n finite triangles X1, X2, ..., X n , n represents the total number of ground vehicles. The geometric center C of each triangle j and the area of the triangle S j The calculation formula is as follows:
[0049]
[0050] The calculation formula of the formation geometric center coordinates is as follows:
[0051]
[0052] After the host computer receives a set of coordinate information of each car label, it uses the geometric center calculation formula of the polygon to calculate the geometric center position of the current car formation; after the host computer processes the car position information sent by the drone, it obtains the geometric center position information, and the position coordinates of the geometric center of the car formation are (0,0).
[0053] S3, send control instructions to control the drone to fly above the geometric center and rise / descend to the desired height;
[0054] Calculate the error between the UAV posture and the formation center posture, transmit the flight control command to the UAV, and use incremental PD control to move point A (x, y, z) on the UAV to another point B.
[0055] It is known that the field of view of the wide-angle camera is 97°, and the proportion of the formation in the wide-angle camera field of view is set to 0.8. The expected flight altitude of the drone is calculated by trigonometric function to be 1.16m, and the drone descends from a height of 2m to 1.16m.
[0056] S4, the car formation expands, and the drones adaptively increase their flight altitude;
[0057] The host computer sends a control command to the car formation to expand the formation, obtains the position coordinates of each car after expansion and calculates the position coordinates of the current geometric center as shown in Table 1.
[0058] Table 1 shows the position coordinates and geometric center position coordinates of the four ground vehicles after the formation is expanded.
[0059] Robot ID <![CDATA[G1]]> <![CDATA[G2]]> <![CDATA[G3]]> <![CDATA[G4]]> <![CDATA[G o ]]> Horizontal axis 1.00 -1.00 -1.00 1.00 0.00 Vertical axis 1.00 1.00 -1.00 -1.00 0.00
[0060] Table 1
[0061] The expected height is calculated to gradually rise to 2.21m, and the drones rise to this height as the formation expands.
[0062] Repeat processes S2 and S3.
[0063] Examples
[0064] For ease of understanding, we will discuss the relatively simple case of two ground cars separately. Let the two ground cars be car 1 and car 2, and assign them initial coordinate information as (0.80, 0) and (-0.70, 0) respectively; give car 1 an initial velocity of 0.01 in the positive direction of the horizontal axis, and car 2 remains stationary.
[0065] Figure 3 It is a schematic diagram of the change of three-dimensional coordinates during the movement of the UAV;
[0066] Figure 4 It is a schematic diagram of the change of the Z-axis displacement component during the movement of the UAV.
[0067] In this embodiment, if Figure 3 , 4As shown in the figure, after initializing the system, the drone is controlled to take off vertically and rise to 2.3m as the initial state, and the initial distance between the two ground cars is 1.5m. The wide-angle camera detects the position of the label on the car body, calculates and keeps the drone flying above the geometric center of the car, and the distance between the two cars is 1.5m. In this state, the proportion of the car formation within the field of view of the wide-angle camera is significantly less than the preset proportion coefficient η. The drone executes the height adjustment algorithm and automatically adjusts the height down to 1.06m, entering the transition stage. Then the formation of the ground car is expanded and transformed, and the No. 1 label car moves slowly to the right at a speed of 0.01m / s, close to the edge of the original field of view. At this time, the height of the drone slowly rises, and finally reaches a height of 2.16m when the car stops. During the process, it remains above the geometric center of the formation, so that the formation of the car formation is in the center of the field of view.
Claims
1. A method for adaptive height adjustment of UAV based on visual positioning, The following steps are involved: Step 1: The drone takes off vertically above the car formation, and the airborne wide-angle camera module collects the position information of each car on the ground and sends it to the host computer to establish the body positioning coordinate system; Step 2: Read the current plane position coordinates (x i ,y i ), take the origin (0,0) as the virtual point, and divide the polygon formed by each car into n finite triangles X 1 ,X 2 ,...,X n , n represents the total number of ground vehicles; the geometric center C of each triangle is calculated by the formula j and the area of the triangle S j ; The geometric center (C x ,C y ), which is the coordinate of the center of the current formation; Step 3: The visual tracking controller transmits speed control instructions based on the vehicle formation posture information to control the UAV to fly above the center point of the vehicle formation; Step 3.1: In the body positioning coordinate system, the wide-angle camera obtains the coordinate information set of each ground vehicle and obtains the center position of the formation; Step 3.2: Calculate the error between the center position of the formation and the expected position, transmit the flight control command to the drone, and use incremental PD control to move point A on the drone to another point B. Point A is the original position of the drone, and point B is a certain height above the expected geometric center. The calculated error is the error between the center position of the formation obtained at point A and the expected position. Step 3.3: The current position p and the expected position p of the drone d The calculation formula of error e and speed increment is as follows; e=p-p d Δu(k)=K P [e(k)-e(k-1)]+K D [e(k)-2e(k-1)+e(k-2)] Among them, K P represents gain, e(k) represents error; Step 4: By setting the proportion coefficient of the rectangle formed by the car formation in the picture, the flight altitude of the drone is adaptively adjusted; Step 4.1: Assume the proportionality coefficient η, and the calculation formula is as follows; Among them, m and n are the length and width of the smallest rectangle surrounding the ground vehicle formation, and M and N are the length and width of the corresponding field of view at the current drone height h; Step 4.2: Calculate the current expected flight altitude H of the UAV by the proportional coefficient η, and transmit the control command to ascend or descend to the altitude; Step 4.3: Based on the above steps, the aircraft is now flying at the desired altitude, providing a good visual coverage for the ground vehicle; when the ground vehicle performs formation switching and formation movement operations, repeat steps 2 and 3 to instantly calculate the current desired altitude H; Step 4.4: When the convoy expands, the current flight altitude h < the expected altitude H, the expected altitude H is calculated, and a speed control command is sent to make the drone rise to the expected altitude H; Step 4.5: When the convoy is reduced in size, the current flight altitude h> the expected altitude H, the expected altitude H is calculated, and a speed control command is sent to make the drone descend to the expected altitude H; Step 5: Real-time positioning of each ground vehicle, feedback of the current position information to the host computer, and then repeat steps 3 and 4.
