WO2023185138A1 - Numbering method and system, and storage medium and device - Google Patents

Numbering method and system, and storage medium and device Download PDF

Info

Publication number
WO2023185138A1
WO2023185138A1 PCT/CN2022/141676 CN2022141676W WO2023185138A1 WO 2023185138 A1 WO2023185138 A1 WO 2023185138A1 CN 2022141676 W CN2022141676 W CN 2022141676W WO 2023185138 A1 WO2023185138 A1 WO 2023185138A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
placement
objects
deviation
numbering
Prior art date
Application number
PCT/CN2022/141676
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 亿航智能设备(广州)有限公司
Publication of WO2023185138A1 publication Critical patent/WO2023185138A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/10Simultaneous control of position or course in three dimensions
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft
    • G05D1/104Simultaneous control of position or course in three dimensions specially adapted for aircraft involving a plurality of aircrafts, e.g. formation flying

Definitions

  • the present invention relates to the field of numbering technology, and in particular to a numbering method, system, storage medium and equipment.
  • each object in the cluster is usually numbered.
  • the objects are placed according to a preset formation and then each object is numbered.
  • the specific equipment number of the object is entered into the system, and the user manually performs the numbering. This numbering method is time-consuming, labor-intensive and inefficient.
  • Drone formation uses multiple drones to perform performances through the specific routes and lighting scripts of each drone.
  • each drone In order to make the performance orderly, each drone must have its own number, which makes it easy to edit the performance. script, and each drone can fly according to the performance script.
  • the previous numbering method was manual numbering, that is, after placing the drone, manually enter the number for the drone in the system.
  • the drone with the serial number C0056 is the No. 1 drone
  • the drone with the serial number C0003 The machine is No. 2 and so on.
  • there is a method of numbering drones based on their placement That is, hundreds of drones are manually placed before taking off. After the drones are placed, the number of each drone is burned according to the placement position, and the coding and burning are performed according to the rectangle in the software.
  • the software burning process The drone at the location corresponding to the specific number cannot be found.
  • the script pre-edit the layout of the drones before taking off, usually in a rectangular array, and then start from the first drone in the upper left corner, from left to right, from top to top Each drone is numbered sequentially below. Then, according to the formation of the drones before taking off in the script, the drones are manually placed on the ground. Due to errors in manual placement, the distance and direction between the drones are deviated.
  • the prior art discloses a UAV numbering method, device and ground station.
  • the UAV numbering method includes: receiving the position information sent by each UAV in the UAV formation; wherein, the UAV The formation's take-off area includes multiple take-off points, and the multiple UAVs included in the UAV formation are located at the multiple take-off points respectively; based on the location information and the arrangement positions of the multiple take-off points, it is determined The number of each UAV in the UAV formation; send the number of each UAV in the UAV formation to the corresponding UAV.
  • the drones are placed at the take-off point according to the formation edited in the script, and the drones are placed manually, resulting in the placement of the drones.
  • the position of the drone is biased. If the numbering is only based on the position information sent by the received drone, when the drone position is biased, some drones will be skipped during numbering, resulting in numbering errors. causing collision problems after takeoff.
  • the purpose of the present invention is to provide a highly accurate numbering method, system, storage medium and equipment.
  • the present invention provides a numbering method, which includes the following steps:
  • step S4 After the objects are placed according to the formation set in step S1, assign the numbers at each preset placement position to the objects at the corresponding real positions one by one until all objects placed at the real positions are numbered. .
  • step S4 it includes:
  • S4.1 Specify the starting number of the object according to the formation.
  • the position of the object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation. Assign a number to the object. 1.
  • the object numbered 1 is object No. 1;
  • step S4.3 Obtain the default placement position p of the next unassigned object except object No. 1. If p exists, proceed to step S4.4. If p does not exist, end;
  • step S4.7 If the difference between the position deviation s1 obtained in step S4.4 and the position deviation s2 obtained in step S4.6 is within the preset range, assign the number corresponding to the preset placement position p to the real position c object, then return to step S4.3 until all objects except object No. 1 are traversed; otherwise, return to step S4.5.
  • step S4.4 the position deviation s1 is the relative position of the projections of p1 and p on the same projection plane; in step S4.6, the position deviation s2 is the projection of c1 and c on the same projection plane. relative position.
  • the object placement array when setting the object placement array, construct a two-dimensional coordinate system and determine the coordinates of each object based on the preset placement position of each object. Then the preset placement position p1 of object No. 1 is (x p1 , y p1 ), the preset placement position p of the unnumbered object is (x p , y p ), and the position deviation s1 is the deviation s1 x of p1 and p on the x-axis and the deviation s1 y in the y-axis direction;
  • a two-dimensional coordinate system is constructed, and the coordinates of each object are determined based on the true position of each object.
  • the default placement position c1 of object No. 1 is (x c1, y c1), and the unnumbered
  • the preset placement position p of the object is (x c , y c )
  • the position deviation s2 is the deviation s2 x of p1 and p on the x axis and the deviation s2 y in the y axis direction;
  • the number corresponding to the preset placement position p is assigned to the object in the real position c.
  • step S4.7 if the difference between the position deviation s1 and the position deviation s2 is not within the preset range, an alarm is issued to notify manual processing.
  • the object is a flying device, and the method further includes:
  • step S5 before the objects adjust their relative positions, the altitude of each object is obtained, and the height of the object with the highest altitude is used as a reference to keep each object at the same altitude.
  • the numbering method also includes:
  • steps S4.2 and S4.5 the true position of each object is obtained based on the position information module on each object.
  • the invention also provides a numbering system, including a computer terminal, an object and a positioning system,
  • the computer terminal includes software for numbering objects
  • the object includes a communication module and a position information module, the communication module is used to communicate with the computer terminal, and the position information module is used to output the position information of the object;
  • the positioning system is used to realize relative positioning of objects, and the positioning system is communicatively connected with the position information module.
  • the object is a flying device
  • the positioning system is a differential positioning system
  • the object also includes a lighting module, a numbering module, a power module, a flight control module and a rotor
  • the lighting module is used to emit light
  • the The numbering module is used to store the number of the object
  • the power module is used to provide power to the entire object
  • the flight control module is used to control the flight of the object
  • the rotor is installed on the object
  • the rotor is To provide lift to the object.
  • the software includes:
  • the formation editing module is used to edit the placement formation of objects, determine the preset placement positions of each object, and assign numbers to the objects in each preset placement position;
  • the number allocation module is used to allocate the numbers at each preset placement position to the objects at the corresponding real positions.
  • the number allocation module includes:
  • the No. 1 object designation unit is used to designate the No. 1 object according to the formation.
  • the position of the No. 1 object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation;
  • the preset placement position acquisition unit is used to obtain the preset placement position of each object in the formation editing module
  • the real position acquisition unit is used to obtain the real position of each object
  • the first position deviation calculation unit is used to calculate the position deviation s1 between the preset placement position of object No. 1 and the preset placement position of the next unassigned object;
  • the second position deviation calculation unit is used to calculate the position deviation s2 between the true position of object No. 1 and the true position of the next unassigned object;
  • the judgment unit is used to judge whether the difference between the position deviation s1 calculated by the first position deviation calculation unit and the position deviation s2 calculated by the second position deviation calculation unit is within a preset range. If so, the preset placement position The number is assigned to the object at the real position. If not, the default placement unit is called to obtain the default placement position of the next object.
  • the present invention also provides a computer storage medium that stores a computer program.
  • the computer program When the computer program is executed by a processor, it causes the processor to execute the above method.
  • the present invention also provides a computer device.
  • the computer device includes a memory and a processor.
  • the memory stores a computer program.
  • the computer program When the computer program is executed by the processor, the computer program causes the processor to perform the above method.
  • the present invention determines the preset placement position of each object and numbers the objects in each preset placement position. That is, there is a number on each preset position, and the objects in each preset placement position are numbered. After the objects are actually placed according to the preset formation, the corresponding real position is found for each preset position. If the preset position corresponds to the real position, the number of the preset position is assigned to the real position. position, otherwise the objects at the real position will not be numbered, which can prevent numbering errors caused by sequential numbering based on rectangular arrays or positions.
  • the numbering method of the present invention has high accuracy.
  • Figure 1 is a schematic diagram of the preset placement of objects in a script according to an embodiment of the present invention.
  • Figure 2 is a schematic diagram of actual placement of objects according to the embodiment of the present invention.
  • Figure 3 is a flow chart of the numbering method according to the embodiment of the present invention.
  • FIG. 4 is a schematic diagram of determining the position deviation s1 according to the embodiment of the present invention.
  • FIG. 5 is a schematic diagram of determining the position deviation s2 according to the embodiment of the present invention.
  • an unnumbered method according to the preferred embodiment of the present invention includes the following steps:
  • step S4 After the objects are placed according to the formation set in step S1, assign the numbers at each preset placement position to the objects at the corresponding real positions one by one until all objects placed at the real positions are numbered. .
  • the preset placement positions of each object are determined, and the objects in each preset placement position are numbered, that is, each preset position has a number. After the objects are actually placed according to the preset formation, the corresponding real position is found for each preset placement position. If the preset placement position corresponds to the real position, the number of the preset placement position is assigned to the The real position, otherwise the objects at the real position will not be numbered, which can prevent numbering errors caused by sequential numbering of rectangular arrays or positions.
  • the numbering method of this embodiment has high accuracy.
  • step S4 it includes:
  • S4.1 Specify the starting number of the object according to the formation.
  • the position of the object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation. Assign a number to the object. 1.
  • the object numbered 1 is object No. 1;
  • step S4.3 Obtain the default placement position p of the next unassigned object except object No. 1. If p exists, proceed to step S4.4. If p does not exist, end;
  • step S4.7 If the difference between the position deviation s1 obtained in step S4.4 and the position deviation s2 obtained in step S4.6 is within the preset range, assign the number corresponding to the preset placement position p to the real position c object, then return to step S4.3 until all objects except object No. 1 are traversed; otherwise, return to step S4.5.
  • This embodiment obtains the position deviation s1 between object No. 1 and other objects at the preset placement position, and obtains the position deviation s2 between object No. 1 and other objects when they are actually placed, and compares whether s2 is within the difference range of s1. , if it is, assign the number of the preset placement position to the object in the real placement position.
  • This embodiment is different from the existing sequential numbering and has a certain deviation range. Even if the object has a position deviation when placed, Numbers can be obtained, and the numbers of each object are independent. Even if some objects do not obtain numbers, it can be ensured that the numbers of other numbered objects are correct, and the problem of collision after takeoff can be prevented. Therefore, this embodiment The numbering method is highly accurate.
  • the numbers of objects other than object No. 1 in the formation are determined based on their relative positions to object No. 1, and have no relationship with other numbered objects, making the numbers of each object independent.
  • the object numbered 36 will still be matched to the object in the oval circle in the figure, and the objects numbered 37 and 38 will still be matched from the figure. Match in the upper rectangular circle, which prevents the object that should be numbered 37 from getting the number 36 because the object numbered 36 is skipped.
  • steps S4.2 and S4.5 the true position of each object is obtained according to the position information module on each object. If each object carries a GPS positioning system, the positioning information of the object can be sent.
  • step S4.1 before the user designates object No. 1, it is necessary to check whether the object at the preset position in the script is numbered. If it is not numbered, the remaining steps will not be executed, and the prompt will be issued; and it is necessary to check whether It can communicate with each placed real object. If it cannot connect to the real object, the remaining steps will not be executed, it will end, and a prompt will be issued to ensure that each object can send its real position.
  • "Script" is a file that records the default placement positions of multiple objects and the numbers of each default placement position.
  • step S4.7 after assigning a number to a real object, return to step S4.3 and continue to obtain the preset placement positions p of other unnumbered objects until the preset placement positions p in the script are The object numbers are matched.
  • Embodiment 1 The difference between this embodiment and Embodiment 1 is that, based on Embodiment 1, this embodiment further explains the calculation of position deviation s1 and position deviation s2.
  • the position deviation s1 is the relative position of the projections of p1 and p on the same projection plane; in step S8, the position deviation s2 is the relative position of the projections of c1 and c on the same projection plane.
  • each object may not necessarily be located on the same horizontal plane, that is, each object has a relative position in the horizontal direction and a relative position in the vertical direction.
  • the actual placement is based on the relative position of each object in the horizontal direction. Therefore, you only need to divide the number 1
  • the relative positions of objects other than objects in the horizontal direction with object No. 1 can be numbered.
  • a two-dimensional coordinate system is constructed, and the coordinates of each object are determined according to the preset placement position of each object.
  • the preset placement position p1 of object No. 1 is (x p1, y p1 )
  • the preset placement position p of the unnumbered object is (x p , y p )
  • the position deviation s1 is the deviation s1 of p1 and p on the x-axis and the deviation s1 y on the y-axis
  • a two-dimensional coordinate system is constructed, and the coordinates of each object are determined based on the true position of each object.
  • the placement position p is (x c , y c ), and the position deviation s2 is the deviation s2 x of p1 and p on the x-axis and the deviation s2 y in the y-axis direction; if the deviation of s1 x and s2 x and the deviation of s1 y and s2 y The deviation is within the preset range, then the number corresponding to the preset placement position p is assigned to the object in the real position c.
  • x p1 and y p1 are not 0 at the same time and x c1 and y c1 are not 0 at the same time, that is,
  • the coordinate system during preset placement and the coordinate system during actual placement are not established with object No. 1 as the origin, which helps determine the x-axis and y-axis of the coordinate system.
  • the locations of object No. 1 and the object to be numbered are the two endpoints of the hypotenuse of a right triangle, and the two right sides of the right triangle are the x-axis and y-axis of the coordinate system.
  • the deviation range of this embodiment is ⁇ 0.5m. In some cases where very high accuracy is required, the deviation range is ⁇ 0.05m.
  • step S9 of this embodiment if the difference between the position deviation s1 and the position deviation s2 is not within the preset range, an alarm is issued to notify manual processing. Because the object placement at this position deviates too much at this time, it needs to be manually rearranged. Or if there is no object placed at this location, it also needs to be placed manually.
  • Embodiment 2 The difference between this embodiment and Embodiment 2 is that, based on Embodiment 2, this embodiment provides specific instructions on the numbering of formation flying devices.
  • the object is a flying device.
  • Numbering methods include:
  • the placement formation of the flying device before take-off is formulated based on the preset performance pattern
  • step S4 After the objects are placed according to the formation set in step S1, allocate the numbers at each preset placement position to the flying devices at the corresponding real positions one by one until all the flying devices placed at the real positions are Numbering completed.
  • step S4 it includes:
  • step S4.3 Obtain the default placement position p of the next unassigned flight device except No. 1 flight device. If p exists, proceed to step S4.4. If p does not exist, end;
  • step S4.5 Obtain the real position c of the next unnumbered flight device except flight device No. 1. If c exists, proceed to step S4.6. If c does not exist, end;
  • step S4.7 If the difference between the position deviation s1 obtained in step S4.4 and the position deviation s2 obtained in step S4.6 is within the preset range, assign the number corresponding to the preset placement position p to the real position c flight device, then return to step S4.3 until all flight devices except flight device No. 1 are traversed; otherwise, return to step S4.5.
  • step S4.7 of this embodiment if the difference between the position deviation s1 and the position deviation s2 is not within the preset range, an alarm is issued to notify manual processing. Because the placement of the drone at this position is too deviated at this time, the assigned number will also affect other flying devices after takeoff, and there is also a risk of collision during takeoff, requiring manual rearrangement. Or if the flying device has not been placed at this location, it also needs to be placed manually.
  • the method of this embodiment also includes:
  • step S5 before the relative positions of the flying devices are adjusted, the altitude of each flying device is obtained, and the altitude of the flying device with the highest altitude is used as a reference to keep each flying device at the same altitude. Convenient for subsequent altitude adjustment of the flight device. That is, after takeoff and before the performance, reserve 3 to 5 seconds for all flying devices in the formation to fly at the same altitude, and then adjust the position of the x-axis and y-axis of each flying device according to the number.
  • the method of this embodiment also includes S6: performing height compensation adjustment based on the difference between the preset starting altitude of each flying device and the height of the flying device with the highest real altitude, and then performing the performance task after the adjustment is completed.
  • the ground is not necessarily flat, and each flying device is not always on the same horizontal plane. That is, there are also deviations in the vertical direction of each flying device. If before the performance, Failure to adjust will result in deviations in the flying height of the flying device during performance, resulting in unsightly patterns and affecting the neatness and accuracy of the performance. Therefore, in this embodiment, after each flying device adjusts the position of the x-axis and y-axis, the altitude compensation operation is automatically performed based on the height difference with the flying device with the highest altitude.
  • position adjustment is divided into four stages.
  • the first stage is to take off from the flight position, rise to a certain height according to the instructions, and stay at that height for a period of time to obtain the altitude of each flight device.
  • the second stage based on the height of the highest flying device, the remaining flying devices are raised so that all flying devices are at the same altitude.
  • the third stage is that according to the position deviation s1 and the position deviation s2, each flying device adjusts the position of the x-axis and y-axis through its own flight.
  • the fourth stage is to perform height compensation based on the height difference in the vertical direction between the highest altitude flight device and the remaining flight devices, that is, the flight device whose preset position is higher than the highest altitude flight device rises, that is, the preset Flight units lower than the highest flight unit at that altitude descend.
  • the pre-performance formation is set up, and then the flight is flown to the performance location according to the preset flight trajectory for the performance.
  • Embodiment 2 The difference between this embodiment and Embodiment 2 is that, based on Embodiment 2, this embodiment provides a detailed description of machine numbers used in confrontation games.
  • the object is a machine
  • the numbering method includes:
  • step S4 After placing the objects according to the formation set in step S1, allocate the numbers at each preset placement position to the machines at the corresponding real positions one by one until all the machines placed at the real positions are numbered. .
  • step S4 it includes:
  • S4.1 Specify the starting number of the machine according to the formation.
  • the position of the machine in the actual placement formation corresponds to the position of the machine at the preset placement position numbered 1 in the editing formation. Assign a number to the machine. 1.
  • the machine numbered 1 is machine No. 1;
  • step S4.3 Obtain the default placement position p of the next unassigned machine other than machine No. 1. If p exists, proceed to step S4.4. If p does not exist, end;
  • step S4.7 If the difference between the position deviation s1 obtained in step S4.4 and the position deviation s2 obtained in step S4.6 is within the preset range, assign the number corresponding to the preset placement position p to the real position c machine, then return to step S4.3 until all machines except machine No. 1 are traversed; otherwise, return to step S4.5.
  • This embodiment provides a numbering system based on the numbering method of Embodiment 2, including a computer terminal, an object, and a positioning system.
  • the computer terminal includes software for numbering objects; the object includes a communication module and a location information module.
  • the communication module To communicate with the computer, the position information module is used to output the position information of the object; the positioning system is used to realize the relative positioning of the object, and the positioning system is communicatively connected with the position information module.
  • the object in this embodiment is a flying device, and the positioning system is a differential positioning system.
  • the object also includes a lighting module, a numbering module, a power module, a flight control module, and a rotor.
  • the lighting module is used to emit light
  • the numbering module is used to store the number of the object.
  • the module is used to provide power to the object as a whole
  • the flight control module is used to control the flight of the object
  • the rotor is set on the object
  • the rotor is used to provide lift to the object.
  • the positioning system includes multiple differential base stations.
  • the differential base stations are communicatively connected to the position information module of the object.
  • the differential base stations are used to provide differential data for the object.
  • the object obtains actual position information through its own positioning device.
  • the position information module Positioning is performed based on the acquired actual position information and differential data.
  • the differential data can correct the acquired actual position information, and in areas not covered by differential base stations or with poor signals, objects can still be positioned through their own positioning equipment and position information modules. position.
  • the object in this embodiment also includes a buzzer module, which is used to emit a prompt sound.
  • the lighting module of this embodiment is specifically used for lighting performances and indicating the status of objects.
  • the lighting module and the buzzer module can be used as feedback at the same time or individually to determine whether the object numbering is successful.
  • the lighting module on the object can emit a green light to remind the staff that the numbering is normal.
  • the corresponding objects are also marked with the same color, for example, green is always on; when the object is not numbered successfully, the light module on the object can emit red light, and the buzzer module can alarm To remind the staff that the numbering is abnormal.
  • the corresponding objects are also marked with the same color.
  • This marking method is different from the marking method when the numbering is normal, such as a red breathing light, or a flashing light according to a certain pattern. Red light, etc.
  • the formation editing module is used to edit the placement formation of objects, determine the preset placement positions of each object, and assign numbers to the objects in each preset placement position;
  • the number allocation module is used to allocate the numbers at each preset placement position to the objects at the corresponding real positions.
  • the number allocation module in this embodiment includes:
  • the No. 1 object designation unit is used to designate the No. 1 object according to the formation.
  • the position of the No. 1 object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation;
  • the preset placement position acquisition unit is used to obtain the preset placement position of each object in the formation editing module
  • the real position acquisition unit is used to obtain the real position of each object
  • the first position deviation calculation unit is used to calculate the position deviation s1 between the preset placement position of object No. 1 and the preset placement position of the next unassigned object;
  • the second position deviation calculation unit is used to calculate the position deviation s2 between the true position of object No. 1 and the true position of the next unassigned object;
  • the judgment unit is used to judge whether the difference between the position deviation s1 calculated by the first position deviation calculation unit and the position deviation s2 calculated by the second position deviation calculation unit is within a preset range. If so, the preset placement position The number is assigned to the object at the real position. If not, the default placement unit is called to obtain the default placement position of the next object.
  • the numbering system of this embodiment is used to implement the numbering method of Embodiment 1 or Embodiment 2.
  • This embodiment provides a computer storage medium.
  • the storage medium stores a computer program.
  • the processor executes the first or second embodiment or the third or fourth embodiment. method described.
  • the computer device includes a memory and a processor.
  • the memory stores a computer program.
  • the computer program When executed by the processor, it causes the processor to execute Embodiment 1 or Embodiment 1. 2 or the method described in Embodiment 3 or Embodiment 4.
  • the embodiment of the present invention provides a numbering method by obtaining the position deviation s1 between object No. 1 and other objects at the preset placement position, and obtaining the position deviation s2 between object No. 1 and other objects when they are actually placed. , compare whether s2 is within the difference range of s1, and if so, assign the number of the preset placement position to the object in the real placement position.
  • the embodiment of the present invention is different from the existing sequential numbering, and there is a certain deviation. range, objects can be numbered even if there is a positional deviation when placed, and the numbers of each object are independent.
  • embodiments of the present invention also provide a numbering system based on the above numbering method, and a storage medium that stores a computer program that implements the above method.
  • embodiments of the present invention provide a computer device, including a memory that stores a computer program for implementing the above method and a processor that executes it.

