WO2020107475A1 - Obstacle avoidance control method, apparatus and device for spraying unmanned aerial vehicle, and storage medium - Google Patents

Obstacle avoidance control method, apparatus and device for spraying unmanned aerial vehicle, and storage medium Download PDF

Info

Publication number
WO2020107475A1
WO2020107475A1 PCT/CN2018/118772 CN2018118772W WO2020107475A1 WO 2020107475 A1 WO2020107475 A1 WO 2020107475A1 CN 2018118772 W CN2018118772 W CN 2018118772W WO 2020107475 A1 WO2020107475 A1 WO 2020107475A1
Authority
WO
WIPO (PCT)
Prior art keywords
obstacle avoidance
drone
route segment
target
spray
Prior art date
Application number
PCT/CN2018/118772
Other languages
French (fr)
Chinese (zh)
Inventor
李劲松
彭昭亮
贾向华
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2018/118772 priority Critical patent/WO2020107475A1/en
Priority to CN201880069596.7A priority patent/CN111386508A/en
Publication of WO2020107475A1 publication Critical patent/WO2020107475A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/10Simultaneous control of position or course in three dimensions

Definitions

  • the embodiments of the present invention relate to the field of spraying drones, and in particular to an obstacle avoidance control method, device, equipment and storage medium for spraying drones.
  • the spraying drone is usually provided with an obstacle avoidance system.
  • the obstacle avoidance system detects obstacles around the spraying drone, the spraying drone performs bypass obstacle avoidance.
  • the bypass path of the spray drone when it bypasses obstacle avoidance is relatively fixed and mechanized, resulting in the spray drone needing to fly a long path to bypass the obstacle, or the spray drone needs to fly a long It takes time to circumvent obstacles, reducing the efficiency of spraying the UAV.
  • Embodiments of the present invention provide an obstacle avoidance control method, device, equipment, and storage medium for spraying a drone, so as to improve the detour efficiency of the spraying drone.
  • a first aspect of an embodiment of the present invention is to provide an obstacle avoidance control method for a spray drone.
  • the spray drone is provided with a detection device.
  • the detection device is used to detect obstacles.
  • the spraying drone performing the spraying task according to the operation route, acquiring detection data output by the detection device, wherein the operation route includes a plurality of operation route segments;
  • the spraying drone is controlled to return to the current operation route segment from the target obstacle avoidance path to continue to perform the spraying task.
  • a second aspect of an embodiment of the present invention is to provide an obstacle avoidance control device for a spray drone, where the spray drone is provided with a detection device, the detection device is used to detect an obstacle, and the obstacle avoidance control device includes : Memory and processor;
  • the memory is used to store program codes
  • the processor calls the program code, and when the program code is executed, it is used to perform the following operations:
  • the spraying drone performing the spraying task according to the operation route, acquiring detection data output by the detection device, wherein the operation route includes a plurality of operation route segments;
  • the spraying drone is controlled to return to the current operation route segment from the target obstacle avoidance path to continue to perform the spraying task.
  • a third aspect of the embodiments of the present invention is to provide a spray drone, including:
  • a power system installed on the fuselage, is used to provide flight power
  • the obstacle avoidance control device according to the second aspect.
  • a fourth aspect of the embodiments of the present invention is to provide a computer-readable storage medium on which a computer program is stored, which is executed by a processor to implement the method according to the first aspect.
  • the obstacle avoidance control method, device, equipment and storage medium of the spray drone provided in this embodiment, by acquiring the detection data output by the detection device when the spray drone performs the spray task according to the operation route, and establishing a digital map based on the detection data Since the operation route includes multiple operation route segments, the detection device can detect obstacles on other operation route segments when the spraying drone performs the spraying task on one of the operation route segments.
  • the target obstacle avoidance path parallel to the current operating route segment can be determined according to the digital map, and the spraying can be controlled.
  • the man-machine moves from the current operation route segment to the target obstacle avoidance path for obstacle avoidance, so that the spraying drone does not need fixed or mechanized bypass obstacle avoidance and frequently stops, rotates frequently, and frequently detects whether there are obstacles on the current operation route segment Objects, thereby improving the efficiency of detouring spraying drones.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a user interface provided by an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a working route provided by an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a radar detection range provided by an embodiment of the present invention.
  • FIG. 6 is a flowchart of an obstacle avoidance control method for spraying a drone according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a radar detection range provided by an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a spraying drone performing a spraying task provided by an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of establishing a digital map provided by an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a spray drone bypass obstacle avoidance provided by an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another spraying drone bypass obstacle avoidance provided by an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another spraying drone bypass obstacle avoidance provided by an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another obstacle-avoiding spraying drone provided by an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of another user interface provided by an embodiment of the present invention.
  • 15 is a flowchart of an obstacle avoidance control method for spraying a drone according to another embodiment of the present invention.
  • 16 is a schematic diagram of multiple obstacle avoidance paths provided by an embodiment of the present invention.
  • 17 is a flowchart of an obstacle avoidance control method for spraying a drone according to another embodiment of the present invention.
  • FIG. 18 is a schematic diagram of a target return path provided by an embodiment of the present invention.
  • 19 is a schematic diagram of another target return path provided by an embodiment of the present invention.
  • 20 is a schematic diagram of another user interface provided by an embodiment of the present invention.
  • 21 is a schematic diagram of another user interface provided by an embodiment of the present invention.
  • 22 is a schematic diagram of another operation route provided by an embodiment of the present invention.
  • FIG. 23 is a schematic diagram of another operation route provided by an embodiment of the present invention.
  • 24 is a schematic diagram of another operation route provided by an embodiment of the present invention.
  • 25 is a schematic diagram of another operation route provided by an embodiment of the present invention.
  • 26 is a structural diagram of an obstacle avoidance control device according to an embodiment of the present invention.
  • FIG. 27 is a structural diagram of a spray drone provided by an embodiment of the present invention.
  • Obstacle avoidance path 93: Obstacle avoidance path; 94; Obstacle avoidance path: 95: Obstacle avoidance path;
  • 262 processor; 263: communication interface; 270: spray drone;
  • a component when a component is said to be “fixed” to another component, it can be directly on another component or it can also exist in a centered component. When a component is considered to be “connected” to another component, it can be directly connected to another component or there can be centered components at the same time.
  • the drone 10 may specifically be a spray drone, such as an agricultural drone (a drone spraying pesticides, seeds, and moisture).
  • 101 denotes a flight controller of the drone 10, and the flight controller 101 is used to control the drone 10 to fly.
  • 12 denotes a communication module of the UAV 10, and the communication module 12 may specifically be a wireless communication module, and the communication module 12 may perform wireless communication with the ground control terminal 13.
  • the communication module 12 can also perform wired communication with the ground control terminal 13.
  • the ground control terminal 13 is specifically a remote control, a smart phone, a tablet computer, etc. and combinations thereof.
  • the ground control terminal 13 can control the drone 10 for spraying tasks, or the drone 10 can also operate autonomously.
  • the ground control terminal 13 can send the operation route to the drone 10, and the drone 10 autonomously performs the spraying task according to the operation route.
  • the ground control terminal 13 may locally store the operation route in advance.
  • the ground control terminal 13 may download the operation route from the cloud server.
  • the ground control terminal 13 may generate a working route according to the position information of the working area to be sprayed.
  • One possible way for the ground control terminal 13 to generate a work route according to the position information of the work area to be sprayed is: as shown in FIG.
  • 21 represents the user interface of the ground control terminal 13, and an electronic map 22 is displayed in the user interface 21
  • the user can select the work area to be sprayed in the electronic map 22, for example, the work area 23, and points A, B, C, and D represent four points on the edge of the work area 23.
  • This is only a schematic illustration and does not limit the shape of the work area to be sprayed.
  • the ground control terminal 13 plans a working route of the drone 10 in the working area 23 according to a preset algorithm, such as a full-coverage path planning algorithm, such as the working route from waypoint 0 to waypoint 11 shown in FIG. 2. It can be understood that the operating route is composed of a series of waypoints.
  • the work area to be sprayed may not be selected by the user in the electronic map, but is preset, that is, the position information of the work area to be sprayed is preset, and the ground control terminal 13 According to the position information of the operation area to be sprayed, the operation route can be generated.
  • the ground control terminal 13 sends the operation route to the drone 10, and after receiving the operation route through the communication module 12, the flight controller 101 of the drone 10 autonomously executes the spraying task according to the operation route.
  • the process of the flight controller 101 performing the spraying task autonomously according to the operation route is specifically shown in FIG. 3, point E represents the starting point of the drone 10, namely the HOME point, and the drone 10 receives at As shown in FIG. 2, the operation route includes a plurality of operation route segments, wherein the operation route segment is a route between two adjacent waypoints, for example, from waypoint 0 to waypoint 1 Operation route segment, operation route segment from waypoint 1 to waypoint 2, operation route segment from waypoint 2 to waypoint 3, and so on, operation route segment from waypoint 10 to waypoint 11.
  • the flight controller 101 controls the drone 10 to fly from point E to the first waypoint, which is waypoint 0, and the nozzle is turned on at waypoint 0, and according to a series of waypoints from waypoint 0 to waypoint 1,
  • the man-machine 10 flies from waypoint 0 to waypoint 1, and controls the nozzle to close at waypoint 1, thereby completing the spraying task corresponding to the operation route segment from waypoint 0 to waypoint 1.
  • the flight controller 101 controls the drone 10 to traverse from waypoint 1 to waypoint 2, the so-called traverse refers to the process of the drone 10 flying from waypoint 1 to waypoint 2
  • the direction of the nose is consistent with the direction of the working route segment from waypoint 0 to waypoint 1.
  • the flight controller 101 controls the nozzle to turn on again, and when the drone 10 flies from waypoint 2 to waypoint 3, the flight controller 101 controls the nozzle to turn off again, thus completing from The spraying tasks corresponding to the operating route segments from waypoint 2 to waypoint 3, and so on, until the drone 10 completes the spraying tasks corresponding to the operating route segments from waypoint 10 to waypoint 11, then fly back from waypoint 11
  • the HOME point is the E point, thereby completing the spraying task to the work area 23. That is, for example, the working route segment from waypoint 0 to waypoint 1 is a route segment where the spraying drone performs the spraying task.
  • the operating route segment from waypoint 1 to waypoint 2 is the route segment when the spray drone moves laterally.
  • the ground control terminal 13 may also send the position information of the work area to be sprayed to the drone 10, and the drone 10 generates a work route according to the position information of the work area, and autonomously follows the work route Perform spraying tasks.
  • the process and principle of the UAV 10 generating the operation route according to the position information of the operation area are similar to the process of the ground control terminal 13 generating the operation route according to the position information of the operation area, which will not be repeated here.
  • the drone 10 may also store a working route in advance, and perform spraying tasks according to the working route.
  • spraying drones In the process of spraying drones, such as agricultural drones, performing obstacles in accordance with the operation route, an obstacle may be encountered at any time. At this time, the spraying drone needs to bypass the obstacle and return to the current operation route segment.
  • detection equipment such as radar (millimeter wave radar or lidar), ultrasonic detection equipment, TOF ranging detection equipment, visual detection equipment, laser detection equipment, etc.
  • radar millimeter wave radar or lidar
  • the millimeter-wave radar can detect obstacles within a preset range in front of and behind the spray drone 41. The range may be a range of plus or minus 45 degrees as shown in FIG. 4.
  • the process of spraying the drone 41 around the obstacle avoidance in the prior art may include several steps as shown in FIG. 5:
  • step 1 the spray drone 41 detects an obstacle 51 ahead, and first brakes.
  • Step 2 The spray drone 41 rotates 90 degrees to the left in the body coordinate system.
  • Step 3 The spray drone 41 flies forward in the body coordinate system.
  • the spray drone 41 flies forward in the body coordinate system for a distance d1, hover.
  • Step 4 The spray drone 41 rotates 90 degrees to the right in the body coordinate system and returns to the direction of the previous route segment.
  • Step 5 The spray drone 41 flies forward in the body coordinate system.
  • the spray drone 41 flies forward in the body coordinate system for a distance of d2, hover.
  • Step 6 The spray drone 41 rotates 90 degrees to the right under the body coordinate system, and detects whether there is an obstacle on the previous route segment, and if not, it will fly forward under the body coordinate system.
  • step 7 the spraying drone 41 returns to the previous route segment to continue to perform subsequent spraying tasks.
  • step 6 the spray drone 41 detects an obstacle on the previous route segment
  • the spray drone 41 can be rotated 90 degrees to the left in the body coordinate system, according to the direction shown in step 5 Continue to fly forward until the spray drone 41 detects that there is no obstacle on the previous route segment, and then return to the previous route segment in the direction shown in step 7 to continue to perform subsequent spraying tasks.
  • embodiments of the present invention provide an obstacle avoidance control method for spraying drones to provide a more flexible obstacle avoidance strategy for spraying drones. The method will be described below in conjunction with specific embodiments.
  • An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone.
  • the spray drone is provided with detection equipment, and the detection equipment is used to detect obstacles.
  • the spray drone is an agricultural drone.
  • FIG. 6 is a flowchart of an obstacle avoidance control method for spraying an unmanned aerial vehicle according to an embodiment of the present invention. As shown in FIG. 6, the method in this embodiment may include:
  • Step S601 During the process that the spraying drone performs the spraying task according to the operation route, obtain the detection data output by the detection device, wherein the operation route includes a plurality of operation route segments.
  • the detection equipment provided on the spray drone may be radar, ultrasonic detection equipment, TOF ranging detection equipment, visual detection equipment, laser detection equipment, and the like.
  • This embodiment takes a radar as an example, and the radar may specifically be a millimeter wave radar. As shown in FIG. 7, the millimeter wave radar can detect obstacles within a 90-degree angle of view before and after spraying the drone 41, and the maximum detection distance of the millimeter wave radar is 40 meters. In the process of spraying the drone to perform the spraying task according to the operation route, the millimeter-wave radar detects obstacles in its perspective in real time.
  • the working route may specifically be a working route as shown in FIGS. 2, 3, and 4.
  • the working route includes a plurality of working route segments.
  • the working route segment may not only be a route segment where a spray drone performs a spray task, but also It may be a route segment when the spraying drone 41 moves laterally.
  • the millimeter-wave radar tracks the original data of the detected target multiple times, and evaluates the track quality of the target each time it tracks. When the track quality reaches a certain threshold, the millimeter-wave radar determines that the target is true and effective Obstacles, output detection data, and send the detection data to the navigation module and flight controller spraying the UAV 41.
  • the detection data includes at least one of the following: the size of the obstacle, the distance and direction of the obstacle relative to the spray drone.
  • the distance of the obstacle with respect to the spray drone may be a linear distance between the obstacle and the spray drone, and the direction of the obstacle with respect to the spray drone is specific It may be an angle between the obstacle, the connection line between the spray drone and the head of the spray drone, that is, the angle at which the obstacle deviates from the head.
  • the head of the spray drone can be in the same direction as the operation route segment or opposite to the direction of the operation route segment.
  • 80 indicates the spray drone nose When the spraying drone performs the spraying task in the operating route segment 23, the direction of the spraying drone's nose is consistent with the direction of the operating route segment 23.
  • the direction of the operation route segment may be the direction from the historical waypoints that the spray drone has passed to the waypoints to be passed when the spray drone is flying on the operation route segment.
  • the spray drone moves laterally from waypoint 3 to waypoint 4, the direction of the spray drone's nose remains unchanged.
  • the spraying drone performs the spraying task in the operation route section 45 the head of the spraying drone is opposite to the direction of the operation route section 45. That is to say, when the spraying drone performs the spraying task in the operation route segment 23, the spraying drone flies forward in the body coordinate system.
  • the spraying drone performs the spraying task in the operation route segment 45, the spraying drone flies backward in the body coordinate system.
  • the spray drone can also rotate after the traverse is completed, for example, at waypoint 4, so that the spray drone's nose is aligned with the direction of the operating route segment 45.
  • 71 and 72 represent obstacles detected by the millimeter-wave radar.
  • the detection data output by the millimeter-wave radar includes the size of the obstacle 71, the distance and direction of the obstacle 71 relative to the spray drone 41; and the obstacle The size of the object 72 and the distance and direction of the obstacle 72 relative to the spray drone 41.
  • the size of the obstacle 71 may specifically be the width of the obstacle 71, the distance of the obstacle 71 relative to the spray drone 41 is d1, and the direction of the obstacle 71 relative to the spray drone 41 may specifically be the deviation of the obstacle 71 The angle ⁇ 1 toward which the head of the drone 41 is sprayed.
  • the size of the obstacle 72 may specifically be the width of the obstacle 71, the distance of the obstacle 72 relative to the spray drone 41 is d2, and the direction of the obstacle 72 relative to the spray drone 41 may specifically be that the obstacle 72 deviates from the spray without The angle ⁇ 2 of the head of the human-machine 41.
  • Step S602 Establish a digital map according to the detection data.
  • the millimeter-wave radar can also detect the obstacle 73 blocked by the obstacle 72, for example, the distance of the obstacle 73 relative to the spray drone 41 is d3, and the obstacle The angle that 73 deviates from the direction of the spray drone 41 head is ⁇ 3.
  • a digital map is established according to the detection data.
  • the digital map may specifically be a global grid map.
  • the digital map is used as a global grid map for schematic description. It is understandable that the global grid maps appearing in the later part of this article can all be replaced by digital maps. .
  • the navigation module marks obstacles in the global grid map according to the detection data.
  • the navigation module according to the size of the obstacles detected by the millimeter wave radar, the distance and direction relative to the spray drone, in the global grid
  • the positions corresponding to obstacles are marked with weighted values, and the positions without obstacles are marked with reduced weights.
  • the position corresponding to +5 indicates that there is an obstacle
  • the position corresponding to -1 indicates that there is no obstacle.
  • the size of the weighted value and the weight-reduced value can be used to measure the credibility of the millimeter-wave radar detection data.
  • the weighted value can be used to measure the credibility of real obstacles
  • the weight-reduced value Can be used to measure credibility without obstacles.
  • the navigation module can determine which positions in the global grid map have obstacles according to the threshold. In this embodiment, since the millimeter wave radar can output detection data in real time, the navigation module can construct a global grid map in real time.
  • Step S603 When the spraying drone performs the spraying task according to the current operation route segment of the plurality of operation route segments, if it is determined that there is an obstacle on the current operation route segment, then according to the digital map Determine a target obstacle avoidance path parallel to the current operational route segment.
  • the spraying drone 41 performs the spraying task according to the operation route, which includes multiple operation route segments, for example, the operation route segment from waypoint 0 to waypoint 1, from waypoint 2 to waypoint
  • the operating route segment of 3, the operating route segment from waypoint 4 to waypoint 5, and the operating route segment from waypoint 6 to waypoint 7 are only schematic illustrations, not the shape of the operating route and the operation The number of operational route segments of the route is limited.
  • the spraying drone 41 performs the spraying task according to the current working route segment in the plurality of working route segments, for example, the working route segment from waypoint 2 to waypoint 3, and the spraying drone 41 detects in real time whether the current working route segment There are obstacles.
  • the millimeter wave radar on the spray drone 41 detects obstacles in its viewing angle in real time, and the spray drone 41 determines whether there are obstacles in the current operation route segment according to the detection data of the millimeter wave radar.
  • the millimeter wave radar detects the obstacle 91, that is, the obstacle 91 is in the millimeter Wave radar's perspective.
  • the millimeter-wave radar sends detection data to the navigation module and the flight controller of the spray drone 41.
  • the detection data may include the size of the obstacle 91 and the distance and direction of the obstacle 91 relative to the spray drone 41.
  • the navigation module builds a global grid map based on the detection data.
  • the flight controller may determine whether the obstacle 91 is in the current operation route segment according to the detection data. Since the angle of the obstacle 91 deviating from the head of the spray drone 41 is large, the flight controller determines that the obstacle 91 is not in the current operating route segment according to the direction of the obstacle 91 relative to the spray drone 41, and controls The spraying drone 41 continues to perform spraying tasks.
  • the flight controller controls the spraying drone 41 to traverse from waypoint 3 to waypoint 4, and the spraying drone 41 starts from waypoint 4 according to the following
  • the spraying task is performed on the working route segment from waypoint 4 to waypoint 5.
  • the spray drone 41 When the spray drone 41 performs the spraying task according to the current operation route segment, that is, the operation route segment from waypoint 4 to waypoint 5, the spray drone 41 detects in real time whether there is an obstacle in the current operation route segment. If it is determined that there is an obstacle in the current operational route segment, the target obstacle avoidance path parallel to the current operational route segment is determined according to the digital map established by the navigation module.
  • determining a target obstacle avoidance path parallel to the current operational route segment according to the digital map includes: The detection data and/or the digital map determines that there is an obstacle on the current operational route segment, and then determines a target obstacle avoidance path parallel to the current operational route segment according to the digital map.
  • the spray drone 41 performs the spraying task according to the current operation route segment, that is, the operation route segment from waypoint 4 to waypoint 5, the navigation module in the spray drone 41 according to the global grid established by it
  • the map determines whether there are obstacles in the current operation route segment, or/and the flight controller spraying the drone 41 determines whether there are obstacles in the current operation route segment based on the detection data of the millimeter wave radar.
  • the working route segment from waypoint 2 to waypoint 3 is denoted as working route segment 23
  • the working route segment from waypoint 4 to waypoint 5 is denoted as working route segment 45.
  • the spraying drone 41 Since the spraying drone 41 performs the spraying task on the working route segment 23, the millimeter wave radar has detected the obstacle 91 in the working route segment 45, so that the navigation module marks the obstacle 91 in the global grid map. Therefore, when the spray drone 41 performs the spraying task on the operating route segment 45, the global grid map has been marked with obstacles 91, and the navigation module can determine the current operating route segment, that is, the operating route, according to the global grid map There are obstacles 91 in the segment 45.
  • the spraying drone 41 when the spraying drone 41 performs the spraying task on the operation route segment 45, if the obstacle 91 is within the angle of view of the millimeter wave radar, and the distance of the obstacle 91 relative to the spraying drone 41 is less than or equal to the The maximum detection distance of the millimeter wave radar, the millimeter wave radar can detect the obstacle 91 in real time, and send detection data to the navigation module and the flight controller.
  • the flight controller can determine the current operating route based on the detection data
  • the section is whether there are obstacles in the working route section 45.
  • the detection data includes the size of the obstacle 91 and the distance and direction of the obstacle 91 relative to the spray drone 41.
  • the flight controller can determine the size of the obstacle 91 and the obstacle 91 relative to the spray drone 41 The distance and direction, determine whether the obstacle 91 falls on the operation route segment 45, or determine whether the distance of the obstacle 91 relative to the operation route segment 45 is less than the preset distance, if the obstacle 91 falls on the operation route segment 45 On the other hand, or if the distance of the obstacle 91 relative to the work route segment 45 is less than the preset distance, it is determined that the obstacle 91 is in the work route segment 45.
  • the target obstacle avoidance path parallel to the current operational route segment is determined according to the digital map established by the navigation module.
  • a feasible implementation method is: when the flight controller determines that there are obstacles 91 in the current operational route segment, that is, the operational route segment 45, based on the detection data of the millimeter wave radar, the flight controller sends a request for detour information to the navigation module to navigate After receiving the request bypass information, the module determines the target obstacle avoidance path parallel to the current operational route segment according to the global grid map established by the navigation module.
  • Another feasible implementation method is: when the navigation module detects that there are obstacles 91 in the operating route segment 45 according to the global grid map, the navigation module sends a request for detour information to the flight controller, and the flight controller detours the request After the line information is confirmed, the confirmation detour information is sent to the navigation module, and the navigation module determines the target obstacle avoidance path parallel to the current operation route segment according to the global grid map.
  • the millimeter wave radar has detected the obstacle 91 in the operating route segment 45, making the navigation module Obstacle 91 is marked.
  • the spraying drone 41 performs the spraying task on the operation route segment 45, in some cases, the global grid map has been marked with obstacles 91, but since the obstacle 91 is in the operation route segment 45, The millimeter-wave radar can still continuously detect the obstacle 91 and send new detection data to the navigation module and the flight controller.
  • the navigation module can update the global grid map according to the new detection data, for example, to update the obstacle One or more of the position, line, and size of the object 91 in the global grid map.
  • Step S604 Control the spray drone to move from the current operation route segment to the target obstacle avoidance path, and control the spray drone to move according to the target obstacle avoidance path.
  • 92 indicates a target obstacle avoidance path parallel to the current operation route segment, which is the operation route segment 45, and the flight controller can control the spray drone 41 to move from the current operation route segment, the operation route segment 45, to the target obstacle avoidance Path 92, and the spray drone 41 is controlled to move according to the target obstacle avoidance path 92.
  • the method further includes: adjusting the direction of the spray drone head during the movement of the spray drone from the current operating route segment to the target obstacle avoidance path To a first target orientation to adjust the detection direction of the detection device, wherein the first target orientation is directed to the target obstacle avoidance path by the current operating route segment and presents a first prediction with the current operating route segment Set the direction of the angle.
  • the head of the spray drone 41 is adjusted to adjust the spray
  • the detection direction of the millimeter wave radar on the drone 41 increases the detectable range of the millimeter wave radar.
  • the direction of the nose of the spray drone 41 is adjusted according to the direction from the operation route segment 45 to the target obstacle avoidance path 92, and the adjusted nose orientation is at a preset angle ⁇ with the operation route segment 45, for example, a preset The angle ⁇ is 15 degrees.
  • the preset angle ⁇ is recorded as a first preset angle
  • the direction at the first preset angle with the work route segment 45 is recorded as the first target direction of the spray drone 41.
  • the spray drone 41 moves from the current operation route segment, which is the current operation route segment 45, to the target obstacle avoidance path 92 according to the adjusted first target direction.
  • Step S605 After it is determined to avoid the obstacle, the spraying drone is controlled to return from the target obstacle avoidance path to the current operational route segment to continue to perform the spraying task.
  • the flight controller controls the spray drone 41 from the target obstacle avoidance path 92 to return to the current operational route segment, that is, the operational route segment 45 to continue to perform the spraying task .
  • the method further includes: during the movement of the spray drone from the target obstacle avoidance path to the current operational route segment, orienting the nose of the spray drone Adjusting to a second target orientation to adjust the detection direction of the detection device, wherein the second target orientation is directed from the target obstacle avoidance path to the current operating route segment and is second to the current operating route segment Preset the direction of the included angle.
  • the head of the spray drone 41 is adjusted to adjust the spray
  • the detection direction of the millimeter wave radar on the drone 41 increases the detectable range of the millimeter wave radar.
  • the direction of the nose of the spraying drone 41 is adjusted according to the direction from the target obstacle avoidance path 92 to the operating route segment 45, and the adjusted nose orientation is at a preset angle ⁇ with the operating route segment 45, for example, a preset The angle ⁇ is 15 degrees.
  • the preset angle ⁇ is recorded as the second preset angle
  • the direction at the second preset angle with the work route segment 45 is recorded as the second target direction of the spray drone 41.
  • the spray drone 41 moves from the target obstacle avoidance path 92 to the current working route segment, which is the working route segment 45 according to the adjusted second target direction.
  • the second preset angle and the first preset angle may be the same or different.
  • the selection of 15 degrees for the first preset included angle or the second preset included angle is for illustrative purposes only, and may not be limited to 15 degrees in other embodiments.
  • the spray drone 41 moves from the point B in the operating route segment 45 to the target obstacle avoidance path 92.
  • the flight controller adjusts the head of the spray drone 41 so that after the adjustment
  • the orientation of the nose of the aircraft is at a preset angle ⁇ as shown in FIG. 11, that is, the adjusted orientation of the nose is the above-mentioned first target orientation, that is, the spray drone 41 is at the point B
  • the adjusted first target moves from the work route segment 45 to the target obstacle avoidance path 92.
  • Point C represents a position point where the spray drone 41 passes on the target obstacle avoidance path 92 after the spray drone 41 moves to the target obstacle avoidance path 92.
  • the head of the spray drone 41 may still be the first target direction.
  • the head of the spray drone 41 may be adjusted to be consistent with the direction of the working route segment 45.
  • the spray drone 41 moves to point D on the target obstacle avoidance path 92, the spray drone 41 determines that the obstacle has been avoided.
  • the head of the spray drone 41 is adjusted again so that the adjusted The direction of the nose is at a preset angle ⁇ as shown in FIG. 11, that is, the adjusted orientation of the nose is the above-mentioned second target orientation, that is, the spray drone 41 is adjusted according to the point D
  • the subsequent second target moves from the target obstacle avoidance path 92 to the work route segment 45.
  • the position when the spraying drone 41 returns to the operating route segment 45 is point E.
  • the head of the spraying drone 41 is adjusted to coincide with the direction of the operating route segment 45, and smooth from point E to point F .
  • the head of the spray drone 41 may be the second target orientation, that is, the direction of the spray drone 41 at the point E is the same as the operation route segment 45
  • the head orientation can be adjusted at point E, and the head orientation of the spray drone 41 can be adjusted to be consistent with the direction of the operating route segment 45, so that the spray drone 41 Smooth to point F in a direction consistent with the direction of the work route segment 45.
  • the flying speed of the spraying drone 41 when returning to point E may be different from the flying speed of the spraying drone 41 when performing the spraying task.
  • the flying speed of the spray drone 41 can be constantly adjusted so that the flying speed of the spray drone 41 at point F reaches the flying speed when the spraying task is performed.
  • the spraying drone 41 is in a detour state from the point B to the point C
  • the spraying drone 41 is in the return route state from the point D to the point E
  • the process The medium spray drone 41 is in a smooth state of detour completion.
  • obstacles may also appear in the route segment when the spray drone 41 moves laterally, as shown in FIG. 13, when the spray drone 41 performs the spraying task in the operation route segment 45, the spray The millimeter-wave radar on the UAV 41 detects the obstacle 91.
  • the millimeter-wave radar sends the detection data corresponding to the obstacle 91 to the navigation module and the flight controller.
  • the navigation module establishes a global grid map, and the global grid map The obstacle 91 is marked. Since the obstacle 91 is not in the current operation route segment, that is, the operation route segment 45, the flight controller controls the spray drone 41 to normally perform the spraying task in the operation route segment 45.
  • the direction of the spray drone 41 head is consistent with the direction of the operating route segment 45 , May cause the angle of view of the millimeter wave radar to be unable to cover the obstacle 91, resulting in the millimeter wave radar being unable to detect obstacles in the route segment from waypoint 5 to waypoint 6.
  • the navigation module can monitor in real time whether there are obstacles in the route segment from waypoint 5 to waypoint 6 according to the global grid map.
  • the route segment from waypoint 5 to waypoint 6 is referred to as route segment 56.
  • the navigation module determines that there are obstacles in the route segment 56, the navigation module can determine the target obstacle avoidance path parallel to the route segment 56 according to the global grid map, and the flight controller controls the spray drone 41 from the route segment 56 moves to the target obstacle avoidance path, and controls the spray drone 41 to follow the target obstacle avoidance path. After the flight controller determines that the spray drone 41 avoids the obstacle 91, it further controls the spray drone 41 to return to the route segment 56 from the target obstacle avoidance path.
  • the navigation module can also send the distance and direction of the obstacle relative to the spray drone 41 to the flight controller, which can also control spraying
  • the drone 41 is hovered, and the ground control end is further controlled to spray the drone 41 to avoid the obstacle.
  • a digital map is established based on the detection data. Since the operation route includes multiple operation route segments, the spraying drone is in one of the The detection equipment can detect obstacles on other operating route segments when performing spraying tasks on the operating route segments.
  • the target obstacle avoidance path parallel to the current operational route segment can be determined according to the digital map, and the spray The man-machine moves from the current operation route segment to the target obstacle avoidance path for obstacle avoidance, so that the spraying drone does not need fixed or mechanized bypass obstacle avoidance and frequently stops, rotates frequently, and frequently detects whether there are obstacles on the current operation route segment Objects, thereby improving the efficiency of detouring spraying drones.
  • An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone.
  • the control of the spray drone to move from the current operation route segment to the target obstacle avoidance path includes: when the spray drone is at a distance relative to the obstacle When it is less than or equal to the first distance threshold, the spray drone is controlled to move from the current working route segment to the target obstacle avoidance path.
  • the millimeter wave radar detects the obstacle 91
  • the millimeter wave radar sends detection data to the flight controller, and the flight controller according to the detection
  • the data determines that the distance between the spray drone 41 and the obstacle 91 is greater than the first distance threshold.
  • the flight controller can control the spray drone 41 to continue to fly forward to perform the spray task.
  • the spray drone 41 continues to fly forward along the operating route segment 45, the distance of the spray drone 41 relative to the obstacle 91 continuously decreases, and when the flight controller determines that the spray drone 41 is relatively When the distance of the obstacle 91 is less than or equal to the first distance threshold, the spray drone 41 is controlled to move from the work route segment 45 to the target obstacle avoidance path 92. For example, when the spray drone 41 flies to point B on the operating route segment 45, the distance between the spray drone 41 and the obstacle 91 is less than or equal to the first distance threshold, the flight controller controls the spray drone 41 Move from point B to target obstacle avoidance path 92. During the process from point A to point B, the spray drone 41 is in the state of “preparing to avoid obstacles”.
  • the method further includes: when the distance of the spray drone relative to the obstacle is less than or equal to the first distance threshold, to the ground control end corresponding to the spray drone Send the first status information that the spray drone is avoiding obstacles. For example, when the spray drone 41 flies to point B on the operating route segment 45, the distance between the spray drone 41 and the obstacle 91 is less than or equal to the first distance threshold, and the flight controller controls the spray drone 41 from Point B moves to the target obstacle avoidance path 92. At this time, the spray drone 41 sends the first state information that the spray drone 41 is avoiding obstacles to the ground control terminal.
  • the ground control terminal is provided with an application program for controlling the spray drone 41.
  • the user interface of the application program is specifically shown in FIG. 14.
  • the local control terminal receives the first status information sent by the spray drone 41 At this time, the user interface displays a pop-up frame 141, and the status information of "obstacle avoidance" is displayed in the pop-up frame 141.
  • the pop-up frame 141 may disappear within a preset time after displaying the status information, or may not disappear.
  • the ground control terminal can also provide a corresponding voice prompt, so that when the user fails to notice the "obstacle avoidance" displayed in the pop-up box 141, the ground control terminal The user can still be prompted to spray the drone 41 "obstacle avoidance".
  • the spray drone 41 can also send information about obstacles around the spray drone 41 to the ground control terminal.
  • the obstacle information includes the size of the obstacle and the distance of the obstacle relative to the spray drone 41 And directions.
  • the application can also display the radar chart 142 corresponding to the obstacle in the user interface according to the obstacle information sent by the spray drone 41. Among them, 91 in the radar chart 142 indicates an obstacle, and 41 indicates a spray drone.
  • the spray drone 41 can also send the historical route points of the spray drone 41 and the route to be run to the ground control terminal, the application can display the historical route points of the spray drone 41 in the user interface And the path to be run.
  • 143 represents the historical route point of the spray drone 41
  • 144 represents the route where the spray drone 41 will operate.
  • the historical route point 143 may correspond to the waypoint between point A and point B as shown in FIG. 12.
  • the path 144 to be run may specifically correspond to the path from point B to point C as shown in FIG. 12.
  • the historical route point 143 and the route to be run 144 may be displayed in different colors in the user interface.
  • the navigation module may calculate the spray drone 41 according to the real-time distance of the spray drone 41 relative to the obstacle 91 Speed limit value, generate a speed limit command according to the speed limit value, and send the speed limit command to the flight controller, so that the flight controller controls the spray drone 41 to decelerate according to the speed limit value in the speed limit command .
  • the user can also control the spray drone 41 through the ground control terminal Hover, or bypass obstacles.
  • determining a target obstacle avoidance path parallel to the current operational route segment according to the digital map includes: if it is determined that the current operational route If there is an obstacle on the route segment, determine the distance of the obstacle on the current operating route segment relative to the spray drone; if the distance is greater than the first distance threshold and less than the second distance threshold, then Determining a target obstacle avoidance path parallel to the current operational route segment according to the digital map; wherein the second distance threshold is greater than the first distance threshold.
  • the distance of the obstacle 91 relative to the spray drone 41 is the second distance threshold.
  • the distance of the obstacle 91 relative to the spray drone 41 is a first distance threshold, and the second distance threshold is greater than the first distance threshold.
  • a target obstacle avoidance path parallel to the operation route segment 45 is determined according to the global grid map established by the navigation module.
  • the first distance threshold and the second distance threshold may be determined according to the flying speed of the spray drone 41.
  • the first distance threshold and the second distance threshold may be set larger, so that the spray drone 41 has sufficient time to decelerate and detour.
  • the first distance threshold and the second distance threshold can be set smaller.
  • the spray drone when the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, the spray drone is controlled to decelerate, the second distance threshold is greater than the first Distance threshold.
  • the spray drone 41 when the spray drone 41 flies to point A, the distance of the spray drone 41 relative to the obstacle 91 is the second distance threshold, and the spray drone 41 continues to fly forward, which will cause the The distance between the spray drone 41 and the obstacle 91 is less than the second distance threshold. Therefore, starting from point A, the flight controller can control the spray drone 41 to decelerate.
  • the navigation module calculates the speed limit value of the spray drone 41 according to the real-time distance of the spray drone 41 relative to the obstacle 91, generates a speed limit instruction according to the speed limit value, and sends the speed limit instruction to the flight The controller, so that the flight controller controls the spray drone 41 to decelerate according to the speed limit value in the speed limit instruction.
  • the method further includes: when the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, sending the spray to the ground control end corresponding to the spray drone
  • the second state information of the UAV preparing for obstacle avoidance, the second distance threshold is greater than the first distance threshold.
  • the spray drone 41 when the spray drone 41 flies to point A, the distance of the spray drone 41 relative to the obstacle 91 is the second distance threshold, and the spray drone 41 continues to fly forward, which will cause the The distance of the spray drone 41 relative to the obstacle 91 is less than the second distance threshold.
  • the spray drone 41 sends the second state information that the spray drone 41 is ready to avoid obstacles to the ground control terminal.
  • the application in the ground control terminal may display a “preparing to avoid obstacles” pop-up box in the user interface shown in FIG. 14 and/or voice prompts to spray no one The machine 41 is in the state of "ready for obstacle avoidance".
  • the spray drone 41 is in the state of “preparing to avoid obstacles”. In the state of “preparing for obstacle avoidance”, the spraying drone 41 is still in the operating route segment 45, but only flying The controller needs to control the spray drone 41 to slow down according to the speed limit instruction of the navigation module.
  • the navigation module of the spray drone 41 can update the global grid map in real time according to the detection data of the millimeter wave radar, for example, update the obstacle 91 in the global grid map location information.
  • the spray drone 41 can also send obstacle information and path points from point A to point B to the ground control end.
  • the ground control terminal can display the obstacle information sent by the spray drone 41 in real time and the path point from point A to point B.
  • the spray drone when the distance of the spray drone relative to the obstacle is less than or equal to the first distance threshold, the spray drone is controlled to move from the current operating route segment to the target obstacle avoidance path, so as to prevent the spray drone from prematurely The target's obstacle avoidance path moves, resulting in missed spray, which improves the efficiency of spraying the drone.
  • the second distance threshold is greater than the first distance threshold, that is, the spray drone is controlled from the current Before the operation route segment moves to the target obstacle avoidance path, the spray drone is controlled to slow down to prevent the spray drone from being too fast to move from the current operation route segment to the target obstacle avoidance path.
  • the first status information of the spraying drone is avoiding obstacles, and the second status information of the obstacle avoidance is prepared, so that the ground control terminal can prompt the user to spray the drone's operating status, It is convenient for users to understand the operation of spraying drones, which improves the user experience.
  • An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone.
  • 15 is a flowchart of an obstacle avoidance control method for spraying a drone according to another embodiment of the present invention. As shown in FIG. 15, on the basis of the foregoing embodiment, the determination of a target obstacle avoidance path parallel to the current operational route segment according to the digital map includes:
  • Step S1501 Determine, according to the digital map, a plurality of obstacle avoidance paths parallel to the current operational route segment.
  • the current operational route segment of the spray drone 41 is the operational route segment 45, and there are obstacles 91 in the current operational route segment.
  • the navigation module can determine the operation with the current operational route segment according to the digital map established by it.
  • the plurality of obstacle avoidance paths may specifically be the obstacle avoidance path 92, the obstacle avoidance path 93, the obstacle avoidance path 94, the obstacle avoidance path 95, the obstacle avoidance path 96, and the obstacle avoidance path 97 as shown in FIG.
  • the distance between adjacent obstacle avoidance paths in the plurality of obstacle avoidance paths is a preset distance.
  • the distance between the obstacle avoidance path 92 and the work route segment 45, the distance between the obstacle avoidance path 93 and the work route segment 45, and the distance between the obstacle avoidance path 92 and the obstacle avoidance path 93 are all equal, and so on.
  • Step S1502 Determine the target obstacle avoidance path from the plurality of obstacle avoidance paths.
  • the navigation module may determine one obstacle avoidance path as the target obstacle avoidance path from the plurality of obstacle avoidance paths.
  • the determining the target obstacle avoidance path from the plurality of obstacle avoidance paths includes: Among the plurality of obstacle avoidance paths, the obstacle avoidance path closest to the current working route segment and without the obstacle is selected as the target obstacle avoidance path. For example, if the obstacle avoidance path 92 is the closest obstacle avoidance path to the current working route segment and there is no obstacle on the obstacle avoidance path 92, the navigation module may determine the obstacle avoidance path 92 as the target obstacle avoidance path.
  • the target obstacle avoidance path 92 shown in FIG. 16 is specifically the target obstacle avoidance path 92 described in the foregoing embodiment.
  • the method further includes: during the movement of the spray drone according to the target obstacle avoidance path, if there is an obstacle on the target obstacle avoidance road, controlling the spray drone to hover .
  • the flight controller may also control spraying unmanned
  • the hovering of the aircraft 41 means that the spraying of the drone 41 fails to bypass. Since the spray drone 41 moves from the detour state to hovering, the speed of the spray drone 41 needs to be smooth, and the movement trajectory of the spray drone 41 may also need to be smooth. Therefore, the spray drone 41 can be changed from The process from detour state to hovering is recorded as detour smooth state.
  • the spray drone 41 can also send the status information of the detour failure of the spray drone 41 to the ground control terminal.
  • the application in the ground control terminal can be shown in Figure 14
  • the user interface shown shows a bullet box that says "Failed to bypass, spray drone will hover".
  • a plurality of obstacle avoidance paths parallel to the current operation route segment are determined through a digital map, and the obstacle avoidance route closest to the current operation route segment and without obstacles is selected as the target obstacle avoidance route from the plurality of obstacle avoidance routes
  • the path can make the spraying drone avoid the obstacle with the shortest detour when moving from the current operating route segment to the target obstacle avoidance path, which not only improves the detour efficiency of the spraying drone, but also avoids spraying The drone is leaking, which improves the efficiency of spraying the drone.
  • An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone.
  • 17 is a flowchart of an obstacle avoidance control method for spraying a drone according to another embodiment of the present invention. As shown in FIG. 17, on the basis of the foregoing embodiment, the control of the spray drone from the target obstacle avoidance path back to the current operational route segment to continue to perform the spray task includes:
  • Step S1701 in the process that the spray drone moves according to the target obstacle avoidance path, determine a target from the current position of the spray drone in the target obstacle avoidance path to the current operating route segment Return route.
  • the spray drone 41 can determine from the current position of the spray drone 41 in the target obstacle avoidance path 92 to the current operation route
  • the segment is the target return path of the operating route segment 45.
  • the current position of the spray drone 41 in the target obstacle avoidance path 92 is point a.
  • the spray drone 41 determines the target return path from point a to the operating route segment 45, and detects whether there is an obstacle in the target return path Thing.
  • the spray drone 41 collects several path points in the target return route, and detects whether there are obstacles on the several path points through the digital map established by the navigation module. As shown in FIG.
  • the spray drone 41 continues to move forward along the target obstacle avoidance path 92.
  • the spray drone 41 determines the target return path from point b to the operating route segment 45, and detects whether there is an obstacle in the target return path
  • the method of detecting obstacles is the same as the aforementioned detection method, and will not be repeated here.
  • Step S1702 When it is determined that there is no obstacle on the target return path, the spray drone is controlled to return to the current operation along the target return path from the current position in the target obstacle avoidance path The spraying task continues to be carried out in the route segment.
  • the current position of the spray drone 41 in the target obstacle avoidance path 92 changes in real time during the forward movement of the spray drone 41 along the target obstacle avoidance path 92.
  • the spray drone 41 can determine a target return path.
  • the spray drone 41 can detect a target return path that is closest to the obstacle and has no obstacle.
  • the flight controller can control the spraying drone 41 to return to the working route segment 45 along the target return path from point c to continue to perform the spraying task.
  • the curvature of the target return path from point a to the operating route segment 45, the target return path from point b to the operating route segment 45, and the target return route from point c to the operating route segment 45 may also be the same, or Can be different.
  • multiple target return paths from the current position to the operating route segment 45 may be determined, as shown in FIG. 19
  • the spray drone 41 can determine multiple target return paths from point a to the operating route segment 45, and return from the multiple targets A target return path without obstacles is determined in the path, and the target return path is returned to the working route section 45 along the target return path to continue to perform the spraying task. If there are obstacles in each of the multiple target return paths from point a to the operating route segment 45, the spray drone 41 can continue to move forward and determine multiple target return paths at the next position , And again determine a target return path without obstacles from the multiple target return paths.
  • controlling the spraying drone to return to the current working route segment from the current position in the target obstacle avoidance path along the target return path to continue to perform the spraying task includes: The spraying drone smoothly transitions from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue to execute the spraying task.
  • the flight controller can control the spray drone 41 from The current position smoothly transitions to the working route section 45 along the target return path to continue to perform the spraying task.
  • the method further includes sending the spray to the ground control end corresponding to the spray drone after the spray drone returns from the target obstacle avoidance path to the current operational route segment The third status information of successful UAV obstacle avoidance.
  • the spray drone 41 when the spray drone 41 returns from the target obstacle avoidance path 92 to point E on the working route segment 45, and smoothes from point E to point F, the spray drone 41 is directed to the corresponding ground control end Send the third status information of spraying the drone 41 to avoid obstacles successfully.
  • the application in the ground control terminal may display "avoid Barrier success".
  • the spraying drone 41 when the spraying drone 41 returns to the point E on the operating route segment 45, the spraying drone 41 may also send the status information that the spraying drone 41 has returned to the corresponding ground control terminal, the ground control The application in the terminal can display "have returned" in the user interface shown in FIG. 14 by a pop-up box.
  • the spray drone 41 when the spray drone 41 moves from the point D on the target obstacle avoidance path 92 to the operating route segment 45, the spray drone 41 can also send the spray drone 41 to the corresponding ground control end
  • the application in the ground control terminal can display “preparing for returning home” by popping up a frame in the user interface shown in FIG. 14.
  • the spray drone 41 when the spray drone 41 moves on the target obstacle avoidance path 92 and when the spray drone 41 returns from the target obstacle avoidance path 92 to the operating route segment 45, the spray drone 41 can The ground control terminal sends obstacle information and the running path of the spray drone 41.
  • the spray drone 41 can send obstacle information to the ground control terminal in real time.
  • the ground control terminal The application in can display the radar chart corresponding to the obstacle in the user interface according to the obstacle information.
  • 91 in the radar chart 142 indicates the obstacle, and 41 indicates the spray drone.
  • the spray drone 41 can also send the historical path of the spray drone 41 and the waypoint to be run to the ground control terminal, the application can display the historical path and the spray drone 41 in the user interface The waypoint to be run.
  • 145 represents a historical path of spraying the drone 41
  • 146 represents a route point where the spraying drone 41 will operate.
  • the historical path 145 may correspond to the path from point B to point C as shown in FIG. 12.
  • the path point 146 to be operated may correspond to the path point on the target obstacle avoidance path 92 as shown in FIG. 12, and the spray drone 41 is located between the point C and point D on the target obstacle avoidance path 92.
  • the historical route 145 and the route point 146 to be executed are displayed in different colors in the user interface.
  • the spray drone 41 when the spray drone 41 returns from the point D on the target obstacle avoidance path 92 to the point E on the work route segment 45, the spray drone 41 can send obstacles to the ground control terminal in real time Information, the application in the ground control terminal can display the radar chart corresponding to the obstacle in the user interface according to the obstacle information, as shown in FIG. 21, 91 in the radar chart 142 represents the obstacle, and 41 represents spraying nobody machine.
  • the spray drone 41 can also send the historical path of the spray drone 41 and the waypoint to be run to the ground control terminal, the application can display the historical path and the spray drone 41 in the user interface The waypoint to be run.
  • 147 represents a historical path of spraying the drone 41
  • 148 represents a route point where the spraying drone 41 will operate.
  • the historical path 147 may correspond to the path from point C to point D as shown in FIG. 12.
  • the waypoint 148 to be operated may correspond to the waypoint on the operation route segment 45 starting from point E as shown in FIG. 12, and the spray drone 41 is located between point D and point E.
  • the historical route 147 and the route point 148 to be run are displayed in different colors in the user interface.
  • the distance from the current position of the spray drone in the target obstacle avoidance path to the current operating route segment is determined.
  • a target return path when it is determined that there are no obstacles on the target return path, the spray drone is controlled to return from the current position in the target obstacle avoidance path along the target return path to the current Continue to perform the spraying task in the operating route segment, which can make the spraying drone avoid the obstacle and return to the current operating route segment with the shortest path to continue to perform the spraying task to avoid the spray drone from leaking, further improving the unmanned spray Machine operating efficiency.
  • An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone.
  • the flight controller when the flight controller spraying the drone is performing an autonomous spraying task, the flight controller can push multiple adjacent waypoints to the navigation module in real time.
  • the flight controller can 6 adjacent waypoints are pushed to the navigation module in real time.
  • the 6 waypoints are waypoint 0, waypoint 1, waypoint 2, waypoint 3, waypoint 4, and waypoint 5.
  • the flight controller pushes the 6 waypoints to the navigation module, it can also push the status identifiers of the 6 waypoints.
  • waypoint 0 and waypoint 1 correspond to the first state identifier
  • the first state identifier represents the slave waypoint.
  • the operating route segment from point 0 to waypoint 1 is the historical operating route segment spraying the drone.
  • Waypoint 2 and waypoint 3 correspond to the second status indicator, and the second state indicator indicates that the operating route segment from waypoint 2 to waypoint 3 is the current operating route segment of the spray drone.
  • the waypoint 4 and the waypoint 5 correspond to the third status indicator, and the third state indicator indicates that the operating route segment from the waypoint 4 to the waypoint 5 is the next operating route segment spraying the drone.
  • the navigation module can determine the historical movement trajectory and subsequent movement trajectory of the spray drone according to the multiple waypoints pushed by the flight controller and the status identification of each waypoint.
  • the spraying drone determines the target obstacle avoidance path parallel to the current operating route segment according to the digital map in the above embodiment, and performs through the target obstacle avoidance path Bypass obstacle avoidance.
  • the initial operating waypoint for spraying the drone may not be waypoint 0 as shown in FIG. 22, but waypoint 3 as shown in FIG. 23.
  • the spraying drone needs to Waypoint 2 flies to waypoint 3, and the spraying task starts from waypoint 3.
  • waypoint 0 and waypoint 1 pushed by the flight controller to the navigation module can be regarded as invalid.
  • the spray drone can also determine the target obstacle avoidance path parallel to the route segment according to the digital map in the above embodiment, and avoid obstacles through the target The path bypasses obstacle avoidance.
  • the specific bypass obstacle avoidance process is consistent with the above embodiment, and will not be repeated here.
  • the operation when the spraying drone is performing a spraying task, the operation may be interrupted due to insufficient power, insufficient spray, etc. At this time, the spraying drone needs to return to the Home point for charging or Load the spray and return to the interrupted waypoint from the Home point to continue to perform subsequent spraying tasks.
  • waypoint 3 represents the waypoint where the operation is interrupted
  • waypoint 2 represents the home point.
  • the spraying drone can determine the target obstacle avoidance path parallel to the route segment according to the digital map in the foregoing embodiment, and bypass the obstacle avoidance through the target obstacle avoidance path. The specific bypass obstacle avoidance process is consistent with the above embodiment, and will not be repeated here.
  • the obstacle avoidance control method described in this embodiment is not only applicable to the obstacle avoidance bypass when the spray drone performs the spray task in the current operation route segment, but also applicable to the spray drone from the Home point Obstacle avoidance and detour when arriving at the operation waypoint.
  • An embodiment of the present invention provides an obstacle avoidance control device for spraying a drone.
  • the obstacle avoidance control device may specifically be the navigation module and/or the flight controller in the foregoing embodiment.
  • the spray drone is provided with detection equipment, and the detection equipment is used to detect obstacles.
  • FIG. 26 is a structural diagram of an obstacle avoidance control device according to an embodiment of the present invention. As shown in FIG. 26, the obstacle avoidance control device 260 includes a memory 261, a processor 262, and a communication interface 263.
  • the memory 261 is used to store the program code; the processor 262 calls the program code, and when the program code is executed, it is used to perform the following operations: in the process of the spraying drone performing the spraying task according to the operation route, The detection data output by the detection device, wherein the operation route includes a plurality of operation route segments; a digital map is established based on the detection data; and the spraying drone follows the current operation route segment among the plurality of operation route segments During the execution of the spraying task, if it is determined that there is an obstacle on the current operating route segment, the target obstacle avoidance path parallel to the current operating route segment is determined according to the digital map; the spray drone is controlled from all The current operating route segment moves to the target obstacle avoidance path, and controls the spray drone to move according to the target obstacle avoidance path; when it is determined to avoid the obstacle, the spray drone is controlled from all The target obstacle avoidance path returns to the current working route segment to continue to perform the spraying task.
  • the processor 262 controls the spray drone to move from the current operation route segment to the target obstacle avoidance path, it is specifically used to: when the distance of the spray drone relative to the obstacle When it is less than or equal to the first distance threshold, the spray drone is controlled to move from the current working route segment to the target obstacle avoidance path.
  • the processor 262 is further configured to: during the movement of the spray drone from the current operating route segment to the target obstacle avoidance path, adjust the head of the spray drone to A first target orientation to adjust the detection direction of the detection device, wherein the first target orientation is directed from the current operational route segment to the target obstacle avoidance path and presents a first preset with the current operational route segment The direction of the angle.
  • the obstacle avoidance control device further includes a communication interface; the processor 262 is further configured to: through the communication when the distance of the spray drone relative to the obstacle is less than or equal to the first distance threshold The interface 263 sends the first state information that the spray drone is avoiding obstacles to the ground control terminal corresponding to the spray drone.
  • the processor 262 determines, according to the digital map, a target obstacle avoidance path parallel to the current operational route segment, specifically: if it is determined If there is an obstacle on the current working route segment, determine the distance of the obstacle on the current working route segment relative to the spray drone; if the distance is greater than the first distance threshold and less than the second The distance threshold determines the target obstacle avoidance path parallel to the current operational route segment according to the digital map; wherein the second distance threshold is greater than the first distance threshold.
  • the processor 262 determines, according to the digital map, a target obstacle avoidance path parallel to the current operational route segment, specifically: The detection data of the detection device and/or the digital map determines that there is an obstacle on the current operational route segment, and then determines a target obstacle avoidance path parallel to the current operational route segment according to the digital map.
  • the processor 262 is further configured to: when the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, control the spray drone to decelerate, the second distance threshold Greater than the first distance threshold.
  • the processor 262 is further configured to: when the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, send the signal to the ground control end corresponding to the spray drone Spraying the second state information of the drone preparing for obstacle avoidance, the second distance threshold is greater than the first distance threshold.
  • the processor 262 determines a target obstacle avoidance path parallel to the current operational route segment according to the digital map, it is specifically used to determine multiple avoidance routes parallel to the current operational route segment according to the digital map Obstacle path; determining the target obstacle avoidance path from the plurality of obstacle avoidance paths.
  • the processor 262 determines the target obstacle avoidance path from the plurality of obstacle avoidance paths, it is specifically used to: select from the plurality of obstacle avoidance paths that is closest to the current operating route segment, and The obstacle avoidance path without the obstacle on it is used as the target obstacle avoidance path.
  • the distance between adjacent obstacle avoidance paths in the plurality of obstacle avoidance paths is a preset distance.
  • the processor 262 is further configured to: during the movement of the spray drone according to the target obstacle avoidance path, if there is an obstacle on the target obstacle avoidance path, control the spray drone to suspend stop.
  • the processor 262 controls the spraying drone to return from the target obstacle avoidance path to the current operating route segment to continue to perform the spraying task, which is specifically used when the spraying drone is in accordance with the target During the movement of the obstacle avoidance path, determine the target return path from the current position of the spray drone in the target obstacle avoidance path to the current operating route segment; when it is determined that there is no obstacle on the target return path In case of objects, the spraying drone is controlled to return to the current working route segment along the target return path from the current position in the target obstacle avoidance path to continue to perform the spraying task.
  • the processor 262 is further configured to adjust the direction of the spray drone's nose during the movement of the spray drone from the target obstacle avoidance path to the current operating route segment To a second target orientation to adjust the detection direction of the detection device, wherein the second target orientation is directed from the target obstacle avoidance path to the current operational route segment and presents a second Set the direction of the angle.
  • the processor 262 controls the spray drone to return from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue to perform the spray task, specifically Yu: control the spraying drone to smoothly transition from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue to execute the spraying task.
  • the processor 262 is further configured to: after the spray drone returns from the target obstacle avoidance path to the current operating route segment, control the ground corresponding to the spray drone through the communication interface 263 The terminal sends the third status information of the successful spraying drone obstacle avoidance.
  • the detection data includes at least one of the following: the size of the obstacle, the distance and the direction of the obstacle relative to the spray drone.
  • a digital map is established based on the detection data. Since the operation route includes multiple operation route segments, the spraying drone is in one of the The detection equipment can detect obstacles on other operating route segments when performing spraying tasks on the operating route segments.
  • the target obstacle avoidance path parallel to the current operational route segment can be determined according to the digital map, and the spray The man-machine moves from the current operation route segment to the target obstacle avoidance path for obstacle avoidance, so that the spraying drone does not need fixed or mechanized bypass obstacle avoidance and frequently stops, rotates frequently, and frequently detects whether there are obstacles on the current operation route segment Objects, thereby improving the efficiency of detouring spraying drones.
  • FIG. 27 is a structural diagram of a spray drone provided by an embodiment of the present invention.
  • the spray drone 270 includes: a fuselage, a power system, a detection device 271, and an obstacle avoidance control device 272.
  • the power system It includes at least one of the following: a motor 273, a propeller 274, and an electronic governor 275.
  • the power system is installed on the fuselage to provide flight power; the obstacle avoidance control device 272 may specifically be the navigation module and/or Or the specific principle and implementation of the flight controller and the obstacle avoidance control device 272 are similar to the above embodiments, and will not be repeated here.
  • the spray drone 270 further includes: a communication module 277, wherein the communication module 277 is used to communicate with the ground control terminal.
  • the spray drone is an agricultural drone.
  • a digital map is established based on the detection data. Since the operation route includes multiple operation route segments, the spraying drone is in one of the The detection equipment can detect obstacles on other operating route segments when performing spraying tasks on the operating route segments.
  • the target obstacle avoidance path parallel to the current operational route segment can be determined according to the digital map, and the spray The man-machine moves from the current operation route segment to the target obstacle avoidance path for obstacle avoidance, so that the spraying drone does not need fixed or mechanized bypass obstacle avoidance and frequently stops, rotates frequently, and frequently detects whether there are obstacles on the current operation route segment Objects, thereby improving the efficiency of detouring spraying drones.
  • this embodiment also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the obstacle avoidance control method of the spray drone described in the above embodiment.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the units is only a division of logical functions.
  • there may be other divisions for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
  • the above integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium.
  • the above software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute the method described in each embodiment of the present invention Partial steps.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

