CN113672308B - VR space positioning system adaptation method, device and computer equipment - Google Patents

VR space positioning system adaptation method, device and computer equipment Download PDF

Info

Publication number
CN113672308B
CN113672308B CN202110934292.6A CN202110934292A CN113672308B CN 113672308 B CN113672308 B CN 113672308B CN 202110934292 A CN202110934292 A CN 202110934292A CN 113672308 B CN113672308 B CN 113672308B
Authority
CN
China
Prior art keywords
interface
equipment
positioning system
space positioning
subclass
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110934292.6A
Other languages
Chinese (zh)
Other versions
CN113672308A (en
Inventor
龚成鹏
许秋子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Realis Multimedia Technology Co Ltd
Original Assignee
Shenzhen Realis Multimedia Technology Co Ltd
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 Shenzhen Realis Multimedia Technology Co Ltd filed Critical Shenzhen Realis Multimedia Technology Co Ltd
Priority to CN202110934292.6A priority Critical patent/CN113672308B/en
Publication of CN113672308A publication Critical patent/CN113672308A/en
Application granted granted Critical
Publication of CN113672308B publication Critical patent/CN113672308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/4492Inheritance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a VR space positioning system adapting method, a device, a computer device and a storage medium, wherein the method comprises the following steps: defining a locator driver control subclass and inheriting a first function interface of an associated parent class thereof to set information of related device drivers; generating an operation parameter field of the VR space positioning system; defining a locator device management subclass and inheriting a second function interface of its associated parent class in response to the operating parameter field and managing threads that interface to the VR space location system; invoking a data processing interface of a locator device management subclass to receive device posture data of the VR space positioning system and update data of a first function interface; defining a watchdog service subclass and inheriting a third function interface of an associated parent class thereof to control the operation of related device drivers; the stepvr system call driver interface loads the locator device management subclass and the watchdog service subclass. The method can realize the adaptation between the VR space positioning system and the SteamVR system.

Description

VR space positioning system adaptation method, device and computer equipment
Technical Field
The present invention relates to the field of system adaptation, and in particular, to a VR space positioning system adaptation method, apparatus, computer device, and storage medium.
Background
At present, the control handles, head displays and used hardware trackers of HTC software, oculus software and IndexController software can be adapted to a SteamVR system, and as the tracking range of the hardware tracker is smaller and the use process is more complicated, companies with VR space positioning systems propose a scheme for replacing the hardware tracker so that the tracking capability of a game application handle and the head displays under the SteamVR system is stronger and easier to regulate, however, how to effectively adapt the VR space positioning system to the SteamVR system is a problem to be solved by the invention.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides an adaptation method, an adaptation device, computer equipment and a storage medium of a VR space positioning system, can realize the adaptation between the VR space positioning system and a SteamVR system, and has good practical value.
In order to solve at least one of the above technical problems, an embodiment of the present invention provides a VR space positioning system adapting method, which includes:
defining a locator drive control subclass, inheriting a first function interface under a parent class of the locator drive control, and setting information on related equipment drives by using the first function interface;
generating an operation parameter field of the VR space positioning system and recording the operation parameter field into a configuration file of the SteamVR system;
defining a locator device management subclass, inheriting a second function interface under a locator device management parent class, responding to the operation parameter field through the second function interface, and simultaneously managing thread connection between the locator device management subclass and the VR space positioning system;
creating a data processing interface in the locator equipment management subclass, calling the data processing interface through a connected thread to receive equipment posture data in a VR space positioning system, and further executing data update of the first function interface;
defining a watchdog service subclass, inheriting a third function interface under a watchdog service parent class, and utilizing the third function interface to operate and control the related device driver;
and running and calling a driving interface through a SteamVR system to load the locator device management subclass and the watchdog service subclass so as to complete the adaptation with the VR space locating system.
Preferably, the inheritance locator driver controls a first function interface under a parent class, and the information setting on the related device driver by using the first function interface includes:
creating a plurality of public enumeration members in the locator drive control subclass, and determining a plurality of corresponding equipment instances according to the plurality of public enumeration members;
the first function interface under the parent class of the drive control of the locator is inherited to comprise an active interface, a setPose interface, a RunFrame interface and a GetSerialNumber interface, wherein the active interface is used for setting relevant attribute parameters of the plurality of equipment instances, the setPose interface is used for setting gesture information associated with the plurality of equipment instances, the RunFrame interface is used for sending out gesture information associated with the plurality of equipment instances, and the GetSerialNumber interface is used for returning serial numbers associated with the equipment instances in a data updating state.
Preferably, the plurality of public enumeration members include a head display tracker, a left handle tracker and a right handle tracker, and the plurality of device instances include a head device instance corresponding to the head display tracker, a left hand device instance corresponding to the left handle tracker and a right hand device instance corresponding to the right handle tracker.
Preferably, the generating the operation parameter field of the VR space positioning system includes:
generating data coverage configuration information: correspondingly replacing positioning data fed back by a plurality of trackers with a plurality of rigid body posture information in the VR space positioning system;
generating driving application configuration information: determining an access address of the VR space positioning system and final output states of the rigid body posture information, and simultaneously recording a rigid body name associated with each piece of rigid body posture information;
generating role binding configuration information: and binding a plurality of rigid body correspondences in the VR space positioning system with the tracker roles provided by the SteamVR system.
Preferably, said responding to said operating parameter field through said second function interface while managing a thread connection between itself and a VR space positioning system includes:
based on the second function interface comprising an Init interface and a clearup interface, creating a corresponding equipment instance according to the rigid body name associated with each rigid body posture information through the Init interface, and starting a thread between the equipment instance and the VR space positioning system according to the access address so as to track the posture information of each equipment instance;
and deleting and managing the equipment instance created in the Init interface according to the user demand through the clearup interface, and stopping the thread started in the Init interface according to the user demand.
Preferably, the performing the data update to the first function interface includes:
filtering and classifying the received equipment posture data in the data processing interface to allocate corresponding rigid body posture data to each equipment instance created by the Init interface;
and calling the SetPose interface through the data processing interface, replacing the gesture information of the equipment instance with the matched internal name of the SetPose interface, and calling the RunFrame interface and sending out the gesture information after the replacement of the equipment instance with the matched internal name of the RunFrame interface.
Preferably, said using said third function interface to perform operation control on said related device driver includes:
initializing a log file of the related equipment driver through the Init interface based on the third function interface comprising the Init interface and the clearup interface, and starting a watchdog thread to manage the running state of the related equipment driver;
and closing the log file driven by the related equipment according to the user requirement through the clearup interface, and stopping the watchdog thread started in the Init interface according to the user requirement.
In addition, the embodiment of the invention also provides an adapting device of the VR space positioning system, which comprises:
the setting module is used for defining a locator drive control subclass, inheriting a first function interface under a locator drive control parent class, and setting information on related equipment drives by utilizing the first function interface;
the generating module is used for generating an operation parameter field of the VR space positioning system and recording the operation parameter field into a configuration file of the SteamVR system;
the management module is used for defining a locator device management subclass and inheriting a second function interface under a locator device management parent class, responding to the operation parameter field through the second function interface and simultaneously managing thread connection between the management module and the VR space positioning system;
the updating module is used for creating a data processing interface in the locator equipment management subclass, calling the data processing interface through a connected thread to receive equipment posture data in the VR space locating system, and further executing data updating of the first function interface;
the control module is used for defining a watchdog service subclass and inheriting a third function interface under a watchdog service parent class, and then utilizing the third function interface to conduct operation management and control on the related device drivers;
and the loading module is used for running through the SteamVR system and calling a driving interface to load the locator equipment management subclass and the watchdog service subclass so as to complete the adaptation with the VR space positioning system.
In addition, the embodiment of the invention also provides computer equipment, which comprises: the system comprises a memory, a processor and an application program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the method of any embodiment when executing the application program.
In addition, the embodiment of the invention also provides a computer readable storage medium, on which an application program is stored, and when the application program is executed by a processor, the steps of the method of any embodiment are realized.
In the embodiment of the invention, the process of writing the operation parameter field of the VR space positioning system into the configuration file of the SteamVR system is taken as the infrastructure, the association call is carried out by creating the locator drive control subclass and the locator equipment management subclass and inheriting a plurality of related interfaces, convenience conditions can be provided for the adaptation process of the VR space positioning system and the data docking process, and finally the adaptation between the VR space positioning system and the SteamVR system can be realized by calling the drive interface when the SteamVR system is operated, so that the invention has good practical value.
Drawings
Fig. 1 is a flowchart of a VR space positioning system adapting method in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an adapting device of a VR space positioning system in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides a VR space positioning system adapting method, as shown in figure 1, comprising the following steps:
s101, defining a locator drive control subclass, inheriting a first function interface under a parent class of locator drive control, and setting information on related equipment drives by using the first function interface;
specifically, defining a locator drive control subclass as a VRTrackerDeviceDriver class, wherein in the process of inheriting a locator drive control parent class (i.e. ITrackDeviceServerDriver class), firstly, creating a plurality of public enumeration members in the locator drive control subclass, and determining a plurality of corresponding equipment instances according to the plurality of public enumeration members; and secondly inheriting a first function interface under the parent class of the locator drive control, wherein the first function interface comprises an active interface, a setPose interface, a RunFrame interface and a GetSerialNumber interface, the active interface is used for setting related attribute parameters of the plurality of equipment instances, the parameters comprise equipment types, control types, rendering models and corresponding serial numbers, the setPose interface is used for setting gesture information associated with the plurality of equipment instances, the RunFrame interface is used for sending the gesture information associated with the plurality of equipment instances and is realized by calling the existing TrackedDevicePoseUpdated interface, and the GetSerialNumber interface is used for returning the serial numbers associated with the equipment instances in a data updating state.
The public enumeration members comprise a head display tracker, a left handle tracker and a right handle tracker, and the device instances comprise a head device instance corresponding to the head display tracker, a left hand device instance corresponding to the left handle tracker and a right hand device instance corresponding to the right handle tracker.
S102, generating an operation parameter field of the VR space positioning system and recording the operation parameter field into a configuration file of a SteamVR system;
in one embodiment, the generating process of the VR space positioning system operation parameter field includes:
(1) Generating data overlay configuration information (i.e., trackingOverrides configuration information): correspondingly replacing positioning data fed back by a plurality of trackers with a plurality of rigid body posture information in a VR space positioning system, wherein any one of the rigid body posture information comprises position information and rotation information;
specifically, the positioning data of the U-turn display tracker is replaced by utilizing the Head rigid body posture information in the VR space positioning system, the positioning data of the left handle tracker is replaced by utilizing the Lefthand rigid body posture information in the VR space positioning system, and the positioning data of the right handle tracker is replaced by utilizing the Righthand rigid body posture information in the VR space positioning system.
(2) Generating driver_vrtracker configuration information: determining an access address of the VR space positioning system and final output states of the rigid body posture information, and simultaneously recording a rigid body name associated with each piece of rigid body posture information;
specifically, when the only usericigibody Head position parameter in the driving application configuration information is set to true, it may be determined that the positioning data of the Head-rest tracker is replaced by the position information of the Head rigid body only, whereas if the parameter is set to false, it may be determined that the positioning data of the Head-rest tracker is replaced by the position information and the rotation information of the Head rigid body; the relevant posture information of any rigid body can be determined to be in an allowable output state when the OutPutRev RigidbodityDataInfo parameter in the driving application configuration information is set to true, otherwise, the relevant posture information of any rigid body can be determined to be in an allowable output state when the parameter is set to false; setting a tracker bridge HeadName parameter in the driving application configuration information as the name of the Head rigid body, setting a tracker bridge LHandname parameter therein as the name of the Lefthand rigid body, and setting a tracker bridge HeadRhand name parameter as the name of the right hand rigid body; setting the tracker server address parameter in the driving application configuration information as the IP address of the host where the VR space positioning system operates.
(3) Generating role binding configuration information (i.e., tracker configuration information): and binding a plurality of rigid body correspondences in the VR space positioning system with the tracker roles provided by the SteamVR system.
Specifically, based on the tracker roles provided by the stepvr system including a hand-held role and further subdivided into a left hand-held role and a right hand-held role, the lefhandle rigid body in the VR space positioning system is bound to the left hand-held role (i.e., trackdcontroller rrole_lefhand), and the right hand-held role (i.e., trackdcontroller rrole_right hand) in the VR space positioning system is bound to the right hand-held role.
S103, defining a locator device management subclass, inheriting a second function interface under a locator device management parent class, responding to the operation parameter field through the second function interface, and simultaneously managing thread connection between the locator device management subclass and the VR space positioning system;
specifically, defining a locator device management subclass as a serverdriver_vrtracker class, inheriting that a second function interface under a locator device management parent class (i.e., an isertrackdeviceprovider class) includes an Init interface and a clearup interface, and creating a corresponding device instance according to the rigid body name associated with each rigid body posture information through the Init interface at this time, namely creating a Head device instance according to the name of the Head rigid body, creating a left-hand device instance according to the name of the LeftHand rigid body, and creating a right-hand device instance according to the name of the right-hand rigid body, and then opening a thread between the host device and the VR space positioning system according to the access address to track the posture information of each device instance; and conversely, deleting and managing the equipment instance created in the Init interface through the clearup interface according to the user requirement, and stopping the thread started in the Init interface according to the user requirement.
S104, creating a data processing interface in the locator equipment management subclass, calling the data processing interface through a connected thread to receive equipment posture data in a VR space locating system, and further executing data update of the first function interface;
specifically, when the device posture data is received by calling a data processing interface (i.e., a recvtracker data interface) created in the locator device management subclass, preferentially executing filtering classification work so as to allocate corresponding rigid body posture data to each device instance created by the Init interface; and secondly, calling the SetPose interface through the data processing interface and replacing the gesture information of the equipment instance with the matched internal name of the SetPose interface based on the first function interface comprising the SetPose interface and the RunFrame interface, wherein in the process, if the information related to the head equipment instance is replaced, the operation is required to be carried out according to the set OnlyUseRigibody HeadPosition parameter, and the data processing interface is used for calling the RunFrame interface and carrying out the outgoing of the replaced gesture information of the equipment instance with the matched internal name of the RunFrame interface, and the feasibility of the process depends on the set OutPutReveRidbodiInfo parameter.
S105, defining a watchdog service subclass, inheriting a third function interface under a watchdog service parent class, and utilizing the third function interface to conduct operation management and control on related equipment drivers;
specifically, defining a watchdog service subclass as a watchdog driver_vrtracker class, wherein the watchdog service subclass inherits that a third function interface under a watchdog service parent class (i.e., an IVRWatchdogProvider class) includes an Init interface and a clearup interface, and at this time, initializing a log file of the related device driver through the Init interface, and starting a watchdog thread to manage an operation state of the related device driver; and conversely, closing the log file driven by the related equipment through the clearup interface according to the user requirement, and stopping the watchdog thread started in the Init interface according to the user requirement.
S106, running through a SteamVR system and calling a driving interface to load the locator equipment management subclass and the watchdog service subclass so as to complete the adaptation with the VR space locating system.
Specifically, when the SteamVR system is running, the global static variable in the locator device management subclass is preferentially created to be g_serverDriverNull, and the global static variable in the watchdog service subclass is preferentially created to be g_watchdogDriverNull; and secondly, after ensuring the reasonability of the management parent class of the locator device and the watchdog service parent class, calling a driving interface (namely an HmdDriverFactoy interface) to load g_serverDriverNull and g_watchdog DriverNull operation.
Further, the process of ensuring the rationality of the locator device management parent and the watchdog service parent is embodied as: and determining that the version number of the management parent class of the locator device and the corresponding interface parameters are consistent, and determining that the version number of the watchdog service parent class and the corresponding interface parameters are consistent, wherein the two types of version numbers are directly defined by a software development kit of the SteamVR system, and the two types of interface parameters are automatically transmitted when the SteamVR system runs.
In the embodiment of the invention, the process of writing the operation parameter field of the VR space positioning system into the configuration file of the SteamVR system is taken as the infrastructure, the association call is carried out by creating the locator drive control subclass and the locator equipment management subclass and inheriting a plurality of related interfaces, convenience conditions can be provided for the adaptation process of the VR space positioning system and the data docking process, and finally the adaptation between the VR space positioning system and the SteamVR system can be realized by calling the drive interface when the SteamVR system is operated, so that the invention has good practical value.
In an embodiment, the present invention further provides an adapting device of a VR space positioning system, as shown in fig. 2, where the device includes:
the setting module 201 is configured to define a locator driver control subclass and inherit a first function interface under a parent class of locator driver control, and then set information on related device drivers by using the first function interface;
the generating module 202 is configured to generate an operation parameter field of the VR space positioning system and record the operation parameter field in a configuration file of the SteamVR system;
the management module 203 is configured to define a locator device management subclass and inherit a second function interface under the locator device management parent class, and then respond to the operation parameter field through the second function interface while managing thread connection between itself and the VR space positioning system;
an updating module 204, configured to create a data processing interface in the locator device management subclass, call the data processing interface through a connected thread to receive device posture data in the VR space locating system, and further perform data update on the first function interface;
the control module 205 is configured to define a watchdog service subclass and inherit a third function interface under a watchdog service parent class, and then utilize the third function interface to perform operation management and control on the related device driver;
and the loading module 206 is configured to run through the stepvr system and call a driving interface to load the locator device management subclass and the watchdog service subclass, so as to complete the adaptation with the VR space positioning system.
For a specific definition of a VR space positioning system adaptation device, reference may be made to the definition of a VR space positioning system adaptation method hereinabove, and the details are not repeated here. The modules in the VR space positioning system adapting device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
An embodiment of the present invention provides a computer readable storage medium, where an application program is stored, and when the program is executed by a processor, the application program implements a VR space positioning system adapting method according to any one of the foregoing embodiments. The computer readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS Memory, random access memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable ProgrammableRead-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., computer, cell phone), and may be read-only memory, magnetic or optical disk, etc.
In addition, fig. 3 is a schematic structural diagram of a computer device in an embodiment of the present invention.
The embodiment of the invention also provides computer equipment, as shown in fig. 3. The computer device includes a processor 302, a memory 303, an input unit 304, a display unit 305, and the like. It will be appreciated by those skilled in the art that the device architecture shown in fig. 3 does not constitute a limitation of all devices, and may include more or fewer components than shown, or may combine certain components. The memory 303 may be used to store an application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal memory or external memory, or include both internal memory and external memory. The internal memory may include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, floppy disk, ZIP disk, U-disk, tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The memory disclosed herein is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of a signal and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel may collect touch operations on or near the user (e.g., the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, mouse, joystick, etc. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, performs various functions and processes data by running or executing software programs and/or modules stored in the memory 303, and invoking data stored in the memory.
As one embodiment, the computer device includes: the VR space positioning system comprises one or more processors 302, a memory 303, one or more application programs 301, wherein the one or more application programs 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, the one or more application programs 301 configured to perform a VR space positioning system adaptation method in any of the above embodiments.
In addition, the foregoing describes in detail a VR space positioning system adapting method, apparatus, computer device and storage medium provided in the embodiments of the present invention, and specific examples should be adopted to illustrate the principles and implementations of the present invention, where the foregoing examples are only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (6)

1. A VR space positioning system adaptation method, the method comprising:
defining a locator drive control subclass, inheriting a first function interface under a parent class of the locator drive control, and setting information on related equipment drives by using the first function interface;
generating an operation parameter field of the VR space positioning system and recording the operation parameter field into a configuration file of the SteamVR system;
defining a locator device management subclass, inheriting a second function interface under a locator device management parent class, responding to the operation parameter field through the second function interface, and simultaneously managing thread connection between the locator device management subclass and the VR space positioning system;
creating a data processing interface in the locator equipment management subclass, calling the data processing interface through a connected thread to receive equipment posture data in a VR space positioning system, and further executing data update of the first function interface;
defining a watchdog service subclass, inheriting a third function interface under a watchdog service parent class, and utilizing the third function interface to operate and control the related device driver;
running and calling a driving interface to load the locator equipment management subclass and the watchdog service subclass through a SteamVR system to complete the adaptation with a VR space locating system;
the inheritance locator driver controls a first function interface under a parent class, and the information setting of the related device driver by utilizing the first function interface comprises the following steps:
establishing a plurality of public enumeration members in the locator drive control subclass, and determining a plurality of corresponding equipment instances according to the plurality of public enumeration members, wherein the plurality of public enumeration members comprise a head display tracker, a left handle tracker and a right handle tracker;
inheriting a first function interface under a parent class of the locator drive control, wherein the first function interface comprises an active interface, a setPose interface, a RunFralNumber interface and a GetSerialNumber interface, the active interface is used for setting related attribute parameters of the plurality of equipment instances, the setPose interface is used for setting gesture information associated with the plurality of equipment instances, the RunFralNumber interface is used for sending out gesture information associated with the plurality of equipment instances, and the GetSerialNumber interface is used for returning serial numbers associated with the equipment instances in a data updating state currently;
the generating the operation parameter field of the VR space positioning system includes:
generating data coverage configuration information: correspondingly replacing positioning data fed back by a plurality of trackers with a plurality of rigid body posture information in the VR space positioning system;
generating driving application configuration information: determining an access address of the VR space positioning system and final output states of the rigid body posture information, and simultaneously recording a rigid body name associated with each piece of rigid body posture information;
generating role binding configuration information: binding a plurality of rigid bodies in the VR space positioning system with a tracker role provided by a SteamVR system correspondingly;
the responding to the operation parameter field through the second function interface while managing the thread connection between itself and the VR space positioning system includes:
based on the second function interface comprising an Init interface and a clearup interface, creating a corresponding equipment instance according to the rigid body name associated with each rigid body posture information through the Init interface, and starting a thread between the equipment instance and the VR space positioning system according to the access address so as to track the posture information of each equipment instance;
deleting and managing the equipment instance created in the Init interface according to the user demand through the clearup interface, and stopping the thread started in the Init interface according to the user demand;
the operating and controlling the related device driver by using the third function interface includes:
initializing a log file of the related equipment driver through the Init interface based on the third function interface comprising the Init interface and the clearup interface, and starting a watchdog thread to manage the running state of the related equipment driver;
and closing the log file driven by the related equipment according to the user requirement through the clearup interface, and stopping the watchdog thread started in the Init interface according to the user requirement.
2. The VR space positioning system adaptation method of claim 1, wherein the number of device instances includes a head device instance corresponding to the head tracker, a left hand device instance corresponding to the left handle tracker, and a right hand device instance corresponding to the right handle tracker.
3. The VR space positioning system adaptation method of claim 1, wherein said performing a data update on said first function interface comprises:
filtering and classifying the received equipment posture data in the data processing interface to allocate corresponding rigid body posture data to each equipment instance created by the Init interface;
and calling the SetPose interface through the data processing interface, replacing the gesture information of the equipment instance with the matched internal name of the SetPose interface, and calling the RunFrame interface and sending out the gesture information after the replacement of the equipment instance with the matched internal name of the RunFrame interface.
4. A VR space location system adaptation apparatus, the apparatus comprising:
the setting module is used for defining a locator drive control subclass, inheriting a first function interface under a locator drive control parent class, and setting information on related equipment drives by utilizing the first function interface;
the generating module is used for generating an operation parameter field of the VR space positioning system and recording the operation parameter field into a configuration file of the SteamVR system;
the management module is used for defining a locator device management subclass and inheriting a second function interface under a locator device management parent class, responding to the operation parameter field through the second function interface and simultaneously managing thread connection between the management module and the VR space positioning system;
the updating module is used for creating a data processing interface in the locator equipment management subclass, calling the data processing interface through a connected thread to receive equipment posture data in the VR space locating system, and further executing data updating of the first function interface;
the control module is used for defining a watchdog service subclass and inheriting a third function interface under a watchdog service parent class, and then utilizing the third function interface to conduct operation management and control on the related device drivers;
the loading module is used for running through a SteamVR system and calling a driving interface to load the locator equipment management subclass and the watchdog service subclass so as to complete the adaptation with the VR space positioning system;
the inheritance locator driver controls a first function interface under a parent class, and the information setting of the related device driver by utilizing the first function interface comprises the following steps:
establishing a plurality of public enumeration members in the locator drive control subclass, and determining a plurality of corresponding equipment instances according to the plurality of public enumeration members, wherein the plurality of public enumeration members comprise a head display tracker, a left handle tracker and a right handle tracker;
inheriting a first function interface under a parent class of the locator drive control, wherein the first function interface comprises an active interface, a setPose interface, a RunFralNumber interface and a GetSerialNumber interface, the active interface is used for setting related attribute parameters of the plurality of equipment instances, the setPose interface is used for setting gesture information associated with the plurality of equipment instances, the RunFralNumber interface is used for sending out gesture information associated with the plurality of equipment instances, and the GetSerialNumber interface is used for returning serial numbers associated with the equipment instances in a data updating state currently;
the generating the operation parameter field of the VR space positioning system includes:
generating data coverage configuration information: correspondingly replacing positioning data fed back by a plurality of trackers with a plurality of rigid body posture information in the VR space positioning system;
generating driving application configuration information: determining an access address of the VR space positioning system and final output states of the rigid body posture information, and simultaneously recording a rigid body name associated with each piece of rigid body posture information;
generating role binding configuration information: binding a plurality of rigid bodies in the VR space positioning system with a tracker role provided by a SteamVR system correspondingly;
the responding to the operation parameter field through the second function interface while managing the thread connection between itself and the VR space positioning system includes:
based on the second function interface comprising an Init interface and a clearup interface, creating a corresponding equipment instance according to the rigid body name associated with each rigid body posture information through the Init interface, and starting a thread between the equipment instance and the VR space positioning system according to the access address so as to track the posture information of each equipment instance;
deleting and managing the equipment instance created in the Init interface according to the user demand through the clearup interface, and stopping the thread started in the Init interface according to the user demand;
the operating and controlling the related device driver by using the third function interface includes:
initializing a log file of the related equipment driver through the Init interface based on the third function interface comprising the Init interface and the clearup interface, and starting a watchdog thread to manage the running state of the related equipment driver;
and closing the log file driven by the related equipment according to the user requirement through the clearup interface, and stopping the watchdog thread started in the Init interface according to the user requirement.
5. A computer device comprising a memory, a processor and an application stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 3 when the application is executed by the processor.
6. A computer readable storage medium having stored thereon an application program, wherein the application program, when executed by a processor, implements the steps of the method of any of claims 1 to 3.
CN202110934292.6A 2021-08-13 2021-08-13 VR space positioning system adaptation method, device and computer equipment Active CN113672308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110934292.6A CN113672308B (en) 2021-08-13 2021-08-13 VR space positioning system adaptation method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110934292.6A CN113672308B (en) 2021-08-13 2021-08-13 VR space positioning system adaptation method, device and computer equipment

Publications (2)

Publication Number Publication Date
CN113672308A CN113672308A (en) 2021-11-19
CN113672308B true CN113672308B (en) 2023-10-20

Family

ID=78542908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110934292.6A Active CN113672308B (en) 2021-08-13 2021-08-13 VR space positioning system adaptation method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN113672308B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446149A (en) * 2018-02-28 2018-08-24 北京凌宇智控科技有限公司 A kind of third party's dynamic bank interface hold-up interception method and system
CN110489184A (en) * 2018-05-14 2019-11-22 北京凌宇智控科技有限公司 A kind of virtual reality scenario implementation method and its system based on UE4 engine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10643399B2 (en) * 2017-08-29 2020-05-05 Target Brands, Inc. Photorealistic scene generation system and method
WO2019118679A1 (en) * 2017-12-13 2019-06-20 Aurelius, Inc. Systems, devices, and methods for augmented reality

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446149A (en) * 2018-02-28 2018-08-24 北京凌宇智控科技有限公司 A kind of third party's dynamic bank interface hold-up interception method and system
CN110489184A (en) * 2018-05-14 2019-11-22 北京凌宇智控科技有限公司 A kind of virtual reality scenario implementation method and its system based on UE4 engine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Using Traditional Keyboards in VR: SteamVR Developer Kit and Pilot Game User Study;S. Bovet 等;《2018 IEEE Games, Entertainment, Media Conference (GEM)》;第1-9页 *
面向小麦可视化的沉浸式虚拟场景的研究与实现;王澍田;《中国优秀硕士学位论文全文数据库 农业科技辑》;D043-18 *

Also Published As

Publication number Publication date
CN113672308A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
ES2892976T3 (en) Robotic user interface generation in response to connecting peripherals to the robot
US20130145362A1 (en) Hidden automated data mirroring for native interfaces in distributed virtual machines
US20210409521A1 (en) System and method for interoperable communication of between entities with different structures
CN107679832A (en) Task management method, device and server
CN102223363A (en) System and method for generating persistent sessions in a graphical interface for managing communication sessions
US9558028B2 (en) Systems and methods for migration of virtual machines across virtual storage resources
CN112114832B (en) Vehicle upgrade control method, terminal device, vehicle, and computer storage medium
CN116301596A (en) Software RAID construction method, device, equipment and storage medium
CN104137074B (en) The optimization that resource uses in multi-environment computing system
Wheeler Atkinson et al. Development of a multiple heuristics evaluation table (MHET) to support software development and usability analysis
CN113672308B (en) VR space positioning system adaptation method, device and computer equipment
US7127675B1 (en) Method and system for automatically revising software help documentation
US7739690B2 (en) Meta-container for model-based distributed applications
CN110248023B (en) Intelligent terminal control method, device, equipment and medium
WO2023046010A1 (en) Parameter configuration method and apparatus for tracking device of steamvr system
CN112148625A (en) Service logic debugging method, device, equipment and computer readable storage medium
US20230133945A1 (en) Method for visualizing and managing asset changes before reflecting to cloud, and apparatus supporting the same
EP2863180A1 (en) Apparatus and method for partially updating a navigation data while driving
CN113821219A (en) Method and system for realizing application program containerization
CN109547563B (en) Message push processing method and device, storage medium and server
CN112131160A (en) Working mode switching circuit, working mode switching method and robot
CN100462948C (en) Computer peripheral device containing contents and method of outputting contents using the same
CN114201240B (en) Method and device for configuring helm chart
CN111061460B (en) Universal software development platform based on embedded system
CN117591438B (en) Automatic testing method and related device for UI component atomization

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant