A universal interface implementation method for interaction between hands and virtual glove peripherals

By parsing API action instructions in the general interface of VR gloves and building a predefined library of virtual hand movements, the problem of the lack of unified standards for VR gloves in the existing technology is solved, and unified interface integration of multiple devices is realized, improving development efficiency and reducing costs. cost.

CN114035677BActive Publication Date: 2024-10-15WSGRI SMART CITY(WUHAN) ENGINEERING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111242604.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-25
Publication Date
2024-10-15
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

Existing VR gloves lack unified industry standards, resulting in developers having to replace new SDKs and re-integrate development when replacing hardware facilities. This is inefficient and expensive, limiting market growth and development convenience.

Method used

By parsing the API action instructions provided by various manufacturers in the general interface of VR gloves, a predefined library of virtual hand movements is constructed, and the position and orientation transformation of the virtual hand is realized through matrix operations, reducing the coupling between hardware and software systems, and supporting a variety of VR Unified interface integration for glove devices.

Benefits of technology

It greatly improves the development efficiency of the VR glove virtual reality system, reduces the dependence on each SDK, achieves unified management and maintenance of VR gloves on the market, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114035677B_ABST
    Figure CN114035677B_ABST
Patent Text Reader

Abstract

The present invention discloses a universal interface implementation method for interaction between both hands and virtual glove peripherals, comprising the following steps: S1, obtaining action instructions in the hardware abstraction layer through the API provided by each VR glove manufacturer, parsing and judging the action instructions in the VR glove universal interface, and converting the action instructions into data objects defined in the universal interface according to the corresponding relationship; S2, constructing a virtual hand action predefined library, predefining and encapsulating various actions of the virtual hand in the universal interface, and storing the encapsulated data in the virtual hand action predefined library; S3, after receiving the action instruction of the VR glove, matching the action corresponding to the action instruction from the virtual hand action predefined library and executing it. The present invention greatly reduces the coupling between the hardware and software systems by separating the interactive behavior in the action instructions of the hardware abstraction layer of each VR glove manufacturer from the manufacturer SDK, and greatly improves the development efficiency of the virtual reality system based on VR gloves.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of virtual reality, and in particular relates to a universal interface implementation method for interaction between two hands and a virtual glove peripheral. Background Art

[0002] VR gloves are an advanced VR peripheral product, whose main function is to provide interaction between the real world and the virtual world. They are a more mainstream device on the market. As a VR peripheral product that has attracted much attention, VR gloves bring more realistic tactile feedback, excellent tracking on fingers, and can provide a higher quality of immersion than ordinary handles.

[0003] Although the VR gloves of major VR glove manufacturers have their own characteristics, they are all based on common interactive functions, such as picking up and putting down. The SDK of VR gloves from various manufacturers only provides API interfaces, and does not elaborate on the working principle and implementation scheme of the entire hardware abstraction layer, which causes developers to take many "detours" in the process of understanding standards and specific development. There is no unified industry standard for various VR gloves, so when currently using different VR gloves for development, it is necessary to follow the SDK provided by the manufacturer's supplier. This means that every time the hardware facilities are replaced, a new SDK must be replaced and re-integrated and developed. The high development costs and other human factors have greatly limited the growth of the market and the convenience of development.

[0004] The Chinese patent with the publication number CN108958479A discloses a universal three-dimensional virtual scene real-time interaction method based on data gloves, which uses sensors in data gloves to obtain the curvature of finger joints and the degree of opening and closing between fingers, and uses a positioning device that cooperates with data gloves to obtain the spatial position and azimuth parameters of the gloves. According to the interactive configuration definition of the three-dimensional virtual scene software, the obtained spatial position, azimuth parameters, sensor parameters of the gloves are combined with parameters such as viewpoints in the three-dimensional virtual scene, and converted into simulated mouse / keyboard input, and the operating system application programming interface is called to convert the simulated mouse / keyboard input state information into real interactive device information to drive the real-time interaction of the three-dimensional virtual scene. In this way, the real-time rotation, roaming and other interactions of the virtual scene in the three-dimensional visualization software are realized based on data gloves. Based on this method, data gloves can be integrated with other three-dimensional visualization software to improve the three-dimensional interactive ability of the software. This patent only provides a virtual scene interaction method based on data gloves. When the data gloves need to be replaced in actual applications, it is still necessary to replace the new SDK for reintegration and development, which is inefficient and expensive. Summary of the invention

