Obstacle-avoiding fly-around control method and device for indoor unmanned aerial vehicle flight route
The lidar module obtains environmental information and divides barrier-free intervals, which solves the problem of untimely obstacle avoidance during indoor flights, realizes automatic path adjustment, and improves flight safety and entertainment.
Patent Information
- Application Number
- CN202411080110.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-08
AI Technical Summary
Due to the limitations of vision sensors, existing drones cannot identify obstacles from a distance when flying indoors, resulting in untimely obstacle avoidance and unable to automatically adjust the path.
Lidar module is used to obtain indoor environment information, establish a polar coordinate system to divide the area around the drone, filter the barrier-free interval, and automatically adjust the path according to the planned path output control instructions.
It realizes automatic path adjustments for drones when flying indoors, reduces flight difficulty, improves entertainment experience, and ensures safe flight.
Smart Images

Figure CN118915805A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an obstacle avoidance and circumvention control method and device for an indoor unmanned aerial vehicle flight route. Background Art
[0002] Drones can be used in many fields, such as aerial photography and cargo transportation, with many features such as low cost, small size, and high flexibility. When drones are flying indoors, obstacle avoidance is very important. Currently, there are many technologies in the field of drone obstacle avoidance, including the use of active sensors such as ultrasonic, infrared, and radar, as well as visual sensors.
[0003] Existing aircraft obstacle avoidance systems mostly use visual sensors. Generally speaking, a camera is used to capture images in front of the aircraft, and then the location of the obstacle is determined through the captured image, and then the size of the obstacle is determined to avoid the obstacle.
[0004] However, due to the limitations of visual sensors, the aircraft obstacle avoidance system cannot identify obstacles at a long distance. At the same time, it is also difficult to find gaps between obstacles that can be passed through, which can easily lead to untimely obstacle avoidance and failure to automatically adjust the path in time.
[0005] Therefore, in the face of the above-mentioned problems, it is a technical problem that needs to be solved urgently to develop a method and device for controlling obstacle avoidance and circumvention of indoor UAV flight routes that is easy to control and highly automatic. Summary of the invention
[0006] The purpose of the present invention is to provide an obstacle avoidance and circumvention control method and device for an indoor UAV flight route, so as to solve the problem that the existing UAV cannot identify obstacles at a long distance and cannot automatically adjust the path in time.
[0007] In order to solve the above technical problems, the present invention provides an obstacle avoidance and circumvention control method for an indoor UAV flight route, comprising the steps of:
[0008] S1: Obtain indoor environment information;
[0009] S2: Establish a polar coordinate system and divide the circumferential area of the drone into intervals according to the acquired indoor environment information;
[0010] S3: Filter out obstacle-free areas in the circumference of the drone;
[0011] S4: Select the shortest flight distance in the obstacle-free area as the flight path;
[0012] S5: Output control instructions according to the planned flight path to control the drone to fly indoors.
[0013] Furthermore, in step S1, a laser radar module is installed on the drone, and the laser radar module is used to scan the room to obtain indoor environment information.
[0014] Furthermore, in step S1, when acquiring indoor environment information, the laser radar module is used to obtain the position coordinate data of each target around the drone at different times in all directions.
[0015] Furthermore, the interval division includes: dividing the circumferential area within the 360° range of the drone into sub-sectors with an angle of 5 to 30°, and the sub-sectors are divided from the left to the right direction in front of the nose; then the sub-sectors are divided into multiple equal-width rings with equal width intervals with the drone position as the center, and obstacle values are assigned to the multiple equal-width rings according to the acquired indoor environment information.
[0016] Furthermore, the drone is provided with a flight speed monitoring sensor unit, a flight angle sensor unit and a flight distance sensor unit; in step S3, when screening out the barrier-free interval in the circumferential area of the drone, the barrier-free interval is screened out according to the constraint conditions, and the constraint conditions include the minimum turning radius of the current flight speed of the drone and the maximum tilt angle of the drone.
[0017] Further, in step S6, the control instruction includes:
[0018] When the control command is to move forward or backward, the drone will fly along the line between the drone and the target point so that the length value in the coordinate information changes but the angle value remains unchanged.
[0019] When the control command is to turn left or right, the drone will fly in the vertical direction of the line between the drone and the target point, so that the angle value in the coordinate information changes but the length value remains unchanged;
[0020] When the control instruction is oblique flight, the linear component and rotational component contained in the flight direction control instruction are extracted. The linear component corresponds to the forward or backward movement of the drone, and the rotational component corresponds to the left or right turn of the drone.
[0021] Furthermore, when the control instructions cannot be output according to the planned flight path, the UAV enters a hovering state.
[0022] Furthermore, when the control instructions cannot be output according to the planned flight path and the UAV enters a hovering state, an alarm indication is issued.
[0023] Furthermore, the alarm indication is an audible and visual alarm indication.
[0024] In addition, the present invention also provides an obstacle avoidance and circumvention control device for an indoor UAV flight route, comprising: a processor and a memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor executes the computer execution instructions stored in the memory to enable the device to execute the above-mentioned obstacle avoidance and circumvention control method.
[0025] The beneficial effects of the present invention are as follows: by dividing the indoor environment into sections in a targeted manner, and then screening out barrier-free sections that meet flight conditions for path planning and use, automatic path adjustment can be performed during indoor flight to meet different operational needs, reduce the difficulty of indoor flight, and enhance the entertainment experience of indoor flight. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The same reference numerals are used in these drawings to represent the same or similar parts. The exemplary embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 The figure is a flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0028] like Figure 1 The obstacle avoidance and circumvention control method for an indoor UAV flight route shown in the figure comprises the following steps:
[0029] S1: Obtain indoor environment information;
[0030] S2: Establish a polar coordinate system and divide the circumferential area of the drone into intervals according to the acquired indoor environment information;
[0031] S3: Filter out obstacle-free areas in the circumference of the drone;
[0032] S4: Select the shortest flight distance in the obstacle-free area as the flight path;
[0033] S5: Output control instructions according to the planned flight path to control the drone to fly indoors.
[0034] The present invention divides the indoor environment into sections in a targeted manner, and then screens out barrier-free sections that meet flight conditions for path planning and use, thereby meeting the needs of automatic path adjustment during indoor flight, meeting different operational needs, reducing the difficulty of indoor flight, and improving the entertainment experience of indoor flight.
[0035] According to one embodiment of the present application, in step S1, a laser radar module is installed on the drone, and the laser radar module is used to scan the room to obtain indoor environment information. The laser radar module is a radar system that emits a laser beam to detect the position, speed and other characteristic quantities of the target. Its working principle is to emit a detection signal (laser beam) to the target, and then compare the received signal reflected from the target (target echo) with the transmitted signal. After appropriate processing, relevant information about the target can be obtained, such as target distance, direction, height, speed, attitude, and even shape parameters, so as to detect, track and identify roadblocks.
[0036] According to an embodiment of the present application, in step S1, when acquiring indoor environment information, the laser radar module is used to obtain the position coordinate data of each target around the drone at different times. This embodiment can obtain the position coordinate data of each target around the drone at different times through the laser radar, which can ensure that the drone will not be affected by roadblocks no matter which direction it flies, and can ensure that the drone will not be damaged by roadblocks.
[0037] According to one embodiment of the present application, the interval division includes: the circumferential area within the range of 360° of the drone is divided into sub-sectors with 5 to 30°, and the sub-sectors are divided from the left to right rotation direction directly in front of the nose; then the sub-sectors are divided into multiple equal-width rings with equal width intervals with the position of the drone as the center, and obstacles are assigned to multiple equal-width rings according to the acquired indoor environment information. When performing interval division, the current position of the drone is taken as the pole, the front of the drone is taken as the polar axis direction, and a polar coordinate system is established to divide the 360-degree space around the drone into several equally divided intervals, and then according to the environmental information scanned by the laser radar module, it is determined whether there are obstacles in each interval, and then each interval is assigned according to whether there are obstacles. The obstacle-free interval in the circumferential area of the drone is selected, that is, the interval without obstacles or the parameters such as obstacle height and width meet the flight requirements of the drone is selected. By dividing the circumferential area of the drone according to the indoor environment information and assigning obstacles to each interval, it is possible to distinguish between obstacle-free intervals and obstacle intervals, so as to facilitate the subsequent screening of obstacle-free intervals.
[0038] According to one embodiment of the present application, a sensing unit for monitoring flight speed, a sensing unit for flight angle, and a sensing unit for flight distance are provided on the drone; in step S3, when screening out barrier-free intervals in the circumferential area of the drone, the barrier-free intervals are screened out according to constraint conditions, and the constraint conditions include the minimum turning radius of the drone's current flight speed and the maximum tilt angle of the drone. The turning radius of the drone is limited by its current flight speed, and the faster the speed, the larger the turning radius is generally; the maximum tilt angle is determined according to the structural design of the drone. This embodiment can ensure the validity of the screened barrier-free intervals by introducing constraint conditions to constrain the barrier-free intervals. According to one embodiment of the present application, in step S6, the control instructions include:
[0039] When the control command is to move forward or backward, the drone will fly along the line between the drone and the target point so that the length value in the coordinate information changes but the angle value remains unchanged.
[0040] When the control command is to turn left or right, the drone will fly in the vertical direction of the line between the drone and the target point, so that the angle value in the coordinate information changes but the length value remains unchanged;
[0041] When the control instruction is oblique flight, the linear component and rotational component contained in the flight direction control instruction are extracted. The linear component corresponds to the forward or backward movement of the UAV, and the rotational component corresponds to the left or right turn of the UAV.
[0042] This embodiment drives the drone according to the linear component and the rotational component, so that the length value in the coordinate information changes according to the linear component and the angle value changes according to the rotational component, thereby achieving obstacle avoidance and circumvention during the flight of the drone.
[0043] According to one embodiment of the present application, when it is impossible to output control instructions according to the planned flight path, the drone enters a hovering state to ensure the safety of the drone.
[0044] According to an embodiment of the present application, when the control command cannot be output according to the planned flight path and the drone enters a hovering state, an alarm indication is issued. By issuing an alarm indication, the controller can be notified in time and the situation can be discovered in time.
[0045] According to one embodiment of the present application, the alarm indication is an audible and visual alarm indication.
[0046] In addition, the present invention also provides an obstacle avoidance and circumvention control device for an indoor UAV flight route, comprising: a processor and a memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor executes the computer execution instructions stored in the memory to enable the device to execute the above-mentioned obstacle avoidance and circumvention control method.
[0047] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. 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 solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. An obstacle avoidance and circumvention control method for an indoor UAV flight route, characterized in that: Includes steps: S1: Obtain indoor environment information; S2: establishing a polar coordinate system, and dividing the circumferential area of the drone into intervals according to the acquired indoor environment information; S3: Filter out obstacle-free areas in the circumference of the drone; S4: selecting a section with the shortest flight distance in the obstacle-free section as the flight path; S5: Outputting control instructions according to the planned flight path to control the drone to fly indoors.
2. The obstacle avoidance and circumvention control method for indoor UAV flight routes according to claim 1 is characterized in that: In the step S1, a laser radar module is installed on the drone, and the indoor environment information is acquired by scanning the indoor environment through the laser radar module.
3. The obstacle avoidance and circumvention control method for indoor UAV flight route according to claim 2 is characterized in that: In step S1, when acquiring indoor environment information, the laser radar module is used to obtain the position coordinate data of each target around the drone at different times in all directions.
4. The obstacle avoidance and circumvention control method for indoor UAV flight routes according to claim 3 is characterized in that: The interval division includes: dividing the circumferential area within the 360° range of the drone into sub-sectors with 5 to 30°, and the sub-sectors are divided from the left to right rotation direction directly in front of the nose; then dividing the sub-sectors into multiple equal-width rings with equal width intervals with the drone position as the center, and assigning obstacles to the multiple equal-width rings according to the acquired indoor environment information.
5. The obstacle avoidance and circumvention control method for indoor UAV flight route according to claim 4 is characterized in that: The drone is provided with a flight speed monitoring sensor unit, a flight angle sensor unit and a flight distance sensor unit; in step S3, when screening out the barrier-free interval in the circumferential area of the drone, the barrier-free interval is screened out according to the constraint conditions, and the constraint conditions include the minimum turning radius of the current flight speed of the drone and the maximum tilt angle of the drone.
6. The obstacle avoidance and circumvention control method for indoor UAV flight route according to claim 5, characterized in that: In step S6, the control instruction includes: When the control command is to move forward or backward, the drone flies along the line between the drone and the target point, so that the length value in the coordinate information changes and the angle value remains unchanged; When the control instruction is to turn left or right, the drone flies in a direction perpendicular to the line between the drone and the target point, so that the angle value in the coordinate information changes and the length value remains unchanged; When the control instruction is for oblique flight, the linear component and the rotational component contained in the flight direction control instruction are extracted, the linear component corresponds to the forward or backward movement of the drone, and the rotational component corresponds to the left turn or right turn of the drone.
7. The obstacle avoidance and circumvention control method for indoor UAV flight route according to claim 1, characterized in that: When the control command cannot be output according to the planned flight path, the drone enters a hovering state.
8. The obstacle avoidance and circumvention control method for indoor UAV flight route according to claim 7, characterized in that: When the control command cannot be output according to the planned flight path and the UAV enters a hovering state, an alarm indication is issued.
9. The obstacle avoidance and circumvention control method for indoor UAV flight route according to claim 8, characterized in that: The alarm indication is an audible and visual alarm indication.
10. An obstacle avoidance and circumvention control device for an indoor UAV flight route, characterized in that: include: A processor and a memory; wherein the memory is used to store computer-executable instructions. When the device is running, the processor executes the computer-executable instructions stored in the memory so that the device executes the obstacle avoidance and circling control method described in any one of claims 1 to 9.