An obstacle avoidance control method and apparatus for a spraying unmanned aerial vehicle, and a storage medium. The obstacle avoidance control method comprises: obtaining detection data outputted by a detection device when the spraying unmanned aerial vehicle performs a spraying task according to an operation route, wherein the operation route comprises multiple operation route segments (S601); establishing a digital map according to the detection data (S602); because the spraying unmanned aerial vehicle performs the spraying task on one of the operation route segments, obstacles on other operation route segments can be detected according to a detection setting, when the spraying unmanned aerial vehicle performs the spraying task on the current operation route segment, if the obstacle is determined to be existed in the current operation route segment, determining a target obstacle avoidance path parallel to the current operation route segment according to the digital map (S603); controlling the spraying unmanned aerial vehicle to move from the current operation route segment to the target obstacle avoidance path for obstacle avoidance (S604); controlling the spraying unmanned aerial vehicle to return from the target obstacle avoidance path to the current operation route segment to continue to perform the spraying task after determining that the obstacle is avoided (S605), so that the spraying unmanned aerial vehicle do not need to frequently pause and frequently rotate due to an immobilized and mechanized detour to avoid obstacles, thereby improving detouring efficiency of the spraying unmanned aerial vehicle.

Description

喷洒无人机的避障控制方法、装置、设备及存储介质Obstacle avoidance control method, device, equipment and storage medium for spraying drone 技术领域Technical field
本发明实施例涉及喷洒无人机领域,尤其涉及一种喷洒无人机的避障控制方法、装置、设备及存储介质。The embodiments of the present invention relate to the field of spraying drones, and in particular to an obstacle avoidance control method, device, equipment and storage medium for spraying drones.
背景技术Background technique
现有技术中喷洒无人机通常设置有避障系统,当避障系统检测到喷洒无人机周围的障碍物时,喷洒无人机进行绕行避障。In the prior art, the spraying drone is usually provided with an obstacle avoidance system. When the obstacle avoidance system detects obstacles around the spraying drone, the spraying drone performs bypass obstacle avoidance.
但是,喷洒无人机在绕行避障时的绕行路径较为固定化、机械化,导致喷洒无人机需要飞行较远的路径才能绕开障碍物,或者,喷洒无人机需要飞行较长的时间才能绕开障碍物,降低了喷洒无人机的绕行效率。However, the bypass path of the spray drone when it bypasses obstacle avoidance is relatively fixed and mechanized, resulting in the spray drone needing to fly a long path to bypass the obstacle, or the spray drone needs to fly a long It takes time to circumvent obstacles, reducing the efficiency of spraying the UAV.
发明内容Summary of the invention
本发明实施例提供一种喷洒无人机的避障控制方法、装置、设备及存储介质,以提高喷洒无人机的绕行效率。Embodiments of the present invention provide an obstacle avoidance control method, device, equipment, and storage medium for spraying a drone, so as to improve the detour efficiency of the spraying drone.
本发明实施例的第一方面是提供一种喷洒无人机的避障控制方法,所述喷洒无人机设置有探测设备,所述探测设备用于探测障碍物,所述方法包括:A first aspect of an embodiment of the present invention is to provide an obstacle avoidance control method for a spray drone. The spray drone is provided with a detection device. The detection device is used to detect obstacles.
在所述喷洒无人机按照作业航线执行喷洒任务的过程中,获取探测设备输出的探测数据,其中,所述作业航线包括多个作业航线段;In the process of the spraying drone performing the spraying task according to the operation route, acquiring detection data output by the detection device, wherein the operation route includes a plurality of operation route segments;
根据所述探测数据建立数字地图;Build a digital map based on the detection data;
在所述喷洒无人机按照所述多个作业航线段中的当前作业航线段执行喷洒任务的过程中,若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径;In the process of the spraying drone performing the spraying task according to the current operation route segment of the plurality of operation route segments, if it is determined that there is an obstacle on the current operation route segment, the Describe the parallel obstacle avoidance path of the current operational route segment;
控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径,并控制所述喷洒无人机按照所述目标避障路径移动;Controlling the spray drone to move from the current operation route segment to the target obstacle avoidance path, and controlling the spray drone to move according to the target obstacle avoidance path;
当确定避开所述障碍物之后,控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务。After it is determined to avoid the obstacle, the spraying drone is controlled to return to the current operation route segment from the target obstacle avoidance path to continue to perform the spraying task.
本发明实施例的第二方面是提供一种喷洒无人机的避障控制装置,所述喷洒无人机设置有探测设备,所述探测设备用于探测障碍物,所述避障控制装置包括:存储器和处理器;A second aspect of an embodiment of the present invention is to provide an obstacle avoidance control device for a spray drone, where the spray drone is provided with a detection device, the detection device is used to detect an obstacle, and the obstacle avoidance control device includes : Memory and processor;
所述存储器用于存储程序代码;The memory is used to store program codes;
所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, it is used to perform the following operations:
在所述喷洒无人机按照作业航线执行喷洒任务的过程中,获取探测设备输出的探测数据,其中,所述作业航线包括多个作业航线段;In the process of the spraying drone performing the spraying task according to the operation route, acquiring detection data output by the detection device, wherein the operation route includes a plurality of operation route segments;
根据所述探测数据建立数字地图;Build a digital map based on the detection data;
在所述喷洒无人机按照所述多个作业航线段中的当前作业航线段执行喷洒任务的过程中,若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径;In the process of the spraying drone performing the spraying task according to the current operation route segment of the plurality of operation route segments, if it is determined that there is an obstacle on the current operation route segment, the Describe the parallel obstacle avoidance path of the current operational route segment;
控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径,并控制所述喷洒无人机按照所述目标避障路径移动;Controlling the spray drone to move from the current operation route segment to the target obstacle avoidance path, and controlling the spray drone to move according to the target obstacle avoidance path;
当确定避开所述障碍物之后,控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务。After it is determined to avoid the obstacle, the spraying drone is controlled to return to the current operation route segment from the target obstacle avoidance path to continue to perform the spraying task.
本发明实施例的第三方面是提供一种喷洒无人机,包括:A third aspect of the embodiments of the present invention is to provide a spray drone, including:
机身;body;
动力系统,安装在所述机身,用于提供飞行动力;A power system, installed on the fuselage, is used to provide flight power;
探测设备,用于探测障碍物;以及Detection equipment for detecting obstacles; and
如第二方面所述的避障控制装置。The obstacle avoidance control device according to the second aspect.
本发明实施例的第四方面是提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行以实现如第一方面所述的方法。A fourth aspect of the embodiments of the present invention is to provide a computer-readable storage medium on which a computer program is stored, which is executed by a processor to implement the method according to the first aspect.
本实施例提供的喷洒无人机的避障控制方法、装置、设备及存储介质,通过获取喷洒无人机按照作业航线执行喷洒任务时探测设备输出的探测数据,根据该探测数据建立数字地图,由于该作业航线包括多个作业航线段,使得喷洒无人机在其中一条作业航线段上执行喷洒任务时探测设备可探测到其他作业航线段上的障碍物。当喷洒无人机在当前作业航线段执行喷洒任务时,如果确定该当前作业航线段中存在障碍物,可根据该数字地 图确定与该当前作业航线段平行的目标避障路径,并控制喷洒无人机从当前作业航线段移动至目标避障路径进行避障,使得喷洒无人机不需要固定化、机械化的绕行避障而频繁停顿、频繁旋转、频繁检测当前作业航线段上是否有障碍物,从而提高了喷洒无人机的绕行效率。The obstacle avoidance control method, device, equipment and storage medium of the spray drone provided in this embodiment, by acquiring the detection data output by the detection device when the spray drone performs the spray task according to the operation route, and establishing a digital map based on the detection data Since the operation route includes multiple operation route segments, the detection device can detect obstacles on other operation route segments when the spraying drone performs the spraying task on one of the operation route segments. When the spray drone performs the spraying task in the current operating route segment, if it is determined that there are obstacles in the current operating route segment, the target obstacle avoidance path parallel to the current operating route segment can be determined according to the digital map, and the spraying can be controlled. The man-machine moves from the current operation route segment to the target obstacle avoidance path for obstacle avoidance, so that the spraying drone does not need fixed or mechanized bypass obstacle avoidance and frequently stops, rotates frequently, and frequently detects whether there are obstacles on the current operation route segment Objects, thereby improving the efficiency of detouring spraying drones.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without paying any creative labor, other drawings can also be obtained based on these drawings.
图1为本发明实施例提供的一种应用场景的示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present invention;
图2为本发明实施例提供的一种用户界面的示意图;2 is a schematic diagram of a user interface provided by an embodiment of the present invention;
图3为本发明实施例提供的一种作业航线的示意图;3 is a schematic diagram of a working route provided by an embodiment of the present invention;
图4为本发明实施例提供的一种雷达探测范围的示意图;4 is a schematic diagram of a radar detection range provided by an embodiment of the present invention;
图5为现有技术中提供的一种避障绕行示意图;5 is a schematic diagram of an obstacle avoidance bypass provided in the prior art;
图6为本发明实施例提供的喷洒无人机的避障控制方法的流程图;6 is a flowchart of an obstacle avoidance control method for spraying a drone according to an embodiment of the present invention;
图7为本发明实施例提供的一种雷达探测范围的示意图;7 is a schematic diagram of a radar detection range provided by an embodiment of the present invention;
图8为本发明实施例提供的一种喷洒无人机执行喷洒任务的示意图;8 is a schematic diagram of a spraying drone performing a spraying task provided by an embodiment of the present invention;
图9为本发明实施例提供的一种数字地图建立的示意图;9 is a schematic diagram of establishing a digital map provided by an embodiment of the present invention;
图10为本发明实施例提供的一种喷洒无人机绕行避障的示意图;10 is a schematic diagram of a spray drone bypass obstacle avoidance provided by an embodiment of the present invention;
图11为本发明实施例提供的另一种喷洒无人机绕行避障的示意图;11 is a schematic diagram of another spraying drone bypass obstacle avoidance provided by an embodiment of the present invention;
图12为本发明实施例提供的另一种喷洒无人机绕行避障的示意图;FIG. 12 is a schematic diagram of another spraying drone bypass obstacle avoidance provided by an embodiment of the present invention; FIG.
图13为本发明实施例提供的另一种喷洒无人机绕行避障的示意图;13 is a schematic diagram of another obstacle-avoiding spraying drone provided by an embodiment of the present invention;
图14为本发明实施例提供的另一种用户界面的示意图;14 is a schematic diagram of another user interface provided by an embodiment of the present invention;
图15为本发明另一实施例提供的喷洒无人机的避障控制方法的流程图;15 is a flowchart of an obstacle avoidance control method for spraying a drone according to another embodiment of the present invention;
图16为本发明实施例提供的多个避障路径的示意图;16 is a schematic diagram of multiple obstacle avoidance paths provided by an embodiment of the present invention;
图17为本发明另一实施例提供的喷洒无人机的避障控制方法的流程图;17 is a flowchart of an obstacle avoidance control method for spraying a drone according to another embodiment of the present invention;
图18本发明实施例提供的一种目标回航路径的示意图;18 is a schematic diagram of a target return path provided by an embodiment of the present invention;
图19本发明实施例提供的另一种目标回航路径的示意图;19 is a schematic diagram of another target return path provided by an embodiment of the present invention;
图20为本发明实施例提供的另一种用户界面的示意图;20 is a schematic diagram of another user interface provided by an embodiment of the present invention;
图21为本发明实施例提供的另一种用户界面的示意图;21 is a schematic diagram of another user interface provided by an embodiment of the present invention;
图22为本发明实施例提供的另一种作业航线的示意图;22 is a schematic diagram of another operation route provided by an embodiment of the present invention;
图23为本发明实施例提供的另一种作业航线的示意图;23 is a schematic diagram of another operation route provided by an embodiment of the present invention;
图24为本发明实施例提供的另一种作业航线的示意图;24 is a schematic diagram of another operation route provided by an embodiment of the present invention;
图25为本发明实施例提供的另一种作业航线的示意图;25 is a schematic diagram of another operation route provided by an embodiment of the present invention;
图26为本发明实施例提供的避障控制装置的结构图;26 is a structural diagram of an obstacle avoidance control device according to an embodiment of the present invention;
图27为本发明实施例提供的喷洒无人机的结构图。FIG. 27 is a structural diagram of a spray drone provided by an embodiment of the present invention.
附图标记:Reference mark:
10:无人机;    101:飞行控制器;    12:通信模块;10: UAV; 101: flight controller; 12: communication module;
13:地面控制端;      0:航点;    1:航点;13: ground control terminal; 0: waypoint; 1: waypoint;
2:航点;    3:航点;       4:航点;2: waypoint; 3: waypoint; 4: waypoint;
5:航点;    6:航点;   7:航点;5: waypoint; 6: waypoint; 7: waypoint;
8:航点;    9:航点;   10:航点;8: waypoint; 9: waypoint; 10: waypoint;
11:航点;   21:用户界面;  22:电子地图;11: waypoint; 21: user interface; 22: electronic map;
23:作业区域;    41:喷洒无人机;   51:障碍物;23: working area; 41: spraying drones; 51: obstacles;
71:障碍物;       72:障碍物;     73:障碍物;71: Obstacle; 72: Obstacle; 73: Obstacle;
80:喷洒无人机的机头;  91:障碍物;  92:目标避障路径;80: spray the drone head; 91: obstacles; 92: target obstacle avoidance path;
93:避障路径;    94;避障路径:     95:避障路径;93: Obstacle avoidance path; 94; Obstacle avoidance path: 95: Obstacle avoidance path;
96:避障路径;    97:避障路径;     141:弹框;96: obstacle avoidance path; 97: obstacle avoidance path; 141: bullet frame;
142:雷达图;     143:历史路径点;  144:将要运行的路径;142: radar chart; 143: historical route points; 144: route to be run;
145:历史路径;   146:将要运行的路径点;  147:历史路径;145: historical route; 146: route point to be operated; 147: historical route;
148:将要运行的路径点;  260:避障控制装置;   261:存储器;148: Waypoint to be operated; 260: Obstacle avoidance control device; 261: memory;
262:处理器;     263:通讯接口;     270:喷洒无人机;262: processor; 263: communication interface; 270: spray drone;
271:探测设备;   272:避障控制装置;    273:电机;271: detection equipment; 272: obstacle avoidance control device; 273: motor;
274:螺旋桨;   275:电子调速器;     277:通信模块。274: propeller; 275: electronic governor; 277: communication module.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进 行清楚地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.
需要说明的是,当组件被称为“固定于”另一个组件,它可以直接在另一个组件上或者也可以存在居中的组件。当一个组件被认为是“连接”另一个组件,它可以是直接连接到另一个组件或者可能同时存在居中组件。It should be noted that when a component is said to be "fixed" to another component, it can be directly on another component or it can also exist in a centered component. When a component is considered to be "connected" to another component, it can be directly connected to another component or there can be centered components at the same time.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of the present invention. The terminology used in the description of the present invention herein is for the purpose of describing specific embodiments, and is not intended to limit the present invention. The term "and/or" as used herein includes any and all combinations of one or more related listed items.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。The following describes some embodiments of the present invention in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and the features in the embodiments can be combined with each other.
如图1所示,无人机10具体可以是喷洒无人机,例如农业无人机(喷洒农药、种子、水分的无人机)。101表示无人机10的飞行控制器,飞行控制器101用于控制无人机10飞行。12表示无人机10的通信模块,通信模块12具体可以是无线通信模块,通信模块12可与地面控制端13进行无线通信。在一些实施例中,通信模块12也可以与地面控制端13进行有线通信。可选的,地面控制端13具体为遥控器、智能手机、平板电脑等及其组合。地面控制端13可控制无人机10进行喷洒任务,或者,该无人机10也可以自主作业。As shown in FIG. 1, the drone 10 may specifically be a spray drone, such as an agricultural drone (a drone spraying pesticides, seeds, and moisture). 101 denotes a flight controller of the drone 10, and the flight controller 101 is used to control the drone 10 to fly. 12 denotes a communication module of the UAV 10, and the communication module 12 may specifically be a wireless communication module, and the communication module 12 may perform wireless communication with the ground control terminal 13. In some embodiments, the communication module 12 can also perform wired communication with the ground control terminal 13. Optionally, the ground control terminal 13 is specifically a remote control, a smart phone, a tablet computer, etc. and combinations thereof. The ground control terminal 13 can control the drone 10 for spraying tasks, or the drone 10 can also operate autonomously.
以无人机10自主作业为例,地面控制端13可以将作业航线发送给无人机10,无人机10按照该作业航线自主执行喷洒任务。可选的,地面控制端13本地可预先存储有该作业航线。或者,地面控制端13可以从云端服务器下载该作业航线。再或者,该地面控制端13可根据待喷洒的作业区域的位置信息生成作业航线。该地面控制端13根据待喷洒的作业区域的位置信息生成作业航线的一种可实现方式是:如图2所示,21表示地面控制端13的用户界面,用户界面21中显示有电子地图22,用户可以在该电子地图22中选择待喷洒的作业区域,例如,作业区域23,A点、B点、 C点、D点表示作业区域23边缘的四个点。此处只是示意性说明,并不限定待喷洒的作业区域的形状。地面控制端13根据预设算法,例如全覆盖路径规划算法在该作业区域23中规划出无人机10的作业航线,例如图2所示的从航点0到航点11的作业航线。可以理解,作业航线是由一系列航点构成的。Taking the autonomous operation of the drone 10 as an example, the ground control terminal 13 can send the operation route to the drone 10, and the drone 10 autonomously performs the spraying task according to the operation route. Optionally, the ground control terminal 13 may locally store the operation route in advance. Alternatively, the ground control terminal 13 may download the operation route from the cloud server. Alternatively, the ground control terminal 13 may generate a working route according to the position information of the working area to be sprayed. One possible way for the ground control terminal 13 to generate a work route according to the position information of the work area to be sprayed is: as shown in FIG. 2, 21 represents the user interface of the ground control terminal 13, and an electronic map 22 is displayed in the user interface 21 The user can select the work area to be sprayed in the electronic map 22, for example, the work area 23, and points A, B, C, and D represent four points on the edge of the work area 23. This is only a schematic illustration and does not limit the shape of the work area to be sprayed. The ground control terminal 13 plans a working route of the drone 10 in the working area 23 according to a preset algorithm, such as a full-coverage path planning algorithm, such as the working route from waypoint 0 to waypoint 11 shown in FIG. 2. It can be understood that the operating route is composed of a series of waypoints.
在一些实施例中,待喷洒的作业区域可以不是用户在电子地图中框选的,而是预先设定的,也就是说,待喷洒的作业区域的位置信息是预先设定的,地面控制端13只需根据该待喷洒的作业区域的位置信息,生成作业航线即可。In some embodiments, the work area to be sprayed may not be selected by the user in the electronic map, but is preset, that is, the position information of the work area to be sprayed is preset, and the ground control terminal 13 According to the position information of the operation area to be sprayed, the operation route can be generated.
进一步,地面控制端13将该作业航线发送给无人机10,无人机10的飞行控制器101通过通信模块12接收到该作业航线后,按照该作业航线自主执行喷洒任务。飞行控制器101按照该作业航线自主执行喷洒任务的过程具体如图3所示,E点表示无人机10的起始点即HOME点,无人机10在E点接收到地面控制端13发送的如图2所示的作业航线,该作业航线包括多个作业航线段,其中,所述作业航线段为两个相邻的航点之间的航线,例如,从航点0到航点1的作业航线段,从航点1到航点2的作业航线段,从航点2到航点3的作业航线段,依此类推,从航点10到航点11的作业航线段。飞行控制器101控制无人机10从E点飞行到第一个航点即航点0,在航点0控制喷头打开,并根据从航点0到航点1的一系列航点,控制无人机10从航点0飞行到航点1,在航点1控制喷头关闭,从而完成从航点0到航点1的作业航线段对应的喷洒任务。进一步,飞行控制器101控制无人机10从航点1横移到航点2,所谓的横移是指无人机10从航点1飞行到航点2的过程中,无人机10的机头朝向与从航点0到航点1的作业航线段的方向保持一致。当无人机10横移到航点2时,飞行控制器101控制喷头再次打开,当无人机10从航点2飞行到航点3时,飞行控制器101控制喷头再次关闭,从而完成从航点2到航点3的作业航线段对应的喷洒任务,依次类推,直到无人机10完成从航点10到航点11的作业航线段对应的喷洒任务后,从航点11飞回到HOME点即E点,从而完成对作业区域23的喷洒任务。也就是说,例如,从航点0到航点1的作业航线段是喷洒无人机执行喷洒任务的航线段。例如,从航点1到航点 2的作业航线段是喷洒无人机横移时的航线段。Further, the ground control terminal 13 sends the operation route to the drone 10, and after receiving the operation route through the communication module 12, the flight controller 101 of the drone 10 autonomously executes the spraying task according to the operation route. The process of the flight controller 101 performing the spraying task autonomously according to the operation route is specifically shown in FIG. 3, point E represents the starting point of the drone 10, namely the HOME point, and the drone 10 receives at As shown in FIG. 2, the operation route includes a plurality of operation route segments, wherein the operation route segment is a route between two adjacent waypoints, for example, from waypoint 0 to waypoint 1 Operation route segment, operation route segment from waypoint 1 to waypoint 2, operation route segment from waypoint 2 to waypoint 3, and so on, operation route segment from waypoint 10 to waypoint 11. The flight controller 101 controls the drone 10 to fly from point E to the first waypoint, which is waypoint 0, and the nozzle is turned on at waypoint 0, and according to a series of waypoints from waypoint 0 to waypoint 1, The man-machine 10 flies from waypoint 0 to waypoint 1, and controls the nozzle to close at waypoint 1, thereby completing the spraying task corresponding to the operation route segment from waypoint 0 to waypoint 1. Further, the flight controller 101 controls the drone 10 to traverse from waypoint 1 to waypoint 2, the so-called traverse refers to the process of the drone 10 flying from waypoint 1 to waypoint 2 The direction of the nose is consistent with the direction of the working route segment from waypoint 0 to waypoint 1. When the drone 10 traverses to waypoint 2, the flight controller 101 controls the nozzle to turn on again, and when the drone 10 flies from waypoint 2 to waypoint 3, the flight controller 101 controls the nozzle to turn off again, thus completing from The spraying tasks corresponding to the operating route segments from waypoint 2 to waypoint 3, and so on, until the drone 10 completes the spraying tasks corresponding to the operating route segments from waypoint 10 to waypoint 11, then fly back from waypoint 11 The HOME point is the E point, thereby completing the spraying task to the work area 23. That is, for example, the working route segment from waypoint 0 to waypoint 1 is a route segment where the spraying drone performs the spraying task. For example, the operating route segment from waypoint 1 to waypoint 2 is the route segment when the spray drone moves laterally.
在一些实施例中,地面控制端13也可以将待喷洒的作业区域的位置信息发送给无人机10,由无人机10根据该作业区域的位置信息生成作业航线,并按照该作业航线自主执行喷洒任务。其中,无人机10根据该作业区域的位置信息生成作业航线的过程和原理类似于地面控制端13根据该作业区域的位置信息生成作业航线的过程,此处不再赘述。In some embodiments, the ground control terminal 13 may also send the position information of the work area to be sprayed to the drone 10, and the drone 10 generates a work route according to the position information of the work area, and autonomously follows the work route Perform spraying tasks. The process and principle of the UAV 10 generating the operation route according to the position information of the operation area are similar to the process of the ground control terminal 13 generating the operation route according to the position information of the operation area, which will not be repeated here.
在另外一些实施例中,无人机10还可以预先存储有作业航线,并按照该作业航线执行喷洒任务。In some other embodiments, the drone 10 may also store a working route in advance, and perform spraying tasks according to the working route.
在喷洒无人机例如农业无人机按照作业航线执行喷洒任务的过程中,可能随时会遇到障碍物,此时,喷洒无人机需要绕过该障碍物并回到当前作业航线段上。为了安全作业,喷洒无人机通常设置有探测设备,例如,雷达(毫米波雷达或激光雷达)、超声波探测设备、TOF测距探测设备、视觉探测设备、激光探测设备等。以雷达为例,如图4所示,喷洒无人机41上设置有毫米波雷达,该毫米波雷达可探测到该喷洒无人机41前方和后方预设范围内的障碍物,该预设范围可以是如图4所示的正负45度范围。当喷洒无人机41前方出现障碍物时,现有技术中喷洒无人机41绕行避障的过程可包括如图5所示的几个步骤:In the process of spraying drones, such as agricultural drones, performing obstacles in accordance with the operation route, an obstacle may be encountered at any time. At this time, the spraying drone needs to bypass the obstacle and return to the current operation route segment. For safe operation, spraying drones are usually equipped with detection equipment, such as radar (millimeter wave radar or lidar), ultrasonic detection equipment, TOF ranging detection equipment, visual detection equipment, laser detection equipment, etc. Taking radar as an example, as shown in FIG. 4, a millimeter-wave radar is provided on the spray drone 41. The millimeter-wave radar can detect obstacles within a preset range in front of and behind the spray drone 41. The range may be a range of plus or minus 45 degrees as shown in FIG. 4. When an obstacle appears in front of the spray drone 41, the process of spraying the drone 41 around the obstacle avoidance in the prior art may include several steps as shown in FIG. 5:
步骤1,喷洒无人机41探测到前方有障碍物51,首先进行刹车。In step 1, the spray drone 41 detects an obstacle 51 ahead, and first brakes.
步骤2,喷洒无人机41在机体坐标系下向左侧旋转90度。Step 2: The spray drone 41 rotates 90 degrees to the left in the body coordinate system.
步骤3,喷洒无人机41在机体坐标系下向前飞行,当喷洒无人机41在机体坐标系下向前飞行的距离为d1时,悬停。Step 3: The spray drone 41 flies forward in the body coordinate system. When the spray drone 41 flies forward in the body coordinate system for a distance d1, hover.
步骤4,喷洒无人机41在机体坐标系下向右旋转90度,回到之前所在航线段的方向。 Step 4. The spray drone 41 rotates 90 degrees to the right in the body coordinate system and returns to the direction of the previous route segment.
步骤5,喷洒无人机41在机体坐标系下向前飞行,当喷洒无人机41在机体坐标系下向前飞行的距离为d2时,悬停。 Step 5. The spray drone 41 flies forward in the body coordinate system. When the spray drone 41 flies forward in the body coordinate system for a distance of d2, hover.
步骤6,喷洒无人机41在机体坐标系下向右旋转90度,并探测之前所在航线段上是否有障碍物,如果没有,则在机体坐标系下向前飞行。Step 6: The spray drone 41 rotates 90 degrees to the right under the body coordinate system, and detects whether there is an obstacle on the previous route segment, and if not, it will fly forward under the body coordinate system.
步骤7,喷洒无人机41回到之前所在航线段继续执行后续的喷洒任务。In step 7, the spraying drone 41 returns to the previous route segment to continue to perform subsequent spraying tasks.
另外,如果在步骤6中,喷洒无人机41探测到之前所在航线段上有障碍物,则喷洒无人机41可在机体坐标系下向左转动90度,按照步骤5 所示的方向继续向前飞行,直到喷洒无人机41探测到之前所在航线段上没有障碍物后,按照步骤7所示的方向回到之前所在航线段继续执行后续的喷洒任务。In addition, if in step 6, the spray drone 41 detects an obstacle on the previous route segment, the spray drone 41 can be rotated 90 degrees to the left in the body coordinate system, according to the direction shown in step 5 Continue to fly forward until the spray drone 41 detects that there is no obstacle on the previous route segment, and then return to the previous route segment in the direction shown in step 7 to continue to perform subsequent spraying tasks.
由此可见,如果距离d1和距离d2的取值较小,则有可能会导致喷洒无人机频繁停顿、频繁旋转、频繁检测原航线段上是否有障碍物。如果距离d1和距离d2的取值较大,则有可能导致喷洒无人机漏喷较大的作业区域。针对该问题,本发明实施例提供一种喷洒无人机的避障控制方法,以为喷洒无人机提供更加灵活的避障策略,下面结合具体的实施例对该方法进行介绍。It can be seen from this that if the values of distance d1 and distance d2 are small, it may lead to frequent stops, frequent rotations, and frequent detection of obstacles on the original route segment of the spraying drone. If the values of the distance d1 and the distance d2 are large, it may cause the spray drone to leak a large work area. In response to this problem, embodiments of the present invention provide an obstacle avoidance control method for spraying drones to provide a more flexible obstacle avoidance strategy for spraying drones. The method will be described below in conjunction with specific embodiments.
本发明实施例提供一种喷洒无人机的避障控制方法。所述喷洒无人机设置有探测设备,所述探测设备用于探测障碍物。可选的,所述喷洒无人机为农业无人机。An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone. The spray drone is provided with detection equipment, and the detection equipment is used to detect obstacles. Optionally, the spray drone is an agricultural drone.
图6为本发明实施例提供的喷洒无人机的避障控制方法的流程图。如图6所示,本实施例中的方法,可以包括:6 is a flowchart of an obstacle avoidance control method for spraying an unmanned aerial vehicle according to an embodiment of the present invention. As shown in FIG. 6, the method in this embodiment may include:
步骤S601、在所述喷洒无人机按照作业航线执行喷洒任务的过程中,获取探测设备输出的探测数据,其中,所述作业航线包括多个作业航线段。Step S601: During the process that the spraying drone performs the spraying task according to the operation route, obtain the detection data output by the detection device, wherein the operation route includes a plurality of operation route segments.
在本实施例中,喷洒无人机上设置的所述探测设备可以是雷达、超声波探测设备、TOF测距探测设备、视觉探测设备、激光探测设备等。本实施例以雷达为例,该雷达具体可以是毫米波雷达。如图7所示,毫米波雷达可探测到喷洒无人机41前后各90度视角内的障碍物,且毫米波雷达的最大探测距离为40米。在喷洒无人机按照作业航线执行喷洒任务的过程中,毫米波雷达实时探测其视角内的障碍物。该作业航线具体可以是如图2、图3、图4所示的作业航线,该作业航线包括多个作业航线段,该作业航线段不仅可以是喷洒无人机执行喷洒任务的航线段,也可以是喷洒无人机41横移时的航线段。In this embodiment, the detection equipment provided on the spray drone may be radar, ultrasonic detection equipment, TOF ranging detection equipment, visual detection equipment, laser detection equipment, and the like. This embodiment takes a radar as an example, and the radar may specifically be a millimeter wave radar. As shown in FIG. 7, the millimeter wave radar can detect obstacles within a 90-degree angle of view before and after spraying the drone 41, and the maximum detection distance of the millimeter wave radar is 40 meters. In the process of spraying the drone to perform the spraying task according to the operation route, the millimeter-wave radar detects obstacles in its perspective in real time. The working route may specifically be a working route as shown in FIGS. 2, 3, and 4. The working route includes a plurality of working route segments. The working route segment may not only be a route segment where a spray drone performs a spray task, but also It may be a route segment when the spraying drone 41 moves laterally.
具体的,毫米波雷达对其探测到的目标原始数据进行多次跟踪,每次跟踪时评价该目标的航迹质量,当该航迹质量达到一定阈值时,毫米波雷达确定该目标为真实有效的障碍物,输出探测数据,并将该探测数据发送给喷洒无人机41的导航模块和飞行控制器。可选的,所述探测数据包括 如下至少一种:所述障碍物的大小、所述障碍物相对于所述喷洒无人机的距离、方向。其中,所述障碍物相对于所述喷洒无人机的距离可以是所述障碍物和所述喷洒无人机之间的直线距离,所述障碍物相对于所述喷洒无人机的方向具体可以是所述障碍物、所述喷洒无人机之间的连线与所述喷洒无人机的机头朝向之间的夹角即所述障碍物偏离机头朝向的角度。在本实施例中,所述喷洒无人机的机头朝向可以和作业航线段的方向一致,也可以和作业航线段的方向相反,如图8所示,80表示喷洒无人机的机头,当喷洒无人机在作业航线段23执行喷洒任务时,喷洒无人机的机头朝向和作业航线段23的方向一致。作业航线段的方向可以是当喷洒无人机在该作业航线段上飞行时,从喷洒无人机已经经过的历史航点指向即将经过的航点的方向。在喷洒无人机从航点3向航点4横移的过程中,喷洒无人机的机头朝向不变。当喷洒无人机在作业航线段45执行喷洒任务时,喷洒无人机的机头朝向和作业航线段45的方向相反。也就是说,喷洒无人机在作业航线段23执行喷洒任务时,该喷洒无人机在机体坐标系下向前飞。喷洒无人机在作业航线段45执行喷洒任务时,该喷洒无人机在机体坐标系下向后飞。在一些实施例中,喷洒无人机还可以在横移结束之后,例如在航点4进行旋转,以使喷洒无人机的机头朝向和作业航线段45的方向一致。Specifically, the millimeter-wave radar tracks the original data of the detected target multiple times, and evaluates the track quality of the target each time it tracks. When the track quality reaches a certain threshold, the millimeter-wave radar determines that the target is true and effective Obstacles, output detection data, and send the detection data to the navigation module and flight controller spraying the UAV 41. Optionally, the detection data includes at least one of the following: the size of the obstacle, the distance and direction of the obstacle relative to the spray drone. Wherein, the distance of the obstacle with respect to the spray drone may be a linear distance between the obstacle and the spray drone, and the direction of the obstacle with respect to the spray drone is specific It may be an angle between the obstacle, the connection line between the spray drone and the head of the spray drone, that is, the angle at which the obstacle deviates from the head. In this embodiment, the head of the spray drone can be in the same direction as the operation route segment or opposite to the direction of the operation route segment. As shown in FIG. 8, 80 indicates the spray drone nose When the spraying drone performs the spraying task in the operating route segment 23, the direction of the spraying drone's nose is consistent with the direction of the operating route segment 23. The direction of the operation route segment may be the direction from the historical waypoints that the spray drone has passed to the waypoints to be passed when the spray drone is flying on the operation route segment. When the spray drone moves laterally from waypoint 3 to waypoint 4, the direction of the spray drone's nose remains unchanged. When the spraying drone performs the spraying task in the operation route section 45, the head of the spraying drone is opposite to the direction of the operation route section 45. That is to say, when the spraying drone performs the spraying task in the operation route segment 23, the spraying drone flies forward in the body coordinate system. When the spraying drone performs the spraying task in the operation route segment 45, the spraying drone flies backward in the body coordinate system. In some embodiments, the spray drone can also rotate after the traverse is completed, for example, at waypoint 4, so that the spray drone's nose is aligned with the direction of the operating route segment 45.
如图7所示,71和72表示毫米波雷达探测到的障碍物,毫米波雷达输出的探测数据包括障碍物71的大小、障碍物71相对于喷洒无人机41的距离、方向;以及障碍物72的大小、障碍物72相对于喷洒无人机41的距离、方向。其中,障碍物71的大小具体可以是障碍物71的宽度,障碍物71相对于喷洒无人机41的距离为d1,障碍物71相对于喷洒无人机41的方向具体可以是障碍物71偏离喷洒无人机41机头朝向的角度θ1。障碍物72的大小具体可以是障碍物71的宽度,障碍物72相对于喷洒无人机41的距离为d2,障碍物72相对于喷洒无人机41的方向具体可以是障碍物72偏离喷洒无人机41机头朝向的角度θ2。As shown in FIG. 7, 71 and 72 represent obstacles detected by the millimeter-wave radar. The detection data output by the millimeter-wave radar includes the size of the obstacle 71, the distance and direction of the obstacle 71 relative to the spray drone 41; and the obstacle The size of the object 72 and the distance and direction of the obstacle 72 relative to the spray drone 41. The size of the obstacle 71 may specifically be the width of the obstacle 71, the distance of the obstacle 71 relative to the spray drone 41 is d1, and the direction of the obstacle 71 relative to the spray drone 41 may specifically be the deviation of the obstacle 71 The angle θ1 toward which the head of the drone 41 is sprayed. The size of the obstacle 72 may specifically be the width of the obstacle 71, the distance of the obstacle 72 relative to the spray drone 41 is d2, and the direction of the obstacle 72 relative to the spray drone 41 may specifically be that the obstacle 72 deviates from the spray without The angle θ2 of the head of the human-machine 41.
步骤S602、根据所述探测数据建立数字地图。Step S602: Establish a digital map according to the detection data.
由于毫米波雷达具有投射性,如图9所示,毫米波雷达还可以探测到被障碍物72遮挡的障碍物73,例如,障碍物73相对于喷洒无人机41的 距离为d3,障碍物73偏离喷洒无人机41机头朝向的角度为θ3。当喷洒无人机41的导航模块接收到毫米波雷达输出的探测数据后,根据该探测数据建立数字地图。该数字地图具体可以是全局栅格地图,在这里以数字地图为全局栅格地图来进行示意性说明,可以理解的是,本文后述部分出现的全局栅格地图都可以以数字地图同等地替换。导航模块根据探测数据在全局栅格地图中,对障碍物进行标记,可选的,导航模块根据毫米波雷达探测到的障碍物的大小、相对于喷洒无人机的距离、方向,在全局栅格地图中对障碍物对应的位置进行加权值标记,对没有障碍物的位置进行减权值标记。如图9所示,+5对应的位置表示有障碍物,-1对应的位置表示没有障碍物。可选的,加权值的大小和减权值的大小可用于衡量毫米波雷达探测数据的可信度,例如,加权值的大小可用于衡量真实有障碍物的可信度,减权值的大小可用于衡量没有障碍物的可信度。导航模块可根据阈值来判定该全局栅格地图中哪些位置有障碍物。在本实施例中,由于毫米波雷达可实时输出探测数据,因此,导航模块可实时构建全局栅格地图。Since the millimeter-wave radar is projective, as shown in FIG. 9, the millimeter-wave radar can also detect the obstacle 73 blocked by the obstacle 72, for example, the distance of the obstacle 73 relative to the spray drone 41 is d3, and the obstacle The angle that 73 deviates from the direction of the spray drone 41 head is θ3. When the navigation module of the spray drone 41 receives the detection data output by the millimeter wave radar, a digital map is established according to the detection data. The digital map may specifically be a global grid map. Here, the digital map is used as a global grid map for schematic description. It is understandable that the global grid maps appearing in the later part of this article can all be replaced by digital maps. . The navigation module marks obstacles in the global grid map according to the detection data. Optionally, the navigation module according to the size of the obstacles detected by the millimeter wave radar, the distance and direction relative to the spray drone, in the global grid In the grid map, the positions corresponding to obstacles are marked with weighted values, and the positions without obstacles are marked with reduced weights. As shown in FIG. 9, the position corresponding to +5 indicates that there is an obstacle, and the position corresponding to -1 indicates that there is no obstacle. Optionally, the size of the weighted value and the weight-reduced value can be used to measure the credibility of the millimeter-wave radar detection data. For example, the weighted value can be used to measure the credibility of real obstacles, and the weight-reduced value Can be used to measure credibility without obstacles. The navigation module can determine which positions in the global grid map have obstacles according to the threshold. In this embodiment, since the millimeter wave radar can output detection data in real time, the navigation module can construct a global grid map in real time.
步骤S603、在所述喷洒无人机按照所述多个作业航线段中的当前作业航线段执行喷洒任务的过程中,若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径。Step S603: When the spraying drone performs the spraying task according to the current operation route segment of the plurality of operation route segments, if it is determined that there is an obstacle on the current operation route segment, then according to the digital map Determine a target obstacle avoidance path parallel to the current operational route segment.
如图10所示,喷洒无人机41按照作业航线执行喷洒任务,该作业航线包括多个作业航线段,例如,从航点0到航点1的作业航线段,从航点2到航点3的作业航线段,从航点4到航点5的作业航线段,以及从航点6到航点7的作业航线段,此处只是示意性说明,并不对作业航线的形状、以及该作业航线的作业航线段的数量进行限定。As shown in FIG. 10, the spraying drone 41 performs the spraying task according to the operation route, which includes multiple operation route segments, for example, the operation route segment from waypoint 0 to waypoint 1, from waypoint 2 to waypoint The operating route segment of 3, the operating route segment from waypoint 4 to waypoint 5, and the operating route segment from waypoint 6 to waypoint 7 are only schematic illustrations, not the shape of the operating route and the operation The number of operational route segments of the route is limited.
喷洒无人机41按照该多个作业航线段中的当前作业航线段,例如,从航点2到航点3的作业航线段执行喷洒任务,喷洒无人机41实时检测当前作业航线段中是否有障碍物。具体的,喷洒无人机41上的毫米波雷达实时探测其视角内的障碍物,喷洒无人机41根据该毫米波雷达的探测数据,确定该当前作业航线段中是否有障碍物。如图10所示,当喷洒无人机41在从航点2到航点3的作业航线段上执行喷洒任务时,毫米波雷达探测到了障碍物91,也就是说,障碍物91在该毫米波雷达的视角内。该毫米波雷达向喷洒无人机41的导航模块和飞行控制器发送探测数据, 该探测数据可包括障碍物91的大小、障碍物91相对于喷洒无人机41的距离和方向。导航模块根据该探测数据建立全局栅格地图。此时,飞行控制器可根据该探测数据确定障碍物91是否在该当前作业航线段中。由于障碍物91偏离喷洒无人机41机头朝向的角度较大,因此,飞行控制器根据障碍物91相对于喷洒无人机41的方向,确定障碍物91不在当前作业航线段中,并控制喷洒无人机41继续执行喷洒任务。当喷洒无人机41执行完当前作业航线段对应的喷洒任务后,飞行控制器控制喷洒无人机41从航点3横移到航点4,喷洒无人机41从航点4开始按照从航点4到航点5的作业航线段执行喷洒任务。The spraying drone 41 performs the spraying task according to the current working route segment in the plurality of working route segments, for example, the working route segment from waypoint 2 to waypoint 3, and the spraying drone 41 detects in real time whether the current working route segment There are obstacles. Specifically, the millimeter wave radar on the spray drone 41 detects obstacles in its viewing angle in real time, and the spray drone 41 determines whether there are obstacles in the current operation route segment according to the detection data of the millimeter wave radar. As shown in FIG. 10, when the spray drone 41 performs the spraying task on the working route segment from waypoint 2 to waypoint 3, the millimeter wave radar detects the obstacle 91, that is, the obstacle 91 is in the millimeter Wave radar's perspective. The millimeter-wave radar sends detection data to the navigation module and the flight controller of the spray drone 41. The detection data may include the size of the obstacle 91 and the distance and direction of the obstacle 91 relative to the spray drone 41. The navigation module builds a global grid map based on the detection data. At this time, the flight controller may determine whether the obstacle 91 is in the current operation route segment according to the detection data. Since the angle of the obstacle 91 deviating from the head of the spray drone 41 is large, the flight controller determines that the obstacle 91 is not in the current operating route segment according to the direction of the obstacle 91 relative to the spray drone 41, and controls The spraying drone 41 continues to perform spraying tasks. After the spraying drone 41 performs the spraying task corresponding to the current operating route segment, the flight controller controls the spraying drone 41 to traverse from waypoint 3 to waypoint 4, and the spraying drone 41 starts from waypoint 4 according to the following The spraying task is performed on the working route segment from waypoint 4 to waypoint 5.
当喷洒无人机41按照当前作业航线段即从航点4到航点5的作业航线段执行喷洒任务的过程中,喷洒无人机41实时检测当前作业航线段中是否有障碍物。若确定当前作业航线段中存在障碍物,则根据导航模块建立的数字地图确定与该当前作业航线段平行的目标避障路径。When the spray drone 41 performs the spraying task according to the current operation route segment, that is, the operation route segment from waypoint 4 to waypoint 5, the spray drone 41 detects in real time whether there is an obstacle in the current operation route segment. If it is determined that there is an obstacle in the current operational route segment, the target obstacle avoidance path parallel to the current operational route segment is determined according to the digital map established by the navigation module.
在一些实施例中,所述若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径,包括:若根据所述探测设备的所述探测数据和/或所述数字地图,确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径。In some embodiments, if it is determined that there is an obstacle on the current operational route segment, determining a target obstacle avoidance path parallel to the current operational route segment according to the digital map includes: The detection data and/or the digital map determines that there is an obstacle on the current operational route segment, and then determines a target obstacle avoidance path parallel to the current operational route segment according to the digital map.
具体的,当喷洒无人机41按照当前作业航线段即从航点4到航点5的作业航线段执行喷洒任务的过程中,喷洒无人机41中的导航模块根据其建立的全局栅格地图确定当前作业航线段中是否有障碍物,或/及喷洒无人机41的飞行控制器根据该毫米波雷达的探测数据确定当前作业航线段中是否有障碍物。如图10所示,将从航点2到航点3的作业航线段记为作业航线段23,将从航点4到航点5的作业航线段记为作业航线段45。由于喷洒无人机41在作业航线段23上执行喷洒任务时,毫米波雷达已经探测到了作业航线段45中的障碍物91,使得导航模块在全局栅格地图中对障碍物91进行了标记。因此,当喷洒无人机41在作业航线段45上执行喷洒任务时,该全局栅格地图中已经标记有障碍物91,导航模块可根据该全局栅格地图确定出当前作业航线段即作业航线段45中存在障碍物91。或/及,当喷洒无人机41在作业航线段45上执行喷洒任务时,若障碍物 91在毫米波雷达的视角内,且障碍物91相对于喷洒无人机41的距离小于或等于该毫米波雷达的最大探测距离,则该毫米波雷达可实时的探测到该障碍物91,并向该导航模块和飞行控制器发送探测数据,该飞行控制器可根据该探测数据,确定当前作业航线段即作业航线段45中是否有障碍物。例如,该探测数据中包括障碍物91的大小、障碍物91相对于喷洒无人机41的距离和方向,该飞行控制器可根据障碍物91的大小、障碍物91相对于喷洒无人机41的距离和方向,确定障碍物91是否落在该作业航线段45上,或者,确定障碍物91相对于作业航线段45的距离是否小于预设距离,若障碍物91落在该作业航线段45上,或者,障碍物91相对于作业航线段45的距离小于预设距离,则确定该障碍物91在作业航线段45中。Specifically, when the spray drone 41 performs the spraying task according to the current operation route segment, that is, the operation route segment from waypoint 4 to waypoint 5, the navigation module in the spray drone 41 according to the global grid established by it The map determines whether there are obstacles in the current operation route segment, or/and the flight controller spraying the drone 41 determines whether there are obstacles in the current operation route segment based on the detection data of the millimeter wave radar. As shown in FIG. 10, the working route segment from waypoint 2 to waypoint 3 is denoted as working route segment 23, and the working route segment from waypoint 4 to waypoint 5 is denoted as working route segment 45. Since the spraying drone 41 performs the spraying task on the working route segment 23, the millimeter wave radar has detected the obstacle 91 in the working route segment 45, so that the navigation module marks the obstacle 91 in the global grid map. Therefore, when the spray drone 41 performs the spraying task on the operating route segment 45, the global grid map has been marked with obstacles 91, and the navigation module can determine the current operating route segment, that is, the operating route, according to the global grid map There are obstacles 91 in the segment 45. Or/and, when the spraying drone 41 performs the spraying task on the operation route segment 45, if the obstacle 91 is within the angle of view of the millimeter wave radar, and the distance of the obstacle 91 relative to the spraying drone 41 is less than or equal to the The maximum detection distance of the millimeter wave radar, the millimeter wave radar can detect the obstacle 91 in real time, and send detection data to the navigation module and the flight controller. The flight controller can determine the current operating route based on the detection data The section is whether there are obstacles in the working route section 45. For example, the detection data includes the size of the obstacle 91 and the distance and direction of the obstacle 91 relative to the spray drone 41. The flight controller can determine the size of the obstacle 91 and the obstacle 91 relative to the spray drone 41 The distance and direction, determine whether the obstacle 91 falls on the operation route segment 45, or determine whether the distance of the obstacle 91 relative to the operation route segment 45 is less than the preset distance, if the obstacle 91 falls on the operation route segment 45 On the other hand, or if the distance of the obstacle 91 relative to the work route segment 45 is less than the preset distance, it is determined that the obstacle 91 is in the work route segment 45.
当确定当前作业航线段中存在障碍物时,根据导航模块建立的数字地图确定与当前作业航线段平行的目标避障路径,具体有如下几种可行的实现方式:When it is determined that there is an obstacle in the current operational route segment, the target obstacle avoidance path parallel to the current operational route segment is determined according to the digital map established by the navigation module. There are several feasible implementation methods as follows:
一种可行的实现方式是:当飞行控制器根据毫米波雷达的探测数据,确定当前作业航线段即作业航线段45中存在障碍物91时,飞行控制器向导航模块发送请求绕行信息,导航模块接收到该请求绕行信息后,根据导航模块建立的全局栅格地图确定与当前作业航线段平行的目标避障路径。A feasible implementation method is: when the flight controller determines that there are obstacles 91 in the current operational route segment, that is, the operational route segment 45, based on the detection data of the millimeter wave radar, the flight controller sends a request for detour information to the navigation module to navigate After receiving the request bypass information, the module determines the target obstacle avoidance path parallel to the current operational route segment according to the global grid map established by the navigation module.
另一种可行的实现方式是:当导航模块根据该全局栅格地图监测到作业航线段45中存在障碍物91时,导航模块向飞行控制器发送请求绕行信息,飞行控制器对该请求绕行信息确认后,向导航模块发送确认绕行信息,导航模块根据该全局栅格地图确定与当前作业航线段平行的目标避障路径。Another feasible implementation method is: when the navigation module detects that there are obstacles 91 in the operating route segment 45 according to the global grid map, the navigation module sends a request for detour information to the flight controller, and the flight controller detours the request After the line information is confirmed, the confirmation detour information is sent to the navigation module, and the navigation module determines the target obstacle avoidance path parallel to the current operation route segment according to the global grid map.
另外,如图10所示,喷洒无人机41在作业航线段23上执行喷洒任务时,毫米波雷达已经探测到了作业航线段45中的障碍物91,使得导航模块在全局栅格地图中对障碍物91进行了标记。当喷洒无人机41在作业航线段45上执行喷洒任务时,在某些情况中,该全局栅格地图中已经标记有障碍物91,但是,由于障碍物91在作业航线段45中,所以该毫米波雷达还是可以不断的探测到该障碍物91,并向导航模块和飞行控制器发送新的探测数据,导航模块可根据新的探测数据来更新该全局栅格地图,例如,更新该障碍物91在该全局栅格地图中的位置、行状、大小中的一种 或多种。In addition, as shown in FIG. 10, when the spraying drone 41 performs the spraying task on the operating route segment 23, the millimeter wave radar has detected the obstacle 91 in the operating route segment 45, making the navigation module Obstacle 91 is marked. When the spraying drone 41 performs the spraying task on the operation route segment 45, in some cases, the global grid map has been marked with obstacles 91, but since the obstacle 91 is in the operation route segment 45, The millimeter-wave radar can still continuously detect the obstacle 91 and send new detection data to the navigation module and the flight controller. The navigation module can update the global grid map according to the new detection data, for example, to update the obstacle One or more of the position, line, and size of the object 91 in the global grid map.
步骤S604、控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径,并控制所述喷洒无人机按照所述目标避障路径移动。Step S604: Control the spray drone to move from the current operation route segment to the target obstacle avoidance path, and control the spray drone to move according to the target obstacle avoidance path.
如图10所示,92表示与当前作业航线段即作业航线段45平行的目标避障路径,飞行控制器可控制喷洒无人机41从当前作业航线段即作业航线段45移动至目标避障路径92,并控制喷洒无人机41按照该目标避障路径92移动。As shown in FIG. 10, 92 indicates a target obstacle avoidance path parallel to the current operation route segment, which is the operation route segment 45, and the flight controller can control the spray drone 41 to move from the current operation route segment, the operation route segment 45, to the target obstacle avoidance Path 92, and the spray drone 41 is controlled to move according to the target obstacle avoidance path 92.
在一些实施例中,所述方法还包括:在所述喷洒无人机从所述当前作业航线段向所述目标避障路径移动的过程中,将所述喷洒无人机的机头朝向调整至第一目标朝向以调整所述探测设备的探测方向,其中,所述第一目标朝向为由所述当前作业航线段指向所述目标避障路径且与所述当前作业航线段呈第一预设夹角的方向。In some embodiments, the method further includes: adjusting the direction of the spray drone head during the movement of the spray drone from the current operating route segment to the target obstacle avoidance path To a first target orientation to adjust the detection direction of the detection device, wherein the first target orientation is directed to the target obstacle avoidance path by the current operating route segment and presents a first prediction with the current operating route segment Set the direction of the angle.
如图11所示,当喷洒无人机41从当前作业航线段即作业航线段45向目标避障路径92移动的过程中,将喷洒无人机41的机头朝向进行调整,以调整该喷洒无人机41上的毫米波雷达的探测方向,增大毫米波雷达的可探测范围。可选的,按照由作业航线段45指向目标避障路径92的方向调整喷洒无人机41的机头朝向,调整之后的机头朝向与作业航线段45呈预设角度α,例如,预设角度α为15度。此处,将该预设角度α记为第一预设夹角,将与作业航线段45呈第一预设夹角的方向记为喷洒无人机41的第一目标朝向。也就是说,喷洒无人机41按照调整后的第一目标朝向从当前作业航线段即作业航线段45向目标避障路径92移动。As shown in FIG. 11, when the spray drone 41 moves from the current operational route segment, that is, the operational route segment 45, to the target obstacle avoidance path 92, the head of the spray drone 41 is adjusted to adjust the spray The detection direction of the millimeter wave radar on the drone 41 increases the detectable range of the millimeter wave radar. Optionally, the direction of the nose of the spray drone 41 is adjusted according to the direction from the operation route segment 45 to the target obstacle avoidance path 92, and the adjusted nose orientation is at a preset angle α with the operation route segment 45, for example, a preset The angle α is 15 degrees. Here, the preset angle α is recorded as a first preset angle, and the direction at the first preset angle with the work route segment 45 is recorded as the first target direction of the spray drone 41. In other words, the spray drone 41 moves from the current operation route segment, which is the current operation route segment 45, to the target obstacle avoidance path 92 according to the adjusted first target direction.
步骤S605、当确定避开所述障碍物之后,控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务。Step S605: After it is determined to avoid the obstacle, the spraying drone is controlled to return from the target obstacle avoidance path to the current operational route segment to continue to perform the spraying task.
如图11所示,当确定喷洒无人机41避开障碍物91之后,飞行控制器控制喷洒无人机41从目标避障路径92回到当前作业航线段即作业航线段45继续执行喷洒任务。As shown in FIG. 11, after it is determined that the spray drone 41 avoids the obstacle 91, the flight controller controls the spray drone 41 from the target obstacle avoidance path 92 to return to the current operational route segment, that is, the operational route segment 45 to continue to perform the spraying task .
在一些实施例中,所述方法还包括:在所述喷洒无人机从所述目标避障路径向所述当前作业航线段移动的过程中,将所述喷洒无人机的的机头朝向调整至第二目标朝向以调整所述探测设备的探测方向,其中,所述第二目标朝向为由所述目标避障路径指向所述当前作业航线段且与所述当 前作业航线段呈第二预设夹角的方向。In some embodiments, the method further includes: during the movement of the spray drone from the target obstacle avoidance path to the current operational route segment, orienting the nose of the spray drone Adjusting to a second target orientation to adjust the detection direction of the detection device, wherein the second target orientation is directed from the target obstacle avoidance path to the current operating route segment and is second to the current operating route segment Preset the direction of the included angle.
如图11所示,当喷洒无人机41从目标避障路径92向当前作业航线段即作业航线段45移动的过程中,将喷洒无人机41的机头朝向进行调整,以调整该喷洒无人机41上的毫米波雷达的探测方向,增大毫米波雷达的可探测范围。可选的,按照由目标避障路径92指向作业航线段45的方向调整喷洒无人机41的机头朝向,调整之后的机头朝向与作业航线段45呈预设角度β,例如,预设角度β为15度。此处,将该预设角度β记为第二预设夹角,将与作业航线段45呈第二预设夹角的方向记为喷洒无人机41的第二目标朝向。也就是说,喷洒无人机41按照调整后的第二目标朝向从目标避障路径92向当前作业航线段即作业航线段45移动。在本实施例中,第二预设夹角和上述的第一预设夹角可以相同,也可以不同。另外,第一预设夹角或第二预设夹角选择15度只是为了示意性说明,在其他实施例中,可以不限于15度。As shown in FIG. 11, when the spray drone 41 moves from the target obstacle avoidance path 92 to the current operation route segment, that is, the operation route segment 45, the head of the spray drone 41 is adjusted to adjust the spray The detection direction of the millimeter wave radar on the drone 41 increases the detectable range of the millimeter wave radar. Optionally, the direction of the nose of the spraying drone 41 is adjusted according to the direction from the target obstacle avoidance path 92 to the operating route segment 45, and the adjusted nose orientation is at a preset angle β with the operating route segment 45, for example, a preset The angle β is 15 degrees. Here, the preset angle β is recorded as the second preset angle, and the direction at the second preset angle with the work route segment 45 is recorded as the second target direction of the spray drone 41. In other words, the spray drone 41 moves from the target obstacle avoidance path 92 to the current working route segment, which is the working route segment 45 according to the adjusted second target direction. In this embodiment, the second preset angle and the first preset angle may be the same or different. In addition, the selection of 15 degrees for the first preset included angle or the second preset included angle is for illustrative purposes only, and may not be limited to 15 degrees in other embodiments.
如图12所示,喷洒无人机41从作业航线段45中的点B向目标避障路径92移动,在点B位置,飞行控制器调整喷洒无人机41的机头朝向,使得调整之后的机头朝向与作业航线段45呈如图11所示的预设角度α,即调整之后的机头朝向为上述的第一目标朝向,也就是说,喷洒无人机41在点B位置按照调整后的第一目标朝向从作业航线段45向目标避障路径92移动。C点表示喷洒无人机41移动到目标避障路径92之后,喷洒无人机41在目标避障路径92上经过的一个位置点。在C点位置,喷洒无人机41的机头朝向可能还是第一目标朝向,此时,可以将喷洒无人机41的机头朝向调整为和作业航线段45的方向一致。当喷洒无人机41移动到目标避障路径92上的D点时,喷洒无人机41确定已避开障碍物,此时,再次调整喷洒无人机41的机头朝向,使得调整之后的机头朝向与作业航线段45呈如图11所示的预设角度β,即调整之后的机头朝向为上述的第二目标朝向,也就是说,喷洒无人机41在点D位置按照调整后的第二目标朝向从目标避障路径92向作业航线段45移动。喷洒无人机41回到作业航线段45时的位置为点E,在点E将喷洒无人机41的机头朝向调整为和作业航线段45的方向一致,并从点E平滑到点F。例如,喷洒无人机41回到作业航线段45时,喷洒无人机41的机头朝向可能还是第二目标朝向, 即喷洒无人机41在点E的机头朝向与作业航线段45呈如图11所示的预设角度β,此时,可以在点E调整机头朝向,将喷洒无人机41的机头朝向调整为和作业航线段45的方向一致,使得喷洒无人机41按照和作业航线段45的方向一致的方向平滑到点F。另外,喷洒无人机41回到点E时的飞行速度可能与喷洒无人机41执行喷洒任务时的飞行速度不同,因此,在喷洒无人机41从点E向点F飞行的过程,还可以不断调整喷洒无人机41的飞行速度,使得喷洒无人机41在点F时的飞行速度达到执行喷洒任务时的飞行速度。可选的,从点B到点C的过程中喷洒无人机41处于绕行状态,从点D到点E的过程中喷洒无人机41处于回航线状态,从点E到点F的过程中喷洒无人机41处于绕行完成平滑状态。As shown in FIG. 12, the spray drone 41 moves from the point B in the operating route segment 45 to the target obstacle avoidance path 92. At the point B, the flight controller adjusts the head of the spray drone 41 so that after the adjustment The orientation of the nose of the aircraft is at a preset angle α as shown in FIG. 11, that is, the adjusted orientation of the nose is the above-mentioned first target orientation, that is, the spray drone 41 is at the point B The adjusted first target moves from the work route segment 45 to the target obstacle avoidance path 92. Point C represents a position point where the spray drone 41 passes on the target obstacle avoidance path 92 after the spray drone 41 moves to the target obstacle avoidance path 92. At the point C, the head of the spray drone 41 may still be the first target direction. At this time, the head of the spray drone 41 may be adjusted to be consistent with the direction of the working route segment 45. When the spray drone 41 moves to point D on the target obstacle avoidance path 92, the spray drone 41 determines that the obstacle has been avoided. At this time, the head of the spray drone 41 is adjusted again so that the adjusted The direction of the nose is at a preset angle β as shown in FIG. 11, that is, the adjusted orientation of the nose is the above-mentioned second target orientation, that is, the spray drone 41 is adjusted according to the point D The subsequent second target moves from the target obstacle avoidance path 92 to the work route segment 45. The position when the spraying drone 41 returns to the operating route segment 45 is point E. At point E, the head of the spraying drone 41 is adjusted to coincide with the direction of the operating route segment 45, and smooth from point E to point F . For example, when the spray drone 41 returns to the operation route segment 45, the head of the spray drone 41 may be the second target orientation, that is, the direction of the spray drone 41 at the point E is the same as the operation route segment 45 At the preset angle β shown in FIG. 11, at this time, the head orientation can be adjusted at point E, and the head orientation of the spray drone 41 can be adjusted to be consistent with the direction of the operating route segment 45, so that the spray drone 41 Smooth to point F in a direction consistent with the direction of the work route segment 45. In addition, the flying speed of the spraying drone 41 when returning to point E may be different from the flying speed of the spraying drone 41 when performing the spraying task. The flying speed of the spray drone 41 can be constantly adjusted so that the flying speed of the spray drone 41 at point F reaches the flying speed when the spraying task is performed. Optionally, the spraying drone 41 is in a detour state from the point B to the point C, the spraying drone 41 is in the return route state from the point D to the point E, and the process The medium spray drone 41 is in a smooth state of detour completion.
在一些实施例中,障碍物还有可能出现在喷洒无人机41横移时的航线段中,如图13所示,当喷洒无人机41在作业航线段45中执行喷洒任务时,喷洒无人机41上的毫米波雷达探测到了障碍物91,该毫米波雷达将障碍物91对应的探测数据发送给导航模块和飞行控制器,导航模块建立全局栅格地图,在该全局栅格地图中对障碍物91进行标记。由于障碍物91不在当前作业航线段即作业航线段45中,则飞行控制器控制喷洒无人机41在作业航线段45中正常执行喷洒任务。当喷洒无人机41执行完作业航线段45对应的喷洒任务,从航点5向航点6横移的过程中,由于喷洒无人机41的机头朝向与作业航线段45的方向保持一致,可能导致毫米波雷达的视角无法覆盖到障碍物91,导致该毫米波雷达无法探测到从航点5到航点6的航线段中的障碍物。此时,导航模块可根据该全局栅格地图实时监测该航点5到航点6的航线段中是否有障碍物。此处,将航点5到航点6的航线段记为航线段56。In some embodiments, obstacles may also appear in the route segment when the spray drone 41 moves laterally, as shown in FIG. 13, when the spray drone 41 performs the spraying task in the operation route segment 45, the spray The millimeter-wave radar on the UAV 41 detects the obstacle 91. The millimeter-wave radar sends the detection data corresponding to the obstacle 91 to the navigation module and the flight controller. The navigation module establishes a global grid map, and the global grid map The obstacle 91 is marked. Since the obstacle 91 is not in the current operation route segment, that is, the operation route segment 45, the flight controller controls the spray drone 41 to normally perform the spraying task in the operation route segment 45. When the spraying drone 41 performs the spraying task corresponding to the operating route segment 45, during the traverse from the waypoint 5 to the waypoint 6, the direction of the spray drone 41 head is consistent with the direction of the operating route segment 45 , May cause the angle of view of the millimeter wave radar to be unable to cover the obstacle 91, resulting in the millimeter wave radar being unable to detect obstacles in the route segment from waypoint 5 to waypoint 6. At this time, the navigation module can monitor in real time whether there are obstacles in the route segment from waypoint 5 to waypoint 6 according to the global grid map. Here, the route segment from waypoint 5 to waypoint 6 is referred to as route segment 56.
如果导航模块确定该航线段56中存在障碍物,则导航模块可根据该全局栅格地图确定与该航线段56平行的目标避障路径,由飞行控制器控制喷洒无人机41从该航线段56移动到该目标避障路径,并控制喷洒无人机41按照该目标避障路径移动。当飞行控制器确定喷洒无人机41避开障碍物91之后,进一步控制喷洒无人机41从目标避障路径回到航线段56。If the navigation module determines that there are obstacles in the route segment 56, the navigation module can determine the target obstacle avoidance path parallel to the route segment 56 according to the global grid map, and the flight controller controls the spray drone 41 from the route segment 56 moves to the target obstacle avoidance path, and controls the spray drone 41 to follow the target obstacle avoidance path. After the flight controller determines that the spray drone 41 avoids the obstacle 91, it further controls the spray drone 41 to return to the route segment 56 from the target obstacle avoidance path.
或者,当导航模块确定该航线段56中存在障碍物时,该导航模块还可以将该障碍物相对于喷洒无人机41的距离和方向发送给飞行控制器, 该飞行控制器还可以控制喷洒无人机41悬停,进一步由地面控制端控制喷洒无人机41避开该障碍物。Alternatively, when the navigation module determines that there is an obstacle in the route segment 56, the navigation module can also send the distance and direction of the obstacle relative to the spray drone 41 to the flight controller, which can also control spraying The drone 41 is hovered, and the ground control end is further controlled to spray the drone 41 to avoid the obstacle.
本实施例通过获取喷洒无人机按照作业航线执行喷洒任务时探测设备输出的探测数据,根据该探测数据建立数字地图,由于该作业航线包括多个作业航线段,使得喷洒无人机在其中一条作业航线段上执行喷洒任务时探测设备可探测到其他作业航线段上的障碍物。当喷洒无人机在当前作业航线段执行喷洒任务时,如果确定该当前作业航线段中存在障碍物,可根据该数字地图确定与该当前作业航线段平行的目标避障路径,并控制喷洒无人机从当前作业航线段移动至目标避障路径进行避障,使得喷洒无人机不需要固定化、机械化的绕行避障而频繁停顿、频繁旋转、频繁检测当前作业航线段上是否有障碍物,从而提高了喷洒无人机的绕行效率。In this embodiment, by acquiring the detection data output by the detection device when the spraying drone performs the spraying task according to the operation route, a digital map is established based on the detection data. Since the operation route includes multiple operation route segments, the spraying drone is in one of the The detection equipment can detect obstacles on other operating route segments when performing spraying tasks on the operating route segments. When the spraying drone performs the spraying task in the current operational route segment, if it is determined that there are obstacles in the current operational route segment, the target obstacle avoidance path parallel to the current operational route segment can be determined according to the digital map, and the spray The man-machine moves from the current operation route segment to the target obstacle avoidance path for obstacle avoidance, so that the spraying drone does not need fixed or mechanized bypass obstacle avoidance and frequently stops, rotates frequently, and frequently detects whether there are obstacles on the current operation route segment Objects, thereby improving the efficiency of detouring spraying drones.
本发明实施例提供一种喷洒无人机的避障控制方法。在上述实施例的基础上,所述控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径,包括:当所述喷洒无人机相对于所述障碍物的距离小于或等于第一距离阈值时,控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径。An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone. Based on the above embodiment, the control of the spray drone to move from the current operation route segment to the target obstacle avoidance path includes: when the spray drone is at a distance relative to the obstacle When it is less than or equal to the first distance threshold, the spray drone is controlled to move from the current working route segment to the target obstacle avoidance path.
如图12所示,当喷洒无人机41飞行到作业航线段45上的A点时,毫米波雷达探测到了障碍物91,毫米波雷达向飞行控制器发送探测数据,飞行控制器根据该探测数据确定喷洒无人机41相对于障碍物91的距离大于第一距离阈值,此时,飞行控制器可控制喷洒无人机41继续向前飞行执行喷洒任务。随着喷洒无人机41沿着作业航线段45不断的向前飞行,喷洒无人机41相对于障碍物91的距离不断的缩小,当飞行控制器根据该探测数据确定喷洒无人机41相对于障碍物91的距离小于或等于第一距离阈值时,控制喷洒无人机41从作业航线段45移动至目标避障路径92。例如,当喷洒无人机41飞行到作业航线段45上的B点时,喷洒无人机41相对于障碍物91的距离小于或等于第一距离阈值,则飞行控制器控制喷洒无人机41从B点移动至目标避障路径92。从点A到点B的过程中喷洒无人机41处于“准备避障”状态。As shown in FIG. 12, when the spray drone 41 flies to point A on the operating route segment 45, the millimeter wave radar detects the obstacle 91, the millimeter wave radar sends detection data to the flight controller, and the flight controller according to the detection The data determines that the distance between the spray drone 41 and the obstacle 91 is greater than the first distance threshold. At this time, the flight controller can control the spray drone 41 to continue to fly forward to perform the spray task. As the spray drone 41 continues to fly forward along the operating route segment 45, the distance of the spray drone 41 relative to the obstacle 91 continuously decreases, and when the flight controller determines that the spray drone 41 is relatively When the distance of the obstacle 91 is less than or equal to the first distance threshold, the spray drone 41 is controlled to move from the work route segment 45 to the target obstacle avoidance path 92. For example, when the spray drone 41 flies to point B on the operating route segment 45, the distance between the spray drone 41 and the obstacle 91 is less than or equal to the first distance threshold, the flight controller controls the spray drone 41 Move from point B to target obstacle avoidance path 92. During the process from point A to point B, the spray drone 41 is in the state of “preparing to avoid obstacles”.
在一些实施例中,所述方法还包括:当所述喷洒无人机相对于所述障 碍物的距离小于或等于所述第一距离阈值时,向所述喷洒无人机对应的地面控制端发送所述喷洒无人机正在避障的第一状态信息。例如,当喷洒无人机41飞行到作业航线段45上的B点时,喷洒无人机41相对于障碍物91的距离小于或等于第一距离阈值,飞行控制器控制喷洒无人机41从B点移动至目标避障路径92,此时,喷洒无人机41向地面控制端发送喷洒无人机41正在避障的第一状态信息。In some embodiments, the method further includes: when the distance of the spray drone relative to the obstacle is less than or equal to the first distance threshold, to the ground control end corresponding to the spray drone Send the first status information that the spray drone is avoiding obstacles. For example, when the spray drone 41 flies to point B on the operating route segment 45, the distance between the spray drone 41 and the obstacle 91 is less than or equal to the first distance threshold, and the flight controller controls the spray drone 41 from Point B moves to the target obstacle avoidance path 92. At this time, the spray drone 41 sends the first state information that the spray drone 41 is avoiding obstacles to the ground control terminal.
可选的,地面控制端设置有用于控制喷洒无人机41的应用程序,该应用程序的用户界面具体如图14所示,当地面控制端接收到喷洒无人机41发送的第一状态信息时,该用户界面显示弹框141,并在该弹框141中显示“正在避障”的状态信息,该弹框141可以在显示该状态信息后的预设时间内消失,也可以不消失。另外,在该用户界面显示“正在避障”的同时,该地面控制端还可以进行相应的语音提示,使得用户在没有注意到弹框141中显示的“正在避障”时,该地面控制端依然可以提示用户喷洒无人机41“正在避障”。此外,喷洒无人机41还可以将喷洒无人机41周围的障碍物信息发送给该地面控制端,该障碍物信息包括该障碍物的大小、该障碍物相对于喷洒无人机41的距离和方向。该应用程序还可以根据喷洒无人机41发送的障碍物信息,在该用户界面中显示该障碍物对应的雷达图142。其中,雷达图142中的91表示障碍物,41表示喷洒无人机。另外,喷洒无人机41还可以将喷洒无人机41的历史路径点和将要运行的路径发送给地面控制端,该应用程序可在该用户界面中显示该喷洒无人机41的历史路径点和将要运行的路径。例如,在雷达图142中,143表示喷洒无人机41的历史路径点,144表示喷洒无人机41将要运行的路径。其中,历史路径点143可对应于如图12所示的点A和点B之间的航点。将要运行的路径144具体可对应于如图12所示的从点B到点C之间的路径。其中,历史路径点143和将要运行的路径144可以在用户界面中以不同的颜色显示。Optionally, the ground control terminal is provided with an application program for controlling the spray drone 41. The user interface of the application program is specifically shown in FIG. 14. The local control terminal receives the first status information sent by the spray drone 41 At this time, the user interface displays a pop-up frame 141, and the status information of "obstacle avoidance" is displayed in the pop-up frame 141. The pop-up frame 141 may disappear within a preset time after displaying the status information, or may not disappear. In addition, while the user interface displays "obstacle avoidance", the ground control terminal can also provide a corresponding voice prompt, so that when the user fails to notice the "obstacle avoidance" displayed in the pop-up box 141, the ground control terminal The user can still be prompted to spray the drone 41 "obstacle avoidance". In addition, the spray drone 41 can also send information about obstacles around the spray drone 41 to the ground control terminal. The obstacle information includes the size of the obstacle and the distance of the obstacle relative to the spray drone 41 And directions. The application can also display the radar chart 142 corresponding to the obstacle in the user interface according to the obstacle information sent by the spray drone 41. Among them, 91 in the radar chart 142 indicates an obstacle, and 41 indicates a spray drone. In addition, the spray drone 41 can also send the historical route points of the spray drone 41 and the route to be run to the ground control terminal, the application can display the historical route points of the spray drone 41 in the user interface And the path to be run. For example, in the radar chart 142, 143 represents the historical route point of the spray drone 41, and 144 represents the route where the spray drone 41 will operate. Among them, the historical route point 143 may correspond to the waypoint between point A and point B as shown in FIG. 12. The path 144 to be run may specifically correspond to the path from point B to point C as shown in FIG. 12. Among them, the historical route point 143 and the route to be run 144 may be displayed in different colors in the user interface.
另外,如图12所示,当喷洒无人机41从B点向目标避障路径92移动时,导航模块可根据该喷洒无人机41相对于障碍物91的实时距离计算喷洒无人机41的限速值,根据该限速值生成限速指令,并将该限速指令发送给飞行控制器,以使该飞行控制器根据该限速指令中的限速值控制喷 洒无人机41减速。In addition, as shown in FIG. 12, when the spray drone 41 moves from the point B to the target obstacle avoidance path 92, the navigation module may calculate the spray drone 41 according to the real-time distance of the spray drone 41 relative to the obstacle 91 Speed limit value, generate a speed limit command according to the speed limit value, and send the speed limit command to the flight controller, so that the flight controller controls the spray drone 41 to decelerate according to the speed limit value in the speed limit command .
可选的,当喷洒无人机41从B点向目标避障路径92移动,或者喷洒无人机41按照该目标避障路径92移动时,用户还可以通过地面控制端控制喷洒无人机41悬停,或者避障绕行。Optionally, when the spray drone 41 moves from the point B to the target obstacle avoidance path 92, or the spray drone 41 moves according to the target obstacle avoidance path 92, the user can also control the spray drone 41 through the ground control terminal Hover, or bypass obstacles.
在一些实施例中,所述若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径,包括:若确定所述当前作业航线段上存在障碍物,则确定所述当前作业航线段上存在的所述障碍物相对于所述喷洒无人机的距离;若所述距离大于第一距离阈值且小于第二距离阈值,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径;其中,所述第二距离阈值大于所述第一距离阈值。In some embodiments, if it is determined that there is an obstacle on the current operational route segment, determining a target obstacle avoidance path parallel to the current operational route segment according to the digital map includes: if it is determined that the current operational route If there is an obstacle on the route segment, determine the distance of the obstacle on the current operating route segment relative to the spray drone; if the distance is greater than the first distance threshold and less than the second distance threshold, then Determining a target obstacle avoidance path parallel to the current operational route segment according to the digital map; wherein the second distance threshold is greater than the first distance threshold.
如图12所示,当喷洒无人机41飞行到作业航线段45上的A点时,障碍物91相对于喷洒无人机41的距离为第二距离阈值,当喷洒无人机41飞行到点B时,该障碍物91相对于喷洒无人机41的距离为第一距离阈值,第二距离阈值大于第一距离阈值。可选的,在喷洒无人机41位于点A和点B之间时,根据导航模块建立的全局栅格地图确定与作业航线段45平行的目标避障路径。可选的,第一距离阈值和第二距离阈值可以是根据喷洒无人机41的飞行速度确定的。例如,当喷洒无人机41的飞行速度较大时,第一距离阈值和第二距离阈值可设置的大一些,以便喷洒无人机41有足够的时间减速绕行。当喷洒无人机41的飞行速度较小时,第一距离阈值和第二距离阈值可设置的小一些。As shown in FIG. 12, when the spray drone 41 flies to point A on the operating route segment 45, the distance of the obstacle 91 relative to the spray drone 41 is the second distance threshold. When the spray drone 41 flies to At point B, the distance of the obstacle 91 relative to the spray drone 41 is a first distance threshold, and the second distance threshold is greater than the first distance threshold. Optionally, when the spray drone 41 is located between point A and point B, a target obstacle avoidance path parallel to the operation route segment 45 is determined according to the global grid map established by the navigation module. Optionally, the first distance threshold and the second distance threshold may be determined according to the flying speed of the spray drone 41. For example, when the flying speed of the spray drone 41 is large, the first distance threshold and the second distance threshold may be set larger, so that the spray drone 41 has sufficient time to decelerate and detour. When the flying speed of the spray drone 41 is small, the first distance threshold and the second distance threshold can be set smaller.
在一些实施例中,当所述喷洒无人机相对于所述障碍物的距离小于或者等于第二距离阈值时,控制所述喷洒无人机减速,所述第二距离阈值大于所述第一距离阈值。如图12所示,当喷洒无人机41飞行到点A时,该喷洒无人机41相对于障碍物91的距离为第二距离阈值,喷洒无人机41继续向前飞行,将使得该喷洒无人机41相对于障碍物91的距离小于该第二距离阈值,因此,从点A开始,飞行控制器即可控制喷洒无人机41减速。具体的,导航模块根据该喷洒无人机41相对于障碍物91的实时距离计算喷洒无人机41的限速值,根据该限速值生成限速指令,并将该限速指令发送给飞行控制器,以使该飞行控制器根据该限速指令中的限速值控 制喷洒无人机41减速。In some embodiments, when the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, the spray drone is controlled to decelerate, the second distance threshold is greater than the first Distance threshold. As shown in FIG. 12, when the spray drone 41 flies to point A, the distance of the spray drone 41 relative to the obstacle 91 is the second distance threshold, and the spray drone 41 continues to fly forward, which will cause the The distance between the spray drone 41 and the obstacle 91 is less than the second distance threshold. Therefore, starting from point A, the flight controller can control the spray drone 41 to decelerate. Specifically, the navigation module calculates the speed limit value of the spray drone 41 according to the real-time distance of the spray drone 41 relative to the obstacle 91, generates a speed limit instruction according to the speed limit value, and sends the speed limit instruction to the flight The controller, so that the flight controller controls the spray drone 41 to decelerate according to the speed limit value in the speed limit instruction.
可选的,所述方法还包括:当所述喷洒无人机相对于所述障碍物的距离小于或等于第二距离阈值时,向所述喷洒无人机对应的地面控制端发送所述喷洒无人机准备避障的第二状态信息,所述第二距离阈值大于所述第一距离阈值。Optionally, the method further includes: when the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, sending the spray to the ground control end corresponding to the spray drone The second state information of the UAV preparing for obstacle avoidance, the second distance threshold is greater than the first distance threshold.
如图12所示,当喷洒无人机41飞行到点A时,该喷洒无人机41相对于障碍物91的距离为第二距离阈值,喷洒无人机41继续向前飞行,将使得该喷洒无人机41相对于障碍物91的距离小于该第二距离阈值。在喷洒无人机41相对于障碍物91的距离小于或等于该第二距离阈值时,喷洒无人机41向地面控制端发送喷洒无人机41准备避障的第二状态信息。当地面控制端接收到该第二状态信息时,该地面控制端中的应用程序可在如图14所示的用户界面中显示“准备避障”的弹框,和/或语音提示喷洒无人机41处于“准备避障”状态。As shown in FIG. 12, when the spray drone 41 flies to point A, the distance of the spray drone 41 relative to the obstacle 91 is the second distance threshold, and the spray drone 41 continues to fly forward, which will cause the The distance of the spray drone 41 relative to the obstacle 91 is less than the second distance threshold. When the distance between the spray drone 41 and the obstacle 91 is less than or equal to the second distance threshold, the spray drone 41 sends the second state information that the spray drone 41 is ready to avoid obstacles to the ground control terminal. When the ground control terminal receives the second status information, the application in the ground control terminal may display a “preparing to avoid obstacles” pop-up box in the user interface shown in FIG. 14 and/or voice prompts to spray no one The machine 41 is in the state of "ready for obstacle avoidance".
可选的,从A点到B点的过程中喷洒无人机41处于“准备避障”状态,在“准备避障”状态下,喷洒无人机41依然处于作业航线段45中,只是飞行控制器需要根据导航模块的限速指令控制喷洒无人机41减速。另外,在从A点到B点的过程中,喷洒无人机41的导航模块可根据毫米波雷达的探测数据实时更新全局栅格地图,例如,更新障碍物91在该全局栅格地图中的位置信息。此外,在从A点到B点的过程中,喷洒无人机41还可以向地面控制端发送障碍物信息和从A点到B点的路径点。该地面控制端可实时显示喷洒无人机41发送的障碍物信息和从A点到B点的路径点。Optionally, during the process from point A to point B, the spray drone 41 is in the state of “preparing to avoid obstacles”. In the state of “preparing for obstacle avoidance”, the spraying drone 41 is still in the operating route segment 45, but only flying The controller needs to control the spray drone 41 to slow down according to the speed limit instruction of the navigation module. In addition, in the process from point A to point B, the navigation module of the spray drone 41 can update the global grid map in real time according to the detection data of the millimeter wave radar, for example, update the obstacle 91 in the global grid map location information. In addition, in the process from point A to point B, the spray drone 41 can also send obstacle information and path points from point A to point B to the ground control end. The ground control terminal can display the obstacle information sent by the spray drone 41 in real time and the path point from point A to point B.
本实施例通过当喷洒无人机相对于障碍物的距离小于或等于第一距离阈值时,控制喷洒无人机从当前作业航线段移动至目标避障路径,避免喷洒无人机过早的向目标避障路径移动而导致漏喷,从而提高了喷洒无人机的作业效率。通过当喷洒无人机相对于障碍物的距离小于或等于第二距离阈值时,控制喷洒无人机减速,第二距离阈值大于第一距离阈值,也就是说,在控制喷洒无人机从当前作业航线段移动至目标避障路径之前,控制喷洒无人机减速,可防止喷洒无人机速度过快而无法从当前作业航线段移动至目标避障路径。另外,通过喷洒无人机向地面控制端发送喷洒无人 机正在避障的第一状态信息、准备避障的第二状态信息,使得该地面控制端可提示用户喷洒无人机的作业状态,方便用户了解喷洒无人机的作业情况,提高了用户体验。In this embodiment, when the distance of the spray drone relative to the obstacle is less than or equal to the first distance threshold, the spray drone is controlled to move from the current operating route segment to the target obstacle avoidance path, so as to prevent the spray drone from prematurely The target's obstacle avoidance path moves, resulting in missed spray, which improves the efficiency of spraying the drone. By controlling the spray drone to slow down when the distance between the spray drone and the obstacle is less than or equal to the second distance threshold, the second distance threshold is greater than the first distance threshold, that is, the spray drone is controlled from the current Before the operation route segment moves to the target obstacle avoidance path, the spray drone is controlled to slow down to prevent the spray drone from being too fast to move from the current operation route segment to the target obstacle avoidance path. In addition, by spraying the drone to the ground control terminal, the first status information of the spraying drone is avoiding obstacles, and the second status information of the obstacle avoidance is prepared, so that the ground control terminal can prompt the user to spray the drone's operating status, It is convenient for users to understand the operation of spraying drones, which improves the user experience.
本发明实施例提供一种喷洒无人机的避障控制方法。图15为本发明另一实施例提供的喷洒无人机的避障控制方法的流程图。如图15所示,在上述实施例的基础上,所述根据所述数字地图确定与所述当前作业航线段平行的目标避障路径,包括:An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone. 15 is a flowchart of an obstacle avoidance control method for spraying a drone according to another embodiment of the present invention. As shown in FIG. 15, on the basis of the foregoing embodiment, the determination of a target obstacle avoidance path parallel to the current operational route segment according to the digital map includes:
步骤S1501、根据所述数字地图确定与所述当前作业航线段平行的多个避障路径。Step S1501: Determine, according to the digital map, a plurality of obstacle avoidance paths parallel to the current operational route segment.
如图16所示,喷洒无人机41的当前作业航线段为作业航线段45,当前作业航线段中存在障碍物91,导航模块可根据其建立的数字地图确定出与当前作业航线段即作业航线段45平行的多个避障路径。该多个避障路径具体可以是如图16所示的避障路径92、避障路径93、避障路径94、避障路径95、避障路径96、避障路径97。可选的,所述多个避障路径中相邻的避障路径之间的距离为预设距离。例如,避障路径92和作业航线段45之间的距离、避障路径93和作业航线段45之间的距离、以及避障路径92和避障路径93之间的距离均相等,依次类推。As shown in FIG. 16, the current operational route segment of the spray drone 41 is the operational route segment 45, and there are obstacles 91 in the current operational route segment. The navigation module can determine the operation with the current operational route segment according to the digital map established by it. A plurality of obstacle avoidance paths parallel to the route section 45. The plurality of obstacle avoidance paths may specifically be the obstacle avoidance path 92, the obstacle avoidance path 93, the obstacle avoidance path 94, the obstacle avoidance path 95, the obstacle avoidance path 96, and the obstacle avoidance path 97 as shown in FIG. Optionally, the distance between adjacent obstacle avoidance paths in the plurality of obstacle avoidance paths is a preset distance. For example, the distance between the obstacle avoidance path 92 and the work route segment 45, the distance between the obstacle avoidance path 93 and the work route segment 45, and the distance between the obstacle avoidance path 92 and the obstacle avoidance path 93 are all equal, and so on.
步骤S1502、从所述多个避障路径中确定所述目标避障路径。Step S1502: Determine the target obstacle avoidance path from the plurality of obstacle avoidance paths.
导航模块可从该多个避障路径中确定一个避障路径作为目标避障路径,可选的,所述从所述多个避障路径中确定所述目标避障路径,包括:从所述多个避障路径中选择距离所述当前作业航线段最近的、且其上没有所述障碍物的避障路径作为所述目标避障路径。例如,避障路径92是距离当前作业航线段最近的、且避障路径92上没有所述障碍物的避障路径,则导航模块可以将该避障路径92确定为目标避障路径。如图16所示的目标避障路径92具体为上述实施例中所述的目标避障路径92。The navigation module may determine one obstacle avoidance path as the target obstacle avoidance path from the plurality of obstacle avoidance paths. Optionally, the determining the target obstacle avoidance path from the plurality of obstacle avoidance paths includes: Among the plurality of obstacle avoidance paths, the obstacle avoidance path closest to the current working route segment and without the obstacle is selected as the target obstacle avoidance path. For example, if the obstacle avoidance path 92 is the closest obstacle avoidance path to the current working route segment and there is no obstacle on the obstacle avoidance path 92, the navigation module may determine the obstacle avoidance path 92 as the target obstacle avoidance path. The target obstacle avoidance path 92 shown in FIG. 16 is specifically the target obstacle avoidance path 92 described in the foregoing embodiment.
可选的,所述方法还包括:在所述喷洒无人机按照所述目标避障路径移动的过程中,若所述目标避障路上存在障碍物,则控制所述喷洒无人机悬停。Optionally, the method further includes: during the movement of the spray drone according to the target obstacle avoidance path, if there is an obstacle on the target obstacle avoidance road, controlling the spray drone to hover .
例如,当喷洒无人机41按照该目标避障路径92移动时,若导航模块 和/或飞行控制器确定该目标避障路径92上存在障碍物,则该飞行控制器还可控制喷洒无人机41悬停,即喷洒无人机41绕行失败。由于喷洒无人机41从绕行状态到悬停的过程中,喷洒无人机41的速度需要平滑、喷洒无人机41的运动轨迹也可能需要平滑,因此,可以将喷洒无人机41从绕行状态到悬停的过程记为绕行中断平滑状态。For example, when the spray drone 41 moves according to the target obstacle avoidance path 92, if the navigation module and/or the flight controller determines that there is an obstacle on the target obstacle avoidance path 92, the flight controller may also control spraying unmanned The hovering of the aircraft 41 means that the spraying of the drone 41 fails to bypass. Since the spray drone 41 moves from the detour state to hovering, the speed of the spray drone 41 needs to be smooth, and the movement trajectory of the spray drone 41 may also need to be smooth. Therefore, the spray drone 41 can be changed from The process from detour state to hovering is recorded as detour smooth state.
此外,喷洒无人机41还可以向地面控制端发送喷洒无人机41绕行失败的状态信息,当地面控制端接收到该状态信息时,该地面控制端中的应用程序可在如图14所示的用户界面中显示“绕行失败,喷洒无人机将悬停”的弹框。In addition, the spray drone 41 can also send the status information of the detour failure of the spray drone 41 to the ground control terminal. When the ground control terminal receives the status information, the application in the ground control terminal can be shown in Figure 14 The user interface shown shows a bullet box that says "Failed to bypass, spray drone will hover".
本实施例通过数字地图确定与当前作业航线段平行的多个避障路径,从多个避障路径中选择距离当前作业航线段最近的、且其上没有障碍物的避障路径作为目标避障路径,可使得喷洒无人机从当前作业航线段向该目标避障路径移动时,以最短的绕行路径避开障碍物,不仅提高了喷洒无人机的绕行效率,同时还可以避免喷洒无人机漏喷,提高了喷洒无人机的作业效率。In this embodiment, a plurality of obstacle avoidance paths parallel to the current operation route segment are determined through a digital map, and the obstacle avoidance route closest to the current operation route segment and without obstacles is selected as the target obstacle avoidance route from the plurality of obstacle avoidance routes The path can make the spraying drone avoid the obstacle with the shortest detour when moving from the current operating route segment to the target obstacle avoidance path, which not only improves the detour efficiency of the spraying drone, but also avoids spraying The drone is leaking, which improves the efficiency of spraying the drone.
本发明实施例提供一种喷洒无人机的避障控制方法。图17为本发明另一实施例提供的喷洒无人机的避障控制方法的流程图。如图17所示,在上述实施例的基础上,所述控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务,包括:An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone. 17 is a flowchart of an obstacle avoidance control method for spraying a drone according to another embodiment of the present invention. As shown in FIG. 17, on the basis of the foregoing embodiment, the control of the spray drone from the target obstacle avoidance path back to the current operational route segment to continue to perform the spray task includes:
步骤S1701、在所述喷洒无人机按照所述目标避障路径移动的过程中,确定从所述喷洒无人机在所述目标避障路径中的当前位置到所述当前作业航线段的目标回航路径。Step S1701, in the process that the spray drone moves according to the target obstacle avoidance path, determine a target from the current position of the spray drone in the target obstacle avoidance path to the current operating route segment Return route.
如图18所示,当喷洒无人机41按照目标避障路径92移动的过程中,喷洒无人机41可确定从喷洒无人机41在目标避障路径92中的当前位置到当前作业航线段即作业航线段45的目标回航路径。例如,喷洒无人机41在目标避障路径92中的当前位置是点a,喷洒无人机41确定从点a到作业航线段45的目标回航路径,并检测该目标回航路径中是否存在障碍物。可选的,喷洒无人机41采集该目标回航路径中的若干个路径点,通过导航模块建立的数字地图,检测该若干个路径点上是否有障碍物。如图 18所示,从点a到作业航线段45的目标回航路径上有障碍物,则喷洒无人机41继续沿着目标避障路径92向前移动。当喷洒无人机41在目标避障路径92中的当前位置是点b时,喷洒无人机41确定从点b到作业航线段45的目标回航路径,并检测该目标回航路径中是否存在障碍物,检测障碍物的方法与前述的检测方法一致,此处不再赘述。As shown in FIG. 18, when the spray drone 41 moves in accordance with the target obstacle avoidance path 92, the spray drone 41 can determine from the current position of the spray drone 41 in the target obstacle avoidance path 92 to the current operation route The segment is the target return path of the operating route segment 45. For example, the current position of the spray drone 41 in the target obstacle avoidance path 92 is point a. The spray drone 41 determines the target return path from point a to the operating route segment 45, and detects whether there is an obstacle in the target return path Thing. Optionally, the spray drone 41 collects several path points in the target return route, and detects whether there are obstacles on the several path points through the digital map established by the navigation module. As shown in FIG. 18, if there is an obstacle on the target return path from point a to the operating route segment 45, the spray drone 41 continues to move forward along the target obstacle avoidance path 92. When the current position of the spray drone 41 in the target obstacle avoidance path 92 is point b, the spray drone 41 determines the target return path from point b to the operating route segment 45, and detects whether there is an obstacle in the target return path The method of detecting obstacles is the same as the aforementioned detection method, and will not be repeated here.
步骤S1702、当确定所述目标回航路径上不存在障碍物时,控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径回到所述当前作业航线段继续执行喷洒任务。Step S1702: When it is determined that there is no obstacle on the target return path, the spray drone is controlled to return to the current operation along the target return path from the current position in the target obstacle avoidance path The spraying task continues to be carried out in the route segment.
可以理解,喷洒无人机41沿着目标避障路径92向前移动的过程中,喷洒无人机41在该目标避障路径92中的当前位置是实时变化的,喷洒无人机41在该目标避障路径92中的当前位置每变化一次,该喷洒无人机41即可确定出一个目标回航路径。最终该喷洒无人机41可检测到一个距离障碍物最近且没有障碍物的目标回航路径。It can be understood that the current position of the spray drone 41 in the target obstacle avoidance path 92 changes in real time during the forward movement of the spray drone 41 along the target obstacle avoidance path 92. Each time the current position in the target obstacle avoidance path 92 changes, the spray drone 41 can determine a target return path. Finally, the spray drone 41 can detect a target return path that is closest to the obstacle and has no obstacle.
如图18所示,从点a到作业航线段45的目标回航路径、以及从点b到作业航线段45的目标回航路径上都有障碍物,从点c到作业航线段45的目标回航路径上刚好没有障碍物,此时,飞行控制器可控制喷洒无人机41从点c沿着该目标回航路径回到作业航线段45继续执行喷洒任务。As shown in FIG. 18, there are obstacles on the target return path from point a to the operating route segment 45, and from the point b to the target return path of the operating route segment 45, and from point c to the target return route of the operating route segment 45 There is no obstacle on the board. At this time, the flight controller can control the spraying drone 41 to return to the working route segment 45 along the target return path from point c to continue to perform the spraying task.
如图18所示,从点a到作业航线段45的目标回航路径、从点b到作业航线段45的目标回航路径、从点c到作业航线段45的目标回航路径的曲率可以相同,也可以不同。As shown in FIG. 18, the curvature of the target return path from point a to the operating route segment 45, the target return path from point b to the operating route segment 45, and the target return route from point c to the operating route segment 45 may also be the same, or Can be different.
另外,在其他实施例中,喷洒无人机41沿着目标避障路径92向前移动的过程中,可确定出从当前位置到作业航线段45的多个目标回航路径,如图19所示,当喷洒无人机41移动到目标避障路径92中的点a时,喷洒无人机41可确定出从点a到作业航线段45的多个目标回航路径,并从该多个目标回航路径中确定出没有障碍物的一个目标回航路径,并沿着该目标回航路径回到作业航线段45继续执行喷洒任务。如果从点a到作业航线段45的多个目标回航路径中的每个目标回航路径上都有障碍物,则喷洒无人机41可继续向前移动,在下一个位置再确定多个目标回航路径,并再次从该多个目标回航路径中确定出没有障碍物的一个目标回航路径。In addition, in other embodiments, during the forward movement of the spray drone 41 along the target obstacle avoidance path 92, multiple target return paths from the current position to the operating route segment 45 may be determined, as shown in FIG. 19 When the spray drone 41 moves to the point a in the target obstacle avoidance path 92, the spray drone 41 can determine multiple target return paths from point a to the operating route segment 45, and return from the multiple targets A target return path without obstacles is determined in the path, and the target return path is returned to the working route section 45 along the target return path to continue to perform the spraying task. If there are obstacles in each of the multiple target return paths from point a to the operating route segment 45, the spray drone 41 can continue to move forward and determine multiple target return paths at the next position , And again determine a target return path without obstacles from the multiple target return paths.
可选的,所述控制所述喷洒无人机从所述目标避障路径中的所述当前 位置沿着所述目标回航路径回到所述当前作业航线段继续执行喷洒任务,包括:控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径平滑过渡到所述当前作业航线段继续执行喷洒任务。Optionally, the controlling the spraying drone to return to the current working route segment from the current position in the target obstacle avoidance path along the target return path to continue to perform the spraying task includes: The spraying drone smoothly transitions from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue to execute the spraying task.
如图18或图19所示,当喷洒无人机41从目标避障路径92中的当前位置沿着该目标回航路径回到作业航线段45时,飞行控制器可控制喷洒无人机41从该当前位置沿着该目标回航路径平滑过渡到作业航线段45继续执行喷洒任务。As shown in FIG. 18 or FIG. 19, when the spray drone 41 returns from the current position in the target obstacle avoidance path 92 along the target return path to the operating route segment 45, the flight controller can control the spray drone 41 from The current position smoothly transitions to the working route section 45 along the target return path to continue to perform the spraying task.
可选的,所述方法还包括:当所述喷洒无人机从所述目标避障路径回到所述当前作业航线段后,向所述喷洒无人机对应的地面控制端发送所述喷洒无人机避障成功的第三状态信息。Optionally, the method further includes sending the spray to the ground control end corresponding to the spray drone after the spray drone returns from the target obstacle avoidance path to the current operational route segment The third status information of successful UAV obstacle avoidance.
如图12所示,当喷洒无人机41从目标避障路径92回到作业航线段45上的点E,并从点E平滑到点F时,喷洒无人机41向对应的地面控制端发送喷洒无人机41避障成功的第三状态信息。当地面控制端接收到喷洒无人机41发送的避障成功的第三状态信息时,该地面控制端中的应用程序可在如图14所示的用户界面中通过弹框的方式显示“避障成功”。可选的,当喷洒无人机41回到作业航线段45上的点E时,喷洒无人机41还可向对应的地面控制端发送喷洒无人机41已经回航的状态信息,该地面控制端中的应用程序可在如图14所示的用户界面中通过弹框的方式显示“已经回航”。如图12所示,当喷洒无人机41从目标避障路径92上的点D开始向作业航线段45移动时,喷洒无人机41还可向对应的地面控制端发送喷洒无人机41准备回航的状态信息,该地面控制端中的应用程序可在如图14所示的用户界面中通过弹框的方式显示“准备回航”。As shown in FIG. 12, when the spray drone 41 returns from the target obstacle avoidance path 92 to point E on the working route segment 45, and smoothes from point E to point F, the spray drone 41 is directed to the corresponding ground control end Send the third status information of spraying the drone 41 to avoid obstacles successfully. When the ground control terminal receives the third status information of successful obstacle avoidance sent by the spray drone 41, the application in the ground control terminal may display "avoid Barrier success". Optionally, when the spraying drone 41 returns to the point E on the operating route segment 45, the spraying drone 41 may also send the status information that the spraying drone 41 has returned to the corresponding ground control terminal, the ground control The application in the terminal can display "have returned" in the user interface shown in FIG. 14 by a pop-up box. As shown in FIG. 12, when the spray drone 41 moves from the point D on the target obstacle avoidance path 92 to the operating route segment 45, the spray drone 41 can also send the spray drone 41 to the corresponding ground control end For the status information of the preparation for returning home, the application in the ground control terminal can display “preparing for returning home” by popping up a frame in the user interface shown in FIG. 14.
另外,喷洒无人机41在目标避障路径92上移动的过程中,以及喷洒无人机41从目标避障路径92回到作业航线段45的过程中,喷洒无人机41可实时的向地面控制端发送障碍物信息、以及喷洒无人机41的运行路径。In addition, when the spray drone 41 moves on the target obstacle avoidance path 92 and when the spray drone 41 returns from the target obstacle avoidance path 92 to the operating route segment 45, the spray drone 41 can The ground control terminal sends obstacle information and the running path of the spray drone 41.
如图12所示,喷洒无人机41在目标避障路径92上从C点移动到D点的过程中,喷洒无人机41可实时的向地面控制端发送障碍物信息,该地面控制端中的应用程序可根据该障碍物信息在用户界面中显示该障碍物对应的雷达图,如图20所示,雷达图142中的91表示障碍物,41表示 喷洒无人机。另外,喷洒无人机41还可以将喷洒无人机41的历史路径和将要运行的路径点发送给地面控制端,该应用程序可在该用户界面中显示该喷洒无人机41的历史路径和将要运行的路径点。例如,在雷达图142中,145表示喷洒无人机41的历史路径,146表示喷洒无人机41将要运行的路径点。其中,历史路径145可对应于如图12所示的从点B到点C的路径。将要运行的路径点146可对应于如图12所示的目标避障路径92上的路径点,喷洒无人机41位于目标避障路径92上的点C和点D之间。可选的,历史路径145和将要运行的路径点146在用户界面中以不同的颜色显示。As shown in FIG. 12, when the spray drone 41 moves from point C to point D on the target obstacle avoidance path 92, the spray drone 41 can send obstacle information to the ground control terminal in real time. The ground control terminal The application in can display the radar chart corresponding to the obstacle in the user interface according to the obstacle information. As shown in FIG. 20, 91 in the radar chart 142 indicates the obstacle, and 41 indicates the spray drone. In addition, the spray drone 41 can also send the historical path of the spray drone 41 and the waypoint to be run to the ground control terminal, the application can display the historical path and the spray drone 41 in the user interface The waypoint to be run. For example, in the radar chart 142, 145 represents a historical path of spraying the drone 41, and 146 represents a route point where the spraying drone 41 will operate. Among them, the historical path 145 may correspond to the path from point B to point C as shown in FIG. 12. The path point 146 to be operated may correspond to the path point on the target obstacle avoidance path 92 as shown in FIG. 12, and the spray drone 41 is located between the point C and point D on the target obstacle avoidance path 92. Optionally, the historical route 145 and the route point 146 to be executed are displayed in different colors in the user interface.
如图12所示,喷洒无人机41在目标避障路径92上从D点回到作业航线段45上的E点的过程中,喷洒无人机41可实时的向地面控制端发送障碍物信息,该地面控制端中的应用程序可根据该障碍物信息在用户界面中显示该障碍物对应的雷达图,如图21所示,雷达图142中的91表示障碍物,41表示喷洒无人机。另外,喷洒无人机41还可以将喷洒无人机41的历史路径和将要运行的路径点发送给地面控制端,该应用程序可在该用户界面中显示该喷洒无人机41的历史路径和将要运行的路径点。例如,在雷达图142中,147表示喷洒无人机41的历史路径,148表示喷洒无人机41将要运行的路径点。其中,历史路径147可对应于如图12所示的从点C到点D的路径。将要运行的路径点148可对应于如图12所示的从点E开始的作业航线段45上的航点,喷洒无人机41位于点D和点E之间。可选的,历史路径147和将要运行的路径点148在用户界面中以不同的颜色显示。As shown in FIG. 12, when the spray drone 41 returns from the point D on the target obstacle avoidance path 92 to the point E on the work route segment 45, the spray drone 41 can send obstacles to the ground control terminal in real time Information, the application in the ground control terminal can display the radar chart corresponding to the obstacle in the user interface according to the obstacle information, as shown in FIG. 21, 91 in the radar chart 142 represents the obstacle, and 41 represents spraying nobody machine. In addition, the spray drone 41 can also send the historical path of the spray drone 41 and the waypoint to be run to the ground control terminal, the application can display the historical path and the spray drone 41 in the user interface The waypoint to be run. For example, in the radar chart 142, 147 represents a historical path of spraying the drone 41, and 148 represents a route point where the spraying drone 41 will operate. Among them, the historical path 147 may correspond to the path from point C to point D as shown in FIG. 12. The waypoint 148 to be operated may correspond to the waypoint on the operation route segment 45 starting from point E as shown in FIG. 12, and the spray drone 41 is located between point D and point E. Optionally, the historical route 147 and the route point 148 to be run are displayed in different colors in the user interface.
本实施例通过在所述喷洒无人机按照所述目标避障路径移动的过程中,确定从所述喷洒无人机在所述目标避障路径中的当前位置到所述当前作业航线段的目标回航路径,当确定所述目标回航路径上不存在障碍物时,控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径回到所述当前作业航线段继续执行喷洒任务,可使得喷洒无人机避开障碍物之后,以最短的路径回到当前作业航线段继续执行喷洒任务,以避免喷洒无人机漏喷,进一步提高了喷洒无人机的作业效率。In this embodiment, during the movement of the spray drone in accordance with the target obstacle avoidance path, the distance from the current position of the spray drone in the target obstacle avoidance path to the current operating route segment is determined. A target return path, when it is determined that there are no obstacles on the target return path, the spray drone is controlled to return from the current position in the target obstacle avoidance path along the target return path to the current Continue to perform the spraying task in the operating route segment, which can make the spraying drone avoid the obstacle and return to the current operating route segment with the shortest path to continue to perform the spraying task to avoid the spray drone from leaking, further improving the unmanned spray Machine operating efficiency.
本发明实施例提供一种喷洒无人机的避障控制方法。在上述实施例的基础上,喷洒无人机的飞行控制器在执行自主喷洒任务时,飞行控制器可实时给导航模块推送相邻的多个航点,如图22所示,飞行控制器可实时给导航模块推送相邻的6个航点,该6个航点为航点0、航点1、航点2、航点3、航点4、航点5。飞行控制器在给导航模块推送该6个航点的同时,还可以推送该6个航点的状态标识,例如,航点0和航点1对应第一状态标识,第一状态标识表示从航点0到航点1的作业航线段是喷洒无人机的历史作业航线段。航点2和航点3对应第二状态标识,第二状态标识表示从航点2到航点3的作业航线段是喷洒无人机的当前作业航线段。航点4和航点5对应第三状态标识,第三状态标识表示从航点4到航点5的作业航线段是喷洒无人机的下一个作业航线段。导航模块根据飞行控制器推送的多个航点、以及每个航点的状态标识,可确定出喷洒无人机的历史运动轨迹和后续运动轨迹。当喷洒无人机的当前作业航线段中存在障碍物时,喷洒无人机根据上述实施例中的数字地图确定与该当前作业航线段平行的目标避障路径,并通过该目标避障路径进行绕行避障。An embodiment of the present invention provides an obstacle avoidance control method for spraying a drone. Based on the above embodiment, when the flight controller spraying the drone is performing an autonomous spraying task, the flight controller can push multiple adjacent waypoints to the navigation module in real time. As shown in FIG. 22, the flight controller can 6 adjacent waypoints are pushed to the navigation module in real time. The 6 waypoints are waypoint 0, waypoint 1, waypoint 2, waypoint 3, waypoint 4, and waypoint 5. While the flight controller pushes the 6 waypoints to the navigation module, it can also push the status identifiers of the 6 waypoints. For example, waypoint 0 and waypoint 1 correspond to the first state identifier, and the first state identifier represents the slave waypoint. The operating route segment from point 0 to waypoint 1 is the historical operating route segment spraying the drone. Waypoint 2 and waypoint 3 correspond to the second status indicator, and the second state indicator indicates that the operating route segment from waypoint 2 to waypoint 3 is the current operating route segment of the spray drone. The waypoint 4 and the waypoint 5 correspond to the third status indicator, and the third state indicator indicates that the operating route segment from the waypoint 4 to the waypoint 5 is the next operating route segment spraying the drone. The navigation module can determine the historical movement trajectory and subsequent movement trajectory of the spray drone according to the multiple waypoints pushed by the flight controller and the status identification of each waypoint. When there is an obstacle in the current operating route segment of the spraying drone, the spraying drone determines the target obstacle avoidance path parallel to the current operating route segment according to the digital map in the above embodiment, and performs through the target obstacle avoidance path Bypass obstacle avoidance.
在一些实施例中,喷洒无人机的起始作业航点可能并不是如图22所示的航点0,而是如图23所示的航点3,此时,喷洒无人机需要从航点2飞行到航点3,从航点3开始执行喷洒任务。此时,飞行控制器向导航模块推送的航点0和航点1可视为无效。当从航点2到航点3的航线段中出现障碍物时,喷洒无人机同样可以根据上述实施例中的数字地图确定与该航线段平行的目标避障路径,并通过该目标避障路径进行绕行避障。具体绕行避障过程与上述实施例一致,此处不再赘述。In some embodiments, the initial operating waypoint for spraying the drone may not be waypoint 0 as shown in FIG. 22, but waypoint 3 as shown in FIG. 23. At this time, the spraying drone needs to Waypoint 2 flies to waypoint 3, and the spraying task starts from waypoint 3. At this time, waypoint 0 and waypoint 1 pushed by the flight controller to the navigation module can be regarded as invalid. When an obstacle appears in the route segment from waypoint 2 to waypoint 3, the spray drone can also determine the target obstacle avoidance path parallel to the route segment according to the digital map in the above embodiment, and avoid obstacles through the target The path bypasses obstacle avoidance. The specific bypass obstacle avoidance process is consistent with the above embodiment, and will not be repeated here.
在另一些实施例中,喷洒无人机在执行喷洒任务时,可能由于动力不足、喷洒物不足等原因导致作业中断,此时,喷洒无人机需要从中断作业航点返回到Home点充电或加载喷洒物,并从Home点返回中断作业航点继续执行后续的喷洒任务。如图24所示,航点3表示中断作业航点,航点2表示Home点,当喷洒无人机从航点2返向航点3的过程中,若从航点2到航点3的航线段中出现障碍物,则喷洒无人机可以根据上述实施例中的数字地图确定与该航线段平行的目标避障路径,并通过该目标避障路径进行绕行避障。具体绕行避障过程与上述实施例一致,此处不再赘述。In other embodiments, when the spraying drone is performing a spraying task, the operation may be interrupted due to insufficient power, insufficient spray, etc. At this time, the spraying drone needs to return to the Home point for charging or Load the spray and return to the interrupted waypoint from the Home point to continue to perform subsequent spraying tasks. As shown in FIG. 24, waypoint 3 represents the waypoint where the operation is interrupted, and waypoint 2 represents the home point. When the spray drone returns from waypoint 2 to waypoint 3, if the way from waypoint 2 to waypoint 3 is When an obstacle appears in the route segment, the spraying drone can determine the target obstacle avoidance path parallel to the route segment according to the digital map in the foregoing embodiment, and bypass the obstacle avoidance through the target obstacle avoidance path. The specific bypass obstacle avoidance process is consistent with the above embodiment, and will not be repeated here.
另外,如图25所示,若飞行控制器给导航模块推送的6个航点为航点0、航点1、航点2、航点3、航点4、航点5,但是,从航点2到航点3的作业航线段已经是最后一个航线段,则当喷洒无人机作业到从航点2到航点3的作业航线段时,航点4和航点5可视为无效。In addition, as shown in Figure 25, if the 6 waypoints pushed by the flight controller to the navigation module are waypoint 0, waypoint 1, waypoint 2, waypoint 3, waypoint 4, and waypoint 5, however, the The operation route segment from point 2 to waypoint 3 is already the last route segment, when the spray drone operates to the operation route segment from waypoint 2 to waypoint 3, waypoint 4 and waypoint 5 can be regarded as invalid .
也就是说,在本实施例所述的避障控制方法,不仅适用于喷洒无人机在当前作业航线段中执行喷洒任务过程中的避障绕行,也适用于喷洒无人机从Home点到作业航点过程中的避障绕行。That is to say, the obstacle avoidance control method described in this embodiment is not only applicable to the obstacle avoidance bypass when the spray drone performs the spray task in the current operation route segment, but also applicable to the spray drone from the Home point Obstacle avoidance and detour when arriving at the operation waypoint.
本发明实施例提供一种喷洒无人机的避障控制装置。所述避障控制装置具体可以是上述实施例中的导航模块和/或飞行控制器。所述喷洒无人机设置有探测设备,所述探测设备用于探测障碍物。图26为本发明实施例提供的避障控制装置的结构图,如图26所示,避障控制装置260包括:存储器261、处理器262和通讯接口263。其中,存储器261用于存储程序代码;处理器262调用所述程序代码,当程序代码被执行时,用于执行以下操作:在所述喷洒无人机按照作业航线执行喷洒任务的过程中,获取探测设备输出的探测数据,其中,所述作业航线包括多个作业航线段;根据所述探测数据建立数字地图;在所述喷洒无人机按照所述多个作业航线段中的当前作业航线段执行喷洒任务的过程中,若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径;控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径,并控制所述喷洒无人机按照所述目标避障路径移动;当确定避开所述障碍物之后,控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务。An embodiment of the present invention provides an obstacle avoidance control device for spraying a drone. The obstacle avoidance control device may specifically be the navigation module and/or the flight controller in the foregoing embodiment. The spray drone is provided with detection equipment, and the detection equipment is used to detect obstacles. FIG. 26 is a structural diagram of an obstacle avoidance control device according to an embodiment of the present invention. As shown in FIG. 26, the obstacle avoidance control device 260 includes a memory 261, a processor 262, and a communication interface 263. Among them, the memory 261 is used to store the program code; the processor 262 calls the program code, and when the program code is executed, it is used to perform the following operations: in the process of the spraying drone performing the spraying task according to the operation route, The detection data output by the detection device, wherein the operation route includes a plurality of operation route segments; a digital map is established based on the detection data; and the spraying drone follows the current operation route segment among the plurality of operation route segments During the execution of the spraying task, if it is determined that there is an obstacle on the current operating route segment, the target obstacle avoidance path parallel to the current operating route segment is determined according to the digital map; the spray drone is controlled from all The current operating route segment moves to the target obstacle avoidance path, and controls the spray drone to move according to the target obstacle avoidance path; when it is determined to avoid the obstacle, the spray drone is controlled from all The target obstacle avoidance path returns to the current working route segment to continue to perform the spraying task.
可选的,处理器262控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径时,具体用于:当所述喷洒无人机相对于所述障碍物的距离小于或等于第一距离阈值时,控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径。Optionally, when the processor 262 controls the spray drone to move from the current operation route segment to the target obstacle avoidance path, it is specifically used to: when the distance of the spray drone relative to the obstacle When it is less than or equal to the first distance threshold, the spray drone is controlled to move from the current working route segment to the target obstacle avoidance path.
可选的,处理器262还用于:在所述喷洒无人机从所述当前作业航线段向所述目标避障路径移动的过程中,将所述喷洒无人机的机头朝向调整 至第一目标朝向以调整所述探测设备的探测方向,其中,所述第一目标朝向为由所述当前作业航线段指向所述目标避障路径且与所述当前作业航线段呈第一预设夹角的方向。Optionally, the processor 262 is further configured to: during the movement of the spray drone from the current operating route segment to the target obstacle avoidance path, adjust the head of the spray drone to A first target orientation to adjust the detection direction of the detection device, wherein the first target orientation is directed from the current operational route segment to the target obstacle avoidance path and presents a first preset with the current operational route segment The direction of the angle.
可选的,所述避障控制装置还包括通讯接口;处理器262还用于:当所述喷洒无人机相对于所述障碍物的距离小于或等于所述第一距离阈值时,通过通讯接口263向所述喷洒无人机对应的地面控制端发送所述喷洒无人机正在避障的第一状态信息。Optionally, the obstacle avoidance control device further includes a communication interface; the processor 262 is further configured to: through the communication when the distance of the spray drone relative to the obstacle is less than or equal to the first distance threshold The interface 263 sends the first state information that the spray drone is avoiding obstacles to the ground control terminal corresponding to the spray drone.
可选的,所述若确定所述当前作业航线段上存在障碍物,则处理器262根据所述数字地图确定与所述当前作业航线段平行的目标避障路径时,具体用于:若确定所述当前作业航线段上存在障碍物,则确定所述当前作业航线段上存在的所述障碍物相对于所述喷洒无人机的距离;若所述距离大于第一距离阈值且小于第二距离阈值,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径;其中,所述第二距离阈值大于所述第一距离阈值。Optionally, if it is determined that there is an obstacle on the current operational route segment, the processor 262 determines, according to the digital map, a target obstacle avoidance path parallel to the current operational route segment, specifically: if it is determined If there is an obstacle on the current working route segment, determine the distance of the obstacle on the current working route segment relative to the spray drone; if the distance is greater than the first distance threshold and less than the second The distance threshold determines the target obstacle avoidance path parallel to the current operational route segment according to the digital map; wherein the second distance threshold is greater than the first distance threshold.
可选的,所述若确定所述当前作业航线段上存在障碍物,则处理器262根据所述数字地图确定与所述当前作业航线段平行的目标避障路径时,具体用于:若根据所述探测设备的所述探测数据和/或所述数字地图,确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径。Optionally, if it is determined that there is an obstacle on the current operational route segment, the processor 262 determines, according to the digital map, a target obstacle avoidance path parallel to the current operational route segment, specifically: The detection data of the detection device and/or the digital map determines that there is an obstacle on the current operational route segment, and then determines a target obstacle avoidance path parallel to the current operational route segment according to the digital map.
可选的,处理器262还用于:当所述喷洒无人机相对于所述障碍物的距离小于或者等于第二距离阈值时,控制所述喷洒无人机减速,所述第二距离阈值大于所述第一距离阈值。Optionally, the processor 262 is further configured to: when the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, control the spray drone to decelerate, the second distance threshold Greater than the first distance threshold.
可选的,处理器262还用于:当所述喷洒无人机相对于所述障碍物的距离小于或等于第二距离阈值时,向所述喷洒无人机对应的地面控制端发送所述喷洒无人机准备避障的第二状态信息,所述第二距离阈值大于所述第一距离阈值。Optionally, the processor 262 is further configured to: when the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, send the signal to the ground control end corresponding to the spray drone Spraying the second state information of the drone preparing for obstacle avoidance, the second distance threshold is greater than the first distance threshold.
可选的,处理器262根据所述数字地图确定与所述当前作业航线段平行的目标避障路径时,具体用于:根据所述数字地图确定与所述当前作业航线段平行的多个避障路径;从所述多个避障路径中确定所述目标避障路径。Optionally, when the processor 262 determines a target obstacle avoidance path parallel to the current operational route segment according to the digital map, it is specifically used to determine multiple avoidance routes parallel to the current operational route segment according to the digital map Obstacle path; determining the target obstacle avoidance path from the plurality of obstacle avoidance paths.
可选的,处理器262从所述多个避障路径中确定所述目标避障路径时,具体用于:从所述多个避障路径中选择距离所述当前作业航线段最近的、且其上没有所述障碍物的避障路径作为所述目标避障路径。Optionally, when the processor 262 determines the target obstacle avoidance path from the plurality of obstacle avoidance paths, it is specifically used to: select from the plurality of obstacle avoidance paths that is closest to the current operating route segment, and The obstacle avoidance path without the obstacle on it is used as the target obstacle avoidance path.
可选的,所述多个避障路径中相邻的避障路径之间的距离为预设距离。Optionally, the distance between adjacent obstacle avoidance paths in the plurality of obstacle avoidance paths is a preset distance.
可选的,处理器262还用于:在所述喷洒无人机按照所述目标避障路径移动的过程中,若所述目标避障路上存在障碍物,则控制所述喷洒无人机悬停。Optionally, the processor 262 is further configured to: during the movement of the spray drone according to the target obstacle avoidance path, if there is an obstacle on the target obstacle avoidance path, control the spray drone to suspend stop.
可选的,处理器262控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务时,具体用于:在所述喷洒无人机按照所述目标避障路径移动的过程中,确定从所述喷洒无人机在所述目标避障路径中的当前位置到所述当前作业航线段的目标回航路径;当确定所述目标回航路径上不存在障碍物时,控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径回到所述当前作业航线段继续执行喷洒任务。Optionally, the processor 262 controls the spraying drone to return from the target obstacle avoidance path to the current operating route segment to continue to perform the spraying task, which is specifically used when the spraying drone is in accordance with the target During the movement of the obstacle avoidance path, determine the target return path from the current position of the spray drone in the target obstacle avoidance path to the current operating route segment; when it is determined that there is no obstacle on the target return path In case of objects, the spraying drone is controlled to return to the current working route segment along the target return path from the current position in the target obstacle avoidance path to continue to perform the spraying task.
可选的,处理器262还用于:在所述喷洒无人机从所述目标避障路径向所述当前作业航线段移动的过程中,将所述喷洒无人机的的机头朝向调整至第二目标朝向以调整所述探测设备的探测方向,其中,所述第二目标朝向为由所述目标避障路径指向所述当前作业航线段且与所述当前作业航线段呈第二预设夹角的方向。Optionally, the processor 262 is further configured to adjust the direction of the spray drone's nose during the movement of the spray drone from the target obstacle avoidance path to the current operating route segment To a second target orientation to adjust the detection direction of the detection device, wherein the second target orientation is directed from the target obstacle avoidance path to the current operational route segment and presents a second Set the direction of the angle.
可选的,处理器262控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径回到所述当前作业航线段继续执行喷洒任务时,具体用于:控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径平滑过渡到所述当前作业航线段继续执行喷洒任务。Optionally, the processor 262 controls the spray drone to return from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue to perform the spray task, specifically Yu: control the spraying drone to smoothly transition from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue to execute the spraying task.
可选的,处理器262还用于:当所述喷洒无人机从所述目标避障路径回到所述当前作业航线段后,通过通讯接口263向所述喷洒无人机对应的地面控制端发送所述喷洒无人机避障成功的第三状态信息。Optionally, the processor 262 is further configured to: after the spray drone returns from the target obstacle avoidance path to the current operating route segment, control the ground corresponding to the spray drone through the communication interface 263 The terminal sends the third status information of the successful spraying drone obstacle avoidance.
可选的,所述探测数据包括如下至少一种:所述障碍物的大小、所述障碍物相对于所述喷洒无人机的距离、方向。Optionally, the detection data includes at least one of the following: the size of the obstacle, the distance and the direction of the obstacle relative to the spray drone.
本发明实施例提供的避障控制装置的具体原理和实现方式均与上述 实施例类似,此处不再赘述。The specific principles and implementation manners of the obstacle avoidance control device provided by the embodiments of the present invention are similar to the foregoing embodiments, and details are not described herein again.
本实施例通过获取喷洒无人机按照作业航线执行喷洒任务时探测设备输出的探测数据,根据该探测数据建立数字地图,由于该作业航线包括多个作业航线段,使得喷洒无人机在其中一条作业航线段上执行喷洒任务时探测设备可探测到其他作业航线段上的障碍物。当喷洒无人机在当前作业航线段执行喷洒任务时,如果确定该当前作业航线段中存在障碍物,可根据该数字地图确定与该当前作业航线段平行的目标避障路径,并控制喷洒无人机从当前作业航线段移动至目标避障路径进行避障,使得喷洒无人机不需要固定化、机械化的绕行避障而频繁停顿、频繁旋转、频繁检测当前作业航线段上是否有障碍物,从而提高了喷洒无人机的绕行效率。In this embodiment, by acquiring the detection data output by the detection device when the spraying drone performs the spraying task according to the operation route, a digital map is established based on the detection data. Since the operation route includes multiple operation route segments, the spraying drone is in one of the The detection equipment can detect obstacles on other operating route segments when performing spraying tasks on the operating route segments. When the spraying drone performs the spraying task in the current operational route segment, if it is determined that there are obstacles in the current operational route segment, the target obstacle avoidance path parallel to the current operational route segment can be determined according to the digital map, and the spray The man-machine moves from the current operation route segment to the target obstacle avoidance path for obstacle avoidance, so that the spraying drone does not need fixed or mechanized bypass obstacle avoidance and frequently stops, rotates frequently, and frequently detects whether there are obstacles on the current operation route segment Objects, thereby improving the efficiency of detouring spraying drones.
本发明实施例提供一种喷洒无人机。图27为本发明实施例提供的喷洒无人机的结构图,如图27所示,喷洒无人机270包括:机身、动力系统、探测设备271和避障控制装置272,所述动力系统包括如下至少一种:电机273、螺旋桨274和电子调速器275,动力系统安装在所述机身,用于提供飞行动力;避障控制装置272具体可以是上述实施例中的导航模块和/或飞行控制器,避障控制装置272的具体原理和实现方式均与上述实施例类似,此处不再赘述。An embodiment of the present invention provides a spray drone. FIG. 27 is a structural diagram of a spray drone provided by an embodiment of the present invention. As shown in FIG. 27, the spray drone 270 includes: a fuselage, a power system, a detection device 271, and an obstacle avoidance control device 272. The power system It includes at least one of the following: a motor 273, a propeller 274, and an electronic governor 275. The power system is installed on the fuselage to provide flight power; the obstacle avoidance control device 272 may specifically be the navigation module and/or Or the specific principle and implementation of the flight controller and the obstacle avoidance control device 272 are similar to the above embodiments, and will not be repeated here.
另外,如图27所示,喷洒无人机270还包括:通信模块277,其中,通信模块277用于与地面控制端进行通信。In addition, as shown in FIG. 27, the spray drone 270 further includes: a communication module 277, wherein the communication module 277 is used to communicate with the ground control terminal.
可选的,所述喷洒无人机为农业无人机。Optionally, the spray drone is an agricultural drone.
本实施例通过获取喷洒无人机按照作业航线执行喷洒任务时探测设备输出的探测数据,根据该探测数据建立数字地图,由于该作业航线包括多个作业航线段,使得喷洒无人机在其中一条作业航线段上执行喷洒任务时探测设备可探测到其他作业航线段上的障碍物。当喷洒无人机在当前作业航线段执行喷洒任务时,如果确定该当前作业航线段中存在障碍物,可根据该数字地图确定与该当前作业航线段平行的目标避障路径,并控制喷洒无人机从当前作业航线段移动至目标避障路径进行避障,使得喷洒无人机不需要固定化、机械化的绕行避障而频繁停顿、频繁旋转、频繁检测当前作业航线段上是否有障碍物,从而提高了喷洒无人机的绕行效率。In this embodiment, by acquiring the detection data output by the detection device when the spraying drone performs the spraying task according to the operation route, a digital map is established based on the detection data. Since the operation route includes multiple operation route segments, the spraying drone is in one of the The detection equipment can detect obstacles on other operating route segments when performing spraying tasks on the operating route segments. When the spraying drone performs the spraying task in the current operational route segment, if it is determined that there are obstacles in the current operational route segment, the target obstacle avoidance path parallel to the current operational route segment can be determined according to the digital map, and the spray The man-machine moves from the current operation route segment to the target obstacle avoidance path for obstacle avoidance, so that the spraying drone does not need fixed or mechanized bypass obstacle avoidance and frequently stops, rotates frequently, and frequently detects whether there are obstacles on the current operation route segment Objects, thereby improving the efficiency of detouring spraying drones.
另外,本实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行以实现上述实施例所述的喷洒无人机的避障控制方法。In addition, this embodiment also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the obstacle avoidance control method of the spray drone described in the above embodiment.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a division of logical functions. In actual implementation, there may be other divisions, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The above software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute the method described in each embodiment of the present invention Partial steps. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过 程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for convenience and conciseness of description, only the above-mentioned division of each functional module is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated by different functional modules according to needs, that is, the device The internal structure of is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, rather than limiting it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or replacements do not deviate from the essence of the corresponding technical solutions of the technical solutions of the embodiments of the present invention. range.

