WO2023046010A1 - Parameter configuration method and apparatus for tracking device of steamvr system - Google Patents

Parameter configuration method and apparatus for tracking device of steamvr system Download PDF

Info

Publication number
WO2023046010A1
WO2023046010A1 PCT/CN2022/120524 CN2022120524W WO2023046010A1 WO 2023046010 A1 WO2023046010 A1 WO 2023046010A1 CN 2022120524 W CN2022120524 W CN 2022120524W WO 2023046010 A1 WO2023046010 A1 WO 2023046010A1
Authority
WO
WIPO (PCT)
Prior art keywords
steamvr
configuration
parameters
openvr
plug
Prior art date
Application number
PCT/CN2022/120524
Other languages
French (fr)
Chinese (zh)
Inventor
龚成鹏
许秋子
Original Assignee
深圳市瑞立视多媒体科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市瑞立视多媒体科技有限公司 filed Critical 深圳市瑞立视多媒体科技有限公司
Publication of WO2023046010A1 publication Critical patent/WO2023046010A1/en

Links

Images

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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Definitions

  • the present invention relates to the technical field of parameter configuration, in particular to a tracking device parameter configuration method, device, computer equipment and storage medium of a SteamVR system.
  • the control handles, head-mounted displays and hardware trackers used by HTC software, Oculus software and IndexController software can all be adapted to the SteamVR system.
  • the system company proposes a solution to replace the hardware tracker to make the tracking ability of the game application controller and head-mounted display under the SteamVR system stronger and easier to control. On this basis, it is necessary to provide a convenient hardware tracker and RTS Tracker
  • the driver configuration process for switching applications between systems is also a problem to be solved by the present invention.
  • an embodiment of the present invention provides a tracking device parameter configuration method for a SteamVR system, the method comprising:
  • the installation environment of the SteamVR system is initialized and checked based on the running path, and then the IVR application instance corresponding to the current client version number of the SteamVR system is written in the environment variable of the SteamVR system;
  • the initial inspection of the installation environment of the SteamVR system based on the running path includes:
  • writing the IVR application instance corresponding to the current client version number of the SteamVR system into the environment variable of the SteamVR system includes:
  • the client core factory class instance is forcibly replaced with the IVR application instance corresponding to the current client version number of the SteamVR system.
  • loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path includes:
  • the names of several associated configuration blocks and the attribute key names contained in each configuration block are obtained from the index in the configuration file path;
  • the several configuration blocks include a driver configuration block, a device configuration block and a role configuration block.
  • the relevant configuration parameters of the OpenVR plug-in include the basic configuration parameters of the RTS Tracker system belonging to the driver configuration block, the built-in device parameters of the RTS Tracker system belonging to the device configuration block, and the parameters of the RTS Tracker system belonging to the role configuration block.
  • the RTS Tracker system has built-in device role permission parameters.
  • writing the relevant configuration parameters of the OpenVR plug-in obtained by loading into the configuration file of the SteamVR system includes:
  • the embodiment of the present invention also provides a tracking device parameter configuration device for the SteamVR system, the device includes:
  • the acquisition module is used to obtain the running path and configuration file path of the SteamVR system
  • Checking module for initializing the installation environment of the SteamVR system based on the running path, and then writing the IVR application instance corresponding to the current client version number of the SteamVR system into the environment variable of the SteamVR system;
  • Loading module for loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path;
  • the storage module is used to write the related configuration parameters of the OpenVR plug-in loaded into the configuration file of the SteamVR system.
  • an embodiment of the present invention also provides a computer device, which includes: a memory, a processor, and an application program stored on the memory and operable on the processor.
  • a computer device which includes: a memory, a processor, and an application program stored on the memory and operable on the processor.
  • the processor executes the application program, the method in any of the above embodiments is implemented. A step of.
  • an embodiment of the present 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 in any of the foregoing embodiments are implemented.
  • this task by prioritizing the task of initial inspection of the installation environment of the SteamVR system, this task, as a prerequisite for the normal operation of the entire parameter configuration process, will ensure that a good operating environment is provided for the entire parameter configuration process;
  • the task of loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system and using the existing variable setting interface to perform the import task of the above-mentioned relevant configuration parameters enables the SteamVR system to use the OpenVR plug-in inside the RTS Tracker system to drive the game.
  • Different roles thus realizing the application switching between the RTS Tracker system and the original hardware tracker used in the SteamVR system, has good practical value.
  • Fig. 1 is a schematic flow diagram of a tracking device parameter configuration method of a SteamVR system in an embodiment of the present invention
  • Fig. 2 is a schematic structural diagram of a tracking device parameter configuration device of a SteamVR system in an embodiment of the present invention
  • Fig. 3 is a schematic diagram of the structural composition of a computer device in an embodiment of the present invention.
  • the embodiment of the present invention provides a tracking device parameter configuration method of the SteamVR system, as shown in Figure 1, the method includes the following steps:
  • the SteamVR system originally had a path search class (i.e. the CVRPathRegistry class)
  • the GetPaths interface in the CVRPathRegistry class to search the environment variables of the SteamVR system
  • the operating path and configuration of the SteamVR system can be obtained file path; on the contrary, if the GetPaths interface cannot obtain the above-mentioned required path, it will return an error code carrying the information that the SteamVR system installation registration path cannot be queried. At this time, there is no need to continue to perform step S102, and the technician will reset the SteamVR system to install.
  • the implementation process of the present invention comprises:
  • step (2) Identify whether there is a bin directory folder under the running path, and the specific identification results are as follows: if the bin directory folder cannot be identified, return an error code with SteamVR system installation exception information, and end the initialization check process at the same time ; If the bin directory folder has been identified, then proceed to step (2);
  • the client core factory class instance is forcibly replaced with an IVR application instance (named as an IVRClientCore class instance) corresponding to the current client version number of the SteamVR system.
  • step (2) if the LoadLibraryEx interface fails to load the dynamic library file successfully, an error code carrying the failure message of loading the dynamic library file on the client side of the SteamVR system will be returned.
  • the initialization inspection process is ended; similarly, in the process of executing step (3), if the GetProcAddress interface fails to obtain the client core factory class instance, return to the client core factory class instance to obtain The error code of the failure information, and at the same time call the FreeLibrary interface to locate the corresponding dynamic library file according to the dynamic library handle and release it from the running memory, and end the initialization checking process.
  • step (1) it is prioritized to judge whether the running path is a folder directory path, and the specific judgment result includes: if yes, continue to execute step (1); if not, return to carry The error code for the unsuccessful installation of the SteamVR system. At this point, the initialization check process ends, and the technician will re-install the SteamVR system.
  • the implementation process of the present invention comprises:
  • the several configuration blocks include the driver configuration block (named Driver_RTSTracker configuration block), device configuration block (named TrackingOverrides configuration block) and role configuration block (named Trackers configuration block);
  • the relevant configuration parameters of the OpenVR plug-in include the basic configuration parameters of the RTS Tracker system belonging to the driver configuration block, the built-in device parameters of the RTS Tracker system belonging to the device configuration block, and the RTS tracker system parameters belonging to the role configuration block.
  • the Tracker system has built-in device role permission parameters, as follows:
  • the basic configuration parameters of the RTS Tracker system include the IP address of the network node on which the RTS Tracker system is running, the Steam VR system only uses the first state value of the head rigid body position data in the RTS Tracker system, and the OpenVR plug-in can output data for debugging
  • the second state value of the information used to replace the head rigid body name parameter of the head display locator in the Steam VR system, the left hand rigid body name parameter used to replace the left handle locator in the Steam VR system, and used to replace the right hand in the Steam VR system
  • the built-in device parameters of the RTS Tracker system include the virtual device information parameters of the head rigid body in the RTS Tracker system, the virtual device information parameters of the left-hand rigid body in the RTS Tracker system, and the virtual device information parameters of the right-hand rigid body in the RTS Tracker system;
  • the built-in device role authority parameters of the RTS Tracker system include the role information parameters bound to the head rigid body in the RTS Tracker system, the role information parameters bound to the left-hand rigid body in the RTS Tracker system, and the role information parameters bound to the right-hand rigid body in the RTS Tracker system .
  • step S104 the eligibility of the entire configuration task can also be verified.
  • the specific implementation process is: restart the SteamVR system, if the TrackingReplaceSection parameter originally set in the configuration file of the system is found If the item is empty data, it means that the SteamVR system still uses the original hardware locator to perform the data update operation, which reflects that the entire configuration task is not successful; on the contrary, if the TrackingReplaceSection parameter originally set in the configuration file of the system is queried item has displayed the relevant information of the head rigid body, the left-hand rigid body and the right-hand rigid body, it means that the SteamVR system is currently associated with the relevant rigid body in the RTS Tracker system to perform data update operations, thus reflecting that the entire configuration task is Effective.
  • this task by prioritizing the task of initial inspection of the installation environment of the SteamVR system, this task, as a prerequisite for the normal operation of the entire parameter configuration process, will ensure that a good operating environment is provided for the entire parameter configuration process;
  • the task of loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system and using the existing variable setting interface to perform the import task of the above-mentioned relevant configuration parameters enables the SteamVR system to use the OpenVR plug-in inside the RTS Tracker system to drive the game.
  • Different roles thus realizing the application switching between the RTS Tracker system and the original hardware tracker used in the SteamVR system, has good practical value.
  • the present invention also provides a tracking device parameter configuration device of the SteamVR system, as shown in FIG. 2 , the device includes:
  • Obtaining module 201 used to obtain the running path and configuration file path of the SteamVR system
  • Checking module 202 is used to initialize the installation environment of the SteamVR system based on the running path, and then write the IVR application instance corresponding to the current client version number of the SteamVR system into the environment variable of the SteamVR system;
  • Loading module 203 for loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path;
  • the storage module 204 is configured to write related configuration parameters of the loaded OpenVR plug-in into a configuration file of the SteamVR system.
  • Each module in the tracking device parameter configuration device of the above-mentioned SteamVR system can be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • a computer-readable storage medium provided by an embodiment of the present invention, an application program is stored on the computer-readable storage medium, and when the program is executed by a processor, the tracking of a SteamVR system in any one of the above-mentioned embodiments is implemented Device parameter configuration method.
  • the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random memory), EPROM (EraSable Programmable Read-Only Memory, erasable programmable read-only memory), EEPROM (Electrically EraSable Programmable Read-Only Memory, electrically erasable programmable read-only memory), flash memory, magnetic card or optical card.
  • a storage device includes any medium that stores or transmits information in a readable form by a device (eg, a computer, a mobile phone), and may be a read-only memory, a magnetic disk or an optical disk, and the like.
  • FIG. 3 is a schematic diagram of the structural composition of the computer device in the embodiment of the present invention.
  • the embodiment of the present invention also provides a computer device, as shown in FIG. 3 .
  • the computer device includes a processor 302, a memory 303, an input unit 304, a display unit 305 and other components.
  • the memory 303 can be used to store the application program 301 and various functional modules, and the processor 302 runs the application program 301 stored in the memory 303, thereby executing various functional applications and data processing of the device.
  • 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.
  • External storage may include hard disk, floppy disk, ZIP disk, U disk, magnetic tape, etc.
  • the memory disclosed in the present invention includes but is not limited to these types of memory.
  • the memory disclosed in the present invention is only an example rather than a limitation.
  • the input unit 304 is used for receiving signal input, and receiving a keyword input by a user.
  • the input unit 304 may include a touch panel and other input devices.
  • the touch panel can collect the user's touch operation on or near it (such as the user's operation on the touch panel or near the touch panel by using any suitable object or accessory such as a finger or a stylus), and
  • the program drives the corresponding connection device; other input devices may include, but are not limited to, one or more of physical keyboards, function keys (such as playback control buttons, switch buttons, etc.), trackballs, mice, and joysticks.
  • the display unit 305 can be used to display information input by the user or provided to the user, as well as various menus of the terminal device.
  • the display unit 305 may be in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the processor 302 is the control center of the terminal equipment, and uses various interfaces and lines to connect various parts of the entire equipment, by running or executing software programs and/or modules stored in the memory 303, and calling data stored in the memory to execute Various functions and processing data.
  • the computer device includes: one or more processors 302, a memory 303, and one or more application programs 301, wherein the one or more application programs 301 are stored in the memory 303 and are configured to Executed by the one or more processors 302, the one or more application programs 301 are configured to execute a tracking device parameter configuration method of the SteamVR system in any one of the above embodiments.