Abstract

A numbering method and system, and a storage medium and a device. By means of the numbering method, a positional deviation s1 between a number one object and another object at a preset placement position is obtained, a positional deviation s2 between the number one object and another object during real placement is obtained, whether s2 is within a difference range of s1 is compared, and if so, a serial number of the preset placement position is assigned to an object at a real placement position. Even if objects have a positional deviation when being placed, the objects can obtain serial numbers and the serial numbers of the objects are independent of each other. Even if some objects do not obtain serial numbers, it can be guaranteed that the serial numbers of other objects that have obtained the serial numbers are correct. Therefore, the method has high accuracy, and can prevent the problem of collision after activation.

Description

一种编号方法、系统、存储介质及设备A numbering method, system, storage medium and equipment 技术领域Technical field
本发明涉及编号技术领域,特别是涉及一种编号方法、系统、存储介质及设备。The present invention relates to the field of numbering technology, and in particular to a numbering method, system, storage medium and equipment.
背景技术Background technique
在对物体进行摆放时,为了方便对物体进行控制,通常会给集群的各物体进行编号。比如无人机表演、机器人表演或是设备的摆放等,都是将物体根据预设的阵型摆放好后,对各个物体进行编号。在编号时,都是将物体的特定的设备号输入系统,用户手动进行编号。这种编号方法费时费力,效率低。When placing objects, in order to facilitate the control of the objects, each object in the cluster is usually numbered. For example, in drone performances, robot performances or equipment placement, the objects are placed according to a preset formation and then each object is numbered. When numbering, the specific equipment number of the object is entered into the system, and the user manually performs the numbering. This numbering method is time-consuming, labor-intensive and inefficient.
以无人机编号为例。目前,随着无人机技术的不断发展以及无人机应用场景的越来越广泛,出现了无人机编队表演。无人机编队是采用多架无人机,通过各架无人机的特定的航线、灯光脚本等实现表演,为了使表演有序,各无人机须有自己的编号,这样可方便编辑表演剧本,并且可使各无人机按表演剧本进行航行。Take drone numbering as an example. At present, with the continuous development of drone technology and the wider application scenarios of drones, drone formation performances have emerged. Drone formation uses multiple drones to perform performances through the specific routes and lighting scripts of each drone. In order to make the performance orderly, each drone must have its own number, which makes it easy to edit the performance. script, and each drone can fly according to the performance script.
以前的编号方法是手动编号,即将无人机摆放好后,手动在系统中为无人机录入编号,如:序列号是C0056的无人机为1号机,序列号是C0003的无人机为2号机等。而无人机编队表演的无人机数量较多,在手动编号时,效率较低。目前,出现了根据无人机的摆放位置对无人机进行编号的方法。即成百上千架无人机在起飞前,通过人工将无人机摆放好。无人机摆放完毕后,根据摆放的位置,对每个无人机烧录其编号,在软件中按照矩形进行编码烧录,但是由于摆放的位置偏差,导致在软件烧录的过程中找不到具体编号对应的位置上的无人机。如图1所示,在剧本中,预先编辑无人机起飞前的摆放阵型,通常为矩形阵列摆放,然后从左上角的第一架无人机开始,从左往右、从上往下依次对各无人机进行顺序编号。接着,按照剧本中的无人机起飞前的摆放阵型,人工将无人机在地面进行摆放,由于人工摆放有误差,因此,无人机之间的距离、方向等是有偏差的,如图2所示,编号36的无人机在摆放时,若编号36的无人机实际摆放位置相对于其预设摆放位置偏右下,容易跳过该无人机,即该编号36的无人机不获得编号,应被编号为37的无人机获得编号36,这样就出现了编号错误,而每个编号的无人机是有特定的航行路线的,导致无人机编队起飞后相撞的问题。再者,由于受地形限制,无人机的摆放可能不在同一水平线上,这样会产生高度差,在飞行过程中,会产生不整齐的问题。The previous numbering method was manual numbering, that is, after placing the drone, manually enter the number for the drone in the system. For example: the drone with the serial number C0056 is the No. 1 drone, and the drone with the serial number C0003 The machine is No. 2 and so on. However, there are a large number of drones in the drone formation performance, and the efficiency is low when manually numbered. Currently, there is a method of numbering drones based on their placement. That is, hundreds of drones are manually placed before taking off. After the drones are placed, the number of each drone is burned according to the placement position, and the coding and burning are performed according to the rectangle in the software. However, due to the deviation in the placement position, the software burning process The drone at the location corresponding to the specific number cannot be found. As shown in Figure 1, in the script, pre-edit the layout of the drones before taking off, usually in a rectangular array, and then start from the first drone in the upper left corner, from left to right, from top to top Each drone is numbered sequentially below. Then, according to the formation of the drones before taking off in the script, the drones are manually placed on the ground. Due to errors in manual placement, the distance and direction between the drones are deviated. , as shown in Figure 2, when the drone numbered 36 is placed, if the actual position of the drone numbered 36 is lower and right relative to its default placement position, it is easy to skip the drone, that is, The drone numbered 36 was not assigned a number, and the drone numbered 37 was assigned the number 36. This resulted in a numbering error, and each numbered drone had a specific navigation route, resulting in unmanned aerial vehicle. The problem of aircraft formation colliding after taking off. Furthermore, due to terrain restrictions, the placement of drones may not be on the same level, which will cause height differences and cause irregularities during flight.
现有技术公开了一种无人机的编号方法、装置和地面站,无人机的编号方法包括:接收无人机编队中每个无人机发送的位置信息;其中,所述无人机编队的起飞区域包括多个起飞点,所述无人机编队包括的多个无人机分别位于所述多个起飞点;根据所述位置信息和所述多个起飞点的排布位置,确定所述无人机编队中每个无人机的编号;将所述无人机编队中每个无人机的编号发送至对应的无人机。该专利申请虽然根据无人机发送的位置信息进行编号,但是无人机在起飞点是根据剧本中编辑好的阵型进行摆放的,并且无人机通过人工摆放,导致无人机摆放的位置是有偏差的,若只根据接收到的无人机发送的位置信息进行编号,在无人机位置有偏差时,会使有些无人机在编号时会被跳过,导致编号错误,造成起飞后相撞的问题。The prior art discloses a UAV numbering method, device and ground station. The UAV numbering method includes: receiving the position information sent by each UAV in the UAV formation; wherein, the UAV The formation's take-off area includes multiple take-off points, and the multiple UAVs included in the UAV formation are located at the multiple take-off points respectively; based on the location information and the arrangement positions of the multiple take-off points, it is determined The number of each UAV in the UAV formation; send the number of each UAV in the UAV formation to the corresponding UAV. Although the patent application is numbered based on the location information sent by the drone, the drones are placed at the take-off point according to the formation edited in the script, and the drones are placed manually, resulting in the placement of the drones. The position of the drone is biased. If the numbering is only based on the position information sent by the received drone, when the drone position is biased, some drones will be skipped during numbering, resulting in numbering errors. causing collision problems after takeoff.
技术解决方案Technical solutions
本发明的目的是提供一种准确度高的编号方法、系统、存储介质及设备。The purpose of the present invention is to provide a highly accurate numbering method, system, storage medium and equipment.
为了实现上述目的,本发明提供了一种编号方法,包括如下步骤:In order to achieve the above objects, the present invention provides a numbering method, which includes the following steps:
S1、预先设定物体的摆放阵型;S1. Preset the placement array of objects;
S2、编辑物体的摆放阵型,确定各物体的预设摆放位置;S2. Edit the placement array of objects and determine the preset placement positions of each object;
S3、给各预设摆放位置上的物体分配编号;S3. Assign numbers to objects in each preset position;
S4、在根据步骤S1设定的阵型将物体摆放完成后,逐一将各预设摆放位置上的编号分配给对应的真实位置上的物体,直至所有真实位置上摆放的物体被编号完毕。S4. After the objects are placed according to the formation set in step S1, assign the numbers at each preset placement position to the objects at the corresponding real positions one by one until all objects placed at the real positions are numbered. .
作为优选方案,在步骤S4中,包括:As a preferred solution, in step S4, it includes:
S4.1、根据阵型指定起始编号的物体,该物体在实际摆放阵型中的位置与编号为1的预设摆放位置上的物体在编辑阵型中的位置相对应,对该物体分配编号1,编号为1的物体为1号物体;S4.1. Specify the starting number of the object according to the formation. The position of the object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation. Assign a number to the object. 1. The object numbered 1 is object No. 1;
S4.2、获取1号物体的预设摆放位置p1和真实位置c1;S4.2. Obtain the default placement position p1 and real position c1 of object No. 1;
S4.3、获取除1号物体以外的下一个未分配编号的物体的预设摆放位置p,若p存在,进行步骤S4.4,若p不存在,结束;S4.3. Obtain the default placement position p of the next unassigned object except object No. 1. If p exists, proceed to step S4.4. If p does not exist, end;
S4.4、计算步骤S4.2获得的p1和步骤S4.3获得的p的位置偏差s1;S4.4. Calculate the position deviation s1 between p1 obtained in step S4.2 and p obtained in step S4.3;
S4.5、获取除1号物体以外的下一个未编号的物体的真实位置c,若c存在,进行步骤S4.6,若c不存在,结束;S4.5. Obtain the true position c of the next unnumbered object except object No. 1. If c exists, proceed to step S4.6. If c does not exist, end;
S4.6、计算步骤S4.2获得的c1和步骤S4.5获得的c的位置偏差s2;S4.6. Calculate the position deviation s2 between c1 obtained in step S4.2 and c obtained in step S4.5;
S4.7、若步骤S4.4获得的位置偏差s1和步骤S4.6获得的位置偏差s2的差值在预设范围内,则将预设摆放位置p对应的编号分配给处于真实位置c的物体,然后返回步骤S4.3,直至遍历除1号物体以外的所有物体;否则,返回步骤S4.5。S4.7. If the difference between the position deviation s1 obtained in step S4.4 and the position deviation s2 obtained in step S4.6 is within the preset range, assign the number corresponding to the preset placement position p to the real position c object, then return to step S4.3 until all objects except object No. 1 are traversed; otherwise, return to step S4.5.
作为优选方案,在步骤S4.4中,位置偏差s1为p1和p在同一投影面上的投影的相对位置;在步骤S4.6中,位置偏差s2为c1和c在同一投影面上的投影的相对位置。As a preferred solution, in step S4.4, the position deviation s1 is the relative position of the projections of p1 and p on the same projection plane; in step S4.6, the position deviation s2 is the projection of c1 and c on the same projection plane. relative position.
作为优选方案,在设定物体摆放阵型时,构建二维坐标系,根据各物体的预设摆放位置,确定各物体的坐标,则1号物体的预设摆放位置p1为(x p1 ,y p1 ),未编号的物体的预设摆放位置p为(x p ,y p ),位置偏差s1为p1和p在x轴上的偏差s1 x 和y轴方向上的偏差s1 y ;As a preferred solution, when setting the object placement array, construct a two-dimensional coordinate system and determine the coordinates of each object based on the preset placement position of each object. Then the preset placement position p1 of object No. 1 is (x p1 , y p1 ), the preset placement position p of the unnumbered object is (x p , y p ), and the position deviation s1 is the deviation s1 x of p1 and p on the x-axis and the deviation s1 y in the y-axis direction;
在将物体摆放完成后,构建二维坐标系,根据各物体的真实位置,确定各物体的坐标,则1号物体的预设摆放位置c1为(x c1 ,y c1 ),未编号的物体的预设摆放位置p为(x c ,y c ),位置偏差s2为p1和p在x轴上的偏差s2 x 和y轴方向上的偏差s2 y ;After the objects are placed, a two-dimensional coordinate system is constructed, and the coordinates of each object are determined based on the true position of each object. Then the default placement position c1 of object No. 1 is (x c1, y c1), and the unnumbered The preset placement position p of the object is (x c , y c ), and the position deviation s2 is the deviation s2 x of p1 and p on the x axis and the deviation s2 y in the y axis direction;
若s1 x 和s2 x 的偏差以及s1 y 和s2 y 的偏差在预设范围内,则将预设摆放位置p对应的编号分配给处于真实位置c的物体。If the deviation between s1 x and s2 x and the deviation between s1 y and s2 y are within the preset range, then the number corresponding to the preset placement position p is assigned to the object in the real position c.
作为优选方案,在步骤S4.7中,若位置偏差s1和位置偏差s2的差值不在预设范围内,发出警报通知人工处理。As a preferred solution, in step S4.7, if the difference between the position deviation s1 and the position deviation s2 is not within the preset range, an alarm is issued to notify manual processing.
作为优选方案,物体为飞行装置,方法还包括:As a preferred solution, the object is a flying device, and the method further includes:
S5、在物体起飞后、表演前,根据位置偏差s1和位置偏差s2调整各物体之间的相对位置。S5. After the objects take off and before the performance, adjust the relative positions between the objects according to the position deviation s1 and the position deviation s2.
作为优选方案,在步骤S5中,在物体调整相对位置前,获取各物体的海拔高度,并以海拔最高的物体的高度为基准,使各物体处于同一海拔高度。As a preferred solution, in step S5, before the objects adjust their relative positions, the altitude of each object is obtained, and the height of the object with the highest altitude is used as a reference to keep each object at the same altitude.
作为优选方案,编号方法还包括:As a preferred solution, the numbering method also includes:
S6、根据各物体的预设起始海拔高度与真实海拔最高的物体高度的差值,进行高度补齐调整,在调整完成后再执行表演任务。S6. Make height compensation adjustments based on the difference between the preset starting altitude of each object and the height of the object with the highest real altitude, and then perform the performance task after the adjustment is completed.
作为优选方案,在步骤S4.2和步骤S4.5中,根据各物体上的位置信息模块获得各物体的真实位置。As a preferred solution, in steps S4.2 and S4.5, the true position of each object is obtained based on the position information module on each object.
本发明还提供一种编号系统,包括计算机端、物体和定位系统,The invention also provides a numbering system, including a computer terminal, an object and a positioning system,
所述计算机端包括用于对物体进行编号的软件;The computer terminal includes software for numbering objects;
所述物体包括通信模块和位置信息模块,所述通信模块用于与所述计算机端进行通信,所述位置信息模块用于输出物体的位置信息;The object includes a communication module and a position information module, the communication module is used to communicate with the computer terminal, and the position information module is used to output the position information of the object;
所述定位系统用于实现物体的相对定位,所述定位系统与所述位置信息模块通信连接。The positioning system is used to realize relative positioning of objects, and the positioning system is communicatively connected with the position information module.
作为优选方案,所述物体为飞行装置,所述定位系统为差分定位系统,所述物体还包括灯光模块、编号模块、电力模块、飞控模块和旋翼,所述灯光模块用于发光,所述编号模块用于存储物体的编号,所述电力模块用于为所述物体整体供电,所述飞控模块用于所述物体的飞行控制,所述旋翼设于所述物体上,所述旋翼用于为所述物体提供升力。As a preferred solution, the object is a flying device, the positioning system is a differential positioning system, the object also includes a lighting module, a numbering module, a power module, a flight control module and a rotor, the lighting module is used to emit light, and the The numbering module is used to store the number of the object, the power module is used to provide power to the entire object, the flight control module is used to control the flight of the object, the rotor is installed on the object, and the rotor is To provide lift to the object.
作为优选方案,所述软件包括:As a preferred solution, the software includes:
阵型编辑模块,用于编辑物体的摆放阵型,确定各物体的预设摆放位置,并给各预设摆放位置上的物体分配编号;The formation editing module is used to edit the placement formation of objects, determine the preset placement positions of each object, and assign numbers to the objects in each preset placement position;
编号分配模块,用于将各预设摆放位置上的编号分配给对应的真实位置上的物体。The number allocation module is used to allocate the numbers at each preset placement position to the objects at the corresponding real positions.
作为优选方案,所述编号分配模块包括:As a preferred solution, the number allocation module includes:
1号物体指定单元,用于根据阵型指定1号物体,1号物体在实际摆放阵型中的位置与编号为1的预设摆放位置上的物体在编辑阵型中的位置相对应;The No. 1 object designation unit is used to designate the No. 1 object according to the formation. The position of the No. 1 object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation;
预设摆放位置获取单元,用于获取阵型编辑模块中各物体的预设摆放位置;The preset placement position acquisition unit is used to obtain the preset placement position of each object in the formation editing module;
真实位置获取单元,用于获取各物体的真实位置;The real position acquisition unit is used to obtain the real position of each object;
第一位置偏差计算单元,用于计算1号物体的预设摆放位置与下一个未分配编号的物体的预设摆放位置之间的位置偏差s1;The first position deviation calculation unit is used to calculate the position deviation s1 between the preset placement position of object No. 1 and the preset placement position of the next unassigned object;
第二位置偏差计算单元,用于计算1号物体的真实位置与下一个未分配编号的物体的真实位置之间的位置偏差s2;The second position deviation calculation unit is used to calculate the position deviation s2 between the true position of object No. 1 and the true position of the next unassigned object;
判断单元,用于判断第一位置偏差计算单元计算出的位置偏差s1和第二位置偏差计算单元计算出的位置偏差s2的差值是否在预设范围内,若是,将该预设摆放位置的编号分配给该真实位置上的物体,若否,调用预设摆放位置单元来获取下一个物体的预设摆放位置。The judgment unit is used to judge whether the difference between the position deviation s1 calculated by the first position deviation calculation unit and the position deviation s2 calculated by the second position deviation calculation unit is within a preset range. If so, the preset placement position The number is assigned to the object at the real position. If not, the default placement unit is called to obtain the default placement position of the next object.
另外,本发明还提供一种计算机存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行上述方法。In addition, the present invention also provides a computer storage medium that stores a computer program. When the computer program is executed by a processor, it causes the processor to execute the above method.
此外,本发明还提供一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行上述方法。In addition, the present invention also provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the computer program causes the processor to perform the above method.
与现有技术相比,本发明的有益效果在于:Compared with the prior art, the beneficial effects of the present invention are:
本发明根据预先设定的物体摆放阵型进行编辑时,确定各物体的预设摆放位置,并给各预设摆放位置上的物体进行编号,即一个预设位置上有一个编号,将物体按照预先设定的阵型实际摆好后,对每一个预设摆放位置寻找相对应的真实位置,若预设摆放位置与真实位置相对应,则将预设摆放位置的编号赋予该真实位置,否则对该真实位置上的物体不编号,可防止根据矩形阵列或位置顺序编号导致的编号错误,本发明的编号方法准确度高。When editing according to the preset object placement formation, the present invention determines the preset placement position of each object and numbers the objects in each preset placement position. That is, there is a number on each preset position, and the objects in each preset placement position are numbered. After the objects are actually placed according to the preset formation, the corresponding real position is found for each preset position. If the preset position corresponds to the real position, the number of the preset position is assigned to the real position. position, otherwise the objects at the real position will not be numbered, which can prevent numbering errors caused by sequential numbering based on rectangular arrays or positions. The numbering method of the present invention has high accuracy.
附图说明Description of drawings
图1是本发明实施例的剧本中物体预设摆放的示意图。Figure 1 is a schematic diagram of the preset placement of objects in a script according to an embodiment of the present invention.
图2是本发明实施例的物体实际摆放的示意图。Figure 2 is a schematic diagram of actual placement of objects according to the embodiment of the present invention.
图3是本发明实施例的编号方法的流程图。Figure 3 is a flow chart of the numbering method according to the embodiment of the present invention.
图4是本发明实施例的确定位置偏差s1的示意图。FIG. 4 is a schematic diagram of determining the position deviation s1 according to the embodiment of the present invention.
图5是本发明实施例的确定位置偏差s2的示意图。FIG. 5 is a schematic diagram of determining the position deviation s2 according to the embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。Specific implementations of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate the invention but are not intended to limit the scope of the invention.
实施例一Embodiment 1
如图1至图5所示,本发明优选实施例的一种无编号方法,包括如下步骤:As shown in Figures 1 to 5, an unnumbered method according to the preferred embodiment of the present invention includes the following steps:
S1、预先设定物体的摆放阵型;S1. Preset the placement array of objects;
S2、编辑物体的摆放阵型,确定各物体的预设摆放位置;S2. Edit the placement array of objects and determine the preset placement positions of each object;
S3、给各预设摆放位置上的物体分配编号;S3. Assign numbers to objects in each preset position;
S4、在根据步骤S1设定的阵型将物体摆放完成后,逐一将各预设摆放位置上的编号分配给对应的真实位置上的物体,直至所有真实位置上摆放的物体被编号完毕。S4. After the objects are placed according to the formation set in step S1, assign the numbers at each preset placement position to the objects at the corresponding real positions one by one until all objects placed at the real positions are numbered. .
本实施例根据预先设定的物体摆放阵型进行编辑时,确定各物体的预设摆放位置,并给各预设摆放位置上的物体进行编号,即一个预设位置上有一个编号,将物体按照预先设定的阵型实际摆好后,对每一个预设摆放位置寻找相对应的真实位置,若预设摆放位置与真实位置相对应,则将预设摆放位置的编号赋予该真实位置,否则对该真实位置上的物体不编号,可防止根据矩形阵列或位置顺序编号导致的编号错误,本实施例的编号方法准确度高。In this embodiment, when editing according to the preset object placement array, the preset placement positions of each object are determined, and the objects in each preset placement position are numbered, that is, each preset position has a number. After the objects are actually placed according to the preset formation, the corresponding real position is found for each preset placement position. If the preset placement position corresponds to the real position, the number of the preset placement position is assigned to the The real position, otherwise the objects at the real position will not be numbered, which can prevent numbering errors caused by sequential numbering of rectangular arrays or positions. The numbering method of this embodiment has high accuracy.
具体地,在步骤S4中,包括:Specifically, in step S4, it includes:
S4.1、根据阵型指定起始编号的物体,该物体在实际摆放阵型中的位置与编号为1的预设摆放位置上的物体在编辑阵型中的位置相对应,对该物体分配编号1,编号为1的物体为1号物体;S4.1. Specify the starting number of the object according to the formation. The position of the object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation. Assign a number to the object. 1. The object numbered 1 is object No. 1;
S4.2、获取1号物体的预设摆放位置p1和真实位置c1;S4.2. Obtain the default placement position p1 and real position c1 of object No. 1;
S4.3、获取除1号物体以外的下一个未分配编号的物体的预设摆放位置p,若p存在,进行步骤S4.4,若p不存在,结束;S4.3. Obtain the default placement position p of the next unassigned object except object No. 1. If p exists, proceed to step S4.4. If p does not exist, end;
S4.4、计算步骤S4.2获得的p1和步骤S4.3获得的p的位置偏差s1;S4.4. Calculate the position deviation s1 between p1 obtained in step S4.2 and p obtained in step S4.3;
S4.5、获取除1号物体以外的下一个未编号的物体的真实位置c,若c存在,进行步骤S4.6,若c不存在,结束;S4.5. Obtain the true position c of the next unnumbered object except object No. 1. If c exists, proceed to step S4.6. If c does not exist, end;
S4.6、计算步骤S4.2获得的c1和步骤S4.5获得的c的位置偏差s2;S4.6. Calculate the position deviation s2 between c1 obtained in step S4.2 and c obtained in step S4.5;
S4.7、若步骤S4.4获得的位置偏差s1和步骤S4.6获得的位置偏差s2的差值在预设范围内,则将预设摆放位置p对应的编号分配给处于真实位置c的物体,然后返回步骤S4.3,直至遍历除1号物体以外的所有物体;否则,返回步骤S4.5。S4.7. If the difference between the position deviation s1 obtained in step S4.4 and the position deviation s2 obtained in step S4.6 is within the preset range, assign the number corresponding to the preset placement position p to the real position c object, then return to step S4.3 until all objects except object No. 1 are traversed; otherwise, return to step S4.5.
本实施例通过获得1号物体与其他物体在预设摆放位置上的位置偏差s1,以及获得1号物体与其他物体真实摆放时的位置偏差s2,比较s2是否在s1的差值范围内,若在,则将该预设摆放位置的编号赋予该真实摆放位置的物体,本实施例与现有的顺序编号不同,有一定的偏差范围,即使物体在摆放时有位置偏差也能获得编号,并且,各个物体的编号是独立的,即使有些物体没有获得编号,也能保证其他获得编号的物体的编号是正确的,能够防止起飞后相撞的问题,因此,本实施例的编号方法准确度高。This embodiment obtains the position deviation s1 between object No. 1 and other objects at the preset placement position, and obtains the position deviation s2 between object No. 1 and other objects when they are actually placed, and compares whether s2 is within the difference range of s1. , if it is, assign the number of the preset placement position to the object in the real placement position. This embodiment is different from the existing sequential numbering and has a certain deviation range. Even if the object has a position deviation when placed, Numbers can be obtained, and the numbers of each object are independent. Even if some objects do not obtain numbers, it can be ensured that the numbers of other numbered objects are correct, and the problem of collision after takeoff can be prevented. Therefore, this embodiment The numbering method is highly accurate.
具体地,本实施例是通过阵型中除1号物体以外的其他的物体各自与1号物体的相对位置来确定其编号的,与其他编号的物体没有关系,使各个物体的编号独立。如图2所示,即使编号36的物体摆放有偏差,根据本实施例的方法,编号36匹配到的仍然是图上椭圆形圈中的物体,而编号37、38的物体还是会从图上矩形圈中匹配,这就避免了应被编号为37的物体由于编号36的物体被跳过而获得编号36。Specifically, in this embodiment, the numbers of objects other than object No. 1 in the formation are determined based on their relative positions to object No. 1, and have no relationship with other numbered objects, making the numbers of each object independent. As shown in Figure 2, even if there is a deviation in the placement of the object numbered 36, according to the method of this embodiment, the object numbered 36 will still be matched to the object in the oval circle in the figure, and the objects numbered 37 and 38 will still be matched from the figure. Match in the upper rectangular circle, which prevents the object that should be numbered 37 from getting the number 36 because the object numbered 36 is skipped.
本实施例在步骤S4.2和步骤S4.5中,根据各物体上的位置信息模块获得各物体的真实位置。如各物体上携带GPS定位系统,可发送该物体的定位信息。In this embodiment, in steps S4.2 and S4.5, the true position of each object is obtained according to the position information module on each object. If each object carries a GPS positioning system, the positioning information of the object can be sent.
另外,在步骤S4.1中,用户指定1号物体之前,需检查是否给剧本中预设摆放位置的物体编号,若未编号,不执行剩余步骤,结束,并且发出提示;并且需检查是否能与摆放好的各真实物体通信,若无法连接真实物体,也不执行剩余步骤,结束,并且发出提示,以确保各物体能发送各自的真实位置。“剧本”是一个记载了多个物体的预设摆放位置及各预设摆放位置编号的文件。In addition, in step S4.1, before the user designates object No. 1, it is necessary to check whether the object at the preset position in the script is numbered. If it is not numbered, the remaining steps will not be executed, and the prompt will be issued; and it is necessary to check whether It can communicate with each placed real object. If it cannot connect to the real object, the remaining steps will not be executed, it will end, and a prompt will be issued to ensure that each object can send its real position. "Script" is a file that records the default placement positions of multiple objects and the numbers of each default placement position.
此外,在步骤S4.7中,将一个编号赋予一个真实物体后,返回步骤S4.3,继续获取其他未编号的物体的预设摆放位置p,直至将剧本中各预设摆放位置的物体编号进行匹配完。In addition, in step S4.7, after assigning a number to a real object, return to step S4.3 and continue to obtain the preset placement positions p of other unnumbered objects until the preset placement positions p in the script are The object numbers are matched.
实施例二Embodiment 2
本实施例与实施例一的区别在于,在实施例一的基础上,本实施例对位置偏差s1和位置偏差s2的计算作进一步说明。The difference between this embodiment and Embodiment 1 is that, based on Embodiment 1, this embodiment further explains the calculation of position deviation s1 and position deviation s2.
本实施例在步骤S6中,位置偏差s1为p1和p在同一投影面上的投影的相对位置;在步骤S8中,位置偏差s2为c1和c在同一投影面上的投影的相对位置。物体在摆放时,由于受地形限制,各物体不一定都位于同一水平面上,即各物体既有水平方向上的相对位置,也有竖直方向上的相对位置。在实际摆放物体时,确定各物体在竖直方向上的位置难度较大,因此,实际摆放是根据各物体在水平方向上的相对位置进行摆放的,所以,只需根据除1号物体以外的其他物体与1号物体在水平方向上的相对位置进行编号即可。In step S6 of this embodiment, the position deviation s1 is the relative position of the projections of p1 and p on the same projection plane; in step S8, the position deviation s2 is the relative position of the projections of c1 and c on the same projection plane. When objects are placed, due to terrain restrictions, each object may not necessarily be located on the same horizontal plane, that is, each object has a relative position in the horizontal direction and a relative position in the vertical direction. When actually placing objects, it is difficult to determine the position of each object in the vertical direction. Therefore, the actual placement is based on the relative position of each object in the horizontal direction. Therefore, you only need to divide the number 1 The relative positions of objects other than objects in the horizontal direction with object No. 1 can be numbered.
具体地,在编辑物体摆放阵型时,构建二维坐标系,根据各物体的预设摆放位置,确定各物体的坐标,则1号物体的预设摆放位置p1为(x p1 ,y p1 ),未编号的物体的预设摆放位置p为(x p ,y p ),位置偏差s1为p1和p在x轴上的偏差s1 x 和y轴方向上的偏差s1 y ;在将物体摆放完成后,构建二维坐标系,根据各物体的真实位置,确定各物体的坐标,则1号物体的预设摆放位置c1为(x c1 ,y c1 ),未编号的物体的预设摆放位置p为(x c ,y c ),位置偏差s2为p1和p在x轴上的偏差s2 x 和y轴方向上的偏差s2 y ;若s1 x 和s2 x 的偏差以及s1 y 和s2 y 的偏差在预设范围内,则将预设摆放位置p对应的编号分配给处于真实位置c的物体。Specifically, when editing the object placement formation, a two-dimensional coordinate system is constructed, and the coordinates of each object are determined according to the preset placement position of each object. Then the preset placement position p1 of object No. 1 is (x p1, y p1 ), the preset placement position p of the unnumbered object is (x p , y p ), and the position deviation s1 is the deviation s1 of p1 and p on the x-axis and the deviation s1 y on the y-axis; after placing the object After the placement is completed, a two-dimensional coordinate system is constructed, and the coordinates of each object are determined based on the true position of each object. Then the default placement position c1 of object No. 1 is (x c1, y c1), and the default placement position c1 of the unnumbered object is The placement position p is (x c , y c ), and the position deviation s2 is the deviation s2 x of p1 and p on the x-axis and the deviation s2 y in the y-axis direction; if the deviation of s1 x and s2 x and the deviation of s1 y and s2 y The deviation is within the preset range, then the number corresponding to the preset placement position p is assigned to the object in the real position c.
本实施例在预设摆放时建立的二维坐标系和在实际摆放时建立的二维坐标系时,x p1 和y p1 不同时为0以及x c1 、y c1 不同时为0,即预设摆放时的坐标系和实际摆放时的坐标系不是以1号物体为原点建立的,有助于确定坐标系的x轴和y轴。本实施例是以1号物体以及待编号的物体所在位置为一个直角三角形的斜边的两个端点,以该直角三角形的两个直角边为坐标系的x轴和y轴。In this embodiment, when the two-dimensional coordinate system established during the preset placement is different from the two-dimensional coordinate system established during the actual placement, x p1 and y p1 are not 0 at the same time and x c1 and y c1 are not 0 at the same time, that is, The coordinate system during preset placement and the coordinate system during actual placement are not established with object No. 1 as the origin, which helps determine the x-axis and y-axis of the coordinate system. In this embodiment, the locations of object No. 1 and the object to be numbered are the two endpoints of the hypotenuse of a right triangle, and the two right sides of the right triangle are the x-axis and y-axis of the coordinate system.
并且,s1 x =x p -x p1 ;s1 y =y p1 -y p ;s2 x =x c -x c1 ;s2 y =y c -y c1 。若s2 x -s1 x 和s2 y -s1 y 在偏差范围内,即当s2 x ≈s1 x 、s2 y ≈s1 y 时,则将该预设摆放位置的编号分配给处于该真实摆放位置的物体。本实施例的偏差范围为±0.5m。在一些需要精度非常高的情况下,偏差范围为±0.05m。Moreover, s1 x =x p -x p1; s1 y =y p1 -y p; s2 x =x c -x c1; s2 y =y c -y c1. If s2 x -s1 x and s2 y -s1 y is within the deviation range, that is, when s2 x ≈s1 x and s2 y ≈s1 y, then the number of the preset placement position is assigned to the object in the real placement position. The deviation range of this embodiment is ±0.5m. In some cases where very high accuracy is required, the deviation range is ±0.05m.
另外,本实施例在步骤S9中,若位置偏差s1和位置偏差s2的差值不在预设范围内,发出警报通知人工处理。因为此时该位置的物体摆放偏差太大,需要人工重新摆放。或者是该位置还未摆放物体,同样需要人工进行摆放。In addition, in step S9 of this embodiment, if the difference between the position deviation s1 and the position deviation s2 is not within the preset range, an alarm is issued to notify manual processing. Because the object placement at this position deviates too much at this time, it needs to be manually rearranged. Or if there is no object placed at this location, it also needs to be placed manually.
本实施例的其他步骤与实施例一相同,此处不再赘述。Other steps in this embodiment are the same as those in Embodiment 1 and will not be described again here.
实施例三Embodiment 3
本实施与实施例二的区别在于,在实施例二的基础上,本实施例对编队飞行装置进行编号作具体说明。The difference between this embodiment and Embodiment 2 is that, based on Embodiment 2, this embodiment provides specific instructions on the numbering of formation flying devices.
在本实施例中,物体为飞行装置。编号方法包括:In this embodiment, the object is a flying device. Numbering methods include:
S1、预先设定飞行装置起飞前的摆放阵型;本实施例是根据预设表演图案,制定出飞行装置起飞前的摆放阵型的;S1. Preset the placement formation of the flying device before take-off; in this embodiment, the placement formation of the flying device before take-off is formulated based on the preset performance pattern;
S2、编辑物体的摆放阵型,确定各物体的预设摆放位置;S2. Edit the placement array of objects and determine the preset placement positions of each object;
S3、给各预设摆放位置上的物体分配编号;S3. Assign numbers to objects in each preset position;
S4、在根据步骤S1设定的阵型将物体摆放完成后,逐一将各预设摆放位置上的编号分配给对应的真实位置上的飞行装置,直至所有真实位置上摆放的飞行装置被编号完毕。S4. After the objects are placed according to the formation set in step S1, allocate the numbers at each preset placement position to the flying devices at the corresponding real positions one by one until all the flying devices placed at the real positions are Numbering completed.
具体地,在步骤S4中,包括:Specifically, in step S4, it includes:
S4.1、根据阵型指定起始编号的飞行装置,该飞行装置在实际摆放阵型中的位置与编号为1的预设摆放位置上的飞行装置在编辑阵型中的位置相对应,对该飞行装置分配编号1,编号为1的飞行装置为1号飞行装置;S4.1. Specify the starting number of the flying device according to the formation. The position of the flying device in the actual placement formation corresponds to the position of the flying device at the preset placement position numbered 1 in the editing formation. For this The flight device is assigned number 1, and the flight device numbered 1 is flight device No. 1;
S4.2、获取1号飞行装置的预设摆放位置p1和真实位置c1;S4.2. Obtain the preset position p1 and real position c1 of flight device No. 1;
S4.3、获取除1号飞行装置以外的下一个未分配编号的飞行装置的预设摆放位置p,若p存在,进行步骤S4.4,若p不存在,结束;S4.3. Obtain the default placement position p of the next unassigned flight device except No. 1 flight device. If p exists, proceed to step S4.4. If p does not exist, end;
S4.4、计算步骤S4.2获得的p1和步骤S4.3获得的p的位置偏差s1;S4.4. Calculate the position deviation s1 between p1 obtained in step S4.2 and p obtained in step S4.3;
S4.5、获取除1号飞行装置以外的下一个未编号的飞行装置的真实位置c,若c存在,进行步骤S4.6,若c不存在,结束;S4.5. Obtain the real position c of the next unnumbered flight device except flight device No. 1. If c exists, proceed to step S4.6. If c does not exist, end;
S4.6、计算步骤S4.2获得的c1和步骤S4.5获得的c的位置偏差s2;S4.6. Calculate the position deviation s2 between c1 obtained in step S4.2 and c obtained in step S4.5;
S4.7、若步骤S4.4获得的位置偏差s1和步骤S4.6获得的位置偏差s2的差值在预设范围内,则将预设摆放位置p对应的编号分配给处于真实位置c的飞行装置,然后返回步骤S4.3,直至遍历除1号飞行装置以外的所有飞行装置;否则,返回步骤S4.5。S4.7. If the difference between the position deviation s1 obtained in step S4.4 and the position deviation s2 obtained in step S4.6 is within the preset range, assign the number corresponding to the preset placement position p to the real position c flight device, then return to step S4.3 until all flight devices except flight device No. 1 are traversed; otherwise, return to step S4.5.
本实施例在步骤S4.7中,若位置偏差s1和位置偏差s2的差值不在预设范围内,发出警报通知人工处理。因为此时该位置的无人机摆放偏差太大,分配编号后也在会起飞后影响其他飞行装置,也存在起飞相撞的风险,需要人工重新摆放。或者是该位置还未摆放飞行装置,同样需要人工进行摆放。In step S4.7 of this embodiment, if the difference between the position deviation s1 and the position deviation s2 is not within the preset range, an alarm is issued to notify manual processing. Because the placement of the drone at this position is too deviated at this time, the assigned number will also affect other flying devices after takeoff, and there is also a risk of collision during takeoff, requiring manual rearrangement. Or if the flying device has not been placed at this location, it also needs to be placed manually.
此外,本实施例的方法还包括:In addition, the method of this embodiment also includes:
S5、在飞行装置起飞后、表演前,根据位置偏差s1和位置偏差s2调整各飞行装置之间的相对位置。飞行装置表演的航行是有预定路径的,若起始位置有偏差,那么在表演时的位置也是存在偏差的,就会导致编队不整齐、图案不美观,因此,在表演前,使飞行装置根据获得的位置偏差s1和位置偏差s2进行调整。位置调整是通过飞行装置自身的飞行进行调整的,不是通过人工调整。S5. After the flight device takes off and before the performance, adjust the relative position between each flight device according to the position deviation s1 and position deviation s2. The navigation of the flying device during the performance has a predetermined path. If the starting position is deviated, the position during the performance will also be deviated, which will lead to irregular formations and unsightly patterns. Therefore, before the performance, make the flying device according to the predetermined path. The obtained position deviation s1 and position deviation s2 are adjusted. The position adjustment is adjusted by the flight of the flight device itself, not by manual adjustment.
具体地,在步骤S5中,在飞行装置调整相对位置前,获取各飞行装置的海拔高度,并以海拔最高的飞行装置的高度为基准,使各飞行装置处于同一海拔高度。方便飞行装置后续的海拔高度调整。即在起飞后、表演前,预留3~5秒的时间,让编队中的所有飞行装置飞在同一海拔高度,然后按照编号将各飞行装置的x轴、y轴的位置调整好。Specifically, in step S5, before the relative positions of the flying devices are adjusted, the altitude of each flying device is obtained, and the altitude of the flying device with the highest altitude is used as a reference to keep each flying device at the same altitude. Convenient for subsequent altitude adjustment of the flight device. That is, after takeoff and before the performance, reserve 3 to 5 seconds for all flying devices in the formation to fly at the same altitude, and then adjust the position of the x-axis and y-axis of each flying device according to the number.
本实施例的方法还包括S6、根据各飞行装置的预设起始海拔高度与真实海拔最高的飞行装置高度的差值,进行高度补齐调整,在调整完成后再执行表演任务。在实际摆放中,由于受地形限制,摆放的地面不一定都是平整的,各飞行装置不都是在同一水平面上,即各飞行装置在竖直方向上也存在偏差,若在表演前不进行调整,会导致飞行装置表演时的飞行高度有偏差,导致图案不美观,影响表演时的整齐度、准确度。因此,本实施例在各飞行装置调整好x轴、y轴的位置后,再按照与海拔最高的飞行装置高度的差值,自动进行高度补齐操作。The method of this embodiment also includes S6: performing height compensation adjustment based on the difference between the preset starting altitude of each flying device and the height of the flying device with the highest real altitude, and then performing the performance task after the adjustment is completed. In actual placement, due to terrain restrictions, the ground is not necessarily flat, and each flying device is not always on the same horizontal plane. That is, there are also deviations in the vertical direction of each flying device. If before the performance, Failure to adjust will result in deviations in the flying height of the flying device during performance, resulting in unsightly patterns and affecting the neatness and accuracy of the performance. Therefore, in this embodiment, after each flying device adjusts the position of the x-axis and y-axis, the altitude compensation operation is automatically performed based on the height difference with the flying device with the highest altitude.
具体地,位置调整分为四个阶段。第一阶段为,飞行位置起飞,并按照指令升起一定高度,在该高度停留一段时间,获取各飞行装置的海拔高度。第二阶段为,以海拔最高的飞行装置的高度为基准,其余各飞行装置升高,让各飞行装置位于同一海拔高度。第三阶段为,根据位置偏差s1和位置偏差s2,各飞行装置通过自身飞行调整好x轴、y轴的位置。第四阶段为,根据海拔最高的飞行装置与其余飞行装置在竖直方向上的高度差,进行高度补齐,即预设位置高于该海拔最高的飞行装置的飞行装置升起,即预设位置低于该海拔最高的飞行装置的飞行装置下降。在位置调整好后,即摆好了表演前的阵型,再根据预设的航行轨迹飞到表演处进行表演。Specifically, position adjustment is divided into four stages. The first stage is to take off from the flight position, rise to a certain height according to the instructions, and stay at that height for a period of time to obtain the altitude of each flight device. In the second stage, based on the height of the highest flying device, the remaining flying devices are raised so that all flying devices are at the same altitude. The third stage is that according to the position deviation s1 and the position deviation s2, each flying device adjusts the position of the x-axis and y-axis through its own flight. The fourth stage is to perform height compensation based on the height difference in the vertical direction between the highest altitude flight device and the remaining flight devices, that is, the flight device whose preset position is higher than the highest altitude flight device rises, that is, the preset Flight units lower than the highest flight unit at that altitude descend. After the position is adjusted, the pre-performance formation is set up, and then the flight is flown to the performance location according to the preset flight trajectory for the performance.
本实施例的其他步骤与实施例二相同,此处不再赘述。Other steps in this embodiment are the same as those in Embodiment 2 and will not be described again here.
实施例四Embodiment 4
本实施例与实施例二的区别在于,在实施例二的基础上,本实施例对应用于对抗类游戏中的机器编号作具体说明。The difference between this embodiment and Embodiment 2 is that, based on Embodiment 2, this embodiment provides a detailed description of machine numbers used in confrontation games.
在本实施例中,物体为机器,编号方法包括:In this embodiment, the object is a machine, and the numbering method includes:
S1、预先设定机器起飞前的摆放阵型;本实施例在软件中通过对游戏的模拟,制定出对抗策略,根据对抗策略制定出各机器的初始摆放阵型;S1. Preset the placement formation of the machines before taking off; in this embodiment, through simulation of the game in the software, a confrontation strategy is developed, and the initial placement formation of each machine is formulated based on the confrontation strategy;
S2、编辑物体的摆放阵型,确定各物体的预设摆放位置;S2. Edit the placement array of objects and determine the preset placement positions of each object;
S3、给各预设摆放位置上的物体分配编号;S3. Assign numbers to objects in each preset position;
S4、在根据步骤S1设定的阵型将物体摆放完成后,逐一将各预设摆放位置上的编号分配给对应的真实位置上的机器,直至所有真实位置上摆放的机器被编号完毕。S4. After placing the objects according to the formation set in step S1, allocate the numbers at each preset placement position to the machines at the corresponding real positions one by one until all the machines placed at the real positions are numbered. .
具体地,在步骤S4中,包括:Specifically, in step S4, it includes:
S4.1、根据阵型指定起始编号的机器,该机器在实际摆放阵型中的位置与编号为1的预设摆放位置上的机器在编辑阵型中的位置相对应,对该机器分配编号1,编号为1的机器为1号机器;S4.1. Specify the starting number of the machine according to the formation. The position of the machine in the actual placement formation corresponds to the position of the machine at the preset placement position numbered 1 in the editing formation. Assign a number to the machine. 1. The machine numbered 1 is machine No. 1;
S4.2、获取1号机器的预设摆放位置p1和真实位置c1;S4.2. Obtain the preset position p1 and real position c1 of machine No. 1;
S4.3、获取除1号机器以外的下一个未分配编号的机器的预设摆放位置p,若p存在,进行步骤S4.4,若p不存在,结束;S4.3. Obtain the default placement position p of the next unassigned machine other than machine No. 1. If p exists, proceed to step S4.4. If p does not exist, end;
S4.4、计算步骤S4.2获得的p1和步骤S4.3获得的p的位置偏差s1;S4.4. Calculate the position deviation s1 between p1 obtained in step S4.2 and p obtained in step S4.3;
S4.5、获取除1号机器以外的下一个未编号的机器的真实位置c,若c存在,进行步骤S4.6,若c不存在,结束;S4.5. Obtain the real position c of the next unnumbered machine except machine No. 1. If c exists, proceed to step S4.6. If c does not exist, end;
S4.6、计算步骤S4.2获得的c1和步骤S4.5获得的c的位置偏差s2;S4.6. Calculate the position deviation s2 between c1 obtained in step S4.2 and c obtained in step S4.5;
S4.7、若步骤S4.4获得的位置偏差s1和步骤S4.6获得的位置偏差s2的差值在预设范围内,则将预设摆放位置p对应的编号分配给处于真实位置c的机器,然后返回步骤S4.3,直至遍历除1号机器以外的所有机器;否则,返回步骤S4.5。S4.7. If the difference between the position deviation s1 obtained in step S4.4 and the position deviation s2 obtained in step S4.6 is within the preset range, assign the number corresponding to the preset placement position p to the real position c machine, then return to step S4.3 until all machines except machine No. 1 are traversed; otherwise, return to step S4.5.
本实施例的其他步骤与实施例二相同,此处不再赘述。Other steps in this embodiment are the same as those in Embodiment 2 and will not be described again here.
实施例五Embodiment 5
本实施例提供一种基于实施例二的编号方法的编号系统,包括计算机端、物体和定位系统,计算机端包括用于对物体进行编号的软件;物体包括通信模块和位置信息模块,通信模块用于与计算机端进行通信,位置信息模块用于输出物体的位置信息;定位系统用于实现物体的相对定位,定位系统与位置信息模块通信连接。This embodiment provides a numbering system based on the numbering method of Embodiment 2, including a computer terminal, an object, and a positioning system. The computer terminal includes software for numbering objects; the object includes a communication module and a location information module. The communication module To communicate with the computer, the position information module is used to output the position information of the object; the positioning system is used to realize the relative positioning of the object, and the positioning system is communicatively connected with the position information module.
本实施例的物体为飞行装置,定位系统为差分定位系统,物体还包括灯光模块、编号模块、电力模块、飞控模块和旋翼,灯光模块用于发光,编号模块用于存储物体的编号,电力模块用于为物体整体供电,飞控模块用于物体的飞行控制,旋翼设于物体上,旋翼用于为物体提供升力。The object in this embodiment is a flying device, and the positioning system is a differential positioning system. The object also includes a lighting module, a numbering module, a power module, a flight control module, and a rotor. The lighting module is used to emit light, and the numbering module is used to store the number of the object. The module is used to provide power to the object as a whole, the flight control module is used to control the flight of the object, the rotor is set on the object, and the rotor is used to provide lift to the object.
在本实施例中,定位系统包括多个差分基站,差分基站与物体的位置信息模块通信连接,差分基站用于为物体提供差分数据,物体通过自身搭载的定位设备获取实际位置信息,位置信息模块根据获取的实际位置信息和差分数据进行定位,差分数据可为获取的实际位置信息进行修正,并且在差分基站未覆盖或信号不佳的区域,物体仍可以通过自身的定位设备和位置信息模块进行定位。In this embodiment, the positioning system includes multiple differential base stations. The differential base stations are communicatively connected to the position information module of the object. The differential base stations are used to provide differential data for the object. The object obtains actual position information through its own positioning device. The position information module Positioning is performed based on the acquired actual position information and differential data. The differential data can correct the acquired actual position information, and in areas not covered by differential base stations or with poor signals, objects can still be positioned through their own positioning equipment and position information modules. position.
本实施例的物体还包括蜂鸣器模块,蜂鸣器模块用于发出提示音。并且,本实施例的灯光模块具体用于灯光表演以及指示物体的状态。在灯光模块指示物体的状态时,灯光模块和蜂鸣器模块可以同时或单独作为物体编号是否成功的反馈,当物体被编号成功后,物体上的灯光模块可以发出绿色的灯光提示工作人员编号正常,此时计算机端的编号软件中,对应的物体同样以相同的颜色标记,例如绿色常亮;当物体没有被编号成功时,物体上的灯光模块可以发出红色的灯光,同时蜂鸣器模块可以报警来提示工作人员编号异常,此时计算机端的编号软件中,对应的物体同样以相同的颜色标记,该标记方式区别于编号正常的情况下的标记方式,例如红色呼吸灯,或按照一定规律闪烁的红灯,等等。The object in this embodiment also includes a buzzer module, which is used to emit a prompt sound. Moreover, the lighting module of this embodiment is specifically used for lighting performances and indicating the status of objects. When the lighting module indicates the status of the object, the lighting module and the buzzer module can be used as feedback at the same time or individually to determine whether the object numbering is successful. When the object is numbered successfully, the lighting module on the object can emit a green light to remind the staff that the numbering is normal. , at this time, in the numbering software on the computer side, the corresponding objects are also marked with the same color, for example, green is always on; when the object is not numbered successfully, the light module on the object can emit red light, and the buzzer module can alarm To remind the staff that the numbering is abnormal. At this time, in the numbering software on the computer side, the corresponding objects are also marked with the same color. This marking method is different from the marking method when the numbering is normal, such as a red breathing light, or a flashing light according to a certain pattern. Red light, etc.
本实施例的计算机端上的软件包括:The software on the computer side of this embodiment includes:
阵型编辑模块,用于编辑物体的摆放阵型,确定各物体的预设摆放位置,并给各预设摆放位置上的物体分配编号;The formation editing module is used to edit the placement formation of objects, determine the preset placement positions of each object, and assign numbers to the objects in each preset placement position;
编号分配模块,用于将各预设摆放位置上的编号分配给对应的真实位置上的物体。The number allocation module is used to allocate the numbers at each preset placement position to the objects at the corresponding real positions.
具体地,本实施例的编号分配模块包括:Specifically, the number allocation module in this embodiment includes:
1号物体指定单元,用于根据阵型指定1号物体,1号物体在实际摆放阵型中的位置与编号为1的预设摆放位置上的物体在编辑阵型中的位置相对应;The No. 1 object designation unit is used to designate the No. 1 object according to the formation. The position of the No. 1 object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation;
预设摆放位置获取单元,用于获取阵型编辑模块中各物体的预设摆放位置;The preset placement position acquisition unit is used to obtain the preset placement position of each object in the formation editing module;
真实位置获取单元,用于获取各物体的真实位置;The real position acquisition unit is used to obtain the real position of each object;
第一位置偏差计算单元,用于计算1号物体的预设摆放位置与下一个未分配编号的物体的预设摆放位置之间的位置偏差s1;The first position deviation calculation unit is used to calculate the position deviation s1 between the preset placement position of object No. 1 and the preset placement position of the next unassigned object;
第二位置偏差计算单元,用于计算1号物体的真实位置与下一个未分配编号的物体的真实位置之间的位置偏差s2;The second position deviation calculation unit is used to calculate the position deviation s2 between the true position of object No. 1 and the true position of the next unassigned object;
判断单元,用于判断第一位置偏差计算单元计算出的位置偏差s1和第二位置偏差计算单元计算出的位置偏差s2的差值是否在预设范围内,若是,将该预设摆放位置的编号分配给该真实位置上的物体,若否,调用预设摆放位置单元来获取下一个物体的预设摆放位置。The judgment unit is used to judge whether the difference between the position deviation s1 calculated by the first position deviation calculation unit and the position deviation s2 calculated by the second position deviation calculation unit is within a preset range. If so, the preset placement position The number is assigned to the object at the real position. If not, the default placement unit is called to obtain the default placement position of the next object.
本实施例的编号系统用于实现实施例一或实施例二的编号方法。The numbering system of this embodiment is used to implement the numbering method of Embodiment 1 or Embodiment 2.
实施例六Embodiment 6
本实施例提供一种计算机存储介质,该存储介质存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行实施例一或实施例二或实施例三或实施例四所述的方法。This embodiment provides a computer storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the first or second embodiment or the third or fourth embodiment. method described.
实施例七Embodiment 7
本实施例提供一种计算机设备,该计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行实施例一或实施例二或实施例三或实施例四所述的方法。This embodiment provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, it causes the processor to execute Embodiment 1 or Embodiment 1. 2 or the method described in Embodiment 3 or Embodiment 4.
综上,本发明实施例提供一种编号方法,其通过获得1号物体与其他物体在预设摆放位置上的位置偏差s1,以及获得1号物体与其他物体真实摆放时的位置偏差s2,比较s2是否在s1的差值范围内,若在,则将该预设摆放位置的编号赋予该真实摆放位置的物体,本发明实施例与现有的顺序编号不同,有一定的偏差范围,即使物体在摆放时有位置偏差也能获得编号,并且,各物体的编号是独立的,即使有些物体没有获得编号,也能保证其他获得编号的物体的编号是正确的,能够防止启动后相撞的问题,因此,本发明实施例的编号方法准确度高。另外,本发明实施例还提供一种基于上述编号方法的编号系统,以及提供一种存储实现上述方法的计算机程序的存储介质。此外,本发明实施例提供一种计算机设备,包括存储实现上述方法的计算机程序的存储器以及执行的处理器。In summary, the embodiment of the present invention provides a numbering method by obtaining the position deviation s1 between object No. 1 and other objects at the preset placement position, and obtaining the position deviation s2 between object No. 1 and other objects when they are actually placed. , compare whether s2 is within the difference range of s1, and if so, assign the number of the preset placement position to the object in the real placement position. The embodiment of the present invention is different from the existing sequential numbering, and there is a certain deviation. range, objects can be numbered even if there is a positional deviation when placed, and the numbers of each object are independent. Even if some objects are not numbered, it can ensure that the numbers of other numbered objects are correct, which can prevent startup Therefore, the numbering method of the embodiment of the present invention has high accuracy. In addition, embodiments of the present invention also provide a numbering system based on the above numbering method, and a storage medium that stores a computer program that implements the above method. In addition, embodiments of the present invention provide a computer device, including a memory that stores a computer program for implementing the above method and a processor that executes it.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和替换,这些改进和替换也应视为本发明的保护范围。The above are only preferred embodiments of the present invention. It should be noted that those of ordinary skill in the art can also make several improvements and substitutions without departing from the technical principles of the present invention. These improvements and substitutions It should also be regarded as the protection scope of the present invention.