Claims (38)

  1. 一种喷洒无人机的避障控制方法,所述喷洒无人机设置有探测设备,所述探测设备用于探测障碍物,其特征在于,包括:An obstacle avoidance control method for a spray drone, the spray drone is provided with a detection device, and the detection device is used for detecting obstacles, which is characterized by comprising:
    在所述喷洒无人机按照作业航线执行喷洒任务的过程中,获取探测设备输出的探测数据,其中,所述作业航线包括多个作业航线段;In the process of the spraying drone performing the spraying task according to the operation route, acquiring detection data output by the detection device, wherein the operation route includes a plurality of operation route segments;
    根据所述探测数据建立数字地图;Build a digital map based on the detection data;
    在所述喷洒无人机按照所述多个作业航线段中的当前作业航线段执行喷洒任务的过程中,若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径;In the process of the spraying drone performing the spraying task according to the current operation route segment of the plurality of operation route segments, if it is determined that there is an obstacle on the current operation route segment, the Describe the parallel obstacle avoidance path of the current operational route segment;
    控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径,并控制所述喷洒无人机按照所述目标避障路径移动;Controlling the spray drone to move from the current operation route segment to the target obstacle avoidance path, and controlling the spray drone to move according to the target obstacle avoidance path;
    当确定避开所述障碍物之后,控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务。After it is determined to avoid the obstacle, the spraying drone is controlled to return to the current operation route segment from the target obstacle avoidance path to continue to perform the spraying task.
  2. 根据权利要求1所述的方法,其特征在于,所述控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径,包括:The method according to claim 1, wherein the controlling the spraying drone to move from the current operation route segment to the target obstacle avoidance path includes:
    当所述喷洒无人机相对于所述障碍物的距离小于或等于第一距离阈值时,控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径。When the distance of the spray drone relative to the obstacle is less than or equal to the first distance threshold, the spray drone is controlled to move from the current operation route segment to the target obstacle avoidance path.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    在所述喷洒无人机从所述当前作业航线段向所述目标避障路径移动的过程中,将所述喷洒无人机的机头朝向调整至第一目标朝向以调整所述探测设备的探测方向,其中,所述第一目标朝向为由所述当前作业航线段指向所述目标避障路径且与所述当前作业航线段呈第一预设夹角的方向。During the movement of the spray drone from the current operating route segment to the target obstacle avoidance path, the head of the spray drone is adjusted to the first target orientation to adjust the detection equipment The detection direction, wherein the first target orientation is a direction from the current operational route segment to the target obstacle avoidance path and at a first preset angle with the current operational route segment.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, wherein the method further comprises:
    当所述喷洒无人机相对于所述障碍物的距离小于或等于第一距离阈值时,向所述喷洒无人机对应的地面控制端发送所述喷洒无人机正在避障的第一状态信息。When the distance of the spray drone relative to the obstacle is less than or equal to the first distance threshold, send the first state that the spray drone is avoiding obstacles to the ground control end corresponding to the spray drone information.
  5. 根据权利要求2或4所述的方法,其特征在于,所述若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业 航线段平行的目标避障路径,包括:The method according to claim 2 or 4, wherein if it is determined that there is an obstacle on the current operational route segment, a target obstacle avoidance path parallel to the current operational route segment is determined according to the digital map ,include:
    若确定所述当前作业航线段上存在障碍物,则确定所述当前作业航线段上存在的所述障碍物相对于所述喷洒无人机的距离;If it is determined that there is an obstacle on the current operation route segment, the distance of the obstacle on the current operation route segment relative to the spray drone is determined;
    若所述距离大于第一距离阈值且小于第二距离阈值,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径;If the distance is greater than the first distance threshold and less than the second distance threshold, a target obstacle avoidance path parallel to the current operating route segment is determined according to the digital map;
    其中,所述第二距离阈值大于所述第一距离阈值。Wherein the second distance threshold is greater than the first distance threshold.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径,包括:The method according to any one of claims 1-5, wherein if it is determined that there is an obstacle on the current operational route segment, a target parallel to the current operational route segment is determined according to the digital map Obstacle avoidance paths, including:
    若根据所述探测设备的所述探测数据和/或所述数字地图,确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径。If, according to the detection data of the detection device and/or the digital map, it is determined that there is an obstacle on the current operational route segment, then a target obstacle avoidance parallel to the current operational route segment is determined according to the digital map path.
  7. 根据权利要求2或3所述的方法,其特征在于,所述方法还包括:The method according to claim 2 or 3, wherein the method further comprises:
    当所述喷洒无人机相对于所述障碍物的距离小于或者等于第二距离阈值时,控制所述喷洒无人机减速,所述第二距离阈值大于第一距离阈值。When the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, the spray drone is controlled to decelerate, and the second distance threshold is greater than the first distance threshold.
  8. 根据权利要求2、3和7任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2, 3, and 7, wherein the method further comprises:
    当所述喷洒无人机相对于所述障碍物的距离小于或等于第二距离阈值时,向所述喷洒无人机对应的地面控制端发送所述喷洒无人机准备避障的第二状态信息,所述第二距离阈值大于第一距离阈值。When the distance of the spray drone relative to the obstacle is less than or equal to the second distance threshold, send the second state of the spray drone ready to avoid obstacles to the ground control end corresponding to the spray drone Information, the second distance threshold is greater than the first distance threshold.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述根据所述数字地图确定与所述当前作业航线段平行的目标避障路径,包括:The method according to any one of claims 1-8, wherein the determining a target obstacle avoidance path parallel to the current operational route segment according to the digital map includes:
    根据所述数字地图确定与所述当前作业航线段平行的多个避障路径;Determining a plurality of obstacle avoidance paths parallel to the current operational route segment according to the digital map;
    从所述多个避障路径中确定所述目标避障路径。The target obstacle avoidance path is determined from the plurality of obstacle avoidance paths.
  10. 根据权利要求9所述的方法,其特征在于,所述从所述多个避障路径中确定所述目标避障路径,包括:The method according to claim 9, wherein the determining the target obstacle avoidance path from the plurality of obstacle avoidance paths comprises:
    从所述多个避障路径中选择距离所述当前作业航线段最近的、且其上没有所述障碍物的避障路径作为所述目标避障路径。From the plurality of obstacle avoidance paths, the obstacle avoidance path closest to the current working route segment and without the obstacle thereon is selected as the target obstacle avoidance path.
  11. 根据权利要求9或10所述的方法,其特征在于,所述多个避障路径中相邻的避障路径之间的距离为预设距离。The method according to claim 9 or 10, wherein a distance between adjacent obstacle avoidance paths in the plurality of obstacle avoidance paths is a preset distance.
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-11, wherein the method further comprises:
    在所述喷洒无人机按照所述目标避障路径移动的过程中,若所述目标避障路上存在障碍物,则控制所述喷洒无人机悬停。During the movement of the spray drone according to the target obstacle avoidance path, if there is an obstacle on the target obstacle avoidance path, the spray drone is controlled to hover.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务,包括:The method according to any one of claims 1-12, wherein the controlling the spraying drone to return to the current operational route segment from the target obstacle avoidance path to continue to perform the spraying task includes:
    在所述喷洒无人机按照所述目标避障路径移动的过程中,确定从所述喷洒无人机在所述目标避障路径中的当前位置到所述当前作业航线段的目标回航路径;During the movement of the spray drone according to the target obstacle avoidance path, determine a target return path from the current position of the spray drone in the target obstacle avoidance path to the current operating route segment;
    当确定所述目标回航路径上不存在障碍物时,控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径回到所述当前作业航线段继续执行喷洒任务。When it is determined that there are no obstacles on the target return path, the spray drone is controlled to return from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue Perform spraying tasks.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-13, wherein the method further comprises:
    在所述喷洒无人机从所述目标避障路径向所述当前作业航线段移动的过程中,将所述喷洒无人机的的机头朝向调整至第二目标朝向以调整所述探测设备的探测方向,其中,所述第二目标朝向为由所述目标避障路径指向所述当前作业航线段且与所述当前作业航线段呈第二预设夹角的方向。During the movement of the spray drone from the target obstacle avoidance path to the current operating route segment, the head of the spray drone is adjusted to the second target orientation to adjust the detection equipment The detection direction of, wherein the second target orientation is a direction that is directed by the target obstacle avoidance path to the current operating route segment and forms a second preset angle with the current operating route segment.
  15. 根据权利要求13或14所述的方法,其特征在于,所述控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径回到所述当前作业航线段继续执行喷洒任务,包括:The method according to claim 13 or 14, wherein the control of the spray drone returns from the current position in the target obstacle avoidance path to the current operation along the target return path The spraying tasks continue to be performed in the route segment, including:
    控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径平滑过渡到所述当前作业航线段继续执行喷洒任务。Controlling the spraying drone to smoothly transition from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue to execute the spraying task.
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-15, wherein the method further comprises:
    当所述喷洒无人机从所述目标避障路径回到所述当前作业航线段后,向所述喷洒无人机对应的地面控制端发送所述喷洒无人机避障成功的第三状态信息。After the spray drone returns from the target obstacle avoidance path to the current operational route segment, a third state of successful spray drone obstacle avoidance is sent to the ground control end corresponding to the spray drone information.
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述喷洒无人机为农业无人机。The method according to any one of claims 1-16, wherein the spray drone is an agricultural drone.
  18. 根据权利要求1-17任一项所述的方法,其特征在于,所述探测数据包括如下至少一种:The method according to any one of claims 1-17, wherein the detection data includes at least one of the following:
    所述障碍物的大小、所述障碍物相对于所述喷洒无人机的距离、方向。The size of the obstacle, the distance and direction of the obstacle relative to the spray drone.
  19. 一种喷洒无人机的避障控制装置,所述喷洒无人机设置有探测设备,所述探测设备用于探测障碍物,其特征在于,所述避障控制装置包括:存储器和处理器;An obstacle avoidance control device for spraying an unmanned aerial vehicle. The spraying drone is provided with detection equipment. The detection equipment is used for detecting obstacles.
    所述存储器用于存储程序代码;The memory is used to store program codes;
    所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, it is used to perform the following operations:
    在所述喷洒无人机按照作业航线执行喷洒任务的过程中,获取探测设备输出的探测数据,其中,所述作业航线包括多个作业航线段;In the process of the spraying drone performing the spraying task according to the operation route, acquiring detection data output by the detection device, wherein the operation route includes a plurality of operation route segments;
    根据所述探测数据建立数字地图;Build a digital map based on the detection data;
    在所述喷洒无人机按照所述多个作业航线段中的当前作业航线段执行喷洒任务的过程中,若确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径;In the process of the spraying drone performing the spraying task according to the current operation route segment of the plurality of operation route segments, if it is determined that there is an obstacle on the current operation route segment, the Describe the parallel obstacle avoidance path of the current operational route segment;
    控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径,并控制所述喷洒无人机按照所述目标避障路径移动;Controlling the spray drone to move from the current operation route segment to the target obstacle avoidance path, and controlling the spray drone to move according to the target obstacle avoidance path;
    当确定避开所述障碍物之后,控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务。After it is determined to avoid the obstacle, the spraying drone is controlled to return to the current operation route segment from the target obstacle avoidance path to continue to perform the spraying task.
  20. 根据权利要求19所述的避障控制装置,其特征在于,所述处理器控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径时,具体用于:The obstacle avoidance control device according to claim 19, wherein when the processor controls the spray drone to move from the current working route segment to the target obstacle avoidance path, it is specifically used to:
    当所述喷洒无人机相对于所述障碍物的距离小于或等于第一距离阈值时,控制所述喷洒无人机从所述当前作业航线段移动至所述目标避障路径。When the distance of the spray drone relative to the obstacle is less than or equal to the first distance threshold, the spray drone is controlled to move from the current operation route segment to the target obstacle avoidance path.
  21. 根据权利要求19或20所述的避障控制装置,其特征在于,所述处理器还用于:The obstacle avoidance control device according to claim 19 or 20, wherein the processor is further used to:
    在所述喷洒无人机从所述当前作业航线段向所述目标避障路径移动 的过程中,将所述喷洒无人机的机头朝向调整至第一目标朝向以调整所述探测设备的探测方向,其中,所述第一目标朝向为由所述当前作业航线段指向所述目标避障路径且与所述当前作业航线段呈第一预设夹角的方向。During the movement of the spray drone from the current operating route segment to the target obstacle avoidance path, the head of the spray drone is adjusted to the first target orientation to adjust the detection equipment The detection direction, wherein the first target orientation is a direction from the current operational route segment to the target obstacle avoidance path and at a first preset angle with the current operational route segment.
  22. 根据权利要求19-21任一项所述的避障控制装置,其特征在于,所述避障控制装置还包括通讯接口;The obstacle avoidance control device according to any one of claims 19-21, wherein the obstacle avoidance control device further includes a communication interface;
    所述处理器还用于:当所述喷洒无人机相对于所述障碍物的距离小于或等于第一距离阈值时,通过所述通讯接口向所述喷洒无人机对应的地面控制端发送所述喷洒无人机正在避障的第一状态信息。The processor is further configured to: when the distance of the spray drone relative to the obstacle is less than or equal to a first distance threshold, send to the ground control end corresponding to the spray drone through the communication interface The first state information that the spraying drone is avoiding obstacles.
  23. 根据权利要求20或22所述的避障控制装置,其特征在于,所述若确定所述当前作业航线段上存在障碍物,则所述处理器根据所述数字地图确定与所述当前作业航线段平行的目标避障路径时,具体用于:The obstacle avoidance control device according to claim 20 or 22, wherein if it is determined that there is an obstacle on the current operation route segment, the processor determines the current operation route according to the digital map When the parallel obstacle avoidance path is used, it is specifically used to:
    若确定所述当前作业航线段上存在障碍物,则确定所述当前作业航线段上存在的所述障碍物相对于所述喷洒无人机的距离;If it is determined that there is an obstacle on the current operation route segment, the distance of the obstacle on the current operation route segment relative to the spray drone is determined;
    若所述距离大于第一距离阈值且小于第二距离阈值,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径;If the distance is greater than the first distance threshold and less than the second distance threshold, a target obstacle avoidance path parallel to the current operating route segment is determined according to the digital map;
    其中,所述第二距离阈值大于所述第一距离阈值。Wherein the second distance threshold is greater than the first distance threshold.
  24. 根据权利要求19-23任一项所述的避障控制装置,其特征在于,所述若确定所述当前作业航线段上存在障碍物,则所述处理器根据所述数字地图确定与所述当前作业航线段平行的目标避障路径时,具体用于:The obstacle avoidance control device according to any one of claims 19 to 23, characterized in that, if it is determined that there is an obstacle on the current operating route segment, the processor determines and When the target obstacle avoidance path is parallel to the current operating route segment, it is specifically used for:
    若根据所述探测设备的所述探测数据和/或所述数字地图,确定所述当前作业航线段上存在障碍物,则根据所述数字地图确定与所述当前作业航线段平行的目标避障路径。If, according to the detection data of the detection device and/or the digital map, it is determined that there is an obstacle on the current operational route segment, then a target obstacle avoidance parallel to the current operational route segment is determined according to the digital map path.
  25. 根据权利要求20或21所述的避障控制装置,其特征在于,所述处理器还用于:当所述喷洒无人机相对于所述障碍物的距离小于或者等于第二距离阈值时,控制所述喷洒无人机减速,所述第二距离阈值大于第一距离阈值。The obstacle avoidance control device according to claim 20 or 21, wherein the processor is further configured to: when the distance of the spray drone relative to the obstacle is less than or equal to a second distance threshold, The spray drone is controlled to decelerate, and the second distance threshold is greater than the first distance threshold.
  26. 根据权利要求20、21和25任一项所述的避障控制装置,其特征在于,所述处理器还用于:The obstacle avoidance control device according to any one of claims 20, 21 and 25, wherein the processor is further used to:
    当所述喷洒无人机相对于所述障碍物的距离小于或等于第二距离阈值时,向所述喷洒无人机对应的地面控制端发送所述喷洒无人机准备避障 的第二状态信息,所述第二距离阈值大于第一距离阈值。When the distance of the spray drone relative to the obstacle is less than or equal to the second distance threshold, send the second state of the spray drone ready to avoid obstacles to the ground control end corresponding to the spray drone Information, the second distance threshold is greater than the first distance threshold.
  27. 根据权利要求19-26任一项所述的避障控制装置,其特征在于,所述处理器根据所述数字地图确定与所述当前作业航线段平行的目标避障路径时,具体用于:The obstacle avoidance control device according to any one of claims 19 to 26, wherein when the processor determines a target obstacle avoidance path parallel to the current operational route segment according to the digital map, it is specifically used to:
    根据所述数字地图确定与所述当前作业航线段平行的多个避障路径;Determining a plurality of obstacle avoidance paths parallel to the current operational route segment according to the digital map;
    从所述多个避障路径中确定所述目标避障路径。The target obstacle avoidance path is determined from the plurality of obstacle avoidance paths.
  28. 根据权利要求27所述的避障控制装置,其特征在于,所述处理器从所述多个避障路径中确定所述目标避障路径时,具体用于:The obstacle avoidance control device according to claim 27, wherein when the processor determines the target obstacle avoidance path from the plurality of obstacle avoidance paths, it is specifically used to:
    从所述多个避障路径中选择距离所述当前作业航线段最近的、且其上没有所述障碍物的避障路径作为所述目标避障路径。From the plurality of obstacle avoidance paths, the obstacle avoidance path closest to the current working route segment and without the obstacle thereon is selected as the target obstacle avoidance path.
  29. 根据权利要求27或28所述的避障控制装置,其特征在于,所述多个避障路径中相邻的避障路径之间的距离为预设距离。The obstacle avoidance control device according to claim 27 or 28, wherein the distance between adjacent obstacle avoidance paths in the plurality of obstacle avoidance paths is a preset distance.
  30. 根据权利要求19-29任一项所述的避障控制装置,其特征在于,所述处理器还用于:The obstacle avoidance control device according to any one of claims 19-29, wherein the processor is further configured to:
    在所述喷洒无人机按照所述目标避障路径移动的过程中,若所述目标避障路上存在障碍物,则控制所述喷洒无人机悬停。During the movement of the spray drone according to the target obstacle avoidance path, if there is an obstacle on the target obstacle avoidance path, the spray drone is controlled to hover.
  31. 根据权利要求19-30任一项所述的避障控制装置,其特征在于,所述处理器控制所述喷洒无人机从所述目标避障路径回到所述当前作业航线段继续执行喷洒任务时,具体用于:The obstacle avoidance control device according to any one of claims 19 to 30, wherein the processor controls the spray drone to return to the current operational route segment from the target obstacle avoidance path to continue to perform spraying The task is specifically used to:
    在所述喷洒无人机按照所述目标避障路径移动的过程中,确定从所述喷洒无人机在所述目标避障路径中的当前位置到所述当前作业航线段的目标回航路径;During the movement of the spray drone according to the target obstacle avoidance path, determine a target return path from the current position of the spray drone in the target obstacle avoidance path to the current operating route segment;
    当确定所述目标回航路径上不存在障碍物时,控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径回到所述当前作业航线段继续执行喷洒任务。When it is determined that there are no obstacles on the target return path, the spray drone is controlled to return from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue Perform spraying tasks.
  32. 根据权利要求19-31任一项所述的避障控制装置,其特征在于,所述处理器还用于:The obstacle avoidance control device according to any one of claims 19 to 31, wherein the processor is further configured to:
    在所述喷洒无人机从所述目标避障路径向所述当前作业航线段移动的过程中,将所述喷洒无人机的的机头朝向调整至第二目标朝向以调整所述探测设备的探测方向,其中,所述第二目标朝向为由所述目标避障路径 指向所述当前作业航线段且与所述当前作业航线段呈第二预设夹角的方向。During the movement of the spray drone from the target obstacle avoidance path to the current operating route segment, the head of the spray drone is adjusted to the second target orientation to adjust the detection equipment The detection direction of, wherein the second target orientation is a direction that is directed by the target obstacle avoidance path to the current operating route segment and forms a second preset angle with the current operating route segment.
  33. 根据权利要求31或32所述的避障控制装置,其特征在于,所述处理器控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径回到所述当前作业航线段继续执行喷洒任务时,具体用于:The obstacle avoidance control device according to claim 31 or 32, wherein the processor controls the spray drone to return from the current position in the target obstacle avoidance path along the target return path When the current operation route segment continues to perform the spraying task, it is specifically used to:
    控制所述喷洒无人机从所述目标避障路径中的所述当前位置沿着所述目标回航路径平滑过渡到所述当前作业航线段继续执行喷洒任务。Controlling the spraying drone to smoothly transition from the current position in the target obstacle avoidance path along the target return path to the current operating route segment to continue to execute the spraying task.
  34. 根据权利要求19-33任一项所述的避障控制装置,其特征在于,所述避障控制装置还包括:通讯接口;The obstacle avoidance control device according to any one of claims 19 to 33, wherein the obstacle avoidance control device further comprises: a communication interface;
    所述处理器还用于:The processor is also used to:
    当所述喷洒无人机从所述目标避障路径回到所述当前作业航线段后,通过所述通讯接口向所述喷洒无人机对应的地面控制端发送所述喷洒无人机避障成功的第三状态信息。After the spray drone returns from the target obstacle avoidance path to the current operating route segment, the spray drone obstacle avoidance is sent to the ground control end corresponding to the spray drone through the communication interface Successful third status information.
  35. 根据权利要求19-34任一项所述的避障控制装置,其特征在于,所述探测数据包括如下至少一种:The obstacle avoidance control device according to any one of claims 19-34, wherein the detection data includes at least one of the following:
    所述障碍物的大小、所述障碍物相对于所述喷洒无人机的距离、方向。The size of the obstacle, the distance and direction of the obstacle relative to the spray drone.
  36. 一种喷洒无人机,其特征在于,包括:A spray drone is characterized by including:
    机身;body;
    动力系统,安装在所述机身,用于提供飞行动力;A power system, installed on the fuselage, is used to provide flight power;
    探测设备,用于探测障碍物;以及Detection equipment for detecting obstacles; and
    如权利要求19-35任一项所述的避障控制装置。The obstacle avoidance control device according to any one of claims 19-35.
  37. 根据权利要求36所述的喷洒无人机,其特征在于,所述喷洒无人机为农业无人机。The spray drone according to claim 36, wherein the spray drone is an agricultural drone.
  38. 一种计算机可读存储介质,其特征在于,其上存储有计算机程序,所述计算机程序被处理器执行以实现如权利要求1-18任一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored thereon, the computer program is executed by a processor to implement the method of any one of claims 1-18.