[0005] The purpose of the present invention is to provide a universal interface implementation method for interaction between both hands and a virtual glove peripheral device in view of the problems existing in the prior art.

[0006] To achieve the above object, the technical solution adopted by the present invention is:

[0007] A general interface implementation method for interaction between two hands and a virtual glove peripheral comprises the following steps:

[0008] S1, obtaining the action instructions in the hardware abstraction layer through the API provided by each VR glove manufacturer, parsing the action instructions in the VR glove universal interface, determining the glove brand corresponding to each action instruction, and converting the action instructions into data objects defined in the universal interface according to the correspondence between each action instruction and the glove brand;

[0009] S2, constructing a virtual hand action predefined library, predefining and encapsulating various actions of the virtual hand in a universal interface, and storing the encapsulated data in the virtual hand action predefined library;

[0010] S3, when receiving the action instruction of the VR glove, matching the action corresponding to the action instruction from the predefined library of virtual hand actions and executing it.

[0011] Specifically, in step S1, the data objects defined in the general interface include multiple types of the following instructions: moving instructions (including forward instructions, backward instructions, left instructions, right instructions, up instructions and down instructions), grabbing instructions, fisting instructions, opening instructions, pressing instructions, and stop instructions.

[0012] Specifically, in step S2, the method for constructing a predefined library of virtual hand actions is: first, a three-dimensional model of a virtual hand is established in 3DsMAX, and the joints of the virtual hand model are numbered; then, the model is textured using Photoshop, that is, color is added to the model; finally, a skeleton and skin are created for the virtual hand model, and the skeleton and skin are bound; the influence weight of the skeleton on the skin is adjusted; and gesture skeleton animation is produced according to the defined gesture actions.

[0013] Furthermore, the interaction method between the virtual hand and the human hand is: obtaining the motion information of the joints of each finger segment of the human hand in real time through the sensors in the VR gloves, and then setting the joint angles of each finger segment of the virtual hand according to the motion information of the joints of each finger segment of the human hand, and finally performing matrix translation and rotation operations on the set joint angles of each finger segment of the virtual hand in the virtual environment to realize the position and orientation transformation of the virtual hand.

[0014] Furthermore, during the process of the virtual hand interacting with the human hand, corresponding constraints are imposed on the virtual hand according to specific application scenarios to limit the degree of freedom of the virtual hand.

[0015] Specifically, in step S3, when the action instruction received from the VR glove is a finger action bending instruction, and a collision is detected between the virtual hand and the virtual object, it is determined that the virtual hand is performing a grabbing operation on the virtual object at this time; the node of the virtual object is placed under the node of the virtual hand through matrix operation, and the gravity effect of the virtual object is cancelled, so that the virtual object becomes a sub-object of the virtual hand; at this time, the relative coordinate position of the virtual object and the virtual hand is solidified, and the virtual object moves and rotates with the virtual hand;

[0016] When the action command received by the VR glove changes to an opening command, it is determined that the virtual hand is releasing the virtual object at this time. At this time, the virtual hand interaction task is completed, the virtual object is separated from the virtual hand, and the gravity effect of the virtual object is restored.

[0017] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention develops a universal interface for VR gloves, obtains action instructions in the hardware abstraction layer of each VR glove manufacturer, separates the interactive behavior in the action instructions from the manufacturer's SDK, and greatly reduces the coupling between the hardware and software systems; when it is necessary to connect with different VR glove devices, there is no need to perform integrated development for each SDK separately, which greatly improves the development efficiency of the virtual reality system based on VR gloves. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The present invention is a flowchart of a method for realizing a universal interface for interaction between both hands and a virtual glove peripheral.

[0019] Figure 2 Schematic diagram of the process of virtual hand interaction operation in an embodiment of the present invention.

[0020] Figure 3 Schematic diagrams of several gestures defined in a virtual hand action predefined library in an embodiment of the present invention.

[0021] Figure 4 Schematic diagram of interaction behavior constraints between a human hand and a virtual hand in an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings 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.

[0023] like Figure 1As shown, this embodiment provides a universal interface implementation method for the interaction between both hands and virtual glove peripherals. This embodiment establishes a set of unified VR glove interaction standards and specifications, which define unified data structures, input and output formats, etc., so that all VR glove-based virtual reality systems can be integrated through the universal interface. The application of the VR glove universal interface greatly improves the development efficiency of VR glove-based virtual reality systems, and also realizes the unified management and maintenance of the general business functions of VR gloves on the market, and forms a set of interaction standard specifications. Specifically, the following steps are included:

[0024] S1, based on object-oriented design ideas, reasonably divides the boundaries of the VR glove's interactive system, separates the interactive logic from the manufacturer's complex SDK, and implements the interaction between the virtual hand and the virtual object in the general data interface;

[0025] S2, analyzes various forms of interactive behaviors, abstracts common interactive behaviors and extracts program interfaces, decouples the program interfaces from specific interactive behaviors, and minimizes the impact on the application when changing VR glove devices;

[0026] S3, reorganize the business logic of interaction, collision, state transition, etc., and combine the basic interaction logic of all existing VR gloves to determine a unified interaction interface, so that the VR glove universal interface can simultaneously connect to multiple categories of VR gloves.

[0027] Specifically, in step S1, the interactive functions of VR gloves from various manufacturers are first summarized and analyzed, and the action instructions in the hardware abstraction layer are obtained through the API provided by each manufacturer. The action instructions are parsed and judged in the VR glove universal data interface, and the action instructions are converted into data objects defined in the universal interface according to the corresponding relationship, so that these data are unified at the level of the operation object.

[0028] Furthermore, after obtaining the action instructions in the hardware abstraction layer from the API provided by various VR glove manufacturers, the action instruction state set base class is abstracted, and this class member is instantiated in the common interface to record the action instruction data, such as movement instructions (including forward movement instructions, backward movement instructions, left movement instructions, right movement instructions, up movement instructions and down movement instructions), grabbing instructions, fisting instructions, opening instructions, pressing instructions, stop instructions, etc.

[0029] When receiving data instructions from the VR gloves, the data processing module (the processing module of the virtual reality system itself) will first perform logical judgment to determine the type of hardware device, and then call the SetState function in the action instruction state set to perform the corresponding action.

[0030] Specifically, in step S2, the general interface calls the action instructions issued in step S1 in a unified manner, and then performs business operations such as logical judgment, calculation and assignment; the general interface predefines and encapsulates various actions of the virtual hand, and each time an action instruction is received, it will be matched from the predefined action library (virtual hand action predefined library) to determine the current operation.

[0031] Furthermore, the virtual hand gesture predefined library is the basis for realizing virtual interaction. Too few definitions cannot effectively complete the interactive tasks, and too many definitions will cause system resource redundancy. The common interactive operations in virtual interaction are analyzed in the general interface, and the following gesture actions are defined (such as Figure 2 shown):

[0032] 1) Release;

[0033] 2) Make a fist;

[0034] 3) Press;

[0035] 4) Holding action 1;

[0036] 5) Holding action 2.

[0037] Furthermore, the method for constructing a predefined library of virtual hand actions is as follows: first, a three-dimensional model of a virtual hand is established in 3DsMAX, and the joints of the virtual hand model are numbered; then, the model is textured using Photoshop, that is, color is added to the model to increase its realism; finally, a skeleton and skin are created for the virtual hand model, and the skeleton and skin are bound; the influence weight of the skeleton on the skin is adjusted; and gesture skeleton animation is produced according to the defined gesture actions.

[0038] Furthermore, the interaction method between the virtual hand and the human hand is:

[0039] The mapping of human hand behavior in a virtual environment is essentially a tracker (a position sensor built into the VR gloves) that tracks the position of the human hand to control the movement of the virtual hand in the virtual scene. The purpose is to allow the virtual hand to reflect the human hand's will to manipulate virtual objects in the virtual environment and simulate complex and diverse wrist movements.

[0040] In order to truly reflect the position of the virtual hand in three-dimensional space, the interface will obtain data information from the VR glove sensor in real time, convert the information of the joint movement of each finger segment of the human hand into the measurement value of the sensor, read and analyze this input value in the interface to calculate the angle of each joint of the human hand. The mapping process from the human hand to the virtual hand is as follows:

[0041] 1) Set the joint angles of each finger segment of the virtual hand

[0042] protected void Set Glove Finger Angle(int Finger Index,float Angle);

[0043] / / Traverse each joint according to the joint number, find the corresponding joint and assign the corresponding angle value;

[0044] 2) Perform matrix translation and rotation operations on the joint angles defined above in the virtual environment to achieve the position and orientation transformation of the virtual hand.

[0045] protected void Change Finger Position(int Finger Index,Vector3 FingerPosition,Vector3 Finger Rotation)

[0046] / / Assign the calculated position and orientation to each joint.

[0047] Specifically, in step S3, a mapping relationship is established between the action instructions collected in the above steps and the virtual hand in the scene, so as to control the virtual hand to operate the virtual object in the virtual environment, and then the contact between the virtual hand and the virtual object is detected through the collision detection algorithm encapsulated in the universal interface to complete the interaction.

[0048] The grasping operation determination algorithm is used to determine whether the virtual hand has grasped the object firmly. The algorithm should not be too simple or too complicated. Oversimplification may lead to misgrasping; over-complexity may lead to excessive calculation and time consumption, thus causing serious operation lag. The grasping operation determination method adopted in this embodiment is as follows:

[0049] When the action command received from the VR glove is a finger bending command, and a collision is detected between the virtual hand and the virtual object, it is determined that the virtual hand is performing a grabbing operation on the virtual object at this time; the node of the virtual object is placed under the node of the virtual hand through matrix operation, and the gravity effect of the virtual object is cancelled, so that the virtual object becomes a sub-object of the virtual hand; at this time, the relative coordinate position of the virtual object and the virtual hand is solidified, and the virtual object moves and rotates with the virtual hand;

[0050] When the action command of the VR glove is changed to an opening command, it is determined that the virtual hand is releasing the virtual object. At this time, the virtual hand interaction task is completed, the virtual object is separated from the virtual hand, and the gravity effect of the virtual object is restored to make it subject to the constraints of physical laws, so as to realize the interactive operation between the glove and the operation object, such as Figure 3 shown.

[0051] The interactive functions encapsulated in traditional VR gloves are relatively basic, with only simple operations such as picking up, putting down and pressing. This embodiment encapsulates a variety of commonly used gripping rules in different forms. Only simple operations such as adding the execution script developed by the present invention and modifying parameters can enable VR gloves to complete complex simulation interaction tasks, and make the interaction process more natural and efficient.

[0052] Specifically, in the process of the virtual hand interacting with the human hand, the virtual hand is constrained accordingly according to the specific application scenario to limit the freedom of the virtual hand. In the constrained state, the displacement freedom of the operation object is limited, the interactive object cannot completely follow the movement of the hand in space, and some operation objects can only move horizontally along the axis direction, such as pulling a drawer.

[0053] Next, taking the interactive behavior of a virtual hand pulling a drawer as an example, the interactive behavior constraints between the human hand and the virtual hand in this embodiment are explained:

[0054] like Figure 4 As shown, first, the three-dimensional coordinates of the virtual hand and the human hand before displacement are recorded (the coordinates of the human hand before displacement are the coordinates of point A). When the three-dimensional coordinates of the human hand change, the changed three-dimensional coordinates of the human hand (i.e., the coordinates of point B) are recorded, and the two coordinate points before and after the movement of the human hand are connected to determine the positional relationship between the two coordinate points in the spatial coordinate system, and calculate the displacement vector AB of the human hand; the displacement vector AB of the virtual hand is obtained according to the displacement vector of the human hand, and then the displacement vector of the virtual hand is projected onto the horizontal plane (assuming that the drawer moves in the horizontal direction) to obtain the first-order displacement projection vector AC of the virtual hand, and then the first-order displacement projection vector is projected onto the movement direction AE of the drawer to obtain the second-order displacement projection vector AD of the virtual hand, and the second-order displacement projection vector AD coincides with the movement direction AE of the drawer; finally, the virtual hand is controlled to move according to the second-order displacement projection vector of the virtual hand.