Claims (15)

  1. 一种编号方法,其特征在于,包括如下步骤:A numbering method, characterized by including the following steps:
    S1、预先设定物体的摆放阵型;S1. Preset the placement array of objects;
    S2、编辑物体的摆放阵型,确定各物体的预设摆放位置;S2. Edit the placement array of objects and determine the preset placement positions of each object;
    S3、给各预设摆放位置上的物体分配编号;S3. Assign numbers to objects in each preset position;
    S4、在根据步骤S1设定的阵型将物体摆放完成后,逐一将各预设摆放位置上的编号分配给对应的真实位置上的物体,直至所有真实位置上摆放的物体被编号完毕。S4. After the objects are placed according to the formation set in step S1, assign the numbers at each preset placement position to the objects at the corresponding real positions one by one until all objects placed at the real positions are numbered. .
  2. 根据权利要求1所述的编号方法,其特征在于,在步骤S4中,包括:The numbering method according to claim 1, characterized in that, in step S4, it includes:
    S4.1、根据阵型指定起始编号的物体,该物体在实际摆放阵型中的位置与编号为1的预设摆放位置上的物体在编辑阵型中的位置相对应,对该物体分配编号1,编号为1的物体为1号物体;S4.1. Specify the starting number of the object according to the formation. The position of the object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation. Assign a number to the object. 1. The object numbered 1 is object No. 1;
    S4.2、获取1号物体的预设摆放位置p1和真实位置c1;S4.2. Obtain the default placement position p1 and real position c1 of object No. 1;
    S4.3、获取除1号物体以外的下一个未分配编号的物体的预设摆放位置p,若p存在,进行步骤S4.4,若p不存在,结束;S4.3. Obtain the default placement position p of the next unassigned object except object No. 1. If p exists, proceed to step S4.4. If p does not exist, end;
    S4.4、计算步骤S4.2获得的p1和步骤S4.3获得的p的位置偏差s1;S4.4. Calculate the position deviation s1 between p1 obtained in step S4.2 and p obtained in step S4.3;
    S4.5、获取除1号物体以外的下一个未编号的物体的真实位置c,若c存在,进行步骤S4.6,若c不存在,结束;S4.5. Obtain the true position c of the next unnumbered object except object No. 1. If c exists, proceed to step S4.6. If c does not exist, end;
    S4.6、计算步骤S4.2获得的c1和步骤S4.5获得的c的位置偏差s2;S4.6. Calculate the position deviation s2 between c1 obtained in step S4.2 and c obtained in step S4.5;
    S4.7、若步骤S4.4获得的位置偏差s1和步骤S4.6获得的位置偏差s2的差值在预设范围内,则将预设摆放位置p对应的编号分配给处于真实位置c的物体,然后返回步骤S4.3,直至遍历除1号物体以外的所有物体;否则,返回步骤S4.5。S4.7. If the difference between the position deviation s1 obtained in step S4.4 and the position deviation s2 obtained in step S4.6 is within the preset range, assign the number corresponding to the preset placement position p to the real position c object, then return to step S4.3 until all objects except object No. 1 are traversed; otherwise, return to step S4.5.
  3. 根据权利要求2所述的编号方法,其特征在于,在步骤S4.4中,位置偏差s1为p1和p在同一投影面上的投影的相对位置;在步骤S4.6中,位置偏差s2为c1和c在同一投影面上的投影的相对位置。The numbering method according to claim 2, characterized in that, in step S4.4, the position deviation s1 is the relative position of the projections of p1 and p on the same projection plane; in step S4.6, the position deviation s2 is The relative positions of the projections of c1 and c on the same projection plane.
  4. 根据权利要求1-3任一项所述的编号方法,其特征在于,在设定物体摆放阵型时,构建二维坐标系,根据各物体的预设摆放位置,确定各物体的坐标,则1号物体的预设摆放位置p1为(x p1 ,y p1 ),未编号的物体的预设摆放位置p为(x p ,y p ),位置偏差s1为p1和p在x轴上的偏差s1 x 和y轴方向上的偏差s1 y ;The numbering method according to any one of claims 1 to 3, characterized in that when setting the object placement array, a two-dimensional coordinate system is constructed, and the coordinates of each object are determined according to the preset placement position of each object. Then the default placement position p1 of object No. 1 is (x p1, y p1), the default placement position p of the unnumbered object is (x p, y p), and the position deviation s1 is the difference between p1 and p on the x axis. Deviation s1 x and deviation s1 y in the y-axis direction;
    在将物体摆放完成后,构建二维坐标系,根据各物体的真实位置,确定各物体的坐标,则1号物体的预设摆放位置c1为(x c1 ,y c1 ),未编号的物体的预设摆放位置p为(x c ,y c ),位置偏差s2为p1和p在x轴上的偏差s2 x 和y轴方向上的偏差s2 y ;After the objects are placed, a two-dimensional coordinate system is constructed, and the coordinates of each object are determined based on the true position of each object. Then the default placement position c1 of object No. 1 is (x c1, y c1), and the unnumbered The preset placement position p of the object is (x c , y c ), and the position deviation s2 is the deviation s2 x of p1 and p on the x axis and the deviation s2 y in the y axis direction;
    若s1 x 和s2 x 的偏差以及s1 y 和s2 y 的偏差在预设范围内,则将预设摆放位置p对应的编号分配给处于真实位置c的物体。If the deviation between s1 x and s2 x and the deviation between s1 y and s2 y are within the preset range, then the number corresponding to the preset placement position p is assigned to the object in the real position c.
  5. 根据权利要求2-4任一项所述的编号方法,其特征在于,在步骤S4.7中,若位置偏差s1和位置偏差s2的差值不在预设范围内,发出警报通知人工处理。The numbering method according to any one of claims 2 to 4, characterized in that, in step S4.7, if the difference between the position deviation s1 and the position deviation s2 is not within the preset range, an alarm is issued to notify manual processing.
  6. 根据权利要求1所述的编号方法,其特征在于,物体为飞行装置,方法还包括:The numbering method according to claim 1, wherein the object is a flying device, and the method further includes:
    S5、在物体起飞后、表演前,根据位置偏差s1和位置偏差s2调整各物体之间的相对位置。S5. After the objects take off and before the performance, adjust the relative positions between the objects according to the position deviation s1 and the position deviation s2.
  7. 根据权利要求6所述的编号方法,其特征在于,在步骤S5中,在物体调整相对位置前,获取各物体的海拔高度,并以海拔最高的物体的高度为基准,使各物体处于同一海拔高度。The numbering method according to claim 6, characterized in that, in step S5, before the objects adjust their relative positions, the altitude of each object is obtained, and the height of the object with the highest altitude is used as a benchmark to make each object at the same altitude. high.
  8. 根据权利要求6或7所述的编号方法,其特征在于,还包括:The numbering method according to claim 6 or 7, further comprising:
    S6、根据各物体的预设起始海拔高度与真实海拔最高的物体高度的差值,进行高度补齐调整,在调整完成后再执行表演任务。S6. Make height compensation adjustments based on the difference between the preset starting altitude of each object and the height of the object with the highest real altitude, and then perform the performance task after the adjustment is completed.
  9. 根据权利要求2-8任一项所述的编号方法,其特征在于,在步骤S4.2和步骤S4.5中,根据各物体上的位置信息模块获得各物体的真实位置。The numbering method according to any one of claims 2 to 8, characterized in that, in steps S4.2 and S4.5, the true position of each object is obtained according to the position information module on each object.
  10. 一种编号系统,其特征在于,包括计算机端、物体和定位系统,A numbering system, characterized by including a computer terminal, an object and a positioning system,
    所述计算机端包括用于对物体进行编号的软件;The computer terminal includes software for numbering objects;
    所述物体包括通信模块和位置信息模块,所述通信模块用于与所述计算机端进行通信,所述位置信息模块用于输出物体的位置信息;The object includes a communication module and a position information module, the communication module is used to communicate with the computer terminal, and the position information module is used to output the position information of the object;
    所述定位系统用于实现物体的相对定位,所述定位系统与所述位置信息模块通信连接。The positioning system is used to realize relative positioning of objects, and the positioning system is communicatively connected with the position information module.
  11. 根据权利要求10所述的编号系统,其特征在于,所述物体为飞行装置,所述定位系统为差分定位系统,所述物体还包括灯光模块、编号模块、电力模块、飞控模块和旋翼,所述灯光模块用于发出灯光,所述编号模块用于存储物体的编号,所述电力模块用于为所述物体整体供电,所述飞控模块用于所述物体的飞行控制,所述旋翼设于所述物体上,所述旋翼用于为所述物体提供升力。The numbering system according to claim 10, wherein the object is a flying device, the positioning system is a differential positioning system, and the object also includes a lighting module, a numbering module, a power module, a flight control module and a rotor, The lighting module is used to emit light, the numbering module is used to store the number of the object, the power module is used to power the entire object, the flight control module is used to control the flight of the object, and the rotor Located on the object, the rotor is used to provide lift for the object.
  12. 根据权利要求10或11所述的编号系统,其特征在于,所述软件包括:The numbering system according to claim 10 or 11, characterized in that the software includes:
    阵型编辑模块,用于编辑物体的摆放阵型,确定各物体的预设摆放位置,并给各预设摆放位置上的物体分配编号;The formation editing module is used to edit the placement formation of objects, determine the preset placement positions of each object, and assign numbers to the objects in each preset placement position;
    编号分配模块,用于将各预设摆放位置上的编号分配给对应的真实位置上的物体。The number allocation module is used to allocate the numbers at each preset placement position to the objects at the corresponding real positions.
  13. 根据权利要求12所述的编号系统,其特征在于,所述编号分配模块包括:The numbering system according to claim 12, characterized in that the number allocation module includes:
    1号物体指定单元,用于根据阵型指定1号物体,1号物体在实际摆放阵型中的位置与编号为1的预设摆放位置上的物体在编辑阵型中的位置相对应;The No. 1 object designation unit is used to designate the No. 1 object according to the formation. The position of the No. 1 object in the actual placement formation corresponds to the position of the object at the preset placement position numbered 1 in the editing formation;
    预设摆放位置获取单元,用于获取阵型编辑模块中各物体的预设摆放位置;The preset placement position acquisition unit is used to obtain the preset placement position of each object in the formation editing module;
    真实位置获取单元,用于获取各物体的真实位置;The real position acquisition unit is used to obtain the real position of each object;
    第一位置偏差计算单元,用于计算1号物体的预设摆放位置与下一个未分配编号的物体的预设摆放位置之间的位置偏差s1;The first position deviation calculation unit is used to calculate the position deviation s1 between the preset placement position of object No. 1 and the preset placement position of the next unassigned object;
    第二位置偏差计算单元,用于计算1号物体的真实位置与下一个未分配编号的物体的真实位置之间的位置偏差s2;The second position deviation calculation unit is used to calculate the position deviation s2 between the true position of object No. 1 and the true position of the next unassigned object;
    判断单元,用于判断第一位置偏差计算单元计算出的位置偏差s1和第二位置偏差计算单元计算出的位置偏差s2的差值是否在预设范围内,若是,将该预设摆放位置的编号分配给该真实位置上的物体,若否,调用预设摆放位置单元来获取下一个物体的预设摆放位置。The judgment unit is used to judge whether the difference between the position deviation s1 calculated by the first position deviation calculation unit and the position deviation s2 calculated by the second position deviation calculation unit is within a preset range. If so, the preset placement position The number is assigned to the object at the real position. If not, the default placement unit is called to obtain the default placement position of the next object.
  14. 一种计算机存储介质,其特征在于,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行权利要求1~9任意一项所述方法。A computer storage medium, characterized in that a computer program is stored therein, and when the computer program is executed by a processor, it causes the processor to execute the method described in any one of claims 1 to 9.
  15. 一种计算机设备,其特征在于,所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行权利要求1~9任意一项所述方法。A computer device, characterized in that the computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, it causes the processor to execute claims 1 to 9 any of the above methods.