PCT/CN2018/118772 2018-11-30 2018-11-30 Obstacle avoidance control method, apparatus and device for spraying unmanned aerial vehicle, and storage medium WO2020107475A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/118772 WO2020107475A1 (en) 2018-11-30 2018-11-30 Obstacle avoidance control method, apparatus and device for spraying unmanned aerial vehicle, and storage medium
CN201880069596.7A CN111386508A (en) 2018-11-30 2018-11-30 Obstacle avoidance control method, device and equipment for unmanned spraying machine and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/118772 WO2020107475A1 (en) 2018-11-30 2018-11-30 Obstacle avoidance control method, apparatus and device for spraying unmanned aerial vehicle, and storage medium

Publications (1)

Publication Number Publication Date
WO2020107475A1 true WO2020107475A1 (en) 2020-06-04

Family

ID=70852507

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/118772 WO2020107475A1 (en) 2018-11-30 2018-11-30 Obstacle avoidance control method, apparatus and device for spraying unmanned aerial vehicle, and storage medium

Country Status (2)

Country Link
CN (1) CN111386508A (en)
WO (1) WO2020107475A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112129298A (en) * 2020-09-28 2020-12-25 广州极飞科技有限公司 Method, device and equipment for determining unmanned aerial vehicle air route and storage medium
CN112578385A (en) * 2020-11-24 2021-03-30 广州极飞科技有限公司 Radar data processing method and device and operation equipment
CN115337430A (en) * 2022-08-11 2022-11-15 深圳市隆瑞科技有限公司 Control method and device for spray trolley

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433537B (en) * 2020-11-11 2022-09-16 广西电网有限责任公司电力科学研究院 Visual monitoring method and system for power transmission line iron tower erection construction
CN112393732B (en) * 2020-11-24 2023-01-31 北京三快在线科技有限公司 Unmanned aerial vehicle obstacle avoidance method and device, readable storage medium and electronic equipment
CN116540764A (en) * 2022-01-25 2023-08-04 深圳市道通智能航空技术股份有限公司 Method, equipment and storage medium for realizing temporary flight task of unmanned aerial vehicle
WO2023141988A1 (en) * 2022-01-28 2023-08-03 深圳市大疆创新科技有限公司 Control method for unmanned aerial vehicle, unmanned aerial vehicle, control apparatus, system, and storage medium
CN114625154A (en) * 2022-04-08 2022-06-14 深圳市道通智能航空技术股份有限公司 Online planning method and related device for airline task

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020233A (en) * 2016-07-08 2016-10-12 聂浩然 Unmanned aerial vehicle (UAV) adopted plant protection system, unmanned aerial vehicle (UAV) for plant protection and its control method
CN106168810A (en) * 2016-09-18 2016-11-30 中国空气动力研究与发展中心高速空气动力研究所 A kind of unmanned plane during flying obstacle avoidance system based on RTK and method
CN106598070A (en) * 2016-12-14 2017-04-26 东北农业大学 Obstacle avoiding methods for agricultural plant protection unmanned aerial vehicles under multiple obstacles and small obstacles in spraying process and unmanned aerial vehicle
CN106774394A (en) * 2016-12-14 2017-05-31 东北农业大学 Barrier-avoiding method and unmanned plane of the agricultural plant protection unmanned plane during spraying under single obstacle, small obstacle
CN106774395A (en) * 2016-12-14 2017-05-31 东北农业大学 Agricultural plant protection unmanned plane avoidance sprays paths planning method and unmanned plane
WO2017164544A1 (en) * 2016-03-22 2017-09-28 세이프어스드론(주) Drone for artificial pollination and artificial pollination system using same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2388760B1 (en) * 2010-05-21 2013-01-16 AGUSTAWESTLAND S.p.A. Aircraft capable of hovering, aircraft manoeuvring assist method, and interface
CN107209854A (en) * 2015-09-15 2017-09-26 深圳市大疆创新科技有限公司 For the support system and method that smoothly target is followed
CN107544534A (en) * 2017-10-16 2018-01-05 中国矿业大学 A kind of plant protection unmanned plane automatic fine operation and barrier-avoiding method based on BDS, INS

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017164544A1 (en) * 2016-03-22 2017-09-28 세이프어스드론(주) Drone for artificial pollination and artificial pollination system using same
CN106020233A (en) * 2016-07-08 2016-10-12 聂浩然 Unmanned aerial vehicle (UAV) adopted plant protection system, unmanned aerial vehicle (UAV) for plant protection and its control method
CN106168810A (en) * 2016-09-18 2016-11-30 中国空气动力研究与发展中心高速空气动力研究所 A kind of unmanned plane during flying obstacle avoidance system based on RTK and method
CN106598070A (en) * 2016-12-14 2017-04-26 东北农业大学 Obstacle avoiding methods for agricultural plant protection unmanned aerial vehicles under multiple obstacles and small obstacles in spraying process and unmanned aerial vehicle
CN106774394A (en) * 2016-12-14 2017-05-31 东北农业大学 Barrier-avoiding method and unmanned plane of the agricultural plant protection unmanned plane during spraying under single obstacle, small obstacle
CN106774395A (en) * 2016-12-14 2017-05-31 东北农业大学 Agricultural plant protection unmanned plane avoidance sprays paths planning method and unmanned plane

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112129298A (en) * 2020-09-28 2020-12-25 广州极飞科技有限公司 Method, device and equipment for determining unmanned aerial vehicle air route and storage medium
CN112578385A (en) * 2020-11-24 2021-03-30 广州极飞科技有限公司 Radar data processing method and device and operation equipment
CN112578385B (en) * 2020-11-24 2023-07-18 广州极飞科技股份有限公司 Radar data processing method and device and operation equipment
CN115337430A (en) * 2022-08-11 2022-11-15 深圳市隆瑞科技有限公司 Control method and device for spray trolley
CN115337430B (en) * 2022-08-11 2024-06-07 深圳市隆瑞科技有限公司 Control method and device for spraying trolley