[0055] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0056] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0057] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0058] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0059] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A general interface implementation method for interaction between hands and virtual glove peripherals, characterized in that: The following steps are involved: S1, obtaining the action instructions in the hardware abstraction layer through the API provided by each VR glove manufacturer, parsing the action instructions in the VR glove universal interface, determining the glove brand corresponding to each action instruction, and converting the action instructions into data objects defined in the universal interface according to the correspondence between each action instruction and the glove brand; After obtaining the action instructions in the hardware abstraction layer from the API provided by VR glove manufacturers, the action instruction state set base class is abstracted, and the class members are instantiated in the common interface to record the action instruction data; When receiving data instructions from the VR gloves, first perform logical judgment to determine the type of hardware device, and then call the SetState function in the action instruction state set to execute the corresponding action; S2, constructing a virtual hand action predefined library, predefining and encapsulating various actions of the virtual hand in a universal interface, and storing the encapsulated data in the virtual hand action predefined library; S3, when receiving the action instruction of the VR glove, matching the action corresponding to the action instruction from the predefined library of virtual hand actions and executing it.

2. A universal interface implementation method for interaction between hands and virtual glove peripherals according to claim 1, characterized in that: In step S1, the data objects defined in the general interface include multiple types of the following instructions: move instruction, grab instruction, fist instruction, open instruction, press instruction, stop instruction.

3. A universal interface implementation method for interaction between hands and virtual glove peripherals according to claim 1, characterized in that: In step S2, the method for constructing a predefined library of virtual hand actions is as follows: first, a three-dimensional model of a virtual hand is established in 3DsMAX, and the joints of the virtual hand model are numbered; then, the model is textured using Photoshop, i.e., color is added to the model; finally, a skeleton and skin are created for the virtual hand model, and the skeleton and skin are bound; the weight of the influence of the skeleton on the skin is adjusted; and gesture skeleton animation is produced according to the defined gesture actions.

4. A universal interface implementation method for interaction between both hands and a virtual glove peripheral according to claim 3, characterized in that: The interaction method between the virtual hand and the human hand is as follows: the motion information of the joints of each finger segment of the human hand is obtained in real time through the sensors in the VR gloves, and then the joint angles of each finger segment of the virtual hand are set according to the motion information of the joints of each finger segment of the human hand, and finally the set joint angles of each finger segment of the virtual hand are subjected to matrix translation and rotation operations in the virtual environment to realize the position and orientation transformation of the virtual hand.

5. A universal interface implementation method for interaction between both hands and a virtual glove peripheral according to claim 4, characterized in that: During the process of the virtual hand interacting with the human hand, corresponding constraints are imposed on the virtual hand according to specific application scenarios to limit the degree of freedom of the virtual hand.

6. A universal interface implementation method for interaction between hands and virtual glove peripherals according to claim 1, characterized in that: In step S3, when the action instruction received from the VR glove is a finger action bending instruction, and a collision is detected between the virtual hand and the virtual object, it is determined that the virtual hand is performing a grabbing operation on the virtual object at this time; the node of the virtual object is placed under the node of the virtual hand through matrix operation, and the gravity effect of the virtual object is cancelled, so that the virtual object becomes a sub-object of the virtual hand; at this time, the relative coordinate position of the virtual object and the virtual hand is solidified, and the virtual object moves and rotates with the virtual hand; When the action command received by the VR glove changes to an opening command, it is determined that the virtual hand is releasing the virtual object at this time. At this time, the virtual hand interaction task is completed, the virtual object is separated from the virtual hand, and the gravity effect of the virtual object is restored.