WO2020000386A1 - Flight control method, device and system, and storage medium - Google Patents

Flight control method, device and system, and storage medium Download PDF

Info

Publication number
WO2020000386A1
WO2020000386A1 PCT/CN2018/093726 CN2018093726W WO2020000386A1 WO 2020000386 A1 WO2020000386 A1 WO 2020000386A1 CN 2018093726 W CN2018093726 W CN 2018093726W WO 2020000386 A1 WO2020000386 A1 WO 2020000386A1
Authority
WO
WIPO (PCT)
Prior art keywords
pose information
reference identifier
drone
flight
flight trajectory
Prior art date
Application number
PCT/CN2018/093726
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 CN201880010529.8A priority Critical patent/CN110325940A/en
Priority to PCT/CN2018/093726 priority patent/WO2020000386A1/en
Publication of WO2020000386A1 publication Critical patent/WO2020000386A1/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/08Control of attitude, i.e. control of roll, pitch, or yaw
    • 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
    • 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
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft

Definitions

  • the present invention relates to the field of control technology, and in particular, to a flight control method, device, system, and storage medium.
  • drones have become a relatively popular research topic, and are widely used in plant protection, aerial photography, forest fire monitoring and other fields, bringing many conveniences to people's lives and work. Because the drone is restricted by flying height and other factors, obstacles are usually encountered during the flight. In practical applications, when the drone encounters obstacles during the flight, the terminal can only be manually operated by the user. To adjust the flight trajectory of the drone to avoid obstacles, it can be seen that this way of avoiding obstacles is cumbersome to operate.
  • Embodiments of the present invention provide a flight control method, equipment, system, and storage medium, which can plan the flight trajectory of a drone based on the pose of an obstacle to automatically avoid the obstacle.
  • an embodiment of the present invention provides a flight control method.
  • the method includes:
  • an embodiment of the present invention provides another flight control method, which includes:
  • an embodiment of the present invention provides a control device, where the control device includes a memory and a processor;
  • the memory is configured to store at least one program instruction, and the at least one program instruction includes a first program instruction and a second program instruction.
  • the processor executes the first program instruction stored in the memory, and when the first program instruction is executed, the processor is configured to perform the following steps:
  • the processor executes the second program instruction stored in the memory, and when the second program instruction is executed, the processor is configured to perform the following steps:
  • an embodiment of the present invention provides an unmanned aerial vehicle system, including an unmanned aerial vehicle and a control device;
  • the control device is configured to execute the flight control method according to the first aspect and the second aspect to plan a flight trajectory for the drone.
  • the drone is configured to fly according to the flight trajectory to pass through at least one object.
  • an embodiment of the present invention provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, where the computer program includes program instructions, and the program instructions are executed by a processor The processor is caused to execute the steps of the flight control method according to the first aspect and the second aspect.
  • an embodiment of the present invention provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to implement Steps of the flight control method according to the first aspect and the second aspect.
  • the control device receives an instruction to traverse at least one object (that is, an obstacle), and the instruction includes the identity of each object in the at least one object, and determines the traverse according to the pose information of the object associated with each identity. Flight trajectories of all the objects in the at least one object, and controlling the drone to traverse each of the objects based on the flight trajectories. It can be seen that this embodiment can automatically plan the flight trajectory of the drone based on the pose information of the object, without the need for the user to manually adjust the flight trajectory of the drone, so as to satisfy the user's automation and intelligence of the drone crossing obstacles Changing needs.
  • FIG. 1 is a schematic structural diagram of an unmanned aerial vehicle system according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a flight control method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of another flight control method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an adjusted target image according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a binarized target image according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a target image according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a target image after perspective transformation according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a rasterized target image according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a target image after pixel extraction according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a two-dimensional code image provided by an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a position relationship between an object and a reference identifier according to an embodiment of the present invention.
  • FIG. 12 is a schematic flowchart of another flight control method according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a control device according to an embodiment of the present invention.
  • the flight control method provided by the embodiment of the present invention may be executed by a control device, and the control device may be provided on a drone, or may be provided on a ground terminal (such as a remote controller).
  • the flight control method can be applied to drone-based flight control. In other embodiments, it can also be applied to flight control of a mobile device such as a robot capable of autonomous movement. The following is performed using a flight control method applied to a drone. for example.
  • an embodiment of the present invention provides a flight control method.
  • a control device receives an instruction to cross at least one object (that is, an obstacle), and the instruction includes the identity of each object in the at least one object.
  • Identification determining flight trajectories of passing through all the objects in the at least one object according to pose information of the objects associated with each identity, and controlling the drone to traverse each of the objects based on the flight trajectories. It can be seen that this embodiment can automatically plan the flight trajectory of the drone based on the pose information of the object, without the need for the user to manually adjust the flight trajectory of the drone, so as to satisfy the user's automation and intelligence of the drone crossing obstacles. Changing needs.
  • the user can also accurately adjust the flight trajectory of the drone through the object through simple programming. For example, if the user programs and inputs the instruction that includes the identity identifiers 1, 2, and 4 of the passing object, the control device can execute the instructions in the embodiment of this application.
  • the content described above is used to automatically plan the flight trajectory, and based on the flight trajectory to fly through the objects whose identity is 1, 2, 4 to stimulate the user's programming interest.
  • Another implementation manner of the embodiment of the present invention includes: the control device acquires at least one reference identifier, and for each reference identifier, determines the flight trajectory of the drone according to the pose information of the object associated with each identity identifier, and controls the drone The aircraft flies based on the flight trajectory. It can be seen that this embodiment can automatically plan the drone's flight trajectory based on the pose information of the object, without the need for the user to manually adjust the drone's flight trajectory, improve the convenience of crossing obstacles, and meet the user's requirements for unmanned The need for automation and intelligence of aircraft crossing obstacles.
  • the flight trajectory can be automatically planned according to the pose information of the object, and the designated position can be automatically reached based on the flight trajectory.
  • an embodiment of the present application also provides a drone system, that is, the drone system shown in FIG. 1 is used for explanation.
  • FIG. 1 is a schematic structural diagram of an unmanned aerial vehicle system according to an embodiment of the present invention.
  • the system includes a control device 51 and a drone 52.
  • the control device 51 may be a control terminal of a drone, and may specifically be one or more of a remote controller, a smart phone, a tablet computer, a laptop computer, a ground station, and a wearable device (watch, bracelet).
  • the drone 52 may be a rotary wing drone, such as a quad-rotor drone, a six-rotor drone, an eight-rotor drone, or a fixed-wing drone.
  • the drone includes a power system 521, which is used to provide flying power for the drone.
  • the power system 521 includes one or more of a propeller, a motor, and an ESC.
  • the drone may also include a gimbal 522 and
  • the imaging device 523 is mounted on the main body of the drone through the gimbal 522.
  • the shooting device is used to take images or videos during the flight of the drone, including but not limited to multispectral imagers, hyperspectral imagers, visible light cameras, and infrared cameras.
  • the gimbal is a multi-axis transmission and stabilization system.
  • the gimbal motor compensates for the shooting angle of the imaging device by adjusting the rotation angle of the rotating shaft, and prevents or reduces the shake of the imaging device by setting an appropriate buffer mechanism.
  • the control device 51 may be configured with an interaction device for interacting with a user.
  • the interaction device may be one or more of a touch display screen, a keyboard, a button, a joystick, and a pulsator.
  • the user can enter an instruction to traverse at least one object on the user interface of the control device 51, such as entering the identity of the at least one object.
  • the control device 51 can The identification of each object obtains the pose information of each object, and determines the flight trajectory of the drone crossing all the objects in at least one object according to the pose information of each object, and controls the drone 52 to traverse each based on the flight trajectory.
  • Object The identification of each object obtains the pose information of each object, and determines the flight trajectory of the drone crossing all the objects in at least one object according to the pose information of each object, and controls the drone 52 to traverse each based on the flight trajectory.
  • Object
  • FIG. 2 is a schematic flowchart of a flight control method according to an embodiment of the present invention.
  • the method may be executed by a control device, where the specific explanation of the control device is as described above.
  • the flight control method may include the following steps.
  • S101 Receive an instruction to traverse at least one object, where the instruction includes an identity of each object in the at least one object.
  • the control device may provide a user interaction interface, and the user may input an instruction to traverse one or more objects on the user interaction interface according to requirements. For example, a user may click an interface to input an instruction to traverse at least one object, the instruction includes an identity of each object in the at least one object, and the control device receives the user's input instruction to traverse at least one object, and according to the object included in the instruction, Identity, identifying the objects the drone needs to traverse.
  • the identity of an object is an identity that can uniquely identify the object, and the identity may be composed of at least one of a number, a character, a character, or a letter.
  • the control device may obtain the pose information of each object from a database according to the identity of each object, and the pose information of multiple objects is stored in the database in advance, The flight trajectory passing through each object is determined according to the pose information of the object corresponding to each identity.
  • At least one object may be one or more objects.
  • the control device may determine a flight trajectory passing through the object according to the pose information of the object corresponding to the identity; when the at least one object includes multiple objects, the control device may The pose information of the objects determines the relative pose information between each two objects, and the flight trajectory of all the objects passing through at least one of the objects is determined according to the relative pose information.
  • the pose information includes translation information and rotation information.
  • the relaxation information is in the world coordinate system or the camera coordinate system.
  • the translation information may be coordinate information.
  • the rotation information includes rotation angles of multiple axes, for example, a pitch axis, a skew One or more of a roll axis and a roll axis.
  • the instruction further carries a sequence of traversing each object, and step S202 includes: determining a flight trajectory through each object according to pose information of the object corresponding to each identity and the sequence of traversing each object. .
  • control device determines the flight trajectory passing through each object according to the pose information of the object corresponding to each identity and the order through each object, including: obtaining the order through each object from the instruction; according to each The pose information of the object corresponding to the identity is used to determine the relative pose information of each two objects; and the flight trajectory of all the objects passing through the at least one object is determined according to the relative pose information and the order of crossing each object.
  • the objects that need to pass include Object 1, Object 2, and Object 3.
  • the order of crossing each object is to pass through Object 1, then Object 2, and then Object 3; according to the pose information of Object 1 and Object 2
  • the relative pose information of the object 2 and the object 1 is determined by the pose information, and the relative pose information of the object 2 and the object 3 is determined according to the pose information of the object 2 and the pose information of the object 3;
  • the relative pose information determines that object 2 is located to the left of object 1, and according to the relative pose information of object 2 and object 3 to determine that object 3 is behind object 2, the flight trajectory is after crossing object 1, turning to the left and crossing the object 2, then turn around and pass through Object 3.
  • the order of traversing each object may be set by the user programmatically. For example, in addition to carrying the identity of each object to be traversed in the instruction entered by the user, the user may also traverse each object. Order.
  • the order of traversing each object may default to the order in which the user enters the identity of the object. For example, an object with an identity of 1 is recorded as object 1, an object with an identity of 2 is recorded as object 2, and an object with an identity of 3 is recorded as object 3. If the user enters 1 in sequence on the user interaction interface of the control device , 2, 3, then the order of crossing each object is determined to be through object 1, then through object 2, and finally through object 3.
  • the order of crossing each object is additionally set by the user, or is set by the control device according to the distance between the various objects.
  • the order of traversing each object is set by the control device according to the distance between the various objects. Assume that the objects to be traversed are Object 1, Object 2, Object 3, Object 1 is closest to the current drone, and the object is The distance between 1 and object 2 is the shortest.
  • the order of crossing objects can be through object 1, then object 2, and then object 3.
  • control device may control the drone to traverse each object based on the flight trajectory.
  • the object refers to an obstacle
  • the shape of the obstacle can be a ring or a solid object.
  • passing through the object can mean passing through the center of the ring;
  • passing through the object can mean flying away from the solid object.
  • passing through the object can mean passing from the top, bottom, left, or right of the solid object.
  • the control device receives an instruction to traverse at least one object (that is, an obstacle), and the instruction includes the identity of each object in the at least one object, and determines the traverse according to the pose information of the object associated with each identity. Flight trajectories of all the objects in the at least one object, and controlling the drone to traverse each of the objects based on the flight trajectories. It can be seen that this embodiment can automatically plan the drone's flight trajectory based on the pose information of the object, without the need for the user to manually adjust the drone's flight trajectory, improving the convenience of crossing obstacles, and satisfying users to the The need for automation and intelligence of aircraft crossing obstacles.
  • the user can also adjust the flight trajectory of the drone through the object through simple programming. For example, if the user programs and inputs the instruction that includes the identity identifiers 1, 2, and 4 of the crossing object, the control device can execute the description in the embodiment of the present application. Content to automatically plan the flight trajectory, and based on the flight trajectory to traverse objects with identity 1,2, 4 during the flight, which stimulates the user's programming interest.
  • FIG. 3 is a schematic flowchart of a flight control method according to an embodiment of the present invention.
  • the method may be executed by a control device.
  • the specific explanation of the control device is as described above.
  • the method includes:
  • S201 Receive an instruction to traverse at least one object, where the instruction includes an identity of each object in the at least one object.
  • the control device may control the drone to pass through the object according to the pose information of the object. Specifically, for each object in at least one object, the control device may obtain a reference identifier associated with the object. , According to the reference identifier associated with the object, obtaining the pre-stored relative pose information corresponding to the reference identifier.
  • the pose information includes at least one of relative coordinate information, global coordinate information, world coordinate information, rotation, and displacement vectors.
  • the method further includes: obtaining a reference identifier associated with each object through the shooting device based on the flight trajectory, and the shooting device is set on the drone.
  • the shooting device may be controlled to obtain a reference identifier associated with each object by shooting, or the shooting device may be controlled to obtain a reference identifier associated with each object by means of infrared scanning.
  • the reference mark here may be a two-dimensional code, a random dot matrix, or other markers.
  • controlling the shooting device to obtain a reference identifier associated with each object through shooting includes steps S11 to S19:
  • S12 adjusts the size of the target image.
  • the control device can adjust the size of the target image. Specifically, the control device can use the downsampling method to adjust the size of the target image, or adjust the target image by cropping.
  • the size, that is, the edge area of the target image is cropped, and the adjusted target image is shown in FIG. 4.
  • the control device can use a filtering algorithm to filter the adjusted target image.
  • the filtering algorithm here includes bilateral filtering or Peak filtering and more.
  • the control device can perform grayscale processing on the filtered target image, and use dynamic thresholds to binarize the target image after grayscale processing.
  • the target image of is shown in Figure 5.
  • binarization refers to setting the gray value of the pixels on the image to 0 or 255, which means that the entire image presents obvious visual effects of only black and white.
  • one image includes multiple closed edge contours.
  • the edge points on these edge contours are further fitted into multiple closed regions.
  • the control device Polygonal fitting can be performed on each edge contour using a fitting algorithm to obtain multiple closed regions.
  • the fitting algorithm here includes the Ramer-Douglas-Pucker algorithm and so on.
  • the areas in the white box in the figure are invalid closed areas.
  • the area where the two-dimensional code is located is close to a square (such as a trapezoid or a rhombus) and has a convex edge. Therefore, a plurality of closed areas are not close to a square, and non-convex edges are closed.
  • the area is determined to be an invalid area, and the invalid area is excluded. Further, an area having an area larger than a first area threshold or an area smaller than a second preset area threshold among a plurality of closed areas may be excluded to obtain a valid closed area.
  • the first preset area threshold is larger than the second preset area threshold, and the first preset area threshold and the second preset area threshold can be set according to the size of the two-dimensional code.
  • the shape of the two-dimensional code is a standard square. Due to the shooting angle of the two-dimensional code, the shape of the two-dimensional code obtained by the image is distorted, so that the shape of the two-dimensional code in the target image is not a standard square.
  • the device can perform a perspective transformation on the effective closed area to correct the two-dimensional code. Further, a Dali algorithm or the like is used to perform a binarization process on the corrected closed area to obtain a perspective-transformed image as shown in FIG. 7.
  • the edge of the two-dimensional code is usually set as a black frame. Therefore, the control device can determine whether the edge of the closed region after the perspective transformation is a black frame. If not, determine the closed region after the perspective transformation.
  • the included two-dimensional code is invalid two-dimensional code; otherwise, the two-dimensional code included in the closed region after the perspective transformation is determined as a valid two-dimensional code, and step S18 is performed.
  • the closed region after the perspective transformation is rasterized to obtain an image as shown in FIG. 8.
  • FIG. 8 there are some white grids. It contains a small part of the black area, and some black grids include a small part of the white area, that is, these grids are unstable, and impurities are present. Therefore, the control device can ignore the pixels around the small grid, and only extract the pixels in the middle of each small grid as shown in FIG. 9.
  • the closed area after extracting the pixels is shown in FIG. 10, and the image in FIG. 10 is a two-dimensional code. Further, the control device can recognize the image shown in FIG. 10 and read the information in the image. Among them, the black box in FIG. 10 indicates 1 and the white box indicates 0.
  • the acquisition steps can be S11-S19, or some of them.
  • Step S202 includes: obtaining pre-stored reference identification information that matches the reference identification, and obtaining relative pose information of the reference identification and the object according to the reference identification information.
  • the control device may obtain the relative pose information corresponding to the reference mark according to the reference mark. Specifically, the control device may obtain pre-stored reference mark information that matches the reference mark, and obtain the pre-stored relative position corresponding to the reference mark according to the reference mark information. Posture information.
  • the control device may compare the two-dimensional code obtained by the photographing device with a pre-stored two-dimensional code in the database (that is, the pre-stored reference identification information). If the two-dimensional code matches the pre-stored two-dimensional code, the relative pose information of the reference identifier and the object is obtained according to the pre-stored two-dimensional code.
  • the matching of the two-dimensional code obtained by the photographing device with the pre-stored two-dimensional code may mean that the value of the two-dimensional code obtained by shooting is the same as or approximately the same as the value of the two-dimensional code stored in advance.
  • the process of obtaining relative pose information is a cyclic process, that is, after passing through the current object, the control device can obtain reference identification information that matches the reference identification of the next object, and matches according to the reference identification of the next object.
  • the reference position information corresponding to the reference position information, the relative position information is the relative position information between the next object and the reference identifier associated with the next object, until all objects are passed through, and the acquisition of the relative position ends. Steps for Posture Information.
  • step S203 includes: scanning the two-dimensional code, and obtaining relative pose information corresponding to the pre-stored reference identifier from the two-dimensional code.
  • some information can be stored in the device connected to the QR code.
  • the relative pose information corresponding to the pre-stored reference identifier is stored in the device. Therefore, the control device can scan The dimension code obtains the relative pose information corresponding to the reference identifier that is stored in advance. Specifically, the control device scans the two-dimensional code and obtains the relative pose information corresponding to the reference identifier that is stored in advance from the device connected to the two-dimensional code.
  • the object is a ring-shaped object, and the shape of the ring-shaped object may be circular, square, or the like.
  • the reference identifier is set on the associated object. Specifically, the reference identifier may be set on the bottom, upper, left, or right of the associated object.
  • the reference identifier is a two-dimensional code, and the reference identifier is set at the bottom of the object, the posture relationship between the object and the reference identifier is shown in FIG. 11.
  • the control device may determine the pose information of the object according to the relative pose information corresponding to the reference identifier.
  • the pose information of the object includes at least one of rotation information and displacement information.
  • Rotation may refer to a rotation angle of the object relative to the photographing device
  • displacement information refers to a translation distance of the object relative to the photographing device.
  • the pose information of the reference identifier is determined according to the two-dimensional pixel coordinate points of the reference identifier in the pixel coordinate system, the three-dimensional coordinate points of the camera in the world coordinate system, and internal parameters of the camera. , Determining the pose information of the object according to the pose information of the reference identifier and the relative pose information corresponding to the reference identifier.
  • the control device may determine the pose information of the object based on the pose information of the reference mark and the relative pose information corresponding to the reference mark. Specifically, the control device may use a pose estimation algorithm and two reference marks in the pixel coordinate system. Dimensional pixel coordinate points, three-dimensional coordinate points of the photographing device in the world coordinate system, and internal parameters of the photographing device determine the pose information of the reference mark, and according to the pose information of the reference mark and the relative pose corresponding to the reference mark The information determines the pose information of the object.
  • the pose estimation algorithm may include an N-point perspective algorithm (Perspective-n-Point, PnP).
  • the two-dimensional pixel coordinate points are the characteristic points of the reference mark in the image coordinate system.
  • the world coordinate system is the global coordinate system.
  • the global coordinate system refers to a coordinate system that has been defined in advance.
  • the two-dimensional pixel coordinate point of the reference identifier in the pixel coordinate system is [uv 1] T
  • the three-dimensional coordinate point of the shooting device in the world coordinate system is [x c y c z c 1] T.
  • the internal parameters of the shooting device include: the focal length f, the number of pixels m x and m y per unit distance in the x-axis and y-axis directions, the optical center positions ⁇ 0 and v 0 , and the distortion parameter ⁇ between the x-axis and y-axis,
  • the relationship between the two-dimensional pixel coordinate point of the reference identifier in the pixel coordinate system, the three-dimensional coordinate point of the camera in the world coordinate system, and the internal parameters of the camera can be expressed as the following formula 1-3:
  • k in formula 3 is a constant
  • [x w y w z w 1] in formulas 2 and 3 T is a point in the world coordinate system of the reference mark
  • R is a rotation vector of the reference mark
  • T is a reference mark.
  • Displacement vector according to the above formulas 1-3, the pose information of the reference mark can be solved, that is, the reference mark is the world coordinate information, rotation and displacement vector, and then according to the pose information of the reference mark and the corresponding reference object
  • the relative pose information determines the pose information of the object.
  • the pose of the reference mark is constant, and the drone is in a moving state. Then the control device can calculate the world coordinate information of the same reference mark in different poses. If the calculated world coordinate information is Are all the same, it is determined that the calculated world coordinate information is correct, otherwise it is determined that the calculated world coordinate information is wrong.
  • the control device may generate a flight trajectory through each object according to the pose information of the object corresponding to each identity, and control the drone to traverse based on the flight trajectory. The each object.
  • the control device receives an instruction to traverse at least one object (that is, an obstacle), and the instruction includes an identity identifier of each object in the at least one object; and obtains the reference stored in advance according to the reference identifier associated with the object. Identify the relative pose information corresponding to the identifier, determine the pose information of the object according to the relative pose information corresponding to the reference identifier, and control the drone to pass through the object based on the pose information of the object. It can be seen that this embodiment can automatically plan the flight trajectory of the drone based on the pose information of the object, without the need for a user to manually adjust the flight trajectory of the drone, and more accurately pass through obstacles based on the attitude information of the object. Improve the convenience of crossing obstacles and meet users' needs for automation and intelligence of drones crossing obstacles.
  • the user can also adjust the flight trajectory of the drone through the object through simple programming. For example, if the user programs and inputs the instruction that includes the identity identifiers 1, 2, and 4 of the crossing object, the control device can execute the description in the embodiment of the present application. Content to automatically plan the flight trajectory, and based on the flight trajectory to traverse objects with identity 1,2, 4 during the flight, which stimulates the user's programming interest.
  • an embodiment of the present invention provides another flight control method.
  • the method may be executed by a control device, where the specific explanation of the control device is as follows Previously mentioned.
  • the method includes:
  • control device may control the shooting device to obtain a reference identifier associated with each object by shooting, or control the shooting device to acquire the reference identifier associated with each object by means of infrared scanning.
  • the reference mark may be a two-dimensional code, a random dot matrix, or other markers.
  • the reference identifier can be set on an object, and one or more reference identifiers can be set on an object.
  • a reference identifier is set on an object, for example, only a reference identifier associated with the object is set on each object.
  • the control device can obtain a reference identifier each time, cross or reach the current object, and then obtain the reference identifier associated with the next object until it passes through or reaches all objects To end obtaining the reference identifier.
  • multiple reference identifiers are set on an object. For example, multiple reference identifiers are set on the first object that traverses, and the control device can obtain multiple reference identifiers each time.
  • the database of the control device includes posture information of an object associated with multiple reference identifiers.
  • the control device may obtain a pre-stored reference identifier matching the reference identifier from the database, and obtain an association with the reference identifier according to the pre-stored reference identifier. Pose information of the object.
  • the pose information includes translation information and rotation information.
  • the relaxation information is in the world coordinate system or the camera coordinate system.
  • the translation information may be coordinate information.
  • the rotation information includes rotation angles of multiple axes, for example, a pitch axis, a skew One or more of a roll axis and a roll axis.
  • the reference identifier has a one-to-one correspondence with the object. If at least one reference identifier is obtained, it is determined that the drone needs to cross or reach at least one object, and at least one object may be one or more objects.
  • the control device may determine the flight trajectory of the drone according to the pose information of the object corresponding to the identity; when the at least one object includes multiple objects, the control device may The pose information of the objects determines the relative pose information between each two objects, and the flight trajectory of the drone is determined based on the relative pose information.
  • control device may control the drone to fly based on the flight trajectory.
  • the object may refer to a location where the drone needs to reach, for example, the location may refer to a certain building.
  • step S304 includes: controlling the drone to fly based on the flight trajectory and reach the location where the object is located.
  • the object may refer to an obstacle, and the shape of the obstacle may be a ring or a solid object.
  • Step S304 includes controlling the drone to pass through the object based on the flight trajectory, or controlling the drone to fly around each object based on the flight trajectory.
  • controlling the drone to fly based on the flight trajectory includes controlling the drone to pass through the ring-shaped object based on the flight trajectory, such as through the ring-shaped object.
  • the center of the object is a ring-shaped object.
  • controlling the drone to fly based on the flight trajectory includes controlling the drone to fly around each object based on the flight trajectory, such as from the upper part of the solid object, Bottom, left, or right bypass flight.
  • the control device obtains at least one reference identifier, and for each reference identifier, determines the flight trajectory of the drone according to the pose information of the object associated with each identity, and controls the drone based on the flight trajectory flight. It can be seen that this embodiment can automatically plan the drone's flight trajectory based on the pose information of the object, without the need for the user to manually adjust the drone's flight trajectory, improve the convenience of crossing obstacles, and meet the user's requirements for unmanned The need for automation and intelligence of aircraft crossing obstacles.
  • the flight trajectory can be automatically planned according to the pose information of the object, and the designated position can be automatically reached based on the flight trajectory.
  • the control device includes: at least one processor 401, such as a CPU; and at least one memory 402.
  • the communication device 403, the sensor 404, and the controller 405, the processor 401, the memory 402, and the communication device 403, the sensor 404, and the controller 405 are connected through a bus 406.
  • the communication device 403 may be used to receive flight status information of the drone, and image data and the like captured by the shooting device during the drone flight.
  • the sensor 404 is configured to obtain a reference identifier and the like.
  • the memory 402 is configured to store at least one program instruction, where the at least one program instruction includes a first program instruction and a second program instruction.
  • the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
  • the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
  • the object corresponding to each identity For the object corresponding to each identity, according to the reference identifier associated with the object, obtain pre-stored relative pose information corresponding to the reference identifier, where the relative pose information is that the object is associated with the object Relative pose information between the reference identifiers;
  • a flight trajectory of the drone crossing the object is generated based on the pose information of the object.
  • the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
  • a reference identifier associated with each object is obtained by the photographing device.
  • the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
  • Determining pose information of the reference mark according to a two-dimensional pixel coordinate point of the reference mark in a pixel coordinate system, a three-dimensional coordinate point of the shooting device in a world coordinate system, and internal parameters of the shooting device;
  • the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
  • the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
  • the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
  • a flight trajectory passing through each object is determined according to pose information of the object corresponding to each identity and the sequence of passing through each object.
  • the reference identifier is set on an associated object; the object is a ring-shaped object.
  • the processor 401 may call a second program instruction stored in the memory 402 to perform the following steps:
  • the processor 401 may call a second program instruction stored in the memory 402 to perform the following steps:
  • a computer-readable storage medium stores a computer program, and the computer program is implemented by a processor to implement the present invention, FIG. 2, FIG. 3, and FIG. 12.
  • the flight control method described in the corresponding embodiment can also implement the control device of the corresponding embodiment of the present invention described in FIG. 13, and details are not described herein again.
  • the computer-readable storage medium may be an internal storage unit of the device according to any one of the foregoing embodiments, such as a hard disk or a memory of the device.
  • the computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), and a Secure Digital (SD) card equipped on the device. , Flash card (Flash card) and so on.
  • the computer-readable storage medium may further include both an internal storage unit of the device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the control device.
  • the computer-readable storage medium may also be used to temporarily store data that has been or will be output.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random, Access Memory, RAM).

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

Provided in an embodiment of the present invention are a flight control method, device and system. The method comprises: receiving a command to pass through or bypass one or more objects, the command comprising an identifier of each of the one or more objects; determining, according to pose information of the objects corresponding to the respective identifiers, flight paths along which the objects are to be passed through or bypassed; and controlling an unmanned aerial vehicle to pass through or bypass the respective objects on the basis of the flight paths. The invention enhances convenience of passing through or bypassing obstacles.

Description

一种飞行控制方法、设备、系统及存储介质Flight control method, equipment, system and storage medium 技术领域Technical field
本发明涉及控制技术领域,尤其涉及一种飞行控制方法、设备、系统及存储介质。The present invention relates to the field of control technology, and in particular, to a flight control method, device, system, and storage medium.
背景技术Background technique
随着飞行技术的发展,无人机成为了当前比较热门的研究话题,且被广泛应用于植物保护、航空拍摄、森林火警监控等领域,给人们的生活及工作带来许多便利。由于无人机受飞行高度等因素的限制,在飞行的过程中通常会遇到障碍物,在实际应用中,无人机在飞行的过程中遇到障碍物时,只能通过用户手动操作终端来调整无人机的飞行轨迹,以避开障碍物,可见,这种避开障碍物的方式操作繁琐。With the development of flight technology, drones have become a relatively popular research topic, and are widely used in plant protection, aerial photography, forest fire monitoring and other fields, bringing many conveniences to people's lives and work. Because the drone is restricted by flying height and other factors, obstacles are usually encountered during the flight. In practical applications, when the drone encounters obstacles during the flight, the terminal can only be manually operated by the user. To adjust the flight trajectory of the drone to avoid obstacles, it can be seen that this way of avoiding obstacles is cumbersome to operate.
发明内容Summary of the invention
本发明实施例提供了一种飞行控制方法、设备、系统及存储介质,可基于障碍物的位姿规划无人机的飞行轨迹,以实现自动地避开障碍物。Embodiments of the present invention provide a flight control method, equipment, system, and storage medium, which can plan the flight trajectory of a drone based on the pose of an obstacle to automatically avoid the obstacle.
第一方面,本发明实施例提供了一种飞行控制方法,该方法包括:In a first aspect, an embodiment of the present invention provides a flight control method. The method includes:
接收穿越至少一个对象的指令,所述指令包含所述至少一个对象中每个对象的身份标识;Receiving an instruction to traverse at least one object, the instruction including an identity of each object in the at least one object;
根据所述每个身份标识对应的对象的位姿信息确定穿越所述每个对象的飞行轨迹;Determining a flight trajectory through each object according to pose information of the object corresponding to each identity;
控制所述无人机基于所述飞行轨迹穿越所述每个对象。Controlling the drone to traverse each of the objects based on the flight trajectory.
第二方面,本发明实施例提供了另一种飞行控制方法,该方法包括:In a second aspect, an embodiment of the present invention provides another flight control method, which includes:
获取参考标识;Obtaining a reference identifier;
获取所述参考标识关联的对象的位姿信息;Acquiring pose information of an object associated with the reference identifier;
根据所述对象的位姿信息确定飞行轨迹;Determining a flight trajectory according to the pose information of the object;
控制所述无人机基于所述飞行轨迹飞行。Controlling the drone to fly based on the flight trajectory.
第三方面,本发明实施例提供了一种控制设备,该控制设备包括存储器和处理器;According to a third aspect, an embodiment of the present invention provides a control device, where the control device includes a memory and a processor;
所述存储器,用于存储至少一条程序指令,所述至少一条程序指令包括第一程序指令和第二程序指令。The memory is configured to store at least one program instruction, and the at least one program instruction includes a first program instruction and a second program instruction.
所述处理器,执行所述存储器存储的所述第一程序指令,当所述第一程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the first program instruction stored in the memory, and when the first program instruction is executed, the processor is configured to perform the following steps:
接收穿越至少一个对象的指令,所述指令包含所述至少一个对象中每个对象的身份标识;Receiving an instruction to traverse at least one object, the instruction including an identity of each object in the at least one object;
根据所述每个身份标识对应的对象的位姿信息确定穿越所述每个对象的飞行轨迹;Determining a flight trajectory through each object according to pose information of the object corresponding to each identity;
控制所述无人机基于所述飞行轨迹穿越所述每个对象。Controlling the drone to traverse each of the objects based on the flight trajectory.
所述处理器,执行所述存储器存储的所述第二程序指令,当所述第二程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the second program instruction stored in the memory, and when the second program instruction is executed, the processor is configured to perform the following steps:
获取参考标识;Obtaining a reference identifier;
获取所述参考标识关联的对象的位姿信息;Acquiring pose information of an object associated with the reference identifier;
根据所述对象的位姿信息确定飞行轨迹;Determining a flight trajectory according to the pose information of the object;
控制所述无人机基于所述飞行轨迹飞行。Controlling the drone to fly based on the flight trajectory.
第四方面,本发明实施例提供了一种无人机系统,包括无人机和控制设备;In a fourth aspect, an embodiment of the present invention provides an unmanned aerial vehicle system, including an unmanned aerial vehicle and a control device;
所述控制设备,用于执行如第一方面及第二方面所述的飞行控制方法来为所述无人机规划飞行轨迹。The control device is configured to execute the flight control method according to the first aspect and the second aspect to plan a flight trajectory for the drone.
所述无人机,用于根据所述飞行轨迹飞行,以穿越至少一个对象。The drone is configured to fly according to the flight trajectory to pass through at least one object.
第五方面,本发明实施例提供了一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行第一方面及第二方面所述的飞行控制方法的步骤。According to a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, where the computer program includes program instructions, and the program instructions are executed by a processor The processor is caused to execute the steps of the flight control method according to the first aspect and the second aspect.
第六方面,本发明实施例提供了一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机实现第一方面及第二方面所述的飞行控制方法的步骤。According to a sixth aspect, an embodiment of the present invention provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to implement Steps of the flight control method according to the first aspect and the second aspect.
本发明实施例中,控制设备接收穿越至少一个对象(即障碍物)的指令,该指令包含该至少一个对象中每个对象的身份标识,根据每个身份标识关联的对象的位姿信息确定穿越该至少一个对象中的所有对象的飞行轨迹,控制该无人机基于所述飞行轨迹穿越该每个对象。可见,该实施方式可基于对象的位姿信息自动地规划无人机的飞行轨迹,而不需要用户手动操作来调整无人机的飞行轨迹,满足用户对无人机穿越障碍物的自动化、智能化需求。In the embodiment of the present invention, the control device receives an instruction to traverse at least one object (that is, an obstacle), and the instruction includes the identity of each object in the at least one object, and determines the traverse according to the pose information of the object associated with each identity. Flight trajectories of all the objects in the at least one object, and controlling the drone to traverse each of the objects based on the flight trajectories. It can be seen that this embodiment can automatically plan the flight trajectory of the drone based on the pose information of the object, without the need for the user to manually adjust the flight trajectory of the drone, so as to satisfy the user's automation and intelligence of the drone crossing obstacles Changing needs.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present invention. For those of ordinary skill in the art, other embodiments may be obtained based on these drawings without paying creative effort.
图1是本发明实施例提供的一种无人机系统的结构示意图;FIG. 1 is a schematic structural diagram of an unmanned aerial vehicle system according to an embodiment of the present invention;
图2是本发明实施例提供的一种飞行控制方法的流程示意图;2 is a schematic flowchart of a flight control method according to an embodiment of the present invention;
图3是本发明实施例提供的另一种飞行控制方法的流程示意图;3 is a schematic flowchart of another flight control method according to an embodiment of the present invention;
图4是本发明实施例提供的一种调整后的目标图像的示意图;4 is a schematic diagram of an adjusted target image according to an embodiment of the present invention;
图5是本发明实施例提供的一种二值化后的目标图像的示意图;5 is a schematic diagram of a binarized target image according to an embodiment of the present invention;
图6是本发明实施例提供的一种目标图像的示意图;6 is a schematic diagram of a target image according to an embodiment of the present invention;
图7是本发明实施例提供的一种透视变换后的目标图像的示意图;7 is a schematic diagram of a target image after perspective transformation according to an embodiment of the present invention;
图8是本发明实施例提供的一种栅格化后的目标图像的示意图;8 is a schematic diagram of a rasterized target image according to an embodiment of the present invention;
图9是本发明实施例提供的一种像素提取后的目标图像的示意图;9 is a schematic diagram of a target image after pixel extraction according to an embodiment of the present invention;
图10是本发明实施例提供的一种二维码图像的示意图;10 is a schematic diagram of a two-dimensional code image provided by an embodiment of the present invention;
图11是本发明实施例提供的一种对象与参考标识的位置关系示意图;11 is a schematic diagram of a position relationship between an object and a reference identifier according to an embodiment of the present invention;
图12是本发明实施例提供的又一种飞行控制方法的流程示意图;12 is a schematic flowchart of another flight control method according to an embodiment of the present invention;
图13是本发明实施例提供的一种控制设备的结构示意图。FIG. 13 is a schematic structural diagram of a control device according to an embodiment of the present invention.
具体实施方式detailed description
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。另外,在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present invention will be described in detail with reference to the drawings. In the case of no conflict, it is obvious that 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 creative efforts shall fall within the protection scope of the present invention. In addition, without conflict, the following embodiments and features in the embodiments can be combined with each other.
本发明使用的术语仅仅是出于描述特定实施例的目的,而非限制本发明。本发明和权利要求书所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其它含义。应当理解,本文中使用的术语“和/或”是指包含一个或者多个相关联的列出项目的任何或所有可能组合。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms "a," "the," and "the" as used in this invention and in the claims are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be understood that the term "and / or" as used herein refers to any or all possible combinations that include one or more of the associated listed items.
本发明实施例提供的飞行控制方法可以由一种控制设备执行,该控制设备可以设置在无人机上,也可以设置在地面端的终端(如遥控器)上。该飞行控制方法可以应用于基于无人机的飞行控制,在其他实施例中,也可以应用于能够自主移动的机器人等可运动设备的飞行控制,下面以应用于无人机的飞行控制方法进行举例说明。The flight control method provided by the embodiment of the present invention may be executed by a control device, and the control device may be provided on a drone, or may be provided on a ground terminal (such as a remote controller). The flight control method can be applied to drone-based flight control. In other embodiments, it can also be applied to flight control of a mobile device such as a robot capable of autonomous movement. The following is performed using a flight control method applied to a drone. for example.
实践中,无人机在飞行的过程中遇到障碍物时,只能通过用户手动操作才能使无人机避开障碍物,因此,避开障碍物的方式操作繁琐。为了解决该问题,本发明实施例提供一种飞行控制方法,该飞行控制方法中,控制设备接收穿越至少一个对象(即障碍物)的指令,该指令包含该至少一个对象中每个对象的身份标识,根据每个身份标识关联的对象的位姿信息确定穿越该至少一个对象中的所有对象的飞行轨迹,控制该无人机基于所述飞行轨迹穿越该每个对象。可见,该实施方式可基于对象的位姿信息自动地规划无人机的飞行轨迹,而不需要用户手动操作来调整无人机的飞行轨迹,满足用户对无人机穿越障碍物的自动化、智能化需求。In practice, when an unmanned aerial vehicle encounters an obstacle during flight, it can only be avoided by the user's manual operation. Therefore, the way to avoid the obstacle is cumbersome. In order to solve the problem, an embodiment of the present invention provides a flight control method. In the flight control method, a control device receives an instruction to cross at least one object (that is, an obstacle), and the instruction includes the identity of each object in the at least one object. Identification, determining flight trajectories of passing through all the objects in the at least one object according to pose information of the objects associated with each identity, and controlling the drone to traverse each of the objects based on the flight trajectories. It can be seen that this embodiment can automatically plan the flight trajectory of the drone based on the pose information of the object, without the need for the user to manually adjust the flight trajectory of the drone, so as to satisfy the user's automation and intelligence of the drone crossing obstacles. Changing needs.
另外,用户还可以通过简单编程实现对无人机穿越对象的飞行轨迹的精准调整,比如用户编程输入包括穿越对象的身份标识1、2、4的指令,则控制设备可以执行本申请实施例所述的内容来自动规划飞 行轨迹,并基于飞行轨迹飞行过程中穿越身份标识为1、2、4的对象,从而激发用户的编程兴趣。In addition, the user can also accurately adjust the flight trajectory of the drone through the object through simple programming. For example, if the user programs and inputs the instruction that includes the identity identifiers 1, 2, and 4 of the passing object, the control device can execute the instructions in the embodiment of this application. The content described above is used to automatically plan the flight trajectory, and based on the flight trajectory to fly through the objects whose identity is 1, 2, 4 to stimulate the user's programming interest.
本发明实施例的另一种实施方式包括:控制设备获取至少一个参考标识,针对每个参考标识,根据每个身份标识关联的对象的位姿信息确定无人机的飞行轨迹,控制该无人机基于所述飞行轨迹飞行。可见,该实施方式可基于对象的位姿信息自动地规划无人机的飞行轨迹,而不需要用户手动操作来调整无人机的飞行轨迹,提高穿越障碍物的便捷性,满足用户对无人机穿越障碍物的自动化、智能化需求。Another implementation manner of the embodiment of the present invention includes: the control device acquires at least one reference identifier, and for each reference identifier, determines the flight trajectory of the drone according to the pose information of the object associated with each identity identifier, and controls the drone The aircraft flies based on the flight trajectory. It can be seen that this embodiment can automatically plan the drone's flight trajectory based on the pose information of the object, without the need for the user to manually adjust the drone's flight trajectory, improve the convenience of crossing obstacles, and meet the user's requirements for unmanned The need for automation and intelligence of aircraft crossing obstacles.
另外,可根据对象的位姿信息自动地规划飞行轨迹,基于飞行轨迹可以自动地到达指定位置。In addition, the flight trajectory can be automatically planned according to the pose information of the object, and the designated position can be automatically reached based on the flight trajectory.
为了便于理解本申请所述的飞行控制方法,本申请实施例还提供一种无人机系统,即以图1所示的无人机系统进行阐述。In order to facilitate understanding of the flight control method described in this application, an embodiment of the present application also provides a drone system, that is, the drone system shown in FIG. 1 is used for explanation.
请参见图1,图1是本发明实施例提供的一种无人机系统的结构示意图。所述系统包括:控制设备51和无人机52。所述控制设备51可以为无人机的控制终端,具体地可以为遥控器、智能手机、平板电脑、膝上型电脑、地面站、穿戴式设备(手表、手环)中的一种或多种,所述无人机52可以是旋翼型无人机,例如四旋翼无人机、六旋翼无人机、八旋翼无人机,也可以是固定翼无人机。无人机包括动力系统521,动力系统用于为无人机提供飞行动力,其中,动力系统521包括螺旋桨、电机、电调中的一种或多种,无人机还可以包括云台522以及拍摄装置523,拍摄装置523通过云台522搭载于无人机的主体上。拍摄装置用于在无人机的飞行过程中进行图像或视频拍摄,包括但不限于多光谱成像仪、高光谱成像仪、可见光相机及红外相机等,云台为多轴传动及增稳系统,云台电机通过调整转动轴的转动角度来对成像设备的拍摄角度进行补偿,并通过设置适当的缓冲机构来防止或减小成像设备的抖动。Please refer to FIG. 1, which is a schematic structural diagram of an unmanned aerial vehicle system according to an embodiment of the present invention. The system includes a control device 51 and a drone 52. The control device 51 may be a control terminal of a drone, and may specifically be one or more of a remote controller, a smart phone, a tablet computer, a laptop computer, a ground station, and a wearable device (watch, bracelet). For example, the drone 52 may be a rotary wing drone, such as a quad-rotor drone, a six-rotor drone, an eight-rotor drone, or a fixed-wing drone. The drone includes a power system 521, which is used to provide flying power for the drone. The power system 521 includes one or more of a propeller, a motor, and an ESC. The drone may also include a gimbal 522 and The imaging device 523 is mounted on the main body of the drone through the gimbal 522. The shooting device is used to take images or videos during the flight of the drone, including but not limited to multispectral imagers, hyperspectral imagers, visible light cameras, and infrared cameras. The gimbal is a multi-axis transmission and stabilization system. The gimbal motor compensates for the shooting angle of the imaging device by adjusting the rotation angle of the rotating shaft, and prevents or reduces the shake of the imaging device by setting an appropriate buffer mechanism.
在一个实施例中,该控制设备51可以配置与用户交互的交互装置,该交互装置可以是触摸显示屏、键盘、按键、摇杆、波轮中的一种或多种,该交互装置上可以提供用户界面,用户可以在控制设备 51的用户界面上输入穿越至少一个对象的指令,如输入至少一个对象的身份标识等等,该控制设备51在接收到该指令之后,控制设备51可以根据每个对象的标识获取每个对象的位姿信息,并根据每个对象的位姿信息确定无人机穿越至少一个对象中的所有对象的飞行轨迹,控制无人机52基于该飞行轨迹穿越每个对象。In one embodiment, the control device 51 may be configured with an interaction device for interacting with a user. The interaction device may be one or more of a touch display screen, a keyboard, a button, a joystick, and a pulsator. Provide a user interface. The user can enter an instruction to traverse at least one object on the user interface of the control device 51, such as entering the identity of the at least one object. After the control device 51 receives the instruction, the control device 51 can The identification of each object obtains the pose information of each object, and determines the flight trajectory of the drone crossing all the objects in at least one object according to the pose information of each object, and controls the drone 52 to traverse each based on the flight trajectory. Object.
请参见图2,图2是本发明实施例提供的一种飞行控制方法的流程示意图,所述方法可以由控制设备执行,其中,控制设备的具体解释如前所述。如图2所示,该飞行控制方法可以包括如下步骤。Please refer to FIG. 2, which is a schematic flowchart of a flight control method according to an embodiment of the present invention. The method may be executed by a control device, where the specific explanation of the control device is as described above. As shown in FIG. 2, the flight control method may include the following steps.
S101、接收穿越至少一个对象的指令,该指令包含该至少一个对象中每个对象的身份标识。S101. Receive an instruction to traverse at least one object, where the instruction includes an identity of each object in the at least one object.
本发明实施例中,控制设备可以提供一个用户交互界面,用户可以根据需求在用户交互界面上输入穿越一个或多个对象的指令。比如,用户可以通过点击界面以输入穿越至少一个对象的指令,该指令包括至少一个对象中每个对象的身份标识,控制设备接收用户输入穿越至少一个对象的指令,并根据该指令包括的对象的身份标识,确定无人机需要穿越的对象。In the embodiment of the present invention, the control device may provide a user interaction interface, and the user may input an instruction to traverse one or more objects on the user interaction interface according to requirements. For example, a user may click an interface to input an instruction to traverse at least one object, the instruction includes an identity of each object in the at least one object, and the control device receives the user's input instruction to traverse at least one object, and according to the object included in the instruction, Identity, identifying the objects the drone needs to traverse.
其中,对象的身份标识为唯一能够标识该对象的标识,身份标识可以是由数字、字符、文字或字母中的至少一种组成。The identity of an object is an identity that can uniquely identify the object, and the identity may be composed of at least one of a number, a character, a character, or a letter.
S102、根据每个身份标识对应的对象的位姿信息确定穿越每个对象的飞行轨迹。S102. Determine a flight trajectory that passes through each object according to pose information of the object corresponding to each identity.
本发明实施例中,在确定需要穿越的对象后,控制设备可以根据每个对象的身份标识从数据库中获取每个对象的位姿信息,该数据库中预先存储了多个对象的位姿信息,并根据每个身份标识对应的对象的位姿信息确定穿越该每个对象的飞行轨迹。In the embodiment of the present invention, after determining the objects to be traversed, the control device may obtain the pose information of each object from a database according to the identity of each object, and the pose information of multiple objects is stored in the database in advance, The flight trajectory passing through each object is determined according to the pose information of the object corresponding to each identity.
其中,至少一个对象可以为一个或多个对象。当至少一个对象中仅包括一个对象时,控制设备可以根据该身份标识对应的对象的位姿信息确定穿越该对象的飞行轨迹;当该至少一个对象中包括多个对象时,控制设备可以根据各个对象的位姿信息确定每两个对象之间的相对位姿信息,根据相对位姿信息确定穿越至少一个对象中的所有对象 的飞行轨迹。Wherein, at least one object may be one or more objects. When at least one object includes only one object, the control device may determine a flight trajectory passing through the object according to the pose information of the object corresponding to the identity; when the at least one object includes multiple objects, the control device may The pose information of the objects determines the relative pose information between each two objects, and the flight trajectory of all the objects passing through at least one of the objects is determined according to the relative pose information.
其中,位姿信息包括平移信息和旋转信息,该平息信息是在世界坐标系下或者相机坐标系下,平移信息可以为坐标信息,旋转信息包括多个轴的旋转角度,例如:俯仰轴、偏航轴和横滚轴中的一个或者多个。在一个实施例中,该指令还携带穿越每个对象的顺序,步骤S202,包括:根据每个身份标识对应的对象的位姿信息及穿越每个对象的顺序确定穿越该每个对象的飞行轨迹。Among them, the pose information includes translation information and rotation information. The relaxation information is in the world coordinate system or the camera coordinate system. The translation information may be coordinate information. The rotation information includes rotation angles of multiple axes, for example, a pitch axis, a skew One or more of a roll axis and a roll axis. In one embodiment, the instruction further carries a sequence of traversing each object, and step S202 includes: determining a flight trajectory through each object according to pose information of the object corresponding to each identity and the sequence of traversing each object. .
其中,控制设备根据每个身份标识对应的对象的位姿信息及穿越每个对象的顺序确定穿越该每个对象的飞行轨迹,包括:从指令中获取穿越该每个对象的顺序;根据每个身份标识对应的对象的位姿信息,确定每两个对象的相对位姿信息;根据相对位姿信息及穿越每个对象的顺序确定穿越该至少一个对象中的所有对象的飞行轨迹。Wherein, the control device determines the flight trajectory passing through each object according to the pose information of the object corresponding to each identity and the order through each object, including: obtaining the order through each object from the instruction; according to each The pose information of the object corresponding to the identity is used to determine the relative pose information of each two objects; and the flight trajectory of all the objects passing through the at least one object is determined according to the relative pose information and the order of crossing each object.
举例来说,需要穿越的对象包括对象1、对象2和对象3,穿越每个对象的顺序为先穿越对象1,再穿越对象2,最后穿越对象3;根据对象1的位姿信息和对象2的位姿信息确定对象2与对象1的相对位姿信息,并根据对象2的位姿信息和对象3的位姿信息确定对象2与对象3的相对位姿信息;若根据对象2与对象1的相对位姿信息确定对象2位于对象1的左边,根据对象2与对象3的相对位姿信息确定对象3位于对象2的后面,则该飞行轨迹为穿越对象1后,向左边转并穿越对象2,然后调头并穿越对象3。For example, the objects that need to pass include Object 1, Object 2, and Object 3. The order of crossing each object is to pass through Object 1, then Object 2, and then Object 3; according to the pose information of Object 1 and Object 2 The relative pose information of the object 2 and the object 1 is determined by the pose information, and the relative pose information of the object 2 and the object 3 is determined according to the pose information of the object 2 and the pose information of the object 3; The relative pose information determines that object 2 is located to the left of object 1, and according to the relative pose information of object 2 and object 3 to determine that object 3 is behind object 2, the flight trajectory is after crossing object 1, turning to the left and crossing the object 2, then turn around and pass through Object 3.
其中,在一个实施方式中,穿越每个对象的顺序可以为用户通过编程设定的,比如,用户编程输入的指令中除了携带待穿越的各对象的身份标识外,还可以携带穿越每个对象的顺序。Among them, in one embodiment, the order of traversing each object may be set by the user programmatically. For example, in addition to carrying the identity of each object to be traversed in the instruction entered by the user, the user may also traverse each object. Order.
在一个实施方式中,穿越每个对象的顺序可以默认为用户输入对象的身份标识的顺序。比如,将身份标识为1的对象记为对象1,将身份标识为2的对象记为对象2,身份标识为3的对象记为对象3;若用户在控制设备的用户交互界面上依次输入1,2,3,则确定穿越每个对象的顺序为先穿越对象1,再穿越对象2,最后穿越对象3。In one embodiment, the order of traversing each object may default to the order in which the user enters the identity of the object. For example, an object with an identity of 1 is recorded as object 1, an object with an identity of 2 is recorded as object 2, and an object with an identity of 3 is recorded as object 3. If the user enters 1 in sequence on the user interaction interface of the control device , 2, 3, then the order of crossing each object is determined to be through object 1, then through object 2, and finally through object 3.
在一个实施方式中,穿越每个对象的顺序为用户额外设置的,或者是由控制设备根据各个对象的之间的距离设置的。比如,穿越每个 对象的顺序是由控制设备根据各个对象之间的距离设置的,假设需要穿越的对象为对象1、对象2、对象3,对象1与无人机当前的距离最近,且对象1与对象2的距离最近,则穿越对象的顺序可以为先穿越对象1,再穿越对象2,最后穿越对象3。In one embodiment, the order of crossing each object is additionally set by the user, or is set by the control device according to the distance between the various objects. For example, the order of traversing each object is set by the control device according to the distance between the various objects. Assume that the objects to be traversed are Object 1, Object 2, Object 3, Object 1 is closest to the current drone, and the object is The distance between 1 and object 2 is the shortest. The order of crossing objects can be through object 1, then object 2, and then object 3.
S103、控制无人机基于该飞行轨迹穿越每个对象。S103. Control the drone to traverse each object based on the flight trajectory.
本发明实施例中,在获取到飞行轨迹后,控制设备可以控制无人机基于该飞行轨迹穿越每个对象。In the embodiment of the present invention, after the flight trajectory is obtained, the control device may control the drone to traverse each object based on the flight trajectory.
其中,对象是指障碍物,障碍物的形状可以是环状,也可以是指实心的物体,当障碍物是环状物体时,穿越对象可以是指穿过环状物体的中心;当障碍物是实心的物体时,穿越对象可以是指避开实心物体飞行,如穿越对象可以是指从实心物体的上部、底部、左边或右边穿过。Among them, the object refers to an obstacle, and the shape of the obstacle can be a ring or a solid object. When the obstacle is a ring, passing through the object can mean passing through the center of the ring; When it is a solid object, passing through the object can mean flying away from the solid object. For example, passing through the object can mean passing from the top, bottom, left, or right of the solid object.
本发明实施例中,控制设备接收穿越至少一个对象(即障碍物)的指令,该指令包含该至少一个对象中每个对象的身份标识,根据每个身份标识关联的对象的位姿信息确定穿越该至少一个对象中的所有对象的飞行轨迹,控制该无人机基于所述飞行轨迹穿越该每个对象。可见,该实施方式可基于对象的位姿信息自动地规划无人机的飞行轨迹,而不需要用户手动操作来调整无人机的飞行轨迹,提高穿越障碍物的便捷性,满足用户对无人机穿越障碍物的自动化、智能化需求。In the embodiment of the present invention, the control device receives an instruction to traverse at least one object (that is, an obstacle), and the instruction includes the identity of each object in the at least one object, and determines the traverse according to the pose information of the object associated with each identity. Flight trajectories of all the objects in the at least one object, and controlling the drone to traverse each of the objects based on the flight trajectories. It can be seen that this embodiment can automatically plan the drone's flight trajectory based on the pose information of the object, without the need for the user to manually adjust the drone's flight trajectory, improving the convenience of crossing obstacles, and satisfying users to the The need for automation and intelligence of aircraft crossing obstacles.
另外,用户还可以通过简单编程实现对无人机穿越对象的飞行轨迹的调整,比如用户编程输入包括穿越对象的身份标识1、2、4的指令,则控制设备可以执行本申请实施例所述的内容来自动规划飞行轨迹,并基于飞行轨迹飞行过程中穿越身份标识为1、2、4的对象,从而激发用户的编程兴趣。In addition, the user can also adjust the flight trajectory of the drone through the object through simple programming. For example, if the user programs and inputs the instruction that includes the identity identifiers 1, 2, and 4 of the crossing object, the control device can execute the description in the embodiment of the present application. Content to automatically plan the flight trajectory, and based on the flight trajectory to traverse objects with identity 1,2, 4 during the flight, which stimulates the user's programming interest.
请参见图3,图3是本发明实施例提供的一种飞行控制方法的流程示意图,所述方法可以由控制设备执行,其中,控制设备的具体解释如前所述。该方法包括:Please refer to FIG. 3. FIG. 3 is a schematic flowchart of a flight control method according to an embodiment of the present invention. The method may be executed by a control device. The specific explanation of the control device is as described above. The method includes:
S201、接收穿越至少一个对象的指令,该指令包含该至少一个对象中每个对象的身份标识。S201. Receive an instruction to traverse at least one object, where the instruction includes an identity of each object in the at least one object.
S202、针对该每个对象,根据该对象关联的参考标识,获取预先存储的该参考标识对应的相对位姿信息,该相对位姿信息为该对象与该对象关联的所述参考标识之间的相对位姿信息。S202. For each object, according to the reference identifier associated with the object, obtain relative pose information corresponding to the reference identifier that is stored in advance, and the relative pose information is between the object and the reference identifier associated with the object. Relative pose information.
为了精准地穿过每个对象,控制设备可以根据对象的位姿信息控制无人机穿过该对象,具体的针对至少一个对象中的每个对象,控制设备可以获取与该对象关联的参考标识,根据该对象关联的参考标识,获取预先存储的该参考标识对应的相对位姿信息。In order to pass through each object accurately, the control device may control the drone to pass through the object according to the pose information of the object. Specifically, for each object in at least one object, the control device may obtain a reference identifier associated with the object. , According to the reference identifier associated with the object, obtaining the pre-stored relative pose information corresponding to the reference identifier.
其中,位姿信息包括相对坐标信息、全局坐标信息、世界坐标信息、旋转及位移向量中的至少一种。The pose information includes at least one of relative coordinate information, global coordinate information, world coordinate information, rotation, and displacement vectors.
在步骤S202之前,还包括:基于该飞行轨迹,通过该拍摄装置获取该每个对象关联的参考标识,该拍摄装置被设置于无人机上。Before step S202, the method further includes: obtaining a reference identifier associated with each object through the shooting device based on the flight trajectory, and the shooting device is set on the drone.
在无人机基于该飞行轨迹飞行的过程中,可以控制拍摄装置进行拍摄得到获取每个对象关联的参考标识,或者控制拍摄装置通过红外扫描的方式获取每个对象关联的参考标识。此处参考标识可以是二维码,可以是随机点阵,也可以是指其他标记(Marker)。During the flight of the drone based on the flight trajectory, the shooting device may be controlled to obtain a reference identifier associated with each object by shooting, or the shooting device may be controlled to obtain a reference identifier associated with each object by means of infrared scanning. The reference mark here may be a two-dimensional code, a random dot matrix, or other markers.
当与对象关联的参考标识为二维码时,控制拍摄装置进行拍摄得到获取每个对象关联的参考标识包括步骤S11~S19:When the reference identifier associated with the object is a two-dimensional code, controlling the shooting device to obtain a reference identifier associated with each object through shooting includes steps S11 to S19:
S11、控制拍摄装置针对对象关联的参考标识进行拍摄,得到目标图像。S11. Control the shooting device to shoot the reference mark associated with the object to obtain a target image.
S12调整目标图像的大小。S12 adjusts the size of the target image.
为了去除目标图像中的噪点,以减少后续计算量,控制设备可以调整目标图像的大小,具体的,控制设备可以采用降采样方法来调整目标图像的大小,或者通过剪裁的方法来调整目标图像的大小,即对目标图像的边缘区域裁剪掉,调整后的目标图像如图4所示。In order to remove the noise in the target image and reduce the amount of subsequent calculations, the control device can adjust the size of the target image. Specifically, the control device can use the downsampling method to adjust the size of the target image, or adjust the target image by cropping. The size, that is, the edge area of the target image is cropped, and the adjusted target image is shown in FIG. 4.
S13、对调整后的目标图像进行滤波处理。S13. Perform filtering processing on the adjusted target image.
为了进一步滤除噪点,以使图像平滑,并使目标图像中的二维码的边缘更加锐利,控制设备可以利用滤波算法对调整后的目标图像进行滤波处理,此处的滤波算法包括双边滤波或峰值滤波等等。In order to further filter out noises to make the image smooth and the edges of the QR code in the target image sharper, the control device can use a filtering algorithm to filter the adjusted target image. The filtering algorithm here includes bilateral filtering or Peak filtering and more.
S14、对滤波处理后的目标图像进行二值化处理。S14. Binarize the target image after the filtering process.
为了提取目标图像中的关键信息(如二维码),控制设备可以对 滤波处理后的目标图像进行灰度处理,并使用动态阈值对灰度处理后目标图像进行二值化,二值化后的目标图像如图5所示,此处二值化是指将图像上的像素点的灰度值设置为0或255,也就是将整个图像呈现出明显的只有黑和白的视觉效果。In order to extract key information (such as a QR code) in the target image, the control device can perform grayscale processing on the filtered target image, and use dynamic thresholds to binarize the target image after grayscale processing. The target image of is shown in Figure 5. Here, binarization refers to setting the gray value of the pixels on the image to 0 or 255, which means that the entire image presents obvious visual effects of only black and white.
S15、从二值化处理后的目标图像中获取闭合区域。S15. Obtain a closed region from the target image after the binarization process.
在二值化后的目标图像上查找闭合的边缘轮廓,通常一张图像中包括多个闭合的边缘轮廓,进一步将这些边缘轮廓上的边缘点拟合成多个闭合区域,具体的,控制设备可以采用拟合算法对每个边缘轮廓进行多边形拟合,得到多个闭合区域。此处拟合算法包括拉默-道格拉斯-普克算法(Ramer Douglas Peucker algorithm)等等。Find closed edge contours on the binarized target image. Usually, one image includes multiple closed edge contours. The edge points on these edge contours are further fitted into multiple closed regions. Specifically, the control device Polygonal fitting can be performed on each edge contour using a fitting algorithm to obtain multiple closed regions. The fitting algorithm here includes the Ramer-Douglas-Pucker algorithm and so on.
S16、从多个闭合区域中获取有效闭合区域。S16. Obtain an effective closed area from the multiple closed areas.
由于多个闭合区域中存在无效的闭合区域,因此需要对多个闭合区域进行筛选,筛除无效闭合区域,得到有效闭合区域,如图6所示,图中白色框中的区域为无效闭合区域。具体的,根据二维码的形状可知,二维码所在的区域是接近方形(如梯形或菱形)且为凸边形,因此将多个闭合区域中不接近方形,及非凸边形的闭合区域确定为无效区域,排除无效区域,进一步,还可以对多个闭合区域中面积大于第一面积阈值或面积小于第二预设面积阈值的区域进行排除,得到有效闭合区域。Because there are invalid closed areas in multiple closed areas, multiple closed areas need to be screened to filter out the invalid closed areas to obtain valid closed areas. As shown in Figure 6, the areas in the white box in the figure are invalid closed areas. . Specifically, according to the shape of the two-dimensional code, it can be known that the area where the two-dimensional code is located is close to a square (such as a trapezoid or a rhombus) and has a convex edge. Therefore, a plurality of closed areas are not close to a square, and non-convex edges are closed. The area is determined to be an invalid area, and the invalid area is excluded. Further, an area having an area larger than a first area threshold or an area smaller than a second preset area threshold among a plurality of closed areas may be excluded to obtain a valid closed area.
其中,第一预设面积阈值大于第二预设面积阈值,第一预设面积阈值和第二预设面积阈值可以根据二维码的大小设置。The first preset area threshold is larger than the second preset area threshold, and the first preset area threshold and the second preset area threshold can be set according to the size of the two-dimensional code.
S17、对有效闭合区域进行透视变换。S17. Perform perspective transformation on the effective closed area.
通常二维码的形状为标准的正方形,由于拍摄二维码的拍摄角度的问题,使拍摄得到二维码的形状发生畸变,使得目标图像中的二维码的形状不是标准的正方形,因此控制设备可以对有效闭合区域进行透视变换以对二维码进行矫正,进一步,采用大律算法等对矫正后的闭合区域进行二值化处理,得到透视变换后的图像如图7所示。Generally, the shape of the two-dimensional code is a standard square. Due to the shooting angle of the two-dimensional code, the shape of the two-dimensional code obtained by the image is distorted, so that the shape of the two-dimensional code in the target image is not a standard square. The device can perform a perspective transformation on the effective closed area to correct the two-dimensional code. Further, a Dali algorithm or the like is used to perform a binarization process on the corrected closed area to obtain a perspective-transformed image as shown in FIG. 7.
S18、判断二维码的有效性。S18. Determine the validity of the two-dimensional code.
为了便于识别二维码,通常将二维码的边缘设置为黑色边框,因此,控制设备可以判断上述透视变换后的闭合区域的边缘是否为黑色 边框,若不是,确定该透视变换后的闭合区域包含的二维码为无效二维;否则,确定该透视变换后的闭合区域包含的二维码作为有效二维码,并执行步骤S18。In order to easily identify the two-dimensional code, the edge of the two-dimensional code is usually set as a black frame. Therefore, the control device can determine whether the edge of the closed region after the perspective transformation is a black frame. If not, determine the closed region after the perspective transformation. The included two-dimensional code is invalid two-dimensional code; otherwise, the two-dimensional code included in the closed region after the perspective transformation is determined as a valid two-dimensional code, and step S18 is performed.
S19、提取二维码的信息。S19. Extract the information of the two-dimensional code.
当确定该透视变换后的闭合区域包含的二维码为有效二维码时,将透视变换后的闭合区域栅格化,得到如图8所示的图像,由图8可知,有的白色格子中包含小部分黑色区域,有的黑色格子中包括小部分白色区域,即这些格子具有不稳定性,其中存在杂质。因此控制设备可以忽略小格子周围的像素,只提取如图9中的每个小格子中间的像素,提取像素后的闭合区域如图10所示,图10中的图像就为二维码。进一步,控制设备可以对如图10所示的图像进行识别,读取图像中的信息。其中,图10中黑色框表示1,白色框表示0。获取步骤可以是S11-S19,也可以是其中的部分步骤。When it is determined that the two-dimensional code included in the closed region after the perspective transformation is a valid two-dimensional code, the closed region after the perspective transformation is rasterized to obtain an image as shown in FIG. 8. According to FIG. 8, there are some white grids. It contains a small part of the black area, and some black grids include a small part of the white area, that is, these grids are unstable, and impurities are present. Therefore, the control device can ignore the pixels around the small grid, and only extract the pixels in the middle of each small grid as shown in FIG. 9. The closed area after extracting the pixels is shown in FIG. 10, and the image in FIG. 10 is a two-dimensional code. Further, the control device can recognize the image shown in FIG. 10 and read the information in the image. Among them, the black box in FIG. 10 indicates 1 and the white box indicates 0. The acquisition steps can be S11-S19, or some of them.
步骤S202包括:获取预先存储的与该参考标识相匹配的参考标识信息,根据该参考标识信息获取该参考标识与对象的相对位姿信息。Step S202 includes: obtaining pre-stored reference identification information that matches the reference identification, and obtaining relative pose information of the reference identification and the object according to the reference identification information.
控制设备可以根据参考标识获取该参考标识对应的相对位姿信息,具体的,获取预先存储的与该参考标识相匹配的参考标识信息,根据该参考标识信息获取预先存储的该参考标识对应的相对位姿信息。The control device may obtain the relative pose information corresponding to the reference mark according to the reference mark. Specifically, the control device may obtain pre-stored reference mark information that matches the reference mark, and obtain the pre-stored relative position corresponding to the reference mark according to the reference mark information. Posture information.
举例来说,参考标识为二维码,控制设备可以通过拍摄装置获取到的二维码与数据库中预先存储的二维码(即预先存储的参考标识信息)进行对比,若拍摄装置获取到的二维码与预先存储的二维码匹配,则根据预先存储的二维码获取该参考标识与对象的相对位姿信息。For example, if the reference identifier is a two-dimensional code, the control device may compare the two-dimensional code obtained by the photographing device with a pre-stored two-dimensional code in the database (that is, the pre-stored reference identification information). If the two-dimensional code matches the pre-stored two-dimensional code, the relative pose information of the reference identifier and the object is obtained according to the pre-stored two-dimensional code.
其中,拍摄装置获取到的二维码与预先存储的二维码匹配可以是指拍摄得到二维码的值与预先存储的二维码的值相同或近似相同。The matching of the two-dimensional code obtained by the photographing device with the pre-stored two-dimensional code may mean that the value of the two-dimensional code obtained by shooting is the same as or approximately the same as the value of the two-dimensional code stored in advance.
其中,获取相对位姿信息的过程是一个循环的过程,即当穿越了当前的对象后,控制设备可以获取与下一对象的参考标识匹配的参考标识信息,根据与下一对象的参考标识匹配的参考标识信息获取参考信息对应的位姿信息,该相对位姿信息为下一个对象与该下一个对象关联的参考标识之间的相对位姿信息,直到穿越所有的对象,结束执 行获取相对位姿信息的步骤。The process of obtaining relative pose information is a cyclic process, that is, after passing through the current object, the control device can obtain reference identification information that matches the reference identification of the next object, and matches according to the reference identification of the next object. The reference position information corresponding to the reference position information, the relative position information is the relative position information between the next object and the reference identifier associated with the next object, until all objects are passed through, and the acquisition of the relative position ends. Steps for Posture Information.
当参考标识为二维码时,步骤S203包括:扫描二维码,并从二维码中获取预先存储的参考标识对应的相对位姿信息。When the reference identifier is a two-dimensional code, step S203 includes: scanning the two-dimensional code, and obtaining relative pose information corresponding to the pre-stored reference identifier from the two-dimensional code.
为了降低控制设备存储信息的压力,可以将某些信息存储至接二维码的设备中,如将预先存储的参考标识对应的相对位姿信息存储该设备中,因此,控制设备可以通过扫描二维码获取预先存储的所述参考标识对应的相对位姿信息,具体的,控制设备扫描二维码,并从接二维码的设备中获取预先存储的参考标识对应的相对位姿信息。In order to reduce the pressure on the control device to store information, some information can be stored in the device connected to the QR code. For example, the relative pose information corresponding to the pre-stored reference identifier is stored in the device. Therefore, the control device can scan The dimension code obtains the relative pose information corresponding to the reference identifier that is stored in advance. Specifically, the control device scans the two-dimensional code and obtains the relative pose information corresponding to the reference identifier that is stored in advance from the device connected to the two-dimensional code.
在一个实施例中,该对象为环状物体,环状物体的形状可以为圆形或方形等等。参考标识被设置在关联的对象上,具体的,该参考标识可以设置在关联的对象的底部、上部、左边或右边等。In one embodiment, the object is a ring-shaped object, and the shape of the ring-shaped object may be circular, square, or the like. The reference identifier is set on the associated object. Specifically, the reference identifier may be set on the bottom, upper, left, or right of the associated object.
举例来说,假设该对象为圆环(即圆形环状物体),参考标识为二维码,参考标识被设置在对象的底部,则对象与参考标识的位姿关系如图11所示。For example, assuming that the object is a ring (that is, a circular ring-shaped object), the reference identifier is a two-dimensional code, and the reference identifier is set at the bottom of the object, the posture relationship between the object and the reference identifier is shown in FIG. 11.
S203、根据参考标识对应的相对位姿信息确定对象的位姿信息。S203. Determine pose information of the object according to the relative pose information corresponding to the reference identifier.
本发明实施例中,在获取到参考标识对应的相对位姿信息后,控制设备可以根据参考标识对应的相对位姿信息确定对象的位姿信息。In the embodiment of the present invention, after acquiring the relative pose information corresponding to the reference identifier, the control device may determine the pose information of the object according to the relative pose information corresponding to the reference identifier.
其中,对象的位姿信息包括旋转信息及位移信息中的至少一种,旋转可以是指对象相对于拍摄装置的旋转角度,位移信息是指对象相对于拍摄装置的平移距离。The pose information of the object includes at least one of rotation information and displacement information. Rotation may refer to a rotation angle of the object relative to the photographing device, and displacement information refers to a translation distance of the object relative to the photographing device.
在一个实施例中,根据该参考标识在像素坐标系中的二维像素坐标点以及该拍摄装置在世界坐标系中的三维坐标点、该拍摄装置的内参数确定所述参考标识的位姿信息,根据该参考标识的位姿信息以及该参考标识对应的相对位姿信息确定该对象的位姿信息。In one embodiment, the pose information of the reference identifier is determined according to the two-dimensional pixel coordinate points of the reference identifier in the pixel coordinate system, the three-dimensional coordinate points of the camera in the world coordinate system, and internal parameters of the camera. , Determining the pose information of the object according to the pose information of the reference identifier and the relative pose information corresponding to the reference identifier.
控制设备可以根据参考标识的位姿信息以及该参考标识对应的相对位姿信息确定该对象的位姿信息,具体的,控制设备可以利用位姿估计算法及该参考标识在像素坐标系中的二维像素坐标点、该拍摄装置在世界坐标系中的三维坐标点及该拍摄装置的内参数确定该参考标识的位姿信息,根据该参考标识的位姿信息以及该参考标识对应的相对位姿信息确定该对象的位姿信息。The control device may determine the pose information of the object based on the pose information of the reference mark and the relative pose information corresponding to the reference mark. Specifically, the control device may use a pose estimation algorithm and two reference marks in the pixel coordinate system. Dimensional pixel coordinate points, three-dimensional coordinate points of the photographing device in the world coordinate system, and internal parameters of the photographing device determine the pose information of the reference mark, and according to the pose information of the reference mark and the relative pose corresponding to the reference mark The information determines the pose information of the object.
其中,姿态估计算法可以包括N点透视算法(Perspective-n-Point,PnP)。二维像素坐标点为参考标识在图像坐标系下的特征点,世界坐标系为全局坐标系,全局坐标系是指预先已经定义的坐标系。Among them, the pose estimation algorithm may include an N-point perspective algorithm (Perspective-n-Point, PnP). The two-dimensional pixel coordinate points are the characteristic points of the reference mark in the image coordinate system. The world coordinate system is the global coordinate system. The global coordinate system refers to a coordinate system that has been defined in advance.
举例来说,该参考标识在像素坐标系中的二维像素坐标点为[uv 1] T,该拍摄装置在世界坐标系中的三维坐标点为[x c y c z c 1] T,该拍摄装置的内参数包括:焦距f,x轴和y轴方向上单位距离的像素数m x和m y,光心位置μ 0、v 0,以及x轴和y轴之间的畸变参数γ,该参考标识在像素坐标系中的二维像素坐标点以及该拍摄装置在世界坐标系中的三维坐标点、该拍摄装置的内参数之间的关系可以表示为如下1-3式: For example, the two-dimensional pixel coordinate point of the reference identifier in the pixel coordinate system is [uv 1] T , and the three-dimensional coordinate point of the shooting device in the world coordinate system is [x c y c z c 1] T. The internal parameters of the shooting device include: the focal length f, the number of pixels m x and m y per unit distance in the x-axis and y-axis directions, the optical center positions μ 0 and v 0 , and the distortion parameter γ between the x-axis and y-axis, The relationship between the two-dimensional pixel coordinate point of the reference identifier in the pixel coordinate system, the three-dimensional coordinate point of the camera in the world coordinate system, and the internal parameters of the camera can be expressed as the following formula 1-3:
Figure PCTCN2018093726-appb-000001
Figure PCTCN2018093726-appb-000001
Figure PCTCN2018093726-appb-000002
Figure PCTCN2018093726-appb-000002
Figure PCTCN2018093726-appb-000003
Figure PCTCN2018093726-appb-000003
其中,3式中的k为常数,2和3式中的[x w y w z w 1] T为参考标识的世界坐标系下的点,R为参考标识的旋转向量,T为参考标识的位移向量,根据上述1-3式,可以解出参考标识的位姿信息,即该参考标识的是世界坐标信息、旋转及位移向量,进而根据该参考标识的位姿信息,及参考对象对应的相对位姿信息确定对象的位姿信息。 Among them, k in formula 3 is a constant, [x w y w z w 1] in formulas 2 and 3 T is a point in the world coordinate system of the reference mark, R is a rotation vector of the reference mark, and T is a reference mark. Displacement vector, according to the above formulas 1-3, the pose information of the reference mark can be solved, that is, the reference mark is the world coordinate information, rotation and displacement vector, and then according to the pose information of the reference mark and the corresponding reference object The relative pose information determines the pose information of the object.
需要说明的是,通常参考标识的位姿是不变的,而无人机处于移动状态,那么控制设备可以在不同位姿,计算同一个参考标识的世界坐标信息,若计算出的世界坐标信息都是相同的,则确定计算出的世界坐标信息是正确的,否则确定计算出的世界坐标信息是错误的。It should be noted that, generally, the pose of the reference mark is constant, and the drone is in a moving state. Then the control device can calculate the world coordinate information of the same reference mark in different poses. If the calculated world coordinate information is Are all the same, it is determined that the calculated world coordinate information is correct, otherwise it is determined that the calculated world coordinate information is wrong.
S204、根据该每个身份标识对应的对象的位姿信息生成穿越该每个对象的飞行轨迹。S204. Generate a flight trajectory through each object according to the pose information of the object corresponding to each identity.
S205、控制该无人机基于该飞行轨迹穿越该每个对象。S205. Control the drone to traverse each object based on the flight trajectory.
在步骤S204~S205中,为了实现自动穿越障碍物,控制设备可以根据该每个身份标识对应的对象的位姿信息生成穿越该每个对象的 飞行轨迹,控制该无人机基于该飞行轨迹穿越该每个对象。In steps S204 to S205, in order to achieve automatic obstacle crossing, the control device may generate a flight trajectory through each object according to the pose information of the object corresponding to each identity, and control the drone to traverse based on the flight trajectory. The each object.
本发明实施例中,控制设备接收穿越至少一个对象(即障碍物)的指令,该指令包含该至少一个对象中每个对象的身份标识;根据该对象关联的参考标识,获取预先存储的该参考标识对应的相对位姿信息,根据参考标识对应的相对位姿信息确定对象的位姿信息,基于该对象的位姿信息控制该无人机穿越该对象。可见,该实施方式可基于对象的位姿信息自动地规划无人机的飞行轨迹,而不需要用户手动操作来调整无人机的飞行轨迹,并基于对象的姿态信息更加精准地穿越障碍物,提高穿越障碍物的便捷性,满足用户对无人机穿越障碍物的自动化、智能化需求。In the embodiment of the present invention, the control device receives an instruction to traverse at least one object (that is, an obstacle), and the instruction includes an identity identifier of each object in the at least one object; and obtains the reference stored in advance according to the reference identifier associated with the object. Identify the relative pose information corresponding to the identifier, determine the pose information of the object according to the relative pose information corresponding to the reference identifier, and control the drone to pass through the object based on the pose information of the object. It can be seen that this embodiment can automatically plan the flight trajectory of the drone based on the pose information of the object, without the need for a user to manually adjust the flight trajectory of the drone, and more accurately pass through obstacles based on the attitude information of the object. Improve the convenience of crossing obstacles and meet users' needs for automation and intelligence of drones crossing obstacles.
另外,用户还可以通过简单编程实现对无人机穿越对象的飞行轨迹的调整,比如用户编程输入包括穿越对象的身份标识1、2、4的指令,则控制设备可以执行本申请实施例所述的内容来自动规划飞行轨迹,并基于飞行轨迹飞行过程中穿越身份标识为1、2、4的对象,从而激发用户的编程兴趣。In addition, the user can also adjust the flight trajectory of the drone through the object through simple programming. For example, if the user programs and inputs the instruction that includes the identity identifiers 1, 2, and 4 of the crossing object, the control device can execute the description in the embodiment of the present application. Content to automatically plan the flight trajectory, and based on the flight trajectory to traverse objects with identity 1,2, 4 during the flight, which stimulates the user's programming interest.
基于上述对一种飞行控制方法及无人机系统的描述,本发明实施例提供又一种飞行控制方法,请参见图12,所述方法可以由控制设备执行,其中,控制设备的具体解释如前所述。该方法包括:Based on the foregoing description of a flight control method and a drone system, an embodiment of the present invention provides another flight control method. Please refer to FIG. 12, the method may be executed by a control device, where the specific explanation of the control device is as follows Previously mentioned. The method includes:
S301、获取参考标识。S301. Obtain a reference identifier.
在无人机基于该飞行轨迹飞行的过程中,控制设备可以控制拍摄装置进行拍摄得到获取每个对象关联的参考标识,或者控制拍摄装置通过红外扫描的方式获取每个对象关联的参考标识。During the flight of the drone based on the flight trajectory, the control device may control the shooting device to obtain a reference identifier associated with each object by shooting, or control the shooting device to acquire the reference identifier associated with each object by means of infrared scanning.
其中,参考标识可以是二维码,可以是随机点阵,也可以是指其他标记(Marker)。该参考标识可以设置在对象上,一个对象上可以设置一个或多个参考标识。The reference mark may be a two-dimensional code, a random dot matrix, or other markers. The reference identifier can be set on an object, and one or more reference identifiers can be set on an object.
在一个实施例中,一个对象上设置一个参考标识,比如,每个对象上仅设置与该对象关联的参考标识。当参考标识设置在与该参考标识关联的对象上时,控制设备每次可以获取一个参考标识,穿越了或到达了当前对象,再获取下一个对象关联的参考标识,直到穿越或到 达所有的对象,结束获取参考标识。In one embodiment, a reference identifier is set on an object, for example, only a reference identifier associated with the object is set on each object. When the reference identifier is set on the object associated with the reference identifier, the control device can obtain a reference identifier each time, cross or reach the current object, and then obtain the reference identifier associated with the next object until it passes through or reaches all objects To end obtaining the reference identifier.
在一个实施例中,一个对象上设置多个参考标识,比如,在穿越的第一个对象上设置多个参考标识,控制设备每次可以获取多个参考标识。In one embodiment, multiple reference identifiers are set on an object. For example, multiple reference identifiers are set on the first object that traverses, and the control device can obtain multiple reference identifiers each time.
S302、获取该参考标识关联的对象的位姿信息。S302. Acquire posture information of an object associated with the reference identifier.
该控制设备的数据库中包括多个参考标识关联的对象的位姿信息,控制设备可以从数据库中获取与该参考标识匹配的预先存储的参考标识,根据预先存储的参考标识获取与该参考标识关联的对象的位姿信息。The database of the control device includes posture information of an object associated with multiple reference identifiers. The control device may obtain a pre-stored reference identifier matching the reference identifier from the database, and obtain an association with the reference identifier according to the pre-stored reference identifier. Pose information of the object.
其中,位姿信息包括平移信息和旋转信息,该平息信息是在世界坐标系下或者相机坐标系下,平移信息可以为坐标信息,旋转信息包括多个轴的旋转角度,例如:俯仰轴、偏航轴和横滚轴中的一个或者多个。S303、根据该对象的位姿信息确定飞行轨迹。Among them, the pose information includes translation information and rotation information. The relaxation information is in the world coordinate system or the camera coordinate system. The translation information may be coordinate information. The rotation information includes rotation angles of multiple axes, for example, a pitch axis, a skew One or more of a roll axis and a roll axis. S303. Determine a flight trajectory according to the pose information of the object.
本发明实施例中,参考标识与对象具有一一对应的关系,若获取到至少一个参考标识,则确定无人机需要穿越或到达至少一个对象,至少一个对象可以为一个或多个对象。当至少一个对象中仅包括一个对象时,控制设备可以根据该身份标识对应的对象的位姿信息确定无人机的飞行轨迹;当该至少一个对象中包括多个对象时,控制设备可以根据各个对象的位姿信息确定每两个对象之间的相对位姿信息,根据相对位姿信息确无人机的飞行轨迹。In the embodiment of the present invention, the reference identifier has a one-to-one correspondence with the object. If at least one reference identifier is obtained, it is determined that the drone needs to cross or reach at least one object, and at least one object may be one or more objects. When only at least one object is included in the at least one object, the control device may determine the flight trajectory of the drone according to the pose information of the object corresponding to the identity; when the at least one object includes multiple objects, the control device may The pose information of the objects determines the relative pose information between each two objects, and the flight trajectory of the drone is determined based on the relative pose information.
S304、控制该无人机基于该飞行轨迹飞行。S304. Control the drone to fly based on the flight trajectory.
本发明实施例中,在获取到飞行轨迹后,控制设备可以控制无人机基于该飞行轨迹飞行。In the embodiment of the present invention, after the flight trajectory is obtained, the control device may control the drone to fly based on the flight trajectory.
其中,该对象可以是指需要无人机到达的位置,比如,该位置可以是指某个建筑物。The object may refer to a location where the drone needs to reach, for example, the location may refer to a certain building.
在一个实施例中,若该对象可以是指需要无人机到达的位置,步骤S304包括:控制该无人机基于该飞行轨迹飞行,并到达所述对象所在的位置。In one embodiment, if the object can refer to a location where the drone needs to arrive, step S304 includes: controlling the drone to fly based on the flight trajectory and reach the location where the object is located.
其中,对象可以指障碍物,障碍物的形状可以是环状,也可以是指实心的物体。The object may refer to an obstacle, and the shape of the obstacle may be a ring or a solid object.
步骤S304包括:控制该无人机基于该飞行轨迹穿过该对象,或者控制该无人机基于所述飞行轨迹绕过该每个对象飞行。Step S304 includes controlling the drone to pass through the object based on the flight trajectory, or controlling the drone to fly around each object based on the flight trajectory.
在一个实施例中,当障碍物是环状物体时,控制该无人机基于该飞行轨迹飞行包括:控制该无人机基于该飞行轨迹穿过该环状物体,如,穿过该环状物体的中心。In one embodiment, when the obstacle is a ring-shaped object, controlling the drone to fly based on the flight trajectory includes controlling the drone to pass through the ring-shaped object based on the flight trajectory, such as through the ring-shaped object. The center of the object.
在一个实施例中,当障碍物是实心的物体时,控制该无人机基于该飞行轨迹飞行包括:控制该无人机基于该飞行轨迹绕过每个对象飞行,如从实心物体的上部、底部、左边或右边绕过飞行。In one embodiment, when the obstacle is a solid object, controlling the drone to fly based on the flight trajectory includes controlling the drone to fly around each object based on the flight trajectory, such as from the upper part of the solid object, Bottom, left, or right bypass flight.
本发明实施例中,控制设备获取至少一个参考标识,针对每个参考标识,根据每个身份标识关联的对象的位姿信息确定无人机的飞行轨迹,控制该无人机基于所述飞行轨迹飞行。可见,该实施方式可基于对象的位姿信息自动地规划无人机的飞行轨迹,而不需要用户手动操作来调整无人机的飞行轨迹,提高穿越障碍物的便捷性,满足用户对无人机穿越障碍物的自动化、智能化需求。另外,可根据对象的位姿信息自动地规划飞行轨迹,基于飞行轨迹可以自动地到达指定位置。In the embodiment of the present invention, the control device obtains at least one reference identifier, and for each reference identifier, determines the flight trajectory of the drone according to the pose information of the object associated with each identity, and controls the drone based on the flight trajectory flight. It can be seen that this embodiment can automatically plan the drone's flight trajectory based on the pose information of the object, without the need for the user to manually adjust the drone's flight trajectory, improve the convenience of crossing obstacles, and meet the user's requirements for unmanned The need for automation and intelligence of aircraft crossing obstacles. In addition, the flight trajectory can be automatically planned according to the pose information of the object, and the designated position can be automatically reached based on the flight trajectory.
基于上述对一种飞行控制方法及无人机系统的描述,本发明实施例提供一种控制设备,请参见图13,该控制设备包括:至少一个处理器401,例如CPU;至少一个存储器402,通信装置403,传感器404、控制器405,上述处理器401、存储器402、通信装置403,传感器404、控制器405通过总线406连接。Based on the above description of a flight control method and a drone system, an embodiment of the present invention provides a control device. Referring to FIG. 13, the control device includes: at least one processor 401, such as a CPU; and at least one memory 402. The communication device 403, the sensor 404, and the controller 405, the processor 401, the memory 402, and the communication device 403, the sensor 404, and the controller 405 are connected through a bus 406.
通信装置403,可以用于接收无人机的飞行状态信息无人机飞行过程中拍摄设备拍摄的图像数据等。The communication device 403 may be used to receive flight status information of the drone, and image data and the like captured by the shooting device during the drone flight.
传感器404,用于获取参考标识等。The sensor 404 is configured to obtain a reference identifier and the like.
所述存储器402用于存储至少一条程序指令,该至少一条程序指令包括第一程序指令和第二程序指令。所述处理器401可以调用存储器402中存储的第一程序指令,用于执行如下步骤:The memory 402 is configured to store at least one program instruction, where the at least one program instruction includes a first program instruction and a second program instruction. The processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
接收穿越至少一个对象的指令,所述指令包含所述至少一个对象中每个对象的身份标识;Receiving an instruction to traverse at least one object, the instruction including an identity of each object in the at least one object;
根据所述每个身份标识对应的对象的位姿信息确定穿越所述每个对象的飞行轨迹;Determining a flight trajectory through each object according to pose information of the object corresponding to each identity;
控制所述无人机基于所述飞行轨迹穿越所述每个对象。Controlling the drone to traverse each of the objects based on the flight trajectory.
可选的,所述处理器401可以调用存储器402中存储的第一程序指令,用于执行如下步骤:Optionally, the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
针对所述每个身份标识对应的对象,根据所述对象关联的参考标识,获取预先存储的所述参考标识对应的相对位姿信息,所述相对位姿信息为所述对象与所述对象关联的所述参考标识之间的相对位姿信息;For the object corresponding to each identity, according to the reference identifier associated with the object, obtain pre-stored relative pose information corresponding to the reference identifier, where the relative pose information is that the object is associated with the object Relative pose information between the reference identifiers;
根据所述参考标识对应的相对位姿信息确定所述对象的位姿信息;Determining the pose information of the object according to the relative pose information corresponding to the reference identifier;
基于所述对象的位姿信息生成所述无人机穿越所述对象的飞行轨迹。A flight trajectory of the drone crossing the object is generated based on the pose information of the object.
可选的,所述处理器401可以调用存储器402中存储的第一程序指令,用于执行如下步骤:Optionally, the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
基于所述飞行轨迹,通过所述拍摄装置获取所述每个对象关联的参考标识。Based on the flight trajectory, a reference identifier associated with each object is obtained by the photographing device.
可选的,所述处理器401可以调用存储器402中存储的第一程序指令,用于执行如下步骤:Optionally, the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
根据所述参考标识在像素坐标系中的二维像素坐标点以及所述拍摄装置在世界坐标系中的三维坐标点、所述拍摄装置的内参数确定所述参考标识的位姿信息;Determining pose information of the reference mark according to a two-dimensional pixel coordinate point of the reference mark in a pixel coordinate system, a three-dimensional coordinate point of the shooting device in a world coordinate system, and internal parameters of the shooting device;
根据所述参考标识的位姿信息,以及所述参考标识与所述对象的相对位姿信息确定所述对象的位姿信息。Determining the pose information of the object according to the pose information of the reference identifier and relative pose information of the reference identifier and the object.
可选的,所述处理器401可以调用存储器402中存储的第一程序指令,用于执行如下步骤:Optionally, the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
获取预先存储的与所述参考标识相匹配的参考标识信息;Obtaining pre-stored reference identification information that matches the reference identification;
根据所述参考标识信息获取预先存储的所述参考标识对应的相对位姿信息。Obtaining the relative pose information corresponding to the reference identifier stored in advance according to the reference identifier information.
可选的,所述处理器401可以调用存储器402中存储的第一程序 指令,用于执行如下步骤:Optionally, the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
扫描所述二维码,以获取预先存储的所述参考标识对应的相对位姿信息。Scan the two-dimensional code to obtain the relative pose information corresponding to the reference identifier stored in advance.
可选的,所述处理器401可以调用存储器402中存储的第一程序指令,用于执行如下步骤:Optionally, the processor 401 may call a first program instruction stored in the memory 402 to perform the following steps:
根据每个身份标识对应的对象的位姿信息及所述穿越每个对象的顺序确定穿越所述每个对象的飞行轨迹。A flight trajectory passing through each object is determined according to pose information of the object corresponding to each identity and the sequence of passing through each object.
所述参考标识被设置在关联的对象上;所述对象为环状物体。The reference identifier is set on an associated object; the object is a ring-shaped object.
在一个实施例中,所述处理器401可以调用存储器402中存储的第二程序指令,用于执行如下步骤:In one embodiment, the processor 401 may call a second program instruction stored in the memory 402 to perform the following steps:
获取参考标识;Obtaining a reference identifier;
获取所述参考标识关联的对象的位姿信息;Acquiring pose information of an object associated with the reference identifier;
根据所述对象的位姿信息确定飞行轨迹;Determining a flight trajectory according to the pose information of the object;
控制所述无人机基于所述飞行轨迹飞行。Controlling the drone to fly based on the flight trajectory.
可选的,所述处理器401可以调用存储器402中存储的第二程序指令,用于执行如下步骤:Optionally, the processor 401 may call a second program instruction stored in the memory 402 to perform the following steps:
控制所述无人机基于所述飞行轨迹穿过所述对象,或者控制所述无人机基于所述飞行轨迹绕过所述每个对象飞行。Controlling the drone to pass through the object based on the flight trajectory, or controlling the drone to fly around the each object based on the flight trajectory.
在本发明的实施例中还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明图2、图3及图12所对应实施例中描述的飞行控制方法方式,也可实现图13所述本发明所对应实施例的控制设备,在此不再赘述。In the embodiment of the present invention, a computer-readable storage medium is also provided. The computer-readable storage medium stores a computer program, and the computer program is implemented by a processor to implement the present invention, FIG. 2, FIG. 3, and FIG. 12. The flight control method described in the corresponding embodiment can also implement the control device of the corresponding embodiment of the present invention described in FIG. 13, and details are not described herein again.
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述控制设备所需 的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of the device according to any one of the foregoing embodiments, such as a hard disk or a memory of the device. The computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), and a Secure Digital (SD) card equipped on the device. , Flash card (Flash card) and so on. Further, the computer-readable storage medium may further include both an internal storage unit of the device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the control device. The computer-readable storage medium may also be used to temporarily store data that has been or will be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the method of the foregoing embodiment can be implemented by using a computer program to instruct related hardware. The program can be stored in a computer-readable storage medium. When executed, the processes of the embodiments of the methods described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random, Access Memory, RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。What has been disclosed above are only the preferred embodiments of the present invention, and of course, the scope of the rights of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (23)

  1. 一种飞行控制方法,应用于控制设备,所述控制设备用于控制无人机的飞行,其特征在于,包括:A flight control method is applied to a control device for controlling the flight of an unmanned aerial vehicle, and is characterized in that it includes:
    接收穿越至少一个对象的指令,所述指令包含所述至少一个对象中每个对象的身份标识;Receiving an instruction to traverse at least one object, the instruction including an identity of each object in the at least one object;
    根据所述每个身份标识对应的对象的位姿信息确定穿越所述每个对象的飞行轨迹;Determining a flight trajectory through each object according to pose information of the object corresponding to each identity;
    控制所述无人机基于所述飞行轨迹穿越所述每个对象。Controlling the drone to traverse each of the objects based on the flight trajectory.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述每个身份标识对应的对象的位姿信息确定穿越所述每个对象的飞行轨迹,包括:The method according to claim 1, wherein determining the flight trajectory through each object according to the pose information of the object corresponding to each identity identifier comprises:
    针对所述每个身份标识对应的对象,根据所述对象关联的参考标识,获取预先存储的所述参考标识的相对位姿信息,所述相对位姿信息为所述对象与所述对象关联的所述参考标识之间的相对位姿信息;For the object corresponding to each identity, according to the reference identifier associated with the object, the relative pose information of the reference identifier that is stored in advance is obtained, and the relative pose information is the object associated with the object. Relative pose information between the reference identifiers;
    根据所述参考标识对应的相对位姿信息确定所述对象的位姿信息;Determining the pose information of the object according to the relative pose information corresponding to the reference identifier;
    基于所述对象的位姿信息生成所述无人机穿越所述对象的飞行轨迹。A flight trajectory of the drone crossing the object is generated based on the pose information of the object.
  3. 根据权利要求2所述的方法,其特征在于,所述无人机包括拍摄装置,所述方法还包括:The method according to claim 2, wherein the drone comprises a photographing device, and the method further comprises:
    基于所述飞行轨迹,通过所述拍摄装置获取所述每个对象关联的参考标识。Based on the flight trajectory, a reference identifier associated with each object is obtained by the photographing device.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, further comprising:
    根据所述参考标识在像素坐标系中的二维像素坐标点以及所述拍摄装置在世界坐标系中的三维坐标点、所述拍摄装置的内参数确定所述参考标识的位姿信息;Determining pose information of the reference mark according to a two-dimensional pixel coordinate point of the reference mark in a pixel coordinate system, a three-dimensional coordinate point of the shooting device in a world coordinate system, and internal parameters of the shooting device;
    所述根据所述参考标识对应的相对位姿信息确定所述对象的位 姿信息,包括:The determining the pose information of the object according to the relative pose information corresponding to the reference identifier includes:
    根据所述参考标识的位姿信息,以及所述参考标识与所述参考标识关联的对象之间的相对位姿信息确定所述对象的位姿信息。Determining the pose information of the object according to the pose information of the reference identifier and relative pose information between the reference identifier and an object associated with the reference identifier.
  5. 根据权利要求2所述的方法,其特征在于,所述根据所述对象关联的参考标识,获取预先存储的所述参考标识对应的相对位姿信息,包括:The method according to claim 2, wherein the acquiring the relative pose information corresponding to the reference identifier stored in advance according to the reference identifier associated with the object comprises:
    获取预先存储的与所述参考标识相匹配的参考标识信息;Obtaining pre-stored reference identification information that matches the reference identification;
    根据所述参考标识信息获取预先存储的所述参考标识对应的相对位姿信息。Obtaining the relative pose information corresponding to the reference identifier stored in advance according to the reference identifier information.
  6. 根据权利要求2所述的方法,其特征在于,所述参考标识为二维码,所述根据所述对象关联的参考标识,获取预先存储的所述参考标识对应的相对位姿信息,包括:The method according to claim 2, wherein the reference identifier is a two-dimensional code, and the obtaining the relative pose information corresponding to the reference identifier stored in advance according to the reference identifier associated with the object comprises:
    扫描所述二维码,以获取预先存储的所述参考标识对应的相对位姿信息。Scan the two-dimensional code to obtain the relative pose information corresponding to the reference identifier stored in advance.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述指令还携带穿越每个对象的顺序,所述根据所述每个身份标识对应的对象的位姿信息确定穿越所述每个对象的飞行轨迹,包括:The method according to any one of claims 1-6, wherein the instruction further carries a sequence of traversing each object, and the traversing is determined according to pose information of the object corresponding to each identity identifier. The trajectory of each object, including:
    根据每个身份标识对应的对象的位姿信息及所述穿越每个对象的顺序确定穿越所述每个对象的飞行轨迹。A flight trajectory passing through each object is determined according to pose information of the object corresponding to each identity and the sequence of passing through each object.
  8. 根据权利要求7所述的方法,其特征在于,所述参考标识被设置在关联的对象上;所述对象为环状物体。The method according to claim 7, wherein the reference identifier is set on an associated object; the object is a ring-shaped object.
  9. 一种飞行控制方法,应用于控制设备,所述控制设备用于控制无人机的飞行,其特征在于,包括:A flight control method is applied to a control device for controlling the flight of an unmanned aerial vehicle, and is characterized in that it includes:
    获取参考标识;Obtaining a reference identifier;
    获取所述参考标识关联的对象的位姿信息;Acquiring pose information of an object associated with the reference identifier;
    根据所述对象的位姿信息确定飞行轨迹;Determining a flight trajectory according to the pose information of the object;
    控制所述无人机基于所述飞行轨迹飞行。Controlling the drone to fly based on the flight trajectory.
  10. 根据权利要求9所述的方法,其特征在于,所述控制所述无人机基于所述飞行轨迹飞行,包括:The method according to claim 9, wherein the controlling the drone to fly based on the flight trajectory comprises:
    控制所述无人机基于所述飞行轨迹穿过所述对象,或者控制所述无人机基于所述飞行轨迹绕过所述对象飞行。Controlling the drone to pass through the object based on the flight trajectory, or controlling the drone to fly around the object based on the flight trajectory.
  11. 一种应用于控制设备,所述控制设备用于控制无人机的飞行,其特征在于,包括存储器和处理器;A control device used for controlling the flight of a drone, which is characterized by including a memory and a processor;
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes program instructions stored in the memory. When the program instructions are executed, the processor is configured to perform the following steps:
    接收穿越至少一个对象的指令,所述指令包含所述至少一个对象中每个对象的身份标识;Receiving an instruction to traverse at least one object, the instruction including an identity of each object in the at least one object;
    根据所述每个身份标识对应的对象的位姿信息确定穿越所述每个对象的飞行轨迹;Determining a flight trajectory through each object according to pose information of the object corresponding to each identity;
    控制所述无人机基于所述飞行轨迹穿越所述每个对象。Controlling the drone to traverse each of the objects based on the flight trajectory.
  12. 根据权利要求11所述的设备,其特征在于,The device according to claim 11, wherein:
    所述处理器,用于针对所述每个对象,根据所述对象关联的参考标识,获取预先存储的所述参考标识对应的相对位姿信息,所述相对位姿信息为所述对象与所述对象关联的所述参考标识之间的相对位姿信息;根据所述参考标识对应的相对位姿信息确定所述对象的位姿信息。The processor is configured to obtain, for each object, the relative pose information corresponding to the reference identifier stored in advance according to the reference identifier associated with the object, where the relative pose information is the object and all The relative pose information between the reference identifiers associated with the object; and determining the pose information of the object according to the relative pose information corresponding to the reference identifier.
  13. 根据权利要求12所述的设备,其特征在于,所述无人机包括拍摄装置,The device according to claim 12, wherein the drone includes a photographing device,
    所述处理器,用于基于所述飞行轨迹,通过所述拍摄装置获取所述每个对象关联的参考标识。The processor is configured to obtain a reference identifier associated with each object through the photographing device based on the flight trajectory.
  14. 根据权利要求13所述的设备,其特征在于,The device according to claim 13, characterized in that:
    所述处理器,还用于根据所述参考标识在像素坐标系中的二维像素坐标点以及所述拍摄装置在世界坐标系中的三维坐标点、所述拍摄装置的内参数确定所述参考标识的位姿信息;根据所述参考标识的位姿信息,以及所述参考标识与所述对象的相对位姿信息确定所述对象的位姿信息。The processor is further configured to determine the reference according to a two-dimensional pixel coordinate point of the reference identifier in a pixel coordinate system, a three-dimensional coordinate point of the photographing device in a world coordinate system, and an internal parameter of the photographing device. The pose information of the identifier; determining the pose information of the object according to the pose information of the reference identifier and relative pose information of the reference identifier and the object.
  15. 根据权利要求12所述的设备,其特征在于,The device according to claim 12, characterized in that:
    所述处理器,用于获取预先存储的与所述参考标识相匹配的参考标识信息;根据所述参考标识信息获取预先存储的所述参考标识对应的相对位姿信息。The processor is configured to obtain pre-stored reference identifier information that matches the reference identifier; and acquire, according to the reference identifier information, relative pose information corresponding to the pre-stored reference identifier.
  16. 根据权利要求12所述的设备,其特征在于,所述参考标识为二维码,The device according to claim 12, wherein the reference identifier is a two-dimensional code,
    所述处理器,用于扫描所述二维码,以获取预先存储的所述参考标识对应的相对位姿信息。The processor is configured to scan the two-dimensional code to obtain the relative pose information corresponding to the reference identifier stored in advance.
  17. 根据权利要求11-16任一项所述的设备,其特征在于,The device according to any one of claims 11-16, wherein:
    所述处理器,用于根据每个身份标识对应的对象的位姿信息及所述穿越每个对象的顺序确定穿越所述每个对象的飞行轨迹。The processor is configured to determine a flight trajectory that passes through each object according to pose information of the object corresponding to each identity and the sequence that passes through each object.
  18. 根据权利要求17所述的设备,其特征在于,所述参考标识被设置在关联的对象上;所述对象为环状物体。The device according to claim 17, wherein the reference identifier is set on an associated object; the object is a ring-shaped object.
  19. 一种控制设备,所述控制设备用于控制无人机的飞行,其特征在于,包括存储器和处理器;A control device for controlling the flight of a drone, characterized in that it includes a memory and a processor;
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes program instructions stored in the memory. When the program instructions are executed, the processor is configured to perform the following steps:
    获取参考标识;Obtaining a reference identifier;
    获取所述参考标识关联的对象的位姿信息;Acquiring pose information of an object associated with the reference identifier;
    根据所述对象的位姿信息确定飞行轨迹;Determining a flight trajectory according to the pose information of the object;
    控制所述无人机基于所述飞行轨迹飞行。Controlling the drone to fly based on the flight trajectory.
  20. 根据权利要求19所述的设备,其特征在于,The device according to claim 19, wherein:
    所述处理器,用于控制所述无人机基于所述飞行轨迹穿过所述每个对象,或者控制所述无人机基于所述飞行轨迹绕过所述每个对象飞行。The processor is configured to control the drone to pass through each object based on the flight trajectory, or control the drone to fly around each object based on the flight trajectory.
  21. 一种无人机系统,其特征在于,包括无人机和控制设备;A drone system, which is characterized by comprising a drone and a control device;
    所述控制设备,用于执行如权利要求1-10任一项所述的飞行控制方法来为所述无人机规划飞行轨迹;The control device is configured to execute the flight control method according to any one of claims 1 to 10 to plan a flight trajectory for the drone;
    所述无人机,用于根据所述飞行轨迹飞行,以穿越至少一个对象。The drone is configured to fly according to the flight trajectory to pass through at least one object.
  22. 一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1至10中任一项所述的飞行控制方法的步骤。A computer-readable storage medium, characterized in that the computer storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute the program according to claim 1 The steps of the flight control method according to any one of 10 to 10.
  23. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机实现权利要求1至10中任一项所述的飞行控制方法的步骤。A computer program product, characterized in that the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to implement any one of claims 1 to 10 The steps of the flight control method are described.