Abstract

The present invention relates to a parameter configuration method and apparatus for a tracking device of a SteamVR system, and a computer device and a storage medium. The method comprises: acquiring a running path and a configuration file path of a SteamVR system; on the basis of the running path, performing initialization inspection on an installation environment of the SteamVR system, and then writing, into environment variables of the SteamVR system, an IVR application instance corresponding to the current client version number of the SteamVR system; on the basis of the IVR application instance and the configuration file path, loading related configuration parameters of an OpenVR plug-in that is used in an RTS Tracker system; and writing, into a configuration file of the SteamVR system, the related configuration parameters of the OpenVR plug-in that are obtained by means of loading. By means of the method, application switching between hardware trackers that are originally used in an RTS Tracker system and a SteamVR system can be realized, and the whole parameter configuration process is simple and convenient.

Description

一种SteamVR系统的追踪设备参数配置方法及装置A tracking device parameter configuration method and device for a SteamVR system 技术领域technical field
本发明涉及参数配置技术领域,特别是涉及一种SteamVR系统的追踪设备参数配置方法、装置、计算机设备和存储介质。The present invention relates to the technical field of parameter configuration, in particular to a tracking device parameter configuration method, device, computer equipment and storage medium of a SteamVR system.
背景技术Background technique
目前HTC软件、Oculus软件和IndexController软件的控制手柄、头显以及使用到的硬件跟踪器均能够适配于SteamVR系统,但由于该硬件跟踪器的跟踪范围较小且使用过程较为繁杂,拥有RTS Tracker系统的公司提出一种替换该硬件跟踪器的方案以使得针对SteamVR系统下的游戏应用手柄和头显的跟踪能力更强且更易调控,在此基础上需要提供一个方便该硬件跟踪器和RTS Tracker系统之间进行应用切换的驱动配置过程,这也是本发明所需要解决的问题。At present, the control handles, head-mounted displays and hardware trackers used by HTC software, Oculus software and IndexController software can all be adapted to the SteamVR system. The system company proposes a solution to replace the hardware tracker to make the tracking ability of the game application controller and head-mounted display under the SteamVR system stronger and easier to control. On this basis, it is necessary to provide a convenient hardware tracker and RTS Tracker The driver configuration process for switching applications between systems is also a problem to be solved by the present invention.
发明内容Contents of the invention
本发明的目的在于克服现有技术的不足,提供了一种SteamVR系统的追踪设备参数配置方法、装置、计算机设备和存储介质,能够实现RTS Tracker系统与SteamVR系统中原来使用的硬件跟踪器之间的应用切换,且整个参数配置过程相对简单方便。The purpose of the present invention is to overcome the deficiencies in the prior art, and provide a tracking device parameter configuration method, device, computer equipment and storage medium of the SteamVR system, which can realize the connection between the RTS Tracker system and the original hardware tracker used in the SteamVR system. application switching, and the entire parameter configuration process is relatively simple and convenient.
为了解决上述至少一个技术问题,本发明实施例提供了一种SteamVR系统的追踪设备参数配置方法,所述方法包括:In order to solve at least one of the above technical problems, an embodiment of the present invention provides a tracking device parameter configuration method for a SteamVR system, the method comprising:
获取SteamVR系统的运行路径和配置文件路径;Obtain the running path and configuration file path of the SteamVR system;
基于所述运行路径对SteamVR系统的安装环境进行初始化检查,再将SteamVR系统的当前客户端版本号对应的IVR应用实例写入SteamVR系统的环境变量中;The installation environment of the SteamVR system is initialized and checked based on the running path, and then the IVR application instance corresponding to the current client version number of the SteamVR system is written in the environment variable of the SteamVR system;
基于所述IVR应用实例和所述配置文件路径对RTS Tracker系统所使用到的OpenVR插件的相关配置参数进行加载;Load the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path;
将加载得到的所述OpenVR插件的相关配置参数写入到SteamVR系统的配置文件中。Write the relevant configuration parameters of the OpenVR plug-in obtained by loading into the configuration file of the SteamVR system.
优选地,所述基于所述运行路径对SteamVR系统的安装环境进行初始化检查包括:Preferably, the initial inspection of the installation environment of the SteamVR system based on the running path includes:
识别所述运行路径下是否存在bin目录文件夹;Identify whether there is a bin directory folder under the running path;
若否,则返回携带着SteamVR系统安装异常信息的错误码,同时结束初始化检查进程;If not, return the error code carrying the SteamVR system installation exception information, and end the initialization check process at the same time;
若是,则调用LoadLibraryEx接口对所述bin目录文件夹内部的动态库文件进行加载,从而输出相关的动态库句柄;If so, then call the LoadLibraryEx interface to load the dynamic library file inside the bin directory folder, so as to output the relevant dynamic library handle;
调用GetProcAddress接口对所述动态库句柄和预先写入的关联字符串进行实例查询响应,从而输出相关的客户端核心工厂类实例。Call the GetProcAddress interface to respond to the instance query of the dynamic library handle and the pre-written associated string, thereby outputting the relevant client core factory class instance.
优选的,所述将SteamVR系统的当前客户端版本号对应的IVR应用实例写入SteamVR系统的环境变量中包括:Preferably, writing the IVR application instance corresponding to the current client version number of the SteamVR system into the environment variable of the SteamVR system includes:
将所述客户端核心工厂类实例强制替换为SteamVR系统的当前客户端版本号对应的IVR应用实例。The client core factory class instance is forcibly replaced with the IVR application instance corresponding to the current client version number of the SteamVR system.
优选地,所述基于所述IVR应用实例和所述配置文件路径对RTS Tracker系统所使用到的OpenVR插件的相关配置参数进行加载包括:Preferably, loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path includes:
调用所述IVR应用实例中的GetGenericInterface接口对预先写入的IVR配置版本参数进行数据关联响应,从而输出相关的参数指针;Call the GetGenericInterface interface in the IVR application instance to perform data association response to the pre-written IVR configuration version parameters, thereby outputting relevant parameter pointers;
基于所述参数指针,从所述配置文件路径中索引获取到关联的若干个配置块的名称以及每一个配置块内所包含的属性键名称;Based on the parameter pointer, the names of several associated configuration blocks and the attribute key names contained in each configuration block are obtained from the index in the configuration file path;
调用所述IVR应用实例中的ReadSettingsString接口对所述若干个配置块的名称以及每一个配置块内所包含的属性键名称进行数据搜索,从而输出OpenVR插件的相关配置参数。Call the ReadSettingsString interface in the IVR application instance to perform data search on the names of the several configuration blocks and the attribute key names contained in each configuration block, so as to output the relevant configuration parameters of the OpenVR plug-in.
优选地,所述若干个配置块包括驱动配置块、设备配置块和角色配置 块。Preferably, the several configuration blocks include a driver configuration block, a device configuration block and a role configuration block.
优选地,所述OpenVR插件的相关配置参数包括归属于所述驱动配置块的RTS Tracker系统基本配置参数、归属于所述设备配置块的RTS Tracker系统内置设备参数以及归属于所述角色配置块的RTS Tracker系统内置设备角色权限参数。Preferably, the relevant configuration parameters of the OpenVR plug-in include the basic configuration parameters of the RTS Tracker system belonging to the driver configuration block, the built-in device parameters of the RTS Tracker system belonging to the device configuration block, and the parameters of the RTS Tracker system belonging to the role configuration block. The RTS Tracker system has built-in device role permission parameters.
优选地,所述将加载得到的所述OpenVR插件的相关配置参数写入到SteamVR系统的配置文件中包括:Preferably, writing the relevant configuration parameters of the OpenVR plug-in obtained by loading into the configuration file of the SteamVR system includes:
基于所述参数指针,从所述配置文件路径中索引定位至所述若干个配置块处;Indexing from the configuration file path to the plurality of configuration blocks based on the parameter pointer;
根据需要写入的数据类型,调用现有的变量设置接口将所述OpenVR插件的相关配置参数以及每一个参数所对应的属性键名称写入到所属的配置块中。According to the type of data to be written, call the existing variable setting interface to write the relevant configuration parameters of the OpenVR plug-in and the attribute key name corresponding to each parameter into the corresponding configuration block.
另外,本发明是实施例还提供了一种SteamVR系统的追踪设备参数配置装置,所述装置包括:In addition, the embodiment of the present invention also provides a tracking device parameter configuration device for the SteamVR system, the device includes:
获取模块,用于获取SteamVR系统的运行路径和配置文件路径;The acquisition module is used to obtain the running path and configuration file path of the SteamVR system;
检查模块,用于基于所述运行路径对SteamVR系统的安装环境进行初始化检查,再将SteamVR系统的当前客户端版本号对应的IVR应用实例写入SteamVR系统的环境变量中;Checking module, for initializing the installation environment of the SteamVR system based on the running path, and then writing the IVR application instance corresponding to the current client version number of the SteamVR system into the environment variable of the SteamVR system;
加载模块,用于基于所述IVR应用实例和所述配置文件路径对RTS Tracker系统所使用到的OpenVR插件的相关配置参数进行加载;Loading module, for loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path;
存储模块,用于将加载得到的所述OpenVR插件的相关配置参数写入到SteamVR系统的配置文件中。The storage module is used to write the related configuration parameters of the OpenVR plug-in loaded into the configuration file of the SteamVR system.
另外,本发明实施例还提供了一种计算机设备,其包括:存储器、处理器及存储在存储器上并可在处理器上运行的应用程序,处理器执行应用程序时实现上述任一实施例方法的步骤。In addition, an embodiment of the present invention also provides a computer device, which includes: a memory, a processor, and an application program stored on the memory and operable on the processor. When the processor executes the application program, the method in any of the above embodiments is implemented. A step of.
另外,本发明实施例还提供了一种计算机可读存储介质,其上存储有应用程序,应用程序被处理器执行时实现上述任一实施例方法的步骤。In addition, an embodiment of the present 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 in any of the foregoing embodiments are implemented.
在本发明实施例中,通过优先执行对SteamVR系统安装环境的初始化检查任务,该任务作为整个参数配置过程可正常进行的前提条件,将确保为整个参数配置过程提供良好的运行环境;通过执行对RTS Tracker系统所使用到的OpenVR插件的相关配置参数的加载任务以及利用现有的变量设置接口执行对上述相关配置参数的导入任务,使得SteamVR系统能够使用RTS Tracker系统内部的OpenVR插件驱动游戏中的不同角色,由此实现RTS Tracker系统与SteamVR系统中原来使用的硬件跟踪器之间的应用切换,具有良好的实用价值。In the embodiment of the present invention, by prioritizing the task of initial inspection of the installation environment of the SteamVR system, this task, as a prerequisite for the normal operation of the entire parameter configuration process, will ensure that a good operating environment is provided for the entire parameter configuration process; The task of loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system and using the existing variable setting interface to perform the import task of the above-mentioned relevant configuration parameters enables the SteamVR system to use the OpenVR plug-in inside the RTS Tracker system to drive the game. Different roles, thus realizing the application switching between the RTS Tracker system and the original hardware tracker used in the SteamVR system, has good practical value.
附图说明Description of drawings
图1是本发明实施例中的一种SteamVR系统的追踪设备参数配置方法的流程示意图;Fig. 1 is a schematic flow diagram of a tracking device parameter configuration method of a SteamVR system in an embodiment of the present invention;
图2是本发明实施例中的一种SteamVR系统的追踪设备参数配置装置的结构示意图;Fig. 2 is a schematic structural diagram of a tracking device parameter configuration device of a SteamVR system in an embodiment of the present invention;
图3是本发明实施例中的计算机设备的结构组成示意图。Fig. 3 is a schematic diagram of the structural composition of a computer device in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例提供了一种SteamVR系统的追踪设备参数配置方法,如图1所示,该方法包括以下步骤:The embodiment of the present invention provides a tracking device parameter configuration method of the SteamVR system, as shown in Figure 1, the method includes the following steps:
S101、获取SteamVR系统的运行路径和配置文件路径;S101. Obtain the running path and configuration file path of the SteamVR system;
在本发明实施例中,基于SteamVR系统原先具备一个路径查找类(即CVRPathRegistry类),通过调用该CVRPathRegistry类中的GetPaths接口对SteamVR系统的环境变量进行查找,可获取到SteamVR系统的运行路 径和配置文件路径;相反地,若该GetPaths接口无法获取到上述所需路径时,则返回携带着SteamVR系统安装注册路径无法查询信息的错误码,此时无需继续执行步骤S102,由技术人员重新对SteamVR系统进行安装。In the embodiment of the present invention, based on the fact that the SteamVR system originally had a path search class (i.e. the CVRPathRegistry class), by calling the GetPaths interface in the CVRPathRegistry class to search the environment variables of the SteamVR system, the operating path and configuration of the SteamVR system can be obtained file path; on the contrary, if the GetPaths interface cannot obtain the above-mentioned required path, it will return an error code carrying the information that the SteamVR system installation registration path cannot be queried. At this time, there is no need to continue to perform step S102, and the technician will reset the SteamVR system to install.
S102、基于所述运行路径对SteamVR系统的安装环境进行初始化检查,再将SteamVR系统的当前客户端版本号对应的IVR应用实例写入SteamVR系统的环境变量中;S102. Initially check the installation environment of the SteamVR system based on the running path, and then write the IVR application instance corresponding to the current client version number of the SteamVR system into the environment variable of the SteamVR system;
本发明实施过程包括:The implementation process of the present invention comprises:
(1)识别所述运行路径下是否存在bin目录文件夹,具体识别结果如下:若未能识别到该bin目录文件夹,则返回携带着SteamVR系统安装异常信息的错误码,同时结束初始化检查进程;若已识别到该bin目录文件夹,则继续执行步骤(2);(1) Identify whether there is a bin directory folder under the running path, and the specific identification results are as follows: if the bin directory folder cannot be identified, return an error code with SteamVR system installation exception information, and end the initialization check process at the same time ; If the bin directory folder has been identified, then proceed to step (2);
(2)调用LoadLibraryEx接口对所述bin目录文件夹内部的动态库文件(命名为vrclient_x64.dll文件)进行加载,从而输出相关的动态库句柄;(2) call the LoadLibraryEx interface to load the dynamic library file (named as the vrclient_x64.dll file) inside the bin directory folder, thereby outputting the relevant dynamic library handle;
(3)调用GetProcAddress接口对所述动态库句柄和预先写入的关联字符串(命名为VRClientCoreFactory字符串)进行实例查询响应,从而输出相关的客户端核心工厂类实例;(3) call the GetProcAddress interface to carry out the instance query response to the dynamic library handle and the pre-written associated string (named VRClientCoreFactory string), thereby outputting the relevant client core factory class instance;
(4)当SteamVR系统的安装环境初始化正常时,将所述客户端核心工厂类实例强制替换为SteamVR系统的当前客户端版本号对应的IVR应用实例(命名为IVRClientCore类实例)。(4) When the installation environment of the SteamVR system is initialized normally, the client core factory class instance is forcibly replaced with an IVR application instance (named as an IVRClientCore class instance) corresponding to the current client version number of the SteamVR system.
需要说明的是,在执行步骤(2)的过程中,若出现该LoadLibraryEx接口无法成功加载所述动态库文件的情况时,则返回携带着SteamVR系统客户端动态库文件加载失败信息的错误码,同时结束初始化检查进程;同理,在执行步骤(3)的过程中,若出现该GetProcAddress接口无法获取到所述客户端核心工厂类实例的情况时,则返回携带着客户端核心工厂类实例获取失败信息的错误码,同时调用FreeLibrary接口根据所述动态库句柄定位至对应的所述动态库文件并将其从运行内存中释放掉,且结束初始化检查进程。It should be noted that, during the execution of step (2), if the LoadLibraryEx interface fails to load the dynamic library file successfully, an error code carrying the failure message of loading the dynamic library file on the client side of the SteamVR system will be returned. At the same time, the initialization inspection process is ended; similarly, in the process of executing step (3), if the GetProcAddress interface fails to obtain the client core factory class instance, return to the client core factory class instance to obtain The error code of the failure information, and at the same time call the FreeLibrary interface to locate the corresponding dynamic library file according to the dynamic library handle and release it from the running memory, and end the initialization checking process.
在本发明实施例中,执行步骤(1)之前,优先判断所述运行路径是否为一个文件夹目录路径,具体判断结果包括:若是,则继续执行步骤(1);若否,则返回携带着SteamVR系统安装未成功信息的错误码,此时结束初始化检查进程,再由技术人员重新对SteamVR系统进行安装。In the embodiment of the present invention, before step (1), it is prioritized to judge whether the running path is a folder directory path, and the specific judgment result includes: if yes, continue to execute step (1); if not, return to carry The error code for the unsuccessful installation of the SteamVR system. At this point, the initialization check process ends, and the technician will re-install the SteamVR system.
S103、基于所述IVR应用实例和所述配置文件路径对RTS Tracker系统所使用到的OpenVR插件的相关配置参数进行加载;S103, load the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path;
本发明实施过程包括:The implementation process of the present invention comprises:
(1)调用所述IVR应用实例中的GetGenericInterface接口对预先写入的IVR配置版本参数进行数据关联响应,从而输出相关的参数指针;(1) call the GetGenericInterface interface in the IVR application instance to carry out the data association response to the IVR configuration version parameter written in advance, thereby outputting the relevant parameter pointer;
(2)基于所述参数指针,从所述配置文件路径中索引获取到关联的若干个配置块的名称以及每一个配置块内所包含的属性键名称,其中所述若干个配置块包括驱动配置块(命名为Driver_RTSTracker配置块)、设备配置块(命名为TrackingOverrides配置块)和角色配置块(命名为Trackers配置块);(2) Based on the parameter pointer, obtain the names of associated several configuration blocks and the attribute key names contained in each configuration block from the index in the configuration file path, wherein the several configuration blocks include the driver configuration block (named Driver_RTSTracker configuration block), device configuration block (named TrackingOverrides configuration block) and role configuration block (named Trackers configuration block);
(3)调用所述IVR应用实例中的ReadSettingsString接口对所述若干个配置块的名称以及每一个配置块内所包含的属性键名称进行数据搜索,从而输出OpenVR插件的相关配置参数。(3) Call the ReadSettingsString interface in the IVR application instance to perform data search on the names of the several configuration blocks and the attribute key names contained in each configuration block, thereby outputting the relevant configuration parameters of the OpenVR plug-in.
其中,所述OpenVR插件的相关配置参数包括归属于所述驱动配置块的RTS Tracker系统基本配置参数、归属于所述设备配置块的RTS Tracker系统内置设备参数以及归属于所述角色配置块的RTS Tracker系统内置设备角色权限参数,具体如下:Wherein, the relevant configuration parameters of the OpenVR plug-in include the basic configuration parameters of the RTS Tracker system belonging to the driver configuration block, the built-in device parameters of the RTS Tracker system belonging to the device configuration block, and the RTS tracker system parameters belonging to the role configuration block. The Tracker system has built-in device role permission parameters, as follows:
所述RTS Tracker系统基本配置参数包括RTS Tracker系统运行时所依赖的网络节点的IP地址、Steam VR系统只使用RTS Tracker系统中的头部刚体位置数据的第一状态值、OpenVR插件可输出数据调试信息的第二状态值、用于替换Steam VR系统中头显定位器的头部刚体名称参数、用于替换Steam VR系统中左手柄定位器的左手刚体名称参数、用于替换Steam VR系统中右手柄定位器的右手刚体名称参数;The basic configuration parameters of the RTS Tracker system include the IP address of the network node on which the RTS Tracker system is running, the Steam VR system only uses the first state value of the head rigid body position data in the RTS Tracker system, and the OpenVR plug-in can output data for debugging The second state value of the information, used to replace the head rigid body name parameter of the head display locator in the Steam VR system, the left hand rigid body name parameter used to replace the left handle locator in the Steam VR system, and used to replace the right hand in the Steam VR system The right-hand rigid body name parameter of the handle locator;
所述RTS Tracker系统内置设备参数包括RTS Tracker系统中头部刚体的虚拟设备信息参数、RTS Tracker系统中左手刚体的虚拟设备信息参数和RTS Tracker系统中右手刚体的虚拟设备信息参数;The built-in device parameters of the RTS Tracker system include the virtual device information parameters of the head rigid body in the RTS Tracker system, the virtual device information parameters of the left-hand rigid body in the RTS Tracker system, and the virtual device information parameters of the right-hand rigid body in the RTS Tracker system;
所述RTS Tracker系统内置设备角色权限参数包括RTS Tracker系统中头部刚体所捆绑的角色信息参数、RTS Tracker系统中左手刚体所捆绑的角色信息参数和RTS Tracker系统中右手刚体所捆绑的角色信息参数。The built-in device role authority parameters of the RTS Tracker system include the role information parameters bound to the head rigid body in the RTS Tracker system, the role information parameters bound to the left-hand rigid body in the RTS Tracker system, and the role information parameters bound to the right-hand rigid body in the RTS Tracker system .
S104、将加载得到的所述OpenVR插件的相关配置参数写入到SteamVR系统的配置文件中。S104. Write the loaded related configuration parameters of the OpenVR plug-in into the configuration file of the SteamVR system.
在本发明实施例中,首先基于所述参数指针,从所述配置文件路径中索引定位至所述若干个配置块处;其次根据需要写入的数据类型,调用现有的变量设置接口将所述OpenVR插件的相关配置参数以及每一个参数所对应的属性键名称写入到所属的配置块中。In the embodiment of the present invention, firstly, based on the parameter pointer, index and locate the several configuration blocks from the configuration file path; secondly, according to the type of data to be written, call the existing variable setting interface to Write the relevant configuration parameters of the OpenVR plug-in and the attribute key name corresponding to each parameter into the corresponding configuration block.
更为具体的,基于现有的变量设置接口包括SetBool接口、SetString接口和SetInt32接口,以所述驱动配置块的相关配置参数的写入过程为例进行说明如下:More specifically, based on the existing variable setting interfaces including SetBool interface, SetString interface and SetInt32 interface, the writing process of the relevant configuration parameters of the drive configuration block is taken as an example to illustrate as follows:
(1)首先调用SetString接口将所述第一状态值所对应的属性键名称(命名为OnlyUseRigibodyHeadPosition)写入到所述驱动配置块的字段下,接着调用SetBool接口将所述第一状态值写入到该属性键处;(1) First call the SetString interface to write the attribute key name (named OnlyUseRigibodyHeadPosition) corresponding to the first state value into the field of the driver configuration block, and then call the SetBool interface to write the first state value into to the property key;
(2)首先调用SetString接口将所述第二状态值所对应的属性键名称(命名为OutPutRevRigidbodyDataInfo)写入到所述驱动配置块的字段下,接着调用SetBool接口将所述第二状态值写入到该属性键处;(2) First call the SetString interface to write the attribute key name (named OutPutRevRigidbodyDataInfo) corresponding to the second state value into the field of the driver configuration block, then call the SetBool interface to write the second state value into to the property key;
(3)首先调用SetString接口将所述头部刚体名称参数所对应的属性键名称(命名为TrackerRigidBodyHeadName)写入到所述驱动配置块的字段下,接着通过同一个接口将所述头部刚体名称参数写入到该属性键处;(3) First call the SetString interface to write the attribute key name (named TrackerRigidBodyHeadName) corresponding to the head rigid body name parameter into the field of the driver configuration block, and then use the same interface to write the head rigid body name Parameters are written to the attribute key;
(4)首先调用SetString接口将所述左手刚体名称参数所对应的属性键名称(命名为TrackerRigidBodyLHandName)写入到所述驱动配置块的字段下,接着通过同一个接口将所述左手刚体名称参数写入到该属性键处;(4) First call the SetString interface to write the attribute key name (named TrackerRigidBodyLHandName) corresponding to the left-hand rigid body name parameter into the field of the drive configuration block, and then write the left-hand rigid body name parameter through the same interface into the attribute key;
(5)首先调用SetString接口将所述右手刚体名称参数所对应的属性键名称(命名为TrackerRigidBodyRHandName)写入到所述驱动配置块的字段下,接着通过同一个接口将所述右手刚体名称参数写入到该属性键处;(5) First call the SetString interface to write the attribute key name (named TrackerRigidBodyRHandName) corresponding to the right-hand rigid body name parameter into the field of the drive configuration block, and then write the right-hand rigid body name parameter through the same interface into the attribute key;
(6)首先调用SetString接口将所述IP地址所对应的属性键名称(命名为TrackerServerAddress)写入到所述驱动配置块的字段下,接着调用SetInt32接口将所述IP地址写入到该属性键处。(6) First call the SetString interface to write the attribute key name (named TrackerServerAddress) corresponding to the IP address under the field of the driver configuration block, then call the SetInt32 interface to write the IP address into the attribute key place.
在本发明实施例中,执行完步骤S104之后,还可以对整个配置任务的合格性进行验证,具体实施过程为:重新启动SteamVR系统,若查询到该系统的配置文件中原先设定的TrackingReplaceSection参数项为空数据,则说明SteamVR系统仍使用原来的硬件定位器来执行数据更新操作,从而反映出整个配置任务并不成功;相反地,若查询到该系统的配置文件中原先设定的TrackingReplaceSection参数项已显示出所述头部刚体、所述左手刚体和所述右手刚体的相关信息,则说明SteamVR系统当前关联使用RTS Tracker系统中的相关刚体来执行数据更新操作,从而反映出整个配置任务是有效的。In the embodiment of the present invention, after step S104 is executed, the eligibility of the entire configuration task can also be verified. The specific implementation process is: restart the SteamVR system, if the TrackingReplaceSection parameter originally set in the configuration file of the system is found If the item is empty data, it means that the SteamVR system still uses the original hardware locator to perform the data update operation, which reflects that the entire configuration task is not successful; on the contrary, if the TrackingReplaceSection parameter originally set in the configuration file of the system is queried item has displayed the relevant information of the head rigid body, the left-hand rigid body and the right-hand rigid body, it means that the SteamVR system is currently associated with the relevant rigid body in the RTS Tracker system to perform data update operations, thus reflecting that the entire configuration task is Effective.
在本发明实施例中,通过优先执行对SteamVR系统安装环境的初始化检查任务,该任务作为整个参数配置过程可正常进行的前提条件,将确保为整个参数配置过程提供良好的运行环境;通过执行对RTS Tracker系统所使用到的OpenVR插件的相关配置参数的加载任务以及利用现有的变量设置接口执行对上述相关配置参数的导入任务,使得SteamVR系统能够使用RTS Tracker系统内部的OpenVR插件驱动游戏中的不同角色,由此实现RTS Tracker系统与SteamVR系统中原来使用的硬件跟踪器之间的应用切换,具有良好的实用价值。In the embodiment of the present invention, by prioritizing the task of initial inspection of the installation environment of the SteamVR system, this task, as a prerequisite for the normal operation of the entire parameter configuration process, will ensure that a good operating environment is provided for the entire parameter configuration process; The task of loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system and using the existing variable setting interface to perform the import task of the above-mentioned relevant configuration parameters enables the SteamVR system to use the OpenVR plug-in inside the RTS Tracker system to drive the game. Different roles, thus realizing the application switching between the RTS Tracker system and the original hardware tracker used in the SteamVR system, has good practical value.
在一实施例中,本发明还提供一种SteamVR系统的追踪设备参数配置装置,如图2所示,该装置包括:In one embodiment, the present invention also provides a tracking device parameter configuration device of the SteamVR system, as shown in FIG. 2 , the device includes:
获取模块201,用于获取SteamVR系统的运行路径和配置文件路径;Obtaining module 201, used to obtain the running path and configuration file path of the SteamVR system;
检查模块202,用于基于所述运行路径对SteamVR系统的安装环境进 行初始化检查,再将SteamVR系统的当前客户端版本号对应的IVR应用实例写入SteamVR系统的环境变量中;Checking module 202 is used to initialize the installation environment of the SteamVR system based on the running path, and then write the IVR application instance corresponding to the current client version number of the SteamVR system into the environment variable of the SteamVR system;
加载模块203,用于基于所述IVR应用实例和所述配置文件路径对RTS Tracker系统所使用到的OpenVR插件的相关配置参数进行加载; Loading module 203, for loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path;
存储模块204,用于将加载得到的所述OpenVR插件的相关配置参数写入到SteamVR系统的配置文件中。The storage module 204 is configured to write related configuration parameters of the loaded OpenVR plug-in into a configuration file of the SteamVR system.
关于一种SteamVR系统的追踪设备参数配置装置的具体限定可以参见上文中对于一种SteamVR系统的追踪设备参数配置方法的限定,在此不再赘述。上述一种SteamVR系统的追踪设备参数配置装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitations of a tracking device parameter configuration device for a SteamVR system, please refer to the above definition for a tracking device parameter configuration method for a SteamVR system, which will not be repeated here. Each module in the tracking device parameter configuration device of the above-mentioned SteamVR system can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
本发明实施例提供的一种计算机可读存储介质,所述计算机可读存储介质上存储有应用程序,该程序被处理器执行时实现上述实施例中任意一个实施例的一种SteamVR系统的追踪设备参数配置方法。其中,所述计算机可读存储介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random AcceSS Memory,随即存储器)、EPROM(EraSable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically EraSable ProgrammableRead-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,存储设备包括由设备(例如,计算机、手机)以可读的形式存储或传输信息的任何介质,可以是只读存储器,磁盘或光盘等。A computer-readable storage medium provided by an embodiment of the present invention, an application program is stored on the computer-readable storage medium, and when the program is executed by a processor, the tracking of a SteamVR system in any one of the above-mentioned embodiments is implemented Device parameter configuration method. Wherein, the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random memory), EPROM (EraSable Programmable Read-Only Memory, erasable programmable read-only memory), EEPROM (Electrically EraSable Programmable Read-Only Memory, electrically erasable programmable read-only memory), flash memory, magnetic card or optical card. That is, a storage device includes any medium that stores or transmits information in a readable form by a device (eg, a computer, a mobile phone), and may be a read-only memory, a magnetic disk or an optical disk, and the like.
此外,图3是本发明实施例中的计算机设备的结构组成示意图。In addition, FIG. 3 is a schematic diagram of the structural composition of the computer device in the embodiment of the present invention.
本发明实施例还提供了一种计算机设备,如图3所示。所述计算机设备包括处理器302、存储器303、输入单元304以及显示单元305等器件。本领域技术人员可以理解,图3示出的设备结构器件并不构成对所有设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件。存储器303可用于 存储应用程序301以及各功能模块,处理器302运行存储在存储器303的应用程序301,从而执行设备的各种功能应用以及数据处理。存储器可以是内存储器或外存储器,或者包括内存储器和外存储器两者。内存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)、快闪存储器、或者随机存储器。外存储器可以包括硬盘、软盘、ZIP盘、U盘、磁带等。本发明所公开的存储器包括但不限于这些类型的存储器。本发明所公开的存储器只作为例子而非作为限定。The embodiment of the present invention also provides a computer device, as shown in FIG. 3 . The computer device includes a processor 302, a memory 303, an input unit 304, a display unit 305 and other components. Those skilled in the art can understand that the device structure shown in FIG. 3 does not limit all devices, and may include more or less components than those shown in the figure, or combine certain components. The memory 303 can be used to store the application program 301 and various functional modules, and the processor 302 runs the application program 301 stored in the memory 303, thereby executing various functional applications and data processing of the device. 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. External storage may include hard disk, floppy disk, ZIP disk, U disk, magnetic tape, etc. The memory disclosed in the present invention includes but is not limited to these types of memory. The memory disclosed in the present invention is only an example rather than a limitation.
输入单元304用于接收信号的输入,以及接收用户输入的关键字。输入单元304可包括触控面板以及其它输入设备。触控面板可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并根据预先设定的程序驱动相应的连接装置;其它输入设备可以包括但不限于物理键盘、功能键(比如播放控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。显示单元305可用于显示用户输入的信息或提供给用户的信息以及终端设备的各种菜单。显示单元305可采用液晶显示器、有机发光二极管等形式。处理器302是终端设备的控制中心,利用各种接口和线路连接整个设备的各个部分,通过运行或执行存储在存储器303内的软件程序和/或模块,以及调用存储在存储器内的数据,执行各种功能和处理数据。The input unit 304 is used for receiving signal input, and receiving a keyword input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect the user's touch operation on or near it (such as the user's operation on the touch panel or near the touch panel by using any suitable object or accessory such as a finger or a stylus), and The program drives the corresponding connection device; other input devices may include, but are not limited to, one or more of physical keyboards, function keys (such as playback control buttons, switch buttons, etc.), trackballs, mice, and joysticks. The display unit 305 can be used to display information input by the user or provided to the user, as well as various menus of the terminal device. The display unit 305 may be in the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is the control center of the terminal equipment, and uses various interfaces and lines to connect various parts of the entire equipment, by running or executing software programs and/or modules stored in the memory 303, and calling data stored in the memory to execute Various functions and processing data.
作为一个实施例,所述计算机设备包括:一个或多个处理器302,存储器303,一个或多个应用程序301,其中所述一个或多个应用程序301被存储在存储器303中并被配置为由所述一个或多个处理器302执行,所述一个或多个应用程序301配置用于执行上述任一实施例中的一种SteamVR系统的追踪设备参数配置方法。As an embodiment, the computer device includes: one or more processors 302, a memory 303, and one or more application programs 301, wherein the one or more application programs 301 are stored in the memory 303 and are configured to Executed by the one or more processors 302, the one or more application programs 301 are configured to execute a tracking device parameter configuration method of the SteamVR system in any one of the above embodiments.
另外,以上对本发明实施例所提供的一种SteamVR系统的追踪设备参数配置方法、装置、计算机设备和存储介质进行了详细介绍,本文中应采用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人 员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。In addition, the method, device, computer equipment, and storage medium for configuring the tracking device parameters of a SteamVR system provided by the embodiment of the present invention have been introduced in detail above. In this paper, specific examples should be used to describe the principles and implementation methods of the present invention. Explain that the description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

  1. 一种SteamVR系统的追踪设备参数配置方法,其特征在于,所述方法包括:A tracking device parameter configuration method of a SteamVR system, characterized in that the method comprises:
    获取SteamVR系统的运行路径和配置文件路径;Obtain the running path and configuration file path of the SteamVR system;
    基于所述运行路径对SteamVR系统的安装环境进行初始化检查,再将SteamVR系统的当前客户端版本号对应的IVR应用实例写入SteamVR系统的环境变量中;The installation environment of the SteamVR system is initialized and checked based on the running path, and then the IVR application instance corresponding to the current client version number of the SteamVR system is written in the environment variable of the SteamVR system;
    基于所述IVR应用实例和所述配置文件路径对RTS Tracker系统所使用到的OpenVR插件的相关配置参数进行加载;Load the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path;
    将加载得到的所述OpenVR插件的相关配置参数写入到SteamVR系统的配置文件中。Write the relevant configuration parameters of the OpenVR plug-in obtained by loading into the configuration file of the SteamVR system.
  2. 根据权利要求1所述的SteamVR系统的追踪设备参数配置方法,其特征在于,所述基于所述运行路径对SteamVR系统的安装环境进行初始化检查包括:The tracking device parameter configuration method of the SteamVR system according to claim 1, wherein the initial inspection of the installation environment of the SteamVR system based on the running path comprises:
    识别所述运行路径下是否存在bin目录文件夹;Identify whether there is a bin directory folder under the running path;
    若否,则返回携带着SteamVR系统安装异常信息的错误码,同时结束初始化检查进程;If not, return the error code carrying the SteamVR system installation exception information, and end the initialization check process at the same time;
    若是,则调用LoadLibraryEx接口对所述bin目录文件夹内部的动态库文件进行加载,从而输出相关的动态库句柄;If so, then call the LoadLibraryEx interface to load the dynamic library file inside the bin directory folder, so as to output the relevant dynamic library handle;
    调用GetProcAddress接口对所述动态库句柄和预先写入的关联字符串进行实例查询响应,从而输出相关的客户端核心工厂类实例。Call the GetProcAddress interface to respond to the instance query of the dynamic library handle and the pre-written associated string, thereby outputting the relevant client core factory class instance.
  3. 根据权利要求2所述的SteamVR系统的追踪设备参数配置方法,其特征在于,所述将SteamVR系统的当前客户端版本号对应的IVR应用实例写入SteamVR系统的环境变量中包括:The tracking device parameter configuration method of the SteamVR system according to claim 2, wherein the writing of the IVR application instance corresponding to the current client version number of the SteamVR system into the environment variable of the SteamVR system includes:
    将所述客户端核心工厂类实例强制替换为SteamVR系统的当前客户端版本号对应的IVR应用实例。The client core factory class instance is forcibly replaced with the IVR application instance corresponding to the current client version number of the SteamVR system.
  4. 根据权利要求1所述的SteamVR系统的追踪设备参数配置方法, 其特征在于,所述基于所述IVR应用实例和所述配置文件路径对RTSTracker系统所使用到的OpenVR插件的相关配置参数进行加载包括:The tracking device parameter configuration method of the SteamVR system according to claim 1, wherein the loading of the relevant configuration parameters of the OpenVR plug-in used by the RTSTracker system based on the IVR application instance and the configuration file path includes :
    调用所述IVR应用实例中的GetGenericInterface接口对预先写入的IVR配置版本参数进行数据关联响应,从而输出相关的参数指针;Call the GetGenericInterface interface in the IVR application instance to perform data association response to the pre-written IVR configuration version parameters, thereby outputting relevant parameter pointers;
    基于所述参数指针,从所述配置文件路径中索引获取到关联的若干个配置块的名称以及每一个配置块内所包含的属性键名称;Based on the parameter pointer, the names of several associated configuration blocks and the attribute key names contained in each configuration block are obtained from the index in the configuration file path;
    调用所述IVR应用实例中的ReadSettingsString接口对所述若干个配置块的名称以及每一个配置块内所包含的属性键名称进行数据搜索,从而输出OpenVR插件的相关配置参数。Call the ReadSettingsString interface in the IVR application instance to perform data search on the names of the several configuration blocks and the attribute key names contained in each configuration block, so as to output the relevant configuration parameters of the OpenVR plug-in.
  5. 根据权利要求4所述的SteamVR系统的追踪设备参数配置方法,其特征在于,所述若干个配置块包括驱动配置块、设备配置块和角色配置块。The tracking device parameter configuration method of the SteamVR system according to claim 4, wherein the plurality of configuration blocks include a driver configuration block, a device configuration block and a role configuration block.
  6. 根据权利要求5所述的SteamVR系统的追踪设备参数配置方法,其特征在于,所述OpenVR插件的相关配置参数包括归属于所述驱动配置块的RTS Tracker系统基本配置参数、归属于所述设备配置块的RTS Tracker系统内置设备参数以及归属于所述角色配置块的RTS Tracker系统内置设备角色权限参数。The tracking device parameter configuration method of the SteamVR system according to claim 5, wherein the relevant configuration parameters of the OpenVR plug-in include the basic configuration parameters of the RTS Tracker system belonging to the driver configuration block, and the configuration parameters of the device. The RTS Tracker system built-in device parameters of the block and the RTS Tracker system built-in device role permission parameters belonging to the role configuration block.
  7. 根据权利要求4所述的SteamVR系统的追踪设备参数配置方法,其特征在于,所述将加载得到的所述OpenVR插件的相关配置参数写入到SteamVR系统的配置文件中包括:The tracking device parameter configuration method of the SteamVR system according to claim 4, wherein the writing of the related configuration parameters of the OpenVR plug-in obtained by loading into the configuration file of the SteamVR system includes:
    基于所述参数指针,从所述配置文件路径中索引定位至所述若干个配置块处;Indexing from the configuration file path to the plurality of configuration blocks based on the parameter pointer;
    根据需要写入的数据类型,调用现有的变量设置接口将所述OpenVR插件的相关配置参数以及每一个参数所对应的属性键名称写入到所属的配置块中。According to the type of data to be written, call the existing variable setting interface to write the relevant configuration parameters of the OpenVR plug-in and the attribute key name corresponding to each parameter into the corresponding configuration block.
  8. 一种SteamVR系统的追踪设备参数配置装置,其特征在于,所述装置包括:A tracking device parameter configuration device for a SteamVR system, characterized in that the device includes:
    获取模块,用于获取SteamVR系统的运行路径和配置文件路径;The acquisition module is used to obtain the running path and configuration file path of the SteamVR system;
    检查模块,用于基于所述运行路径对SteamVR系统的安装环境进行初始化检查,再将SteamVR系统的当前客户端版本号对应的IVR应用实例写入SteamVR系统的环境变量中;Checking module, for initializing the installation environment of the SteamVR system based on the running path, and then writing the IVR application instance corresponding to the current client version number of the SteamVR system into the environment variable of the SteamVR system;
    加载模块,用于基于所述IVR应用实例和所述配置文件路径对RTS Tracker系统所使用到的OpenVR插件的相关配置参数进行加载;Loading module, for loading the relevant configuration parameters of the OpenVR plug-in used by the RTS Tracker system based on the IVR application instance and the configuration file path;
    存储模块,用于将加载得到的所述OpenVR插件的相关配置参数写入到SteamVR系统的配置文件中。The storage module is used to write the related configuration parameters of the OpenVR plug-in loaded into the configuration file of the SteamVR system.
  9. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的应用程序,其特征在于,所述处理器执行所述应用程序时实现权利要求1至7中任一项所述方法的步骤。A computer device, comprising a memory, a processor, and an application program stored on the memory and operable on the processor, characterized in that, when the processor executes the application program, any one of claims 1 to 7 is realized The steps of the method.
  10. 一种计算机可读存储介质,其上存储有应用程序,其特征在于,所述应用程序被处理器执行时实现权利要求1至7中任一项所述方法的步骤。A computer-readable storage medium on which an application program is stored, wherein the application program implements the steps of any one of claims 1 to 7 when executed by a processor.
PCT/CN2022/120524 2021-09-23 2022-09-22 Parameter configuration method and apparatus for tracking device of steamvr system WO2023046010A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111118022.4 2021-09-23
CN202111118022.4A CN113900729B (en) 2021-09-23 2021-09-23 Tracking equipment parameter configuration method and device of SteamVR system

Publications (1)

Publication Number Publication Date
WO2023046010A1 true WO2023046010A1 (en) 2023-03-30

Family

ID=79029181

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/120524 WO2023046010A1 (en) 2021-09-23 2022-09-22 Parameter configuration method and apparatus for tracking device of steamvr system

Country Status (2)

Country Link
CN (1) CN113900729B (en)
WO (1) WO2023046010A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900729B (en) * 2021-09-23 2024-04-12 深圳市瑞立视多媒体科技有限公司 Tracking equipment parameter configuration method and device of SteamVR system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9473758B1 (en) * 2015-12-06 2016-10-18 Sliver VR Technologies, Inc. Methods and systems for game video recording and virtual reality replay
CN108446149A (en) * 2018-02-28 2018-08-24 北京凌宇智控科技有限公司 A kind of third party's dynamic bank interface hold-up interception method and system
CN108549479A (en) * 2018-03-07 2018-09-18 上海电气集团股份有限公司 The realization method and system of multichannel virtual reality, electronic equipment
CN113093917A (en) * 2015-09-28 2021-07-09 微软技术许可有限责任公司 Unified virtual reality platform
CN113900729A (en) * 2021-09-23 2022-01-07 深圳市瑞立视多媒体科技有限公司 Tracking equipment parameter configuration method and device of SteamVR system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552692B (en) * 2008-04-02 2011-03-23 大唐移动通信设备有限公司 Operating and maintenance system and parameter configuration method of network element device
US8315996B2 (en) * 2008-08-13 2012-11-20 International Business Machines Corporation Efficient management of customized functionality within shared data objects
CN102541572B (en) * 2010-12-08 2015-09-16 中兴通讯股份有限公司 A kind of method, system and device realizing operating system nucleus and guide
CN109408123B (en) * 2018-10-10 2021-08-24 聚好看科技股份有限公司 Method and device for reloading configuration file
CN210574420U (en) * 2019-08-30 2020-05-19 贵州电网有限责任公司 Multi-person object display device in virtual reality environment
CN111562841B (en) * 2020-04-27 2023-06-20 深圳市瑞立视多媒体科技有限公司 Off-site online method, device, equipment and storage medium of virtual reality system
CN111651405A (en) * 2020-04-28 2020-09-11 中国平安财产保险股份有限公司 Configuration file management method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113093917A (en) * 2015-09-28 2021-07-09 微软技术许可有限责任公司 Unified virtual reality platform
US9473758B1 (en) * 2015-12-06 2016-10-18 Sliver VR Technologies, Inc. Methods and systems for game video recording and virtual reality replay
CN108446149A (en) * 2018-02-28 2018-08-24 北京凌宇智控科技有限公司 A kind of third party's dynamic bank interface hold-up interception method and system
CN108549479A (en) * 2018-03-07 2018-09-18 上海电气集团股份有限公司 The realization method and system of multichannel virtual reality, electronic equipment
CN113900729A (en) * 2021-09-23 2022-01-07 深圳市瑞立视多媒体科技有限公司 Tracking equipment parameter configuration method and device of SteamVR system