PCT/CN2022/141676 2022-03-30 2022-12-23 Numbering method and system, and storage medium and device WO2023185138A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210327068.5A CN114815879A (en) 2022-03-30 2022-03-30 Numbering method, system, storage medium and equipment
CN202210327068.5 2022-03-30

Publications (1)

Publication Number Publication Date
WO2023185138A1 true WO2023185138A1 (en) 2023-10-05

Family

ID=82533657

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141676 WO2023185138A1 (en) 2022-03-30 2022-12-23 Numbering method and system, and storage medium and device

Country Status (2)

Country Link
CN (1) CN114815879A (en)
WO (1) WO2023185138A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114815879A (en) * 2022-03-30 2022-07-29 亿航智能设备(广州)有限公司 Numbering method, system, storage medium and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111123978A (en) * 2019-12-26 2020-05-08 一飞智控(天津)科技有限公司 Position-based cluster unmanned aerial vehicle automatic numbering processing system and method, and unmanned aerial vehicle
US20200153634A1 (en) * 2018-11-12 2020-05-14 Drone Delivery Canada Corp. System and method for secure communication with one or more unmanned aerial vehicles
CN111554128A (en) * 2020-04-27 2020-08-18 深圳市高巨创新科技开发有限公司 Numbering method and terminal for cluster unmanned aerial vehicle
CN112379687A (en) * 2020-10-21 2021-02-19 一飞(海南)科技有限公司 Method and system for automatically generating numbers for square matrix, storage medium and unmanned aerial vehicle
CN112631323A (en) * 2020-11-19 2021-04-09 一飞(海南)科技有限公司 Cluster unmanned aerial vehicle grouping assignment method, system, controller, medium and terminal
CN114815879A (en) * 2022-03-30 2022-07-29 亿航智能设备(广州)有限公司 Numbering method, system, storage medium and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200153634A1 (en) * 2018-11-12 2020-05-14 Drone Delivery Canada Corp. System and method for secure communication with one or more unmanned aerial vehicles
CN111123978A (en) * 2019-12-26 2020-05-08 一飞智控(天津)科技有限公司 Position-based cluster unmanned aerial vehicle automatic numbering processing system and method, and unmanned aerial vehicle
CN111554128A (en) * 2020-04-27 2020-08-18 深圳市高巨创新科技开发有限公司 Numbering method and terminal for cluster unmanned aerial vehicle
CN112379687A (en) * 2020-10-21 2021-02-19 一飞(海南)科技有限公司 Method and system for automatically generating numbers for square matrix, storage medium and unmanned aerial vehicle
CN112631323A (en) * 2020-11-19 2021-04-09 一飞(海南)科技有限公司 Cluster unmanned aerial vehicle grouping assignment method, system, controller, medium and terminal
CN114815879A (en) * 2022-03-30 2022-07-29 亿航智能设备(广州)有限公司 Numbering method, system, storage medium and equipment