PCT/CN2018/093726 2018-06-29 2018-06-29 Flight control method, device and system, and storage medium WO2020000386A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880010529.8A CN110325940A (en) 2018-06-29 2018-06-29 A kind of flight control method, equipment, system and storage medium
PCT/CN2018/093726 WO2020000386A1 (en) 2018-06-29 2018-06-29 Flight control method, device and system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/093726 WO2020000386A1 (en) 2018-06-29 2018-06-29 Flight control method, device and system, and storage medium

Publications (1)

Publication Number Publication Date
WO2020000386A1 true WO2020000386A1 (en) 2020-01-02

Family

ID=68112756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/093726 WO2020000386A1 (en) 2018-06-29 2018-06-29 Flight control method, device and system, and storage medium

Country Status (2)

Country Link
CN (1) CN110325940A (en)
WO (1) WO2020000386A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022000137A1 (en) * 2020-06-28 2022-01-06 深圳市大疆创新科技有限公司 Movable platform system, and control method and device therefor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020223A (en) * 2016-07-19 2016-10-12 零度智控(北京)智能科技有限公司 Flying control method, apparatus and system for aircraft
CN106927059A (en) * 2017-04-01 2017-07-07 成都通甲优博科技有限责任公司 A kind of unmanned plane landing method and device based on monocular vision
WO2017164544A1 (en) * 2016-03-22 2017-09-28 세이프어스드론(주) Drone for artificial pollination and artificial pollination system using same

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105518560B (en) * 2014-10-31 2018-02-02 深圳市大疆创新科技有限公司 A kind of location-based control method, device, removable movement machine and robot
US20170242432A1 (en) * 2016-02-24 2017-08-24 Dronomy Ltd. Image processing for gesture-based control of an unmanned aerial vehicle
CN106603970B (en) * 2016-11-11 2020-12-08 北京远度互联科技有限公司 Video shooting method and system and unmanned aerial vehicle
CN106647814B (en) * 2016-12-01 2019-08-13 华中科技大学 A kind of unmanned plane vision auxiliary positioning and flight control system and method based on the identification of two dimensional code terrestrial reference
CN107144281B (en) * 2017-06-30 2023-09-12 一飞智控(天津)科技有限公司 Unmanned aerial vehicle indoor positioning system and positioning method based on cooperative targets and monocular vision
CN107807659A (en) * 2017-10-24 2018-03-16 北京臻迪科技股份有限公司 A kind of UAV Flight Control method and device