Also Published As

Publication number Publication date
CN113900729A (en) 2022-01-07
CN113900729B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
EP2880537B1 (en) Function evaluation using lightweight process snapshots
US8464242B2 (en) Virtualization of configuration settings
US10649864B1 (en) Framework to facilitate taking snapshots of web application on demand
CN106951345B (en) Consistency test method and device for disk data of virtual machine
US7533339B2 (en) System and method for providing user help
US7594192B2 (en) Method and apparatus for identifying hotkey conflicts
CN103412769A (en) External card parameter configuration method, equipment and system
CN1212062A (en) Extended BIOS adapted for remote diagnostic repair
CN110879742B (en) Method, device and storage medium for asynchronously creating internal snapshot by virtual machine
CN113032273B (en) Application program debugging method and device, computer equipment and storage medium
WO2023046010A1 (en) Parameter configuration method and apparatus for tracking device of steamvr system
CN110083404A (en) The data processing method and system and human interface devices of human interface devices
US20180365132A1 (en) Adaptive software testing
US20150160955A1 (en) Dynamically modifiable component model
CN114035829A (en) Page component updating method and device, electronic equipment and storage medium
US7536694B2 (en) Exception handling in a multiprocessor system
CN111176887A (en) MySQL misoperation rollback method, equipment and system
US20080115109A1 (en) Enhanced Hover Help For Software Debuggers
US8682944B2 (en) File system location verification using a sentinel
US9652260B2 (en) Scriptable hierarchical emulation engine
US11442708B2 (en) Compiler-generated alternate memory-mapped data access operations
CN114138182B (en) Cross-storage online cloning method, system and device for distributed cloud hard disk
CN105446785A (en) Method and system for unloading application program
CN113574513A (en) Detecting changes to storage keys for protecting memory
US11755425B1 (en) Methods and systems for synchronous distributed data backup and metadata aggregation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22872055

Country of ref document: EP

Kind code of ref document: A1