Also Published As

Publication number Publication date
CN114815879A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN107728642B (en) Unmanned aerial vehicle flight control system and method thereof
CN107943073B (en) Unmanned aerial vehicle taking-off and landing method, equipment and system and unmanned aerial vehicle
WO2023185138A1 (en) Numbering method and system, and storage medium and device
US9007461B2 (en) Aerial photograph image pickup method and aerial photograph image pickup apparatus
CN106020237A (en) Multi-vehicle working air line planning method and system of plant protection unmanned aerial vehicles and spraying working method and system of plant protection unmanned aerial vehicles
CN107808550B (en) Plant protection unmanned aerial vehicle management system
CN109785381B (en) Optical inertia fusion space positioning method and positioning system
CN103730864B (en) The cooperative control method of unmanned plane power circuit polling
CN105513434A (en) Unmanned plane flight control system and control method thereof
CN111123978B (en) Automatic numbering processing system and method for clustered unmanned aerial vehicle based on position and unmanned aerial vehicle
WO2020216248A1 (en) Airline splicing method and system, and user terminal
CN109581891B (en) Formation simulation method and system for unmanned aerial vehicle and storage medium
CN109407700A (en) A kind of unmanned plane independent landing method and its implementing device guided using image
CN115014361A (en) Air route planning method, device and computer storage medium
CN109857139A (en) City low-to-medium altitude load-carrying 7kg and following rank unmanned plane space precise positioning technology
CN205405925U (en) Unmanned aerial vehicle air traffic control system
CN113759940A (en) Unmanned aerial vehicle landing method and device, unmanned aerial vehicle system, airport, equipment and medium
CN111047697A (en) Distributed photovoltaic power station survey system based on multi-rotor unmanned aerial vehicle
CN113504794B (en) Unmanned aerial vehicle cluster reconstruction method, unmanned aerial vehicle cluster reconstruction system and electronic equipment
WO2021072766A1 (en) Flight control method and system, unmanned aerial vehicle, and storage medium
CN112748454B (en) Method, system, equipment, medium and terminal for screening overlarge landing deviation of unmanned aerial vehicle
CN112987766B (en) Unmanned aerial vehicle landing control method and device, storage medium and electronic equipment
KR20190102666A (en) Management system for unmanned aerial vehicle using mission profile and management method therefor
CN111076707A (en) Antenna attitude measurement method, device and system and storage medium
KR102260686B1 (en) Drone landing field having indicators and landing method in the landing field

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

Country of ref document: EP

Kind code of ref document: A1