Patent Citations (3)

* 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
CN106020223A (en) * 2016-07-19 2016-10-12 零度智控(北京)智能科技有限公司 Flying control method, apparatus and system for aircraft
CN106927059A (en) * 2017-04-01 2017-07-07 成都通甲优博科技有限责任公司 A kind of unmanned plane landing method and device based on monocular vision

Also Published As

Publication number Publication date
CN110325940A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
US11748898B2 (en) Methods and system for infrared tracking
US20220091607A1 (en) Systems and methods for target tracking
CN107466385B (en) Cloud deck control method and system
WO2020233683A1 (en) Gimbal control method and apparatus, control terminal and aircraft system
CN108702444B (en) Image processing method, unmanned aerial vehicle and system
CN105979147A (en) Intelligent shooting method of unmanned aerial vehicle
WO2020107372A1 (en) Control method and apparatus for photographing device, and device and storage medium
US20190243356A1 (en) Method for controlling flight of an aircraft, device, and aircraft
CN108513642B (en) Image processing method, unmanned aerial vehicle, ground console and image processing system thereof
US20200143549A1 (en) Image processing method and device, and unmanned aerial vehicle
CN106586011A (en) Aligning method of aerial shooting unmanned aerial vehicle and aerial shooting unmanned aerial vehicle thereof
US20210009270A1 (en) Methods and system for composing and capturing images
WO2019144295A1 (en) Flight control method and device, and aircraft, system and storage medium
CN108737743B (en) Video splicing device and video splicing method based on image splicing
WO2020000386A1 (en) Flight control method, device and system, and storage medium
WO2020257999A1 (en) Method, apparatus and platform for image processing, and storage medium
WO2019205103A1 (en) Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle
CN114545963A (en) Method and system for optimizing multi-unmanned aerial vehicle panoramic monitoring video and electronic equipment
WO2019227438A1 (en) Image processing method and device, aircraft, system, and storage medium
US20200349689A1 (en) Image processing method and device, unmanned aerial vehicle, system and storage medium
CN112514366A (en) Image processing method, image processing apparatus, and image processing system
WO2021243566A1 (en) Imaging method, imaging apparatus, and computer readable storage medium
CN113781524A (en) Target tracking system and method based on two-dimensional label
CN112571409B (en) Robot control method based on visual SLAM, robot and medium
WO2020000311A1 (en) Method, apparatus and device for image processing, and unmanned aerial vehicle

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: 18924794

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: 18924794

Country of ref document: EP

Kind code of ref document: A1