A UAV swarm control method based on virtual reality
Through virtual reality technology, the gesture and eye tracking functions of the head-mounted display device are used, combined with machine learning algorithms, to realize interactive control of drone clusters, solving the problems of complexity and lack of interactivity in drone cluster control, and providing a better Good operating experience and flexibility.
Patent Information
- Application Number
- CN202410813339.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-24
AI Technical Summary
The existing drone swarm control method is complex and unfriendly in a multi-drone environment. It is difficult to control especially for beginners, is unfavorable to operate in emergency situations, lacks interactivity, and is difficult to meet the high requirements in virtual reality scenarios. The formation coordinates flight and rapid transformation.
Using a drone cluster control method based on virtual reality, the user's gesture images and eye movement data are collected in real time through the head-mounted display device, gesture actions and eye movement data are recognized, and combined with the pre-established mapping table and machine learning algorithm, the drone is realized Interactive control of the cluster reduces control complexity.
It achieves efficient interactive control of drone clusters in a virtual reality environment, reduces operational complexity, and provides users with a better interactive experience. It is suitable for virtual reality air combat games, flight training and other scenarios.
Smart Images

Figure CN118377312B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of unmanned aerial vehicle control, and in particular to a unmanned aerial vehicle cluster control method based on virtual reality. Background Art
[0002] In the field of drones, in an environment with multiple drones, how to control a drone cluster so that it can fly in a desired formation has always been a topic of great concern. Traditional drone control methods are mainly remote control, smartphone or tablet control, which means that people usually interact with drones through a physical device and a fully set program method, which cannot fully meet some of people's special needs. In addition, when faced with a cluster of multiple drones, the above methods are even more difficult to control, especially for beginners. At the same time, there are also technologies such as global positioning system (GPS) navigation to allow drones to fly autonomously, or equipped with visual sensors and other equipment to enable drones to perform specific tasks. However, these technologies all allow drones to fly in a preset way, and it is more difficult to change midway, and it also depends on the experience level of the operator.
[0003] In terms of virtual reality, drones can be combined with a variety of scenarios, such as virtual reality air combat games, drone flight training, art performances, etc. These scenarios have high requirements for the control and command of drone clusters and the rapid change of drone formations, which are difficult to operate with just a handle. Therefore, a set of drone cluster control methods is needed to assist in control.
[0004] In summary, the current drone cluster control methods lack certain interactivity in some aspects, which may affect the experience of first-time users and may also be unfavorable for operation in some emergency situations. Summary of the invention
[0005] The purpose of the present invention is to provide a UAV cluster control method based on virtual reality, which has interactivity in the process of UAV cluster control and reduces the complexity of UAV cluster control.
[0006] To achieve the above object, the present invention provides a drone cluster control method based on virtual reality, comprising the following steps.
[0007] The user wears a head-mounted display device to enter the virtual environment.
[0008] The user's preliminary gesture image and the user's eye movement data are collected in real time through the head display device.
[0009] The user's gesture action is recognized from the preliminary gesture image.
[0010] The drone control instruction corresponding to the user's gesture action is determined based on a pre-established mapping table; the mapping table includes multiple groups of key-value pairs, the key in each group of key-value pairs represents the gesture action, and the value in each group of key-value pairs represents the drone control instruction.
[0011] Determine corresponding drone control instructions according to the user's eye movement data.
[0012] Based on the drone control instructions corresponding to the user's gesture actions and the drone control instructions corresponding to the user's eye movement data, the flight status of the drone cluster is controlled, and the flight status of the drone cluster is rendered in real time in the virtual environment; the flight status includes the position, speed and direction of each drone in the drone cluster.
[0013] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: the present invention uses the hand tracking and eye tracking functions of the head-mounted display device, uses gestures and eye movement data to interact with a drone cluster in a virtual reality environment, commands the flight status of the drone cluster, and is interactive during the drone cluster control process, thereby reducing the complexity of drone cluster control and being able to bring a better interactive experience to users. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0015] Figure 1 This is a flow chart of the virtual reality-based drone cluster control method provided by the present invention.
[0016] Figure 2 A diagram showing the gesture for selecting a rectangular range.
[0017] Figure 3 Schematic diagram of forward and backward gestures.
[0018] Figure 4 A diagram of gestures for user-defined paths.
[0019] Figure 5 Schematic diagram of hand gestures for emergency stop and rejoining.
[0020] Figure 6 This is a hand gesture diagram for a horizontal circular formation.
[0021] Figure 7 This is a hand gesture diagram for a vertical circular formation.
[0022] Figure 8 A diagram of gestures for user-defined formations.
[0023] Fig. 9 Schematic diagram of the target selected for fixation. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] The purpose of the present invention is to provide a method for controlling a drone cluster based on virtual reality, which controls the drone cluster by means of hand tracking and eye tracking, and solves the problems of high cost and difficult transplantation while satisfying better interactivity.
[0026] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0027] like Figure 1 As shown, the virtual reality-based drone cluster control method provided by the present invention includes steps 100 to 600.
[0028] Step 100: The user wears a head-mounted display device to enter a virtual environment.
[0029] In this embodiment, the head display device is an HTC Vive XR head display.
[0030] Specifically, the process of gesture initialization is: the user wears a VR headset to enter the virtual environment, puts one or both hands in front of the headset, and the VR headset obtains the user's gesture information and renders it in the VR interface visible to the user. The process of eye movement initialization is: the user wears a VR headset to enter the virtual environment, blinks twice, and the control method based on eye tracking is enabled. Eye tracking can be used in conjunction with hand tracking to control the drone cluster to provide a better control experience.
[0031] The drone cluster is initialized as a strip queue, arranged horizontally on the ground in front of the user. If there is already a formation, continue with the existing formation. Users can command the drone cluster through pre-defined gestures (including fingers, one hand, and two hands) to form different formations. Users can also command the drone cluster through eye movements such as staring, blinking, closing eyes, moving eyeballs, moving gaze points, and scanning to form different formations.
[0032] Step 200: Collecting a preliminary gesture image and eye movement data of the user in real time through the head display device. The preliminary gesture image includes a preliminary RGB image and a preliminary depth image.
[0033] Specifically, the head display device is equipped with a full face tracker, a front camera and a depth sensor, and the full face tracker is used to collect the user's eye movement data in real time. The front camera is used to collect a preliminary RGB image in real time, and the depth sensor is used to collect a preliminary depth image in real time.
[0034] The front camera is capable of delivering clear 16-megapixel images, ensuring clarity of action.
[0035] The depth sensor can capture the distance of the hand relative to the front camera. The depth information exists in the form of the distance from each pixel to the camera, usually presented as a 16-bit grayscale image, where the grayscale value of each pixel represents the depth information of that point.
[0036] The captured preliminary RGB image is stored in the form of a two-dimensional pixel array, where each pixel contains RGB color information. The depth information is represented in the same pixel array, but the value of each pixel represents the relative distance of the point to the front camera.
[0037] The HTC Vive XR headset is equipped with a new full-face tracker accessory, which includes high-precision eye tracking technology. The full-face tracker can capture data such as eye movement, blinking frequency, and gaze point. Specifically, ① it can capture the rapid movement and slow tracking movement of the eyeball (smooth tracking), represented by a continuous point sequence in a two-dimensional coordinate system, and record the movement path of the eyeball in a time series; ② it can record the coordinate position of the user's gaze point in the virtual environment, represented by three-dimensional spatial coordinates, corresponding to the position where the user is looking in the virtual environment; ③ it can capture blinking movements, including the number of blinks and the interval between blinks, and record the start and end time of each blink in the form of a timestamp; ④ it can measure the duration of eye closure, design the timestamps for the start and end of eye closure, and calculate the total duration of eye closure. At the same time, ensure the synchronization of eye movement data and gesture data in time to facilitate subsequent data integration and analysis.
[0038] Step 300: Identify the user's gesture action from the preliminary gesture image.
[0039] Further, step 300 includes steps 301 to 306 .
[0040] Step 301: For any pixel in the preliminary RGB image, use the formula , , Each color channel value of the pixel is adjusted to obtain a preprocessed RGB image.
[0041] Wherein, R is the red channel value of the pixel in the preliminary RGB image, G is the green channel value of the pixel in the preliminary RGB image, and B is the blue channel value of the pixel in the preliminary RGB image. is the red channel value of the pixel in the preprocessed RGB image, is the green channel value of the pixel in the preprocessed RGB image, is the blue channel value of the pixel in the preprocessed RGB image, is the average value of the red channel in the preliminary RGB image, is the average value of the green channel in the preliminary RGB image, is the average value of the blue channel in the preliminary RGB image.
[0042] Step 302: Perform Gaussian blur processing on the pre-processed RGB image to obtain a denoised RGB image.
[0043] In this embodiment, Gaussian blur is achieved through a 3×3 Gaussian kernel. Each element in the Gaussian kernel is a Gaussian function. The calculation formula is: .in, and is the position coordinate of the pixel in the kernel relative to the center pixel, is the standard deviation, controlling the degree of blur.
[0044] For each pixel in the preprocessed RGB image, a Gaussian kernel is applied with it as the center, that is, each value in the Gaussian kernel is multiplied by its corresponding pixel value, and then these products are added together, and the new pixel value is the average of all these product sums.
[0045] Step 303: For any pixel in the preliminary depth image, use the formula The depth pixel value of the pixel point is converted into the actual distance to obtain a preprocessed depth image; wherein, is the depth pixel value of the pixel point, is the minimum possible value of the depth value, which is the closest distance that the depth sensor can measure. is the maximum possible value of the depth value, which is the farthest distance that the depth sensor can measure. For the corresponding The actual minimum distance when For the corresponding The actual maximum distance.
[0046] For the depth information, normalization is first performed to convert the depth value into the actual distance. Then the depth information is used to perform background removal, and only pixels within a specific depth range are retained.
[0047] Step 304: Combine the denoised RGB image with the pre-processed depth image to obtain a final gesture image, that is, use the depth information to improve the extraction of the hand contour, and provide more accurate input data for subsequent gesture recognition.
[0048] Step 305: Use a Canny edge detector to perform edge detection on the final gesture image and extract the hand contour to obtain a hand contour image.
[0049] The Canny edge detector first calculates the gradient magnitude and direction of each pixel in the final gesture image. The Sobel operator is used to provide gradient values in the horizontal and vertical directions. Pixels are checked in the gradient direction, and only the points with local maxima in the gradient direction are retained, and other non-maximum points are suppressed. This is followed by dual threshold detection, which determines two thresholds: a low threshold and a high threshold. If the gradient strength of a pixel is higher than the high threshold, it is considered an edge. If the gradient strength is lower than the low threshold, it is excluded. If the gradient strength is between the two, it is considered an edge only if it is connected to a pixel higher than the high threshold. The edge is finally determined by suppressing isolated weak edges. The hand contour is extracted based on the results of the Canny edge detection.
[0050] Step 306: Using a convolutional neural network (CNN), determine the user's gesture according to the hand contour image. The convolutional neural network is pre-trained using a training sample set. The training sample set includes multiple groups of hand contour sample images and their corresponding gestures.
[0051] The present invention identifies the unique features of each gesture action based on the designed gesture action set. Taking the click single-select action as an example, identifying the position and state of the index finger (such as straight, bent) is the key. By detecting the specific contours of the fingertips and their movements (such as click actions), it can be determined whether the user intends to perform a single-select operation. After determining the contour of the index finger, by analyzing its movement trajectory (such as a short downward movement and then a bounce), it is determined whether a click action has occurred.
[0052] The present invention designs a convolutional neural network for learning and classifying gesture features. The architecture of CNN is designed as follows: the input layer receives the hand contour image. The first convolutional layer uses a set of learned filters to extract low-level features in the hand contour image, such as edges and corners. 32 filters, each of size 3×3, are used, and these filters slide on the hand contour image to extract features. An activation layer after the convolutional layer selects ReLU as the activation function. A maximum pooling layer with a window size of 2×2 is used. The pooling layer is used to reduce the spatial size of the convolutional layer output, thereby reducing network parameters and computation, and helping to control overfitting. The second convolutional layer uses more 64 filters, also of size 3×3, to further extract image features. The learned features are mapped to the final classification through a fully connected layer.
[0053] After the above convolution and pooling layers, the hand contour image is flattened and input to the fully connected layer. The present invention designs 20 different hand gestures. The task is to identify these 20 different hand gestures, then the last fully connected layer will have 20 output nodes, each node corresponding to a hand gesture. The last output layer is a softmax layer, which converts the output into a probability distribution, and the value of each node represents the probability of the corresponding hand gesture.
[0054] The trained convolutional neural network can receive new hand outline images as input and output a probability distribution representing the likelihood of each gesture, with the gesture with the highest probability as the output result.
[0055] Step 400: Determine the drone control instruction corresponding to the user's gesture action based on a pre-established mapping table.
[0056] As a specific implementation, the gesture actions in the mapping table include single gestures and combined gestures.
[0057] In the specific control method, mapping rules are predefined to correspond each gesture action to a specific drone control command. To achieve this mapping, a mapping table is created. The mapping table is a set of key-value pairs, where the key is the gesture action (gesture name) and the value is the corresponding drone control command. At the same time, it is necessary to consider that some gesture actions will correspond to different commands in different states.
[0058] For example, if you want the drone to rise, the drone must be selected first. Assuming there is a gesture action "Gesture_A" and another gesture action "Gesture_B", or in some cases two consecutive gesture actions "Gesture_A" followed by "Gesture_B" are recognized, the command mapping in a specific state is as follows: {"Gesture_A+Gesture_B":{"State_1":"ComboCommand_1","State_2":"ComboCommand_2"},"Gesture_A":{"State_1":"Command_A1","State_2":"Command_A2"},"Gesture_B":{"State_1":"Command_B1","State_2":"Command_B2"}}, where "Gesture_A+Gesture_B" is a combination gesture key, indicating that the "Gesture_A" gesture action is recognized first, followed by the "Gesture_B" gesture action.
[0059] After determining which gestures require state information, the current operation state is tracked through state variables. The user performs a specific gesture to trigger a change from one state to another. In the specific implementation, conditional judgments are added to the mapping logic to dynamically modify the entries in the mapping table according to the current state. For example, if the current drone is not selected, the mapping of the upward gesture action is empty. When it is selected, the upward gesture action is mapped to the drone's ascent.
[0060] Before collecting the preliminary gesture image of the user in real time through the head display device, the virtual reality-based drone cluster control method further includes: receiving a gesture mode selected by the user. The gesture mode is a single gesture or a combined gesture.
[0061] In this embodiment, step 400 specifically includes step 401 and step 402 .
[0062] Step 401: When the gesture mode selected by the user is a single gesture, the user's gesture action is matched with the single gesture in the mapping table, and the drone control instruction is determined according to the single gesture matching the user's gesture action.
[0063] Step 402: When the gesture mode selected by the user is a combination gesture, a continuous gesture action is determined based on the user's gesture actions recognized at each moment within a set time period, the continuous gesture action is matched with the combination gesture in the mapping table, and the drone control instruction is determined based on the combination gesture matching the continuous gesture action.
[0064] The present invention recognizes a series of continuous gestures as a group of combined commands for continuous gestures. A time window is set to recognize continuous gestures. If multiple identical or different gestures appear continuously in a short time, they are recognized as a combined gesture. In specific implementation, a buffer and a state machine are used to track and process continuous gestures. A buffer queue is created to store gestures recognized within a set time window, and the buffer is updated to retain all gestures recognized within the time window. A simple state transition rule is defined for the state machine. Taking "user-defined path" as an example, the state in which the state machine waits for the first gesture to be recognized is the initial state. When it is in the initial state and recognizes the gesture of "user drawing a path with one finger", the state machine switches to the next "path planning" state. When the gesture of "drawing an arrow" is recognized within the set time window, the state machine switches to the combined gesture recognition success state. If the combined gesture recognition success state is reached or the time window is exceeded while waiting for the next gesture, the state machine will return to the initial state and prepare to start the next continuous gesture recognition to continuously monitor the user's gestures and map the recognition results to the corresponding drone control instructions in real time.
[0065] In this embodiment, the user's gesture action includes a selection gesture, a movement gesture, and a formation gesture. The selection gesture is used to select a drone. The movement gesture is used to adjust the flight state of the selected drone. The formation gesture is used to adjust the formation of the drone cluster.
[0066] The selection gestures include single selection actions, rectangular frame selection range, custom range and all selection actions.
[0067] The movement gestures include take-off and landing, forward and backward, left and right movement, custom path, target lock, leader selection, emergency stop and rejoin, and cancel action.
[0068] The formation gestures include regular formations and custom formations.
[0069] Step 500: Determine corresponding drone control instructions according to the user's eye movement data.
[0070] Specifically, step 500 includes step 501 and step 502 .
[0071] Step 501: Extract the user's eye movement features based on the user's eye movement data. The eye movement data includes gaze, movement of gaze point, blinking and eye closure. The eye movement features include the duration of gaze within a set period, the change of gaze point, the movement path of gaze point, blinking frequency and the duration of eye closure.
[0072] In this embodiment, the eye movement data is first normalized. For each gaze point's three-dimensional spatial coordinate (x , y , z ), and calculate the maximum and minimum values in the entire data set respectively. The data in the entire data set are divided by time, and the data set includes the three-dimensional spatial coordinates of the gaze point within a period of time. Using the formula right x The axis coordinates are scaled using the formula right y The axis coordinates are scaled using the formula right z The axis coordinates are scaled to scale each 3D spatial coordinate of the eye movement data to a standard range of 0 to 1. The largest x Axis coordinates, The minimum value in the data set x Axis coordinates, The largest y Axis coordinates, The minimum value in the data set y Axis coordinates, The largest z Axis coordinates, The minimum value in the data set z Axis coordinates, After normalization x Axis coordinates, After normalization y Axis coordinates, After normalization z Axis coordinates.
[0073] At the same time, the mean of the entire data set is calculated ( ) and standard deviation ( ), using the formula right x The axis coordinates are standardized using the formula right y The axis coordinates are standardized using the formula right z The axis coordinates are standardized to convert the data into a format with zero mean and unit standard deviation to reduce differences between users. For the dataset x Axis coordinate mean, For the dataset y Axis coordinate mean, For the dataset z Axis coordinate mean, For the dataset x Axis coordinate variance, For the dataset y Axis coordinate variance, For the dataset z Axis coordinate variance, After standardization x Axis coordinates, After standardization y Axis coordinates, After standardization z Axis coordinates.
[0074] After preprocessing the data, extract the features of the eye movement data. Extract the changes in gaze duration and gaze point to identify the user's gaze target. At the same time, extract the path of the gaze point moving from one position to another, including the speed and trajectory of the movement. Extract the user's blinking frequency, including the number of blinks and the time interval between each blink, record the duration of each blink, and distinguish between fast and slow blinks (that is, distinguish between natural blinks and intended blinks, such as fast and continuous blinks used to send commands). If the eyes remain still for two seconds, it is considered that the user is looking at a point. If the eyes move within a small area, it can also be considered as a gaze.
[0075] Step 502: using a pre-trained support vector machine (SVM) to classify the eye movement features of the user, and determine the drone control instructions corresponding to the eye movement features of the user.
[0076] The support vector machine selects the radial basis function (RBF) as the kernel function, which is used to map the data into a high-dimensional space, where different categories of data can be more easily separated linearly.
[0077] The formula for the radial basis function is: ;in, and There are two eigenvectors, each of which represents an eye movement event or the statistical characteristics of eye movements over a period of time, such as the coordinates of the gaze point, blinking frequency, etc. The radial basis function helps the SVM model determine whether these eigenvectors belong to the same category by calculating the similarity between different eigenvectors. Represents the Euclidean distance between two feature vectors, which is used to measure the similarity between two eye movement events. is a free parameter of the radial basis function, which controls the width of the Gaussian function.
[0078] The data used in support vector machine training includes feature data obtained through standardized processing and feature extraction of eye tracking, such as gaze point coordinates, blinking frequency, etc., as well as the classification label corresponding to each feature data, that is, the drone operation instructions.
[0079] Furthermore, the user's specific intention is analyzed based on the categories output by the support vector machine. Time series analysis is performed on the continuous classification results to identify more complex instruction sequences. The classification results of the support vector machine are mapped to specific drone control instructions. A mapping table is established and mapping rules are defined. The eye movement pattern categories identified by the support vector machine are mapped to corresponding drone control instructions through the mapping rules.
[0080] The present invention continuously captures the user's eye movement data, and simultaneously captures the user's gestures and hand movements, ensuring the synchronization of the eye movement and gesture data in time, so as to realize the combined use of eye tracking and hand tracking. The eye tracking device and the hand tracking device of the VR head display are configured to use the same timestamp.
[0081] Specifically, a time window is designed to process the eye movement and gesture data that occur simultaneously, that is, all actions within this time window are considered to occur simultaneously, thereby reducing the impact of small time differences. The window length is set to 200 milliseconds. t When receiving an eye movement data, check the time arrive Whether there is gesture data in it, among which, is half of the time window (the same applies to gesture data received first). Eye movement and gesture data found within the time window are considered paired and further used for analysis and command generation. For data that cannot be paired within the current window, they can be put into the buffer and wait for the data of the next window for pairing.
[0082] Step 600: Based on the drone control instructions corresponding to the user's gestures and the drone control instructions corresponding to the user's eye movement data, the flight status of the drone cluster is controlled, and the flight status of the drone cluster is rendered in real time in the virtual environment. Ensure that the user can see the real-time position, speed and direction of each drone. The flight status includes the position, speed and direction of each drone in the drone cluster.
[0083] In the virtual environment, drone control commands are assigned to corresponding drones. A single drone adjusts its flight state according to the received commands, such as changing speed, direction or position.
[0084] Specifically, in step 600, based on the drone control instructions corresponding to the user's gesture action and the drone control instructions corresponding to the user's eye movement data, controlling the flight state of the drone cluster specifically includes steps 601 to 604.
[0085] Step 601: Determine the priority of the gesture action and the eye movement data according to the drone control instruction corresponding to the user's gesture action and the drone control instruction corresponding to the user's eye movement data.
[0086] Step 602: When the priority of the gesture action is higher than the priority of the eye movement data, a leader-follower algorithm is used to control the flight state of the drone cluster based on the drone control instruction corresponding to the user's gesture action.
[0087] Step 603: When the priority of the eye movement data is higher than the priority of the gesture action, a leader-follower algorithm is used to control the flight state of the drone cluster based on the drone control instruction corresponding to the eye movement data of the user.
[0088] Step 604: When the priority of the gesture action is the same as the priority of the eye movement data, a leader-follower algorithm is used to control the flight state of the drone cluster based on the drone control instructions corresponding to the user's gesture action and the drone control instructions corresponding to the user's eye movement data.
[0089] The present invention adopts a leader-follower algorithm to ensure the relative position and coordinated movement between drones. A leader is pre-designated in the drone cluster, and all drones in the drone cluster except the leader are followers. The leader directly responds to the drone control command, and the followers follow the leader to adjust the position, speed and direction.
[0090] During initialization or when switching formations, the drone closest to the user is selected as the default leader. The leader is the reference point for the entire formation, and it moves directly according to the user's drone control instructions. The movement strategy and behavior of the leader determine the movement direction and shape changes of the entire formation. Even if the user selects a follower, the follower and other followers will still make corresponding position and status adjustments based on the changes of the leader. Ensure that the drone cluster responds to the user's control as a whole.
[0091] The drone control instruction includes a speed offset and a direction offset.
[0092] The position and orientation of the navigator are updated using the following formula.
[0093] .
[0094] .
[0095] in, To update the position of the navigator, To update the position of the previous pilot, To update the speed of the former navigator, is the velocity offset, To update the direction of the navigator, To update the direction of the former navigator, is the direction offset.
[0096] Update the followers using the following formula i position, speed and direction.
[0097] .
[0098] .
[0099] .
[0100] in, For updated followers i location, For followers i The position offset relative to the pilot, is the speed of the follower after update, is the direction of the follower after the update.
[0101] According to the real-time status of the leader, the position and speed of the follower are continuously updated. Change the position of the follower relative to the leader to achieve formation change. The leader periodically broadcasts its current flight status and the actions to be performed. Set a timer in the virtual environment to send a status update every second. Each follower "listens" to the leader's status broadcast and adjusts its own status based on the information received. The follower's adjustment is immediate, meaning that once a new broadcast is received, it will immediately start calculating the new position and speed. When the user issues a formation change command through a gesture, the command is converted into a new set of position offset parameters. These parameters are sent to all followers along with the leader's status broadcast.
[0102] The present invention uses the hand tracking and eye tracking functions of a VR (Virtual Reality) head display to interact with a drone cluster in a virtual reality environment using various movements of fingers, single hands or both hands, eye movements, and changes in the gaze points of both eyes to command the drone cluster to form various formations. Users can use a variety of pre-set gestures and eye movements to make the drones change formations and switch states, which conforms to people's daily movement habits and can bring users a better interactive experience.
[0103] In addition, the present invention can combine the control method based on hand tracking and the control method based on eye tracking. This multimodal control method can make the various methods play their greatest advantages, allowing users to have more diverse choices and a more comfortable interactive experience.
[0104] In order to better understand the technical solution of the present invention, the control method based on hand tracking and based on eye tracking is specifically introduced below.
[0105] 1. Control method based on hand tracking.
[0106] 1. Select.
[0107] 1.1. Single selection action: Click with your left or right index finger to select a drone. Click multiple times to select multiple drones. Click again to cancel the selection.
[0108] 1.2, Rectangular selection range: Figure 2 As shown, pinch the middle finger (or index finger) and thumb together to determine a starting point, then pull to the lower right, and at the same time open the two fingers to slide the selection range, pinch again as the end point, and use this as the selection range to select the drone.
[0109] 1.3. User-defined range: Pinch your thumb, index finger and middle finger together to freely select a range using any polygon.
[0110] 1.4. Select All Action: The user opens both hands naturally, with the palms facing each other, and claps twice in a row. This can be regarded as selecting all. You can also use the methods in 1.2 and 1.3 to select the entire drone cluster to achieve the purpose of selecting all.
[0111] 2. Mobile control.
[0112] Each drone has a "selected" state, and all control actions are completed on the basis of selection. "Selected" means that a single drone is selected, that is, only when any drone is selected will the corresponding action be triggered.
[0113] 2.1. Take-off and landing: The user opens his hands naturally, palms facing up, and then slowly raises both hands at the same time. If the drone cluster is on the ground at this time, it is regarded as a take-off command; if the drone cluster is in the air at this time, it is regarded as a height increase command, and the height is slowly raised as the hands move upward. The user opens his hands naturally, palms facing down, and then quickly lowers them, and the drone cluster will land on the ground; if it is slowly lowered, it is regarded as a height descent command.
[0114] 2.2, forward and backward: Figure 3 As shown in the figure, the user extends one hand forward, and the index finger and middle finger are combined and pointed forward at the same time, which is the forward command. When the gesture ends, the forward movement stops. Doing this action at a faster rate can accelerate the forward movement. With the palm facing up, the four fingers except the thumb face the user, and bend towards the user, the drone cluster will retreat. Repeating this action continuously will accelerate the retreat, and the retreat will stop when the gesture ends.
[0115] 2.3. Move left and right: The user can control the drone cluster to move left and right by moving his palm left and right.
[0116] 2.4、User-defined path: such as Figure 4 As shown, after selecting a drone, the user draws the flight path of the drone with a single finger and draws an "arrow" symbol (similar to ">") at the end of the flight path. At this time, the drone cluster will fly to the target along the custom path.
[0117] 2.5. Target lock: The user points a finger at a target point (make sure there is no drone at the target point), and the drone cluster will follow the target point or fly to the target point (if the target point is stationary). The user draws a circle with a single finger pointing downward at the target point, and the drone cluster can fly around the target.
[0118] 2.6. Navigator selection: Among the selected drones, the user draws a circle around the target drone with a single finger, and the target drone is selected as the navigator. When operating it, the remaining selected drones will follow the navigator. If no navigator is selected, the drone closest to the user will be selected as the navigator when the mobile control starts, until a new navigator is selected. The selection of the navigator is sequential with the selection operation, so there is no problem of simultaneous selection.
[0119] 2.7. Emergency stop and rejoin: The user crosses his left and right hands and makes an "X" gesture, indicating an emergency stop. The drone cluster immediately stops flying and stays where it is. The user can also open his left hand with the palm facing down and extend only the index finger of his right hand upward to press against the palm of his left hand, with the left hand on top and the right hand on the bottom, which also indicates an emergency stop. Figure 5 As shown, when the user makes a fist with one hand, the drone cluster immediately stops its current flight state and returns to the team, forming a horizontal row.
[0120] 2.8. Cancel action: The user's left or right palm faces the drone cluster and makes a left-right hand movement to cancel the operation, that is, all previous selections, movement plans, formation plans, etc. are canceled and become unselected.
[0121] 3. Formation.
[0122] 3.1. Regular formation: Users can use their hands to make the desired formation shape, and the drone cluster will form a corresponding formation according to the action. For example, if the index fingers and thumbs of both hands form a circle, the drone cluster will also form a circular formation. Note that the angle of the drone cluster formation in three-dimensional space is consistent with the angle of the hands. For example, Figure 6 As shown in the figure, the center of the circle made by the hands is upward (the circle is horizontal), and the formation of the drone cluster will also be a horizontal circle; Figure 7As shown in the figure, the center of the circle made by the two hands faces the user (the circle is vertical), and the formation of the drone cluster will also be a vertical circle. The opening and closing of the two hands will also affect the radius or side length of the formation.
[0123] 3.2、User-defined formation: Figure 8 As shown, the user uses the index finger, middle finger and ring finger to draw the desired formation shape, and pays attention to the angle of the shape in three-dimensional space (for example, the inclination angle of the formation formed by drawing the same shape upward and forward is different). Then the drone cluster is evenly distributed according to the drawn shape to form the corresponding formation. After the formation is formed, the user can use the index finger and thumb to expand and pinch to enlarge the formation size, and use the index finger and thumb to rotate to change the direction angle of the formation.
[0124] 2. Control method based on eye tracking.
[0125] 4. Target selection: Fig. 9 As shown in the figure, the user can select a target by gazing at a target for more than two seconds. If the target is a drone, it is considered selected; if the target is a target point without a drone, it is considered to be locked, and the drone cluster will follow the target point or fly to the target point (if the target point is stationary). In a 3D virtual environment, the target locking method based on eye tracking is more applicable than the target locking method described in 2.5, because eye tracking can more accurately determine the distance and specific position of the target point.
[0126] 5. Gaze point path planning: After the user selects a drone with eye movement, he or she slowly moves his or her eyes and gazes at the virtual path in the air to guide the flight trajectory of the drone cluster. Finally, the user closes his or her eyes once at the end point to confirm the flight.
[0127] 6. Adaptive interface.
[0128] 6.1. Focus adjustment: By analyzing the user's gaze point, the focus of the user interface can be automatically adjusted to ensure that the information the user is currently focusing on is in a prominent position.
[0129] 6.2. Highlight feedback: Due to the particularity of eye tracking, a highlighted interactive feedback is set for it. When the user looks at a drone, target point or path planning, real-time interactive feedback is provided, and these targets are highlighted to emphasize the user's operation purpose.
[0130] 7. Blinking and closing eyes: Users can confirm the current required gaze operation by closing their eyes once, and trigger the emergency stop command by blinking quickly. During the flight of the drone cluster, users can make the flight path of the drone cluster slightly shift to the left by blinking their left eyes, and make the flight path of the drone cluster slightly shift to the right by blinking their right eyes.
[0131] 8. Scan: The user can scan all drones by turning the head and moving the eyes, which can trigger the command to select all drone clusters.
[0132] 3. Multimodal combination of hand tracking and eye tracking.
[0133] Hand tracking and eye tracking can be used together. For example, users can use gestures to select targets and movement commands, and use eye movements to accurately locate the destination, etc. By setting priority rules, if the drone control command corresponding to the gesture is different from or even opposite to the drone control command corresponding to the eye movement, the gesture has the highest priority and responds to the gesture command first; however, in the command to locate the target point, the eye movement has a higher priority than the gesture.
[0134] In addition, the following two alternatives can also be used to complete the drone cluster control method.
[0135] (1) Using a handle or controller to control the swarm. Using a traditional handheld controller or handle is a relatively common method. Users can interact with the virtual environment through buttons, joysticks, and touchpads, and can control the drone swarm through the combination of these physical devices. However, this method is difficult to operate, and users need to be proficient in using various key combinations to achieve their goals.
[0136] (2) Using thoughts for cluster control: Using brain-computer interface technology, users can control drones in a virtual environment to execute commands through their thoughts.
[0137] Compared with the prior art, the present invention has the following advantages.
[0138] 1. A simpler drone cluster control method with better interactivity. The control method of the present invention mainly uses gestures and eye movements to conduct formation command, and mainly emphasizes interactivity. These actions all come from the user's body and are in line with people's daily movement habits. Compared with traditional control methods, it is easy to understand and operate, and even novices can easily get started.
[0139] 2. Based on virtual reality, there are fewer devices, which are easy to expand and transplant, and no actual physical space is required. The present invention is a cluster control method in a virtual reality environment. Under the action of the VR head display device, the method is implemented with fewer and simpler devices, without the need to install additional equipment such as cameras and eye trackers, and without the need to purchase a large number of drones, which is lower in cost. Compared with the traditional real environment, the virtual reality environment has better scalability and portability. On this basis, it can be expanded into VR games, or provide possibilities for further eye movement experiments and human-computer interaction experiments, without the need for expensive and risky experiments in the actual environment. Virtual reality also provides better immersion and interactivity. In addition, unlike the control of drone clusters in reality, virtual reality does not require too much physical space, while in reality an extremely wide experimental space is required to meet the flight of drone clusters.
[0140] 3. Multimodality: The present invention can use a combination of hand tracking and eye tracking. This multimodal approach can provide a more flexible and natural user interaction method, making full use of the advantages of different input methods. Multimodal interaction can adapt to different usage scenarios and environments, and users can choose the most appropriate interaction method based on environmental requirements or specific tasks. Multimodal systems also have stronger fault tolerance, which helps to reduce the user's learning burden. Compared with the single control method in the traditional method, the multimodal method has a more comprehensive interactive experience, is applicable to more scenarios, and is more friendly to some special groups of people.
[0141] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0142] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for controlling a drone cluster based on virtual reality, characterized in that: The virtual reality-based drone cluster control method includes: The user wears a head-mounted display device to enter the virtual environment; the head-mounted display device is equipped with a front camera and a depth sensor; Collecting a preliminary gesture image of the user and the user's eye movement data in real time through the head display device; the preliminary gesture image includes a preliminary RGB image and a preliminary depth image; Recognizing the user's gesture action from the preliminary gesture image specifically includes: For any pixel in the preliminary RGB image, the formula , , Adjust each color channel value of the pixel to obtain a preprocessed RGB image; wherein R is the red channel value of the pixel in the preliminary RGB image, G is the green channel value of the pixel in the preliminary RGB image, and B is the blue channel value of the pixel in the preliminary RGB image. is the red channel value of the pixel in the preprocessed RGB image, is the green channel value of the pixel in the preprocessed RGB image, is the blue channel value of the pixel in the preprocessed RGB image, is the average value of the red channel in the preliminary RGB image, is the average value of the green channel in the preliminary RGB image, is the average value of the blue channel in the preliminary RGB image; Performing Gaussian blur processing on the pre-processed RGB image to obtain a denoised RGB image; For any pixel in the preliminary depth image, the formula The depth pixel value of the pixel point is converted into an actual distance to obtain a preprocessed depth image; wherein, is the depth pixel value of the pixel point, is the minimum possible value of the depth value, which is the closest distance that the depth sensor can measure. is the maximum possible value of the depth value, which is the farthest distance that the depth sensor can measure. For the corresponding The actual minimum distance when For the corresponding The maximum actual distance when ; Combining the denoised RGB image with the preprocessed depth image to obtain a final gesture image; Using a Canny edge detector to perform edge detection on the final gesture image and extract a hand contour to obtain a hand contour image; A convolutional neural network is used to determine the user's gesture action according to the hand contour image; the convolutional neural network is pre-trained using a training sample set; the training sample set includes multiple groups of hand contour sample images and their corresponding gesture actions; Determine the drone control instruction corresponding to the user's gesture action based on a pre-established mapping table; the mapping table includes multiple groups of key-value pairs, the key in each group of key-value pairs represents the gesture action, and the value in each group of key-value pairs represents the drone control instruction; Determining corresponding drone control instructions according to the user's eye movement data specifically includes: Extracting the eye movement features of the user according to the eye movement data of the user; the eye movement data includes gaze, movement of the gaze point, blinking and eye closure; the eye movement features include the duration of gaze within a set time period, the change amount of the gaze point, the movement path of the gaze point, the blinking frequency and the duration of eye closure; Using a pre-trained support vector machine to classify the eye movement features of the user, and determine the drone control instructions corresponding to the eye movement features of the user; Based on the drone control instructions corresponding to the user's gestures and the drone control instructions corresponding to the user's eye movement data, the flight state of the drone cluster is controlled, and the flight state of the drone cluster is rendered in real time in the virtual environment; the flight state includes the position, speed and direction of each drone in the drone cluster; Based on the drone control instructions corresponding to the user's gesture action and the drone control instructions corresponding to the user's eye movement data, the flight state of the drone cluster is controlled, specifically including: Determining the priority of the gesture action and the eye movement data according to the drone control instruction corresponding to the user's gesture action and the drone control instruction corresponding to the user's eye movement data; When the priority of the gesture action is higher than the priority of the eye movement data, a leader-follower algorithm is used to control the flight state of the drone cluster based on the drone control instruction corresponding to the user's gesture action; When the priority of the eye movement data is higher than the priority of the gesture action, a leader-follower algorithm is used to control the flight state of the drone cluster based on the drone control instruction corresponding to the eye movement data of the user; When the priority of the gesture action is the same as the priority of the eye movement data, a leader-follower algorithm is used to control the flight state of the drone cluster based on the drone control instruction corresponding to the user's gesture action and the drone control instruction corresponding to the user's eye movement data; Among them, a navigator is pre-designated in the drone cluster, and in the drone cluster, all drones except the navigator are followers; the navigator directly responds to the drone control command, and the followers follow the navigator to adjust the position, speed and direction.
2. The method for controlling a drone cluster based on virtual reality according to claim 1, characterized in that: The head display device is an HTC Vive XR head display.
3. The method for controlling a drone cluster based on virtual reality according to claim 1, characterized in that: The head-mounted display device is equipped with a full-face tracker, through which the user's eye movement data is collected in real time.
4. The method for controlling a drone cluster based on virtual reality according to claim 1, characterized in that: The gesture actions in the mapping table include single gestures and combined gestures; Before collecting the preliminary gesture image of the user in real time through the head display device, the virtual reality-based drone cluster control method further includes: receiving a gesture mode selected by a user; the gesture mode being a single gesture or a combined gesture; Determining the drone control instruction corresponding to the user's gesture action based on a pre-established mapping table specifically includes: When the gesture mode selected by the user is a single gesture, matching the gesture action of the user with the single gesture in the mapping table, and determining the drone control instruction according to the single gesture matching the gesture action of the user; When the gesture mode selected by the user is a combination gesture, a continuous gesture action is determined according to the gesture actions of the user recognized at each moment within a set time period, the continuous gesture action is matched with the combination gesture in the mapping table, and the drone control instruction is determined according to the combination gesture matching the continuous gesture action.
5. The method for controlling a drone cluster based on virtual reality according to claim 1, characterized in that: The drone control instructions include a speed offset and a direction offset; The position and orientation of the navigator are updated using the following formula: ; ; in, To update the position of the navigator, To update the position of the previous pilot, To update the speed of the former navigator, is the velocity offset, To update the direction of the navigator, To update the direction of the former navigator, is the direction offset; Update the followers using the following formula i Position, speed and direction: ; ; ; in, For updated followers i location, For followers i The position offset relative to the pilot, is the speed of the follower after update, is the direction of the follower after the update.
6. The method for controlling a drone cluster based on virtual reality according to claim 1, characterized in that: The user's gesture actions include selection gestures, movement gestures and formation gestures; the selection gesture is used to select a drone; the movement gesture is used to adjust the flight state of the selected drone; the formation gesture is used to adjust the formation of the drone cluster; The selection gestures include single selection, rectangular selection, custom selection and all selection. The movement gestures include take-off and landing, forward and backward, left and right movement, custom path, target lock, navigator selection, emergency stop and return to the team, and cancel action; The formation gestures include regular formations and custom formations.