Also Published As

Publication number Publication date
CN111386508A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
WO2020107475A1 (en) Obstacle avoidance control method, apparatus and device for spraying unmanned aerial vehicle, and storage medium
US20200302804A1 (en) Method and device for setting a flight route
EP3453617B1 (en) Autonomous package delivery system
EP3640595B1 (en) Trajectory planner for a vehicle
CN102707724B (en) Visual localization and obstacle avoidance method and system for unmanned plane
US20170233071A1 (en) System and Method for Return-Home Command in Manual Flight Control
US20240086862A1 (en) System, devices and methods for tele-operated robotics
WO2018090208A1 (en) Navigation method and device based on three-dimensional map
WO2021008264A1 (en) Plant protection spraying method for unmanned aerial vehicle, unmanned aerial vehicle, and storage medium
CN111766862B (en) Obstacle avoidance control method and device, electronic equipment and computer readable storage medium
US20110015816A1 (en) Aviation ground navigation system
CN106535614A (en) Robotic mowing of separated lawn areas
US11881116B2 (en) Aerial vehicle navigation system
WO2020107454A1 (en) Method and apparatus for accurately locating obstacle, and computer readable storage medium
WO2021002911A1 (en) System, devices and methods for tele-operated robotics
WO2021087718A1 (en) Unmanned aerial vehicle control method and apparatus, device, and storage medium
US11016509B2 (en) Image capturing system for shape measurement of structure, on-board controller
AU2020103342A4 (en) Design of self-supervisory target painting drone [sstpd]
JP6859484B2 (en) Management devices, management systems, mobiles and programs
CN114485621A (en) Navigation method, navigation device and computer readable storage medium
WO2021246169A1 (en) Information processing device, information processing system, method, and program
WO2021093469A1 (en) Automatic walking area route planning method and automatic walking device
CN109144094A (en) Flight control method, device and the unmanned plane of unmanned plane
CN111736622B (en) Unmanned aerial vehicle obstacle avoidance method and system based on combination of binocular vision and IMU
CN112414410A (en) Path generation method, device operation method and device control system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18941924

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18941924

Country of ref document: EP

Kind code of ref document: A1