CN116367394A - Handheld controller light source control method, system, device, equipment and medium - Google Patents
Handheld controller light source control method, system, device, equipment and medium Download PDFInfo
- Publication number
- CN116367394A CN116367394A CN202310243861.1A CN202310243861A CN116367394A CN 116367394 A CN116367394 A CN 116367394A CN 202310243861 A CN202310243861 A CN 202310243861A CN 116367394 A CN116367394 A CN 116367394A
- Authority
- CN
- China
- Prior art keywords
- light source
- handheld controller
- head
- pose information
- mounted device
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/155—Coordinated control of two or more light sources
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B15/00—Special procedures for taking photographs; Apparatus therefor
- G03B15/02—Illuminating scene
- G03B15/03—Combinations of cameras with lighting apparatus; Flash units
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本申请属于电子技术领域,具体涉及一种手持控制器光源的控制方法、系统、装置、设备及介质。The present application belongs to the field of electronic technology, and in particular relates to a control method, system, device, equipment and medium of a handheld controller light source.
背景技术Background technique
目前,与手持控制器关联的头戴式设备可以基于该头戴式设备的摄像头,以及处于该摄像头拍摄范围内的该手持控制器的光源,获取该手持控制器的六自由度位姿,以控制该手持控制器的工作状态。At present, the head-mounted device associated with the hand-held controller can obtain the six-degree-of-freedom pose of the hand-held controller based on the camera of the head-mounted device and the light source of the hand-held controller within the shooting range of the camera, so as to Control the working state of the handheld controller.
在获取上述六自由度位姿的过程中,上述光源在上述摄像头曝光时需处于发光状态。为了确保该光源在该摄像头曝光时处于发光状态,可以使上述手持控制器的所有光源工作在常亮状态,或者可以使该手持控制器的所有光源在该摄像头曝光前被点亮并在该摄像头曝光后被熄灭。In the process of obtaining the above-mentioned six-degree-of-freedom pose, the above-mentioned light source needs to be in a light-emitting state when the above-mentioned camera is exposed. In order to ensure that the light source is in a light-emitting state when the camera is exposed, all light sources of the above-mentioned hand-held controller can be made to work in a constant light state, or all light sources of the hand-held controller can be turned on before the camera is exposed is turned off after exposure.
然而,按照上述方法,由于在上述摄像头曝光时,上述手持控制器的所有光源均会处于发光状态,因此会导致手持控制器功耗较大。However, according to the above method, since all the light sources of the above-mentioned hand-held controller will be in a light-emitting state when the above-mentioned camera is exposed, the power consumption of the hand-held controller will be relatively large.
发明内容Contents of the invention
本申请实施例的目的是提供一种手持控制器光源的控制方法、系统、装置、设备及介质,能够解决手持控制器功耗较大的问题。The purpose of the embodiments of the present application is to provide a control method, system, device, equipment and medium for a light source of a hand-held controller, which can solve the problem of high power consumption of the hand-held controller.
第一方面,本申请实施例提供了一种手持控制器光源的控制方法,该方法应用于与手持控制器关联的头戴式设备,该方法包括:从手持控制器包含的N个光源中,确定处于头戴式设备的摄像头的拍摄范围内的第一光源,以及处于拍摄范围外的第二光源,N为正整数;向手持控制器发送控制信号,控制信号用于控制第一光源处于发光状态,并控制第二光源处于不发光状态。In the first aspect, an embodiment of the present application provides a method for controlling a light source of a hand-held controller, the method is applied to a head-mounted device associated with the hand-held controller, and the method includes: selecting from the N light sources included in the hand-held controller, Determine the first light source within the shooting range of the camera of the head-mounted device, and the second light source outside the shooting range, N is a positive integer; send a control signal to the handheld controller, and the control signal is used to control the first light source to emit light state, and control the second light source to be in a non-luminous state.
第二方面,本申请实施例提供了一种手持控制器光源的控制系统,该系统包括手持控制器,以及与手持控制器关联的头戴式设备;其中,头戴式设备,用于从手持控制器包含的N个光源中,确定处于头戴式设备的摄像头的拍摄范围内的第一光源,以及处于拍摄范围外的第二光源,N为正整数;头戴式设备,还用于向手持控制器发送控制信号,控制信号用于控制第一光源处于发光状态,并控制第二光源处于不发光状态;手持控制器,用于在接收到控制信号的情况下,基于控制信号,控制第一光源处于发光状态,并控制第二光源处于不发光状态。In the second aspect, the embodiment of the present application provides a hand-held controller light source control system, the system includes a hand-held controller, and a head-mounted device associated with the hand-held controller; Among the N light sources included in the controller, determine the first light source within the shooting range of the camera of the head-mounted device and the second light source outside the shooting range, where N is a positive integer; the head-mounted device is also used to send The hand-held controller sends a control signal, and the control signal is used to control the first light source to be in a light-emitting state, and to control the second light source to be in a non-light-emitting state; the hand-held controller is used to control the second light source based on the control signal when receiving the control signal. A light source is in a light-emitting state, and the second light source is controlled to be in a non-light-emitting state.
第三方面,本申请实施例提供了一种手持控制器光源的控制装置,该装置与手持控制器关联,该装置包括:确定模块和发送模块;确定模块,用于从手持控制器包含的N个光源中,确定处于装置的摄像头的拍摄范围内的第一光源,以及处于拍摄范围外的第二光源,N为正整数;发送模块,用于向手持控制器发送控制信号,控制信号用于控制第一光源处于发光状态,并控制第二光源处于不发光状态。In the third aspect, the embodiment of the present application provides a device for controlling the light source of the hand-held controller, the device is associated with the hand-held controller, and the device includes: a determination module and a sending module; Among the light sources, determine the first light source within the shooting range of the camera of the device, and the second light source outside the shooting range, N is a positive integer; the sending module is used to send a control signal to the hand-held controller, and the control signal is used for The first light source is controlled to be in a light-emitting state, and the second light source is controlled to be in a non-light-emitting state.
第四方面,本申请实施例提供了一种头戴式设备,该头戴式设备包括处理器和存储器,该存储器存储可在处理器上运行的程序或指令,该程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a head-mounted device, the head-mounted device includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are executed by the processor When realizing the steps of the method as described in the first aspect.
第五方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
第六方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和所述处理器耦合,该处理器用于运行程序或指令,实现如第一方面所述的方法。In the sixth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to realize the method.
第七方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a seventh aspect, an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.
在本申请实施例中,与手持控制器关联的头戴式设备可以从该手持控制器包含的N个光源中,确定处于该头戴式设备的摄像头的拍摄范围内的第一光源,以及处于该拍摄范围外的第二光源,N为正整数;并向该手持控制器发送控制信号,该控制信号用于控制第一光源处于发光状态,并控制第二光源处于不发光状态。通过该方案,由于头戴式设备可以向与其关联的手持控制器发送控制信号,以控制该手持控制器的光源中,仅处于该头戴式设备的摄像头的拍摄范围内的第一光源处于发光状态,因此在获取该手持控制器的六自由度位姿的过程中,在该摄像头每次曝光时,可以无需该手持控制器的所有光源均处于发光状态,从而可以降低手持控制器的功耗。In the embodiment of the present application, the head-mounted device associated with the hand-held controller can determine the first light source within the shooting range of the camera of the head-mounted device from the N light sources included in the hand-held controller, and the For the second light source outside the shooting range, N is a positive integer; and send a control signal to the handheld controller, the control signal is used to control the first light source to be in a light-emitting state, and control the second light source to be in a non-light-emitting state. Through this solution, since the head-mounted device can send a control signal to the hand-held controller associated with it to control the light source of the hand-held controller, only the first light source within the shooting range of the camera of the head-mounted device is emitting light. state, so in the process of obtaining the six-degree-of-freedom pose of the handheld controller, it is not necessary for all the light sources of the handheld controller to be in a light-emitting state at each exposure of the camera, thereby reducing the power consumption of the handheld controller .
附图说明Description of drawings
图1是6自由度(degree of freedom,DOF)手柄的光源分布示意图;Fig. 1 is a schematic diagram of light source distribution of a 6 degree of freedom (DOF) handle;
图2是本申请实施例提供的手持控制器光源的控制方法的流程图;Fig. 2 is a flow chart of a control method for a hand-held controller light source provided in an embodiment of the present application;
图3是本申请实施例提供的手持控制器光源的控制方法的示意图;Fig. 3 is a schematic diagram of a control method for a hand-held controller light source provided in an embodiment of the present application;
图4是本申请实施例提供的手持控制器光源的控制装置的示意图;Fig. 4 is a schematic diagram of a control device for a handheld controller light source provided in an embodiment of the present application;
图5是本申请实施例提供的头戴式设备的示意图;FIG. 5 is a schematic diagram of a head-mounted device provided by an embodiment of the present application;
图6是本申请实施例提供的头戴式设备的硬件示意图。Fig. 6 is a schematic diagram of the hardware of the head-mounted device provided by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的手持控制器光源的控制方法、系统、装置、设备及介质进行详细地说明。The method, system, device, equipment and medium for controlling the light source of the handheld controller provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
当前,在扩展现实领域中常被使用的6DOF手柄,在硬件上一般使用红外发光二极管(Infrared Light-Emitting Diode,IR-LED)组成一组灯环作为标记(Mark)点,从而组成一组特有的样式(Pattern),例如21个IR-LED组成的一组样式,其中每颗IR-LED的功耗为0.036w。然后在算法上利用与6DOF手柄关联的头戴式设备的摄像头追踪Pattern的位姿状态,并融合6DOF手柄上的惯性测量单元数据,最终得到6DOF手柄的6DOF位姿。At present, the 6DOF handles that are often used in the field of extended reality generally use infrared light-emitting diodes (Infrared Light-Emitting Diode, IR-LED) to form a set of light rings on the hardware as mark points, thus forming a set of unique Pattern (Pattern), such as a group of patterns composed of 21 IR-LEDs, where the power consumption of each IR-LED is 0.036w. Then, the algorithm uses the camera of the head-mounted device associated with the 6DOF handle to track the pose state of the Pattern, and fuses the inertial measurement unit data on the 6DOF handle to finally obtain the 6DOF pose of the 6DOF handle.
值得注意的是,6DOF手柄的所有IR-LED中处于头戴式设备的摄像头的拍摄范围内的IR-LED,在该摄像头曝光时,必须处于发光状态。目前,存在两种解决方案:It is worth noting that among all the IR-LEDs of the 6DOF handle, the IR-LEDs within the shooting range of the camera of the head-mounted device must be in a glowing state when the camera is exposed. Currently, two solutions exist:
1、6DOF手柄的所有IR-LED工作在常亮状态,这样摄像头每次曝光时都能铺捉到一组IR-LED组成的Pattern。但该方案由于大部分时间摄像头都是处在非曝光的状态,而所有IR-LED却始终常亮不熄灭,因此导致IR-LED的使用功耗较大。1. All the IR-LEDs of the 6DOF handle work in a constant light state, so that the camera can capture a pattern composed of a group of IR-LEDs every time it is exposed. However, in this solution, the camera is in a non-exposed state most of the time, while all the IR-LEDs are always on and not extinguished, which leads to a large power consumption of the IR-LEDs.
2、6DOF手柄的所有IR-LED在摄像头曝光前被点亮,并在摄像头曝光后被熄灭,以确保摄像头每次曝光时都能铺捉到一组IR-LED组成的Pattern。虽然该方案相较于方案1,可以降低IR-LED的使用功耗,但仍存在一下问题:2. All the IR-LEDs of the 6DOF handle are turned on before the camera exposure, and are turned off after the camera exposure, so as to ensure that the camera can capture a pattern composed of a group of IR-LEDs every time it is exposed. Although this solution can reduce the power consumption of IR-LED compared with solution 1, there are still some problems:
A、如图1所示,为了使6DOF手柄10的所有IR-LED能够覆盖任何的手柄位姿,IR-LED在6DOF手柄10上的布局是360°可见的,并且在头戴式设备的摄像头曝光时,处于该摄像头拍摄范围内的IR-LED11均会被同时点亮。A. As shown in Figure 1, in order to enable all the IR-LEDs of the
B、头戴式设备的摄像头往往只能拍摄到所有IR-LED中的一部分IR-LED,在该摄像头曝光时处于该摄像头拍摄范围之外的IR-LED并不需要被点亮。B. The camera of the head-mounted device can only capture a part of the IR-LEDs in all the IR-LEDs, and the IR-LEDs outside the shooting range of the camera do not need to be lit when the camera is exposed.
C、在有反射面(例如镜面、光滑桌面等)的场景,IR-LED全亮时原本不在“视野”内的图像中的一块连通区域(blob),通过反射可以进入到“视野”内,从而会干扰头戴式设备对blob的检测和识别,进而干扰对控制器的定位追踪,降低控制器的跟踪精度和稳定性。C. In a scene with reflective surfaces (such as mirrors, smooth tabletops, etc.), a connected area (blob) in the image that was not in the "field of view" when the IR-LED is fully bright can enter the "field of view" through reflection. This will interfere with the head-mounted device's detection and identification of the blob, and further interfere with the positioning and tracking of the controller, reducing the tracking accuracy and stability of the controller.
为了解决上述问题,在本申请实施例提供的手持控制器光源的控制方法中,与上述6DOF手柄(例如本申请实施例中的手持控制器)关联的头戴式设备可以从该6DOF手柄包含的N个IR-LED(例如本申请实施例中的光源)中,确定处于该头戴式设备的摄像头的拍摄范围内的第一IR-LED,以及处于该拍摄范围外的第二IR-LED,N为正整数;并向该6DOF手柄发送控制信号,该控制信号用于控制第一IR-LED处于发光状态,并控制第二IR-LED处于不发光状态。通过该方案,由于头戴式设备可以向与其关联的6DOF手柄发送控制信号,以控制该6DOF手柄的IR-LED中,仅处于该头戴式设备的摄像头的拍摄范围内的第一IR-LED处于发光状态,因此在获取该6DOF手柄的六自由度位姿的过程中,在该摄像头每次曝光时,可以无需该6DOF手柄的所有IR-LED均处于发光状态,从而可以降低IR-LED发光状态的占空比,进而可以降低6DOF手柄的功耗,提升6DOF手柄一次充电的使用时长。In order to solve the above problems, in the method for controlling the light source of the hand-held controller provided in the embodiment of the present application, the head-mounted device associated with the above-mentioned 6DOF handle (such as the hand-held controller in the embodiment of the application) can be obtained from the Among the N IR-LEDs (such as the light source in the embodiment of the present application), determine the first IR-LED within the shooting range of the camera of the head-mounted device, and the second IR-LED outside the shooting range, N is a positive integer; and a control signal is sent to the 6DOF handle, the control signal is used to control the first IR-LED to be in a light-emitting state, and control the second IR-LED to be in a non-light-emitting state. Through this solution, since the head-mounted device can send a control signal to its associated 6DOF handle to control the first IR-LED that is only within the shooting range of the camera of the head-mounted device among the IR-LEDs of the 6DOF handle It is in the light-emitting state, so in the process of obtaining the six-degree-of-freedom pose of the 6DOF handle, it is not necessary for all the IR-LEDs of the 6DOF handle to be in the light-emitting state at each exposure of the camera, so that the IR-LED light emission can be reduced The duty cycle of the state can reduce the power consumption of the 6DOF handle and increase the use time of the 6DOF handle for one charge.
进一步地,还可以优化IR-LED的使用寿命和故障率,并在有反射面的场景中,控制“视野”外的IR-LED熄灭,以降低对blob检测的干扰,提升控制器跟踪的鲁棒性和精度。Furthermore, the service life and failure rate of the IR-LED can be optimized, and in the scene with reflective surfaces, the IR-LED outside the "field of view" can be controlled to turn off, so as to reduce the interference to the blob detection and improve the robustness of the controller tracking. Stickiness and precision.
本申请实施例提供一种手持控制器光源的控制方法,图2示出了本申请实施例提供的手持控制器光源的控制方法的流程图。如图2所示,本申请实施例提供的手持控制器光源的控制方法可以包括下述的步骤201和步骤202。下面以与手持控制器关联的头戴式设备执行该方法为例对该方法进行示例性地说明。An embodiment of the present application provides a method for controlling a light source of a handheld controller, and FIG. 2 shows a flow chart of the method for controlling a light source of a handheld controller provided by the embodiment of the present application. As shown in FIG. 2 , the method for controlling the light source of the handheld controller provided in the embodiment of the present application may include the
步骤201、头戴式设备从手持控制器包含的N个光源中,确定处于头戴式设备的摄像头的拍摄范围内的第一光源,以及处于拍摄范围外的第二光源。
其中,N为正整数。Wherein, N is a positive integer.
可选地,本申请实施例中,上述手持控制器可以为虚拟现实(Virtual Reality,VR)手柄(例如,6DOF VR手柄)或扩展现实(Extended Reality,XR)手柄等。Optionally, in this embodiment of the present application, the aforementioned handheld controller may be a virtual reality (Virtual Reality, VR) handle (for example, a 6DOF VR handle) or an extended reality (Extended Reality, XR) handle, or the like.
可选地,本申请实施例中,上述头戴式设备可以为与上述手持控制器关联的头戴式显示设备,例如,该头戴式设备可以为VR头盔、VR眼镜、XR头盔或XR眼镜等。Optionally, in the embodiment of the present application, the above-mentioned head-mounted device may be a head-mounted display device associated with the above-mentioned handheld controller, for example, the head-mounted device may be a VR helmet, VR glasses, XR helmet or XR glasses wait.
可选地,本申请实施例中,上述光源可以为IR-LED。Optionally, in the embodiment of the present application, the foregoing light source may be an IR-LED.
可选地,本申请实施例中,上述拍摄范围可以为上述摄像头可以采集到对象的图像的空间范围。Optionally, in the embodiment of the present application, the aforementioned shooting range may be a spatial range within which the aforementioned camera can capture images of objects.
可以理解,处于上述拍摄范围内的第一光源,可以被上述摄像头采集到对应的图像;处于该拍摄范围外的第二光源,无法被该摄像头采集到对应的图像。It can be understood that the first light source within the shooting range can be captured by the camera corresponding to the image; the second light source outside the shooting range cannot be captured by the camera.
可选地,本申请实施例中,上述步骤201具体可以通过下述的步骤201a至步骤201d实现。Optionally, in the embodiment of the present application, the
步骤201a、头戴式设备获取手持控制器的第一位姿信息。Step 201a, the head-mounted device acquires the first pose information of the handheld controller.
可选地,本申请实施例中,第一位姿信息可以指示上述手持控制器在三维空间中的位置。Optionally, in this embodiment of the present application, the first pose information may indicate the position of the handheld controller in three-dimensional space.
下面对上述头戴式设备获取第一位姿信息的具体方法进行详细说明。The specific method for obtaining the first pose information by the aforementioned head-mounted device will be described in detail below.
可选地,本申请实施例中,上述头戴式设备可以通过下述的方式一或方式二获取第一位姿信息。Optionally, in the embodiment of the present application, the aforementioned head-mounted device may obtain the first pose information through the following method 1 or method 2.
方式一method one
可选地,本申请实施例中,上述步骤201a具体可以通过下述的步骤201a1至步骤201a3实现。Optionally, in the embodiment of the present application, the above step 201a may specifically be implemented through the following steps 201a1 to 201a3.
步骤201a1、头戴式设备将手持控制器的姿态参考坐标系与头戴式设备的姿态参考坐标系对齐。Step 201a1, the head-mounted device aligns the attitude reference coordinate system of the handheld controller with the attitude reference coordinate system of the head-mounted device.
可选地,本申请实施例中,上述头戴式设备可以基于上述摄像头的6DOF以及该头戴式设备的磁力计,实现上述手持控制器的姿态参考坐标系与该头戴式设备的姿态参考坐标系对齐。Optionally, in this embodiment of the application, the above-mentioned head-mounted device can realize the posture reference coordinate system of the above-mentioned handheld controller and the posture reference of the head-mounted device based on the 6DOF of the above-mentioned camera and the magnetometer of the head-mounted device. The coordinate system is aligned.
对将上述手持控制器的姿态参考坐标系与上述头戴式设备的姿态参考坐标系对齐的具体描述,可以参照相关技术中的相关描述,为了避免重复,此处不再赘述。For a specific description of aligning the attitude reference coordinate system of the handheld controller with the attitude reference coordinate system of the head-mounted device, reference may be made to relevant descriptions in related technologies, and details are not repeated here to avoid repetition.
步骤201a2、头戴式设备获取手持控制器在上一时间帧的第三位姿信息。Step 201a2, the head-mounted device obtains the third pose information of the handheld controller in the last time frame.
可选地,本申请实施例中,第三位姿信息可以指示上述手持控制器在上一时间帧,在三维空间中的位置。Optionally, in this embodiment of the present application, the third pose information may indicate the position of the handheld controller in the three-dimensional space in the last time frame.
可选地,本申请实施例中,上述时间帧即图像帧。Optionally, in this embodiment of the present application, the above time frame is an image frame.
步骤201a3、头戴式设备基于第三位姿信息,获取预测的手持控制器在当前时间帧的第一位姿信息。Step 201a3, based on the third pose information, the head-mounted device acquires the predicted first pose information of the handheld controller in the current time frame.
可选地,本申请实施例中,上述头戴式设备可以基于第三位姿信息,通过该头戴式设备的惯性测量单元(Inertial Measurement Unit,IMU)预测上述手持控制器在当前时间帧的第一位姿信息,以获取第一位姿信息。Optionally, in this embodiment of the present application, the above-mentioned head-mounted device may predict the position of the above-mentioned handheld controller in the current time frame through the inertial measurement unit (Inertial Measurement Unit, IMU) of the head-mounted device based on the third pose information. First pose information to get the first pose information.
可选地,本申请实施例中,上述IMU可以包括陀螺仪或加速度计等。Optionally, in this embodiment of the present application, the foregoing IMU may include a gyroscope or an accelerometer.
需要说明的是,上述头戴式设备将上述手持控制器的姿态参考坐标系与该头戴式设备的姿态参考坐标系对齐,可以确保获取的第一位姿信息与该头戴式设备的位姿信息处于匹配的姿态参考坐标系下,从而可以确保该头戴式设备控制该手持控制器的工作状态的准确性。It should be noted that the head-mounted device aligns the attitude reference coordinate system of the handheld controller with the attitude reference coordinate system of the head-mounted device, which can ensure that the obtained first pose information is consistent with the position of the head-mounted device. The posture information is in the matching posture reference coordinate system, so as to ensure the accuracy of the head-mounted device controlling the working state of the handheld controller.
本申请实施例中,由于头戴式设备可以基于获取的手持控制器在上一时间帧的第三位姿信息,获取预测的该手持控制器在当前时间帧的第一位姿信息,因此可以提高获取第一位姿信息的灵活性。In the embodiment of the present application, since the head-mounted device can obtain the predicted first pose information of the handheld controller in the current time frame based on the obtained third pose information of the handheld controller in the previous time frame, it can Improve the flexibility of obtaining first pose information.
方式二way two
可选地,本申请实施例中,上述步骤201a具体可以通过下述的步骤201a4和步骤201a5实现。Optionally, in the embodiment of the present application, the above step 201a may be specifically implemented through the following steps 201a4 and 201a5.
步骤201a4、头戴式设备获取手持控制器的姿态角。Step 201a4, the head-mounted device acquires the attitude angle of the handheld controller.
步骤201a5、头戴式设备基于姿态角,确定手持控制器的第一位姿信息。Step 201a5: The head-mounted device determines the first pose information of the handheld controller based on the pose angle.
对上述头戴式设备获取上述姿态角,以及基于该姿态角确定第一位姿信息的具体描述,可以参照相关技术中的相关描述,为了避免重复,此处不再赘述。For the specific description of obtaining the attitude angle by the head-mounted device and determining the first attitude information based on the attitude angle, reference may be made to relevant descriptions in related technologies, and details are not repeated here to avoid repetition.
本申请实施例中,由于头戴式设备可以基于获取的手持控制器的姿态角,确定该手持控制器的第一位姿信息,因此可以进一步提高获取第一位姿信息的灵活性。In the embodiment of the present application, since the head-mounted device can determine the first pose information of the handheld controller based on the acquired attitude angle of the handheld controller, the flexibility of obtaining the first pose information can be further improved.
步骤201b、头戴式设备获取头戴式设备的第二位姿信息。Step 201b, the head-mounted device acquires second pose information of the head-mounted device.
可选地,本申请实施例中,第二位姿信息可以指示上述头戴式设备在三维空间中的位置。Optionally, in this embodiment of the present application, the second pose information may indicate the position of the aforementioned head-mounted device in three-dimensional space.
下面对头戴式设备获取第二位姿信息的具体方法进行详细说明。The specific method for obtaining the second pose information by the head-mounted device will be described in detail below.
可选地,本申请实施例中,上述头戴式设备可以通过下述的方式Ⅰ或方式Ⅱ获取第二位姿信息。Optionally, in the embodiment of the present application, the aforementioned head-mounted device may obtain the second pose information through the following method I or method II.
方式ⅠMethod Ⅰ
可选地,本申请实施例中,上述步骤201a具体可以通过下述的步骤201a6实现;那么上述步骤201b具体可以通过下述的步骤201b1实现。Optionally, in the embodiment of the present application, the above-mentioned step 201a can be specifically implemented through the following step 201a6; then the above-mentioned step 201b can be specifically implemented through the following step 201b1.
步骤201a6、头戴式设备获取手持控制器在手持控制器与头戴式设备间的相对参考坐标系下的第一位姿信息。Step 201a6, the head-mounted device acquires the first pose information of the handheld controller in the relative reference coordinate system between the handheld controller and the head-mounted device.
可选地,本申请实施例中,头戴式设备可以基于该头戴式设备的IMU和磁力计获取的数据,获取该手持控制器在上述相对参考坐标系下的第一位姿信息。Optionally, in this embodiment of the present application, the head-mounted device may acquire the first pose information of the handheld controller in the relative reference coordinate system based on the data obtained by the IMU and the magnetometer of the head-mounted device.
步骤201b1、头戴式设备获取头戴式设备在相对参考坐标系下的第二位姿信息。Step 201b1, the head-mounted device acquires the second pose information of the head-mounted device in the relative reference coordinate system.
可选地,本申请实施例中,头戴式设备可以获取该头戴式设备的6DOF,并结合磁力计获取的数据计算得到该头戴式设备在上述相对参考坐标系下的第二位姿信息。Optionally, in this embodiment of the present application, the head-mounted device may obtain the 6DOF of the head-mounted device, and combine the data obtained by the magnetometer to calculate the second pose of the head-mounted device in the above-mentioned relative reference coordinate system information.
本申请实施例中,由于头戴式设备可以获取在上述相对参考坐标系下的手持控制器的第一位姿信息,以及在该相对参考坐标系下的该头戴式设备的第二位姿信息,因此在无法进行IMU预测的情况下,仍然可以获取到第一位姿信息和第二位姿信息,从而可以提高获取位姿信息的灵活性。In the embodiment of the present application, since the head-mounted device can obtain the first pose information of the hand-held controller under the above-mentioned relative reference coordinate system, and the second pose information of the head-mounted device under the relative reference coordinate system Therefore, in the case where IMU prediction cannot be performed, the first pose information and the second pose information can still be obtained, thereby improving the flexibility of obtaining pose information.
方式ⅡMode II
可选地,本申请实施例中,在上述步骤201a之前,本申请实施例提供的手持控制器光源的控制方法还可以包括下述的步骤A和步骤B;那么上述步骤201b具体可以通过下述的步骤201b2实现。Optionally, in the embodiment of the present application, before the above step 201a, the method for controlling the light source of the handheld controller provided in the embodiment of the present application may also include the following steps A and B; then the above step 201b may specifically be performed through the following Step 201b2 is realized.
步骤A、头戴式设备获取头戴式设备的6DOF信息。Step A, the head-mounted device acquires 6DOF information of the head-mounted device.
步骤B、头戴式设备基于6DOF信息和手持控制器的姿态角,计算头戴式设备的姿态与手持控制器的姿态间的初始偏差值。Step B. The head-mounted device calculates an initial deviation value between the attitude of the head-mounted device and the attitude of the hand-held controller based on the 6DOF information and the attitude angle of the hand-held controller.
可选地,本申请实施例中,上述姿态角可以基于上述头戴式设备的IMU和磁力计获取的数据计算得到。Optionally, in this embodiment of the present application, the foregoing attitude angle may be calculated based on data acquired by the IMU and the magnetometer of the foregoing head-mounted device.
可选地,本申请实施例中,上述头戴式设备在计算得到上述初始偏差值之后,可以与之后的每个时间帧的姿态对齐。Optionally, in the embodiment of the present application, after the above-mentioned initial deviation value is calculated, the above-mentioned head-mounted device may be aligned with the attitude of each subsequent time frame.
步骤201b2、头戴式设备基于第一姿态信息和初始偏差值,获取头戴式设备的第二位姿信息。Step 201b2, the head-mounted device acquires the second pose information of the head-mounted device based on the first pose information and the initial deviation value.
本申请实施例中,由于头戴式设备可以先基于获取的该头戴式设备的6DOF信息和手持控制器的姿态角,计算该头戴式设备的姿态与该手持控制器的姿态间的初始偏差值,然后基于第一姿态信息和该初始偏差值,获取第二位姿信息,因此可以无需通过该头戴式设备的磁力计获取第二位姿信息,从而可以提高获取第二位姿信息的灵活性。In the embodiment of the present application, since the head-mounted device can first calculate the initial distance between the attitude of the head-mounted device and the attitude of the hand-held controller based on the acquired 6DOF information of the head-mounted device and the attitude angle of the hand-held controller The deviation value, and then based on the first attitude information and the initial deviation value, the second attitude information is obtained, so the second attitude information can be obtained without the magnetometer of the head-mounted device, thereby improving the acquisition of the second attitude information flexibility.
步骤201c、头戴式设备基于第一位姿信息和第二位姿信息,计算手持控制器中每个光源的法线方向与摄像头拍摄方向间的夹角。Step 201c, based on the first pose information and the second pose information, the head-mounted device calculates the angle between the normal direction of each light source in the handheld controller and the shooting direction of the camera.
可选地,本申请实施例中,上述法线方向即法线正方向,也即由光源内部指向外部(即上述摄像头侧)的方向。可以理解,头戴式设备在获取上述第一位姿信息和第二位姿信息之后,可以确定上述手持控制器与头戴式设备在三维空间中的位置,进而可以计算出该手持控制器中每个光源的法线方向与上述摄像头拍摄方向间的夹角。Optionally, in the embodiment of the present application, the above-mentioned normal direction is the normal positive direction, that is, the direction from the inside of the light source to the outside (ie, the above-mentioned camera side). It can be understood that after the head-mounted device acquires the above-mentioned first pose information and the second pose information, it can determine the positions of the above-mentioned hand-held controller and the head-mounted device in three-dimensional space, and then can calculate the position of the hand-held controller. The angle between the normal direction of each light source and the shooting direction of the camera above.
步骤201d、头戴式设备将N个光源中对应夹角大于或等于90度的光源,确定为第一光源,并将N个光源中对应夹角小于90度的光源,确定为第二光源。Step 201d: The head-mounted device determines a light source with a corresponding included angle greater than or equal to 90 degrees among the N light sources as the first light source, and determines a light source with a corresponding included angle smaller than 90 degrees among the N light sources as the second light source.
可以理解,对应夹角大于或等于90度的光源可以被上述摄像头采集对应的图像;对应夹角小于90度的光源无法被上述摄像头采集对应的图像。It can be understood that the corresponding images of the light sources whose corresponding included angles are greater than or equal to 90 degrees can be captured by the above-mentioned camera; the corresponding images of the light sources whose corresponding included angles are smaller than 90 degrees cannot be collected by the above-mentioned cameras.
下面结合附图,对本申请实施例提供的手持控制器光源的控制方法进行示例性地说明。The method for controlling the light source of the handheld controller provided by the embodiment of the present application will be exemplarily described below with reference to the accompanying drawings.
示例性地,如图3所示,头戴式设备在获取上述第一位姿信息和第二位姿信息之后,可以计算手持控制器的光源中光源31的法线方向与头戴式设备的摄像头32的拍摄方向间的夹角,若该夹角大于或等于90度,则将该光源31确定为第一光源,若该夹角小于90度,则将该光源31确定为第二光源。Exemplarily, as shown in FIG. 3 , after the head-mounted device obtains the above-mentioned first pose information and the second pose information, it can calculate the normal direction of the
本申请实施例中,由于头戴式设备可以基于获取的手持控制器的位姿信息和该头戴式设备的位姿信息,计算得到该手持控制器中每个光源的法线方向与上述摄像头拍摄方向间的夹角,并将对应夹角大于或等于90度的光源确定为第一光源,将对应夹角小于90度的光源确定为第二光源,因此可以提高确定第一光源和第二光源的准确性。In the embodiment of the present application, since the head-mounted device can calculate the normal direction of each light source in the hand-held controller and the above-mentioned camera based on the acquired pose information of the handheld controller and the pose information of the head-mounted device The included angle between shooting directions, and the light source whose corresponding included angle is greater than or equal to 90 degrees is determined as the first light source, and the light source whose corresponding included angle is less than 90 degrees is determined as the second light source, so the determination of the first light source and the second light source can be improved. The accuracy of the light source.
步骤202、头戴式设备向手持控制器发送控制信号。
其中,上述控制信号用于控制第一光源处于发光状态,并控制第二光源处于不发光状态。Wherein, the above-mentioned control signal is used to control the first light source to be in a light-emitting state, and control the second light source to be in a non-light-emitting state.
可选地,本申请实施例中,上述头戴式设备可以通过与上述手持控制器间的无线通信,向该手持控制器发送上述控制信号。Optionally, in the embodiment of the present application, the aforementioned head-mounted device may send the aforementioned control signal to the aforementioned handheld controller through wireless communication with the aforementioned handheld controller.
在本申请实施例提供的手持控制器光源的控制方法中,由于头戴式设备可以向与其关联的手持控制器发送控制信号,以控制该手持控制器的光源中,仅处于该头戴式设备的摄像头的拍摄范围内的第一光源处于发光状态,因此在获取该手持控制器的六自由度位姿的过程中,在该摄像头每次曝光时,可以无需该手持控制器的所有光源均处于发光状态,从而可以降低手持控制器的功耗。In the method for controlling the light source of the hand-held controller provided in the embodiment of the present application, since the head-mounted device can send a control signal to the hand-held controller associated with it to control the light source of the hand-held controller, only the head-mounted device The first light source within the shooting range of the camera is in a light-emitting state, so in the process of obtaining the six-degree-of-freedom pose of the hand-held controller, it is not necessary for all light sources of the hand-held controller to be in the light-emitting state, which can reduce the power consumption of the handheld controller.
本申请实施例还提供一种手持控制器光源的控制系统,该系统包括手持控制器,以及与该手持控制器关联的头戴式设备。An embodiment of the present application also provides a control system for a light source of a handheld controller, and the system includes a handheld controller and a head-mounted device associated with the handheld controller.
其中,上述头戴式设备,可以用于从上述手持控制器包含的N个光源中,确定处于该头戴式设备的摄像头的拍摄范围内的第一光源,以及处于该拍摄范围外的第二光源,N为正整数。Wherein, the above-mentioned head-mounted device can be used to determine the first light source within the shooting range of the camera of the head-mounted device and the second light source outside the shooting range from the N light sources included in the above-mentioned handheld controller. Light source, N is a positive integer.
上述头戴式设备,还可以用于向上述手持控制器发送控制信号,该控制信号用于控制上述第一光源处于发光状态,并控制上述第二光源处于不发光状态。The above-mentioned head-mounted device can also be used to send a control signal to the above-mentioned handheld controller, and the control signal is used to control the above-mentioned first light source to be in a light-emitting state, and control the above-mentioned second light source to be in a non-light-emitting state.
上述手持控制器,可以用于在接收到上述控制信号的情况下,基于该控制信号,控制上述第一光源处于发光状态,并控制上述第二光源处于不发光状态。The above-mentioned handheld controller can be used for controlling the above-mentioned first light source to be in a light-emitting state and controlling the above-mentioned second light source to be in a non-light-emitting state based on the control signal upon receiving the above-mentioned control signal.
可选地,本申请实施例中,上述头戴式设备,具体可以用于获取上述手持控制器的第一位姿信息;且获取该头戴式设备的第二位姿信息;且基于第一位姿信息和第二位姿信息,计算上述N个光源中每个光源的法线方向与上述摄像头拍摄方向间的夹角;且将该N个光源中对应夹角大于或等于90度的光源,确定为上述第一光源,并将该N个光源中对应夹角小于90度的光源,确定为上述第二光源。Optionally, in the embodiment of the present application, the above-mentioned head-mounted device may specifically be used to obtain the first pose information of the above-mentioned handheld controller; and obtain the second pose information of the head-mounted device; and based on the first Pose information and second pose information, calculating the angle between the normal direction of each light source in the above N light sources and the shooting direction of the above camera; and the light source corresponding to the angle greater than or equal to 90 degrees among the N light sources , determine as the above-mentioned first light source, and determine a light source with a corresponding included angle smaller than 90 degrees among the N light sources as the above-mentioned second light source.
可选地,本申请实施例中,上述头戴式设备,具体可以用于将上述手持控制器的姿态参考坐标系与该头戴式设备的姿态参考坐标系对齐;且获取该手持控制器在上一时间帧的第三位姿信息;并基于第三位姿信息,获取预测的该手持控制器在当前时间帧的第一位姿信息。Optionally, in the embodiment of the present application, the above-mentioned head-mounted device may specifically be used to align the posture reference coordinate system of the above-mentioned hand-held controller with the posture reference coordinate system of the head-mounted device; The third pose information of the last time frame; and based on the third pose information, obtain the predicted first pose information of the handheld controller in the current time frame.
可选地,本申请实施例中,上述头戴式设备,具体可以用于获取上述手持控制器在该手持控制器与该头戴式设备间的相对参考坐标系下的第一位姿信息;并获取该头戴式设备在该相对参考坐标系下的第二位姿信息。Optionally, in the embodiment of the present application, the above-mentioned head-mounted device may specifically be used to obtain the first pose information of the above-mentioned hand-held controller in a relative reference coordinate system between the hand-held controller and the head-mounted device; And obtain the second pose information of the head-mounted device under the relative reference coordinate system.
可选地,本申请实施例中,上述头戴式设备,还可以用于在获取上述手持控制器的第一位姿信息之前,获取该头戴式设备的6DOF信息;并基于该6DOF信息和该手持控制器的姿态角,计算该头戴式设备的姿态与该手持控制器的姿态间的初始偏差值。该头戴式设备,具体可以用于基于第一姿态信息和该初始偏差值,获取该头戴式设备的第二位姿信息。Optionally, in the embodiment of the present application, the above-mentioned head-mounted device may also be used to obtain the 6DOF information of the head-mounted device before obtaining the first pose information of the above-mentioned handheld controller; and based on the 6DOF information and The attitude angle of the hand-held controller is to calculate the initial deviation value between the attitude of the head-mounted device and the attitude of the hand-held controller. The head-mounted device may specifically be configured to acquire second pose information of the head-mounted device based on the first pose information and the initial deviation value.
可选地,本申请实施例中,上述头戴式设备,具体可以用于获取上述手持控制器的姿态角;并基于该姿态角,获取该手持控制器的第一位姿信息。Optionally, in the embodiment of the present application, the aforementioned head-mounted device may be specifically configured to obtain the attitude angle of the aforementioned handheld controller; and based on the attitude angle, acquire the first pose information of the handheld controller.
对本申请实施例的具体描述以及各个设备所能达到的技术效果,可以参照上述手持控制器光源的控制方法实施例中的相关描述,为了避免重复,此处不再赘述。For the specific description of the embodiments of the present application and the technical effects that can be achieved by each device, you can refer to the relevant descriptions in the above embodiment of the method for controlling the light source of the hand-held controller. In order to avoid repetition, details are not repeated here.
在本申请实施例提供的手持控制器光源的控制系统中,由于头戴式设备可以向与其关联的手持控制器发送控制信号,以控制该手持控制器的光源中,仅处于该头戴式设备的摄像头的拍摄范围内的第一光源处于发光状态;而该手持控制器可以在接收到该控制信号之后,基于该控制信号控制第一光源处于发光状态,并控制该手持控制器的光源中处于该拍摄范围外的第二光源处于不发光状态;因此在获取该手持控制器的六自由度位姿的过程中,在该摄像头每次曝光时,可以无需该手持控制器的所有光源均处于发光状态,从而可以降低手持控制器的功耗。In the light source control system of the hand-held controller provided in the embodiment of the present application, since the head-mounted device can send a control signal to the hand-held controller associated with it to control the light source of the hand-held controller, only the head-mounted device The first light source within the shooting range of the camera is in a light-emitting state; and the hand-held controller can control the first light source to be in a light-emitting state based on the control signal after receiving the control signal, and control the light source of the hand-held controller to be in a light-emitting state. The second light source outside the shooting range is in a non-luminous state; therefore, in the process of obtaining the six-degree-of-freedom pose of the handheld controller, when the camera is exposed every time, it is not necessary for all light sources of the handheld controller to be illuminated state, thereby reducing the power consumption of the handheld controller.
本申请实施例提供的手持控制器光源的控制方法,执行主体可以为手持控制器光源的控制装置。本申请实施例中以手持控制器光源的控制装置执行手持控制器光源的控制方法为例,说明本申请实施例提供的手持控制器光源的控制装置。In the method for controlling the light source of the hand-held controller provided in the embodiment of the present application, the execution subject may be a control device of the light source of the hand-held controller. In the embodiment of the present application, the light source control device of the handheld controller provided in the embodiment of the present application is described by taking the control device of the light source of the handheld controller as an example to execute the control method of the light source of the handheld controller.
本申请实施例提供一种手持控制器光源的控制装置,该装置与该手持控制器关联,如图4所示,该手持控制器光源的控制装置40包括:确定模块41和发送模块42。确定模块41,可以用于从该手持控制器包含的N个光源中,确定处于该装置的摄像头的拍摄范围内的第一光源,以及处于该拍摄范围外的第二光源,N为正整数。发送模块42,可以用于向该手持控制器发送控制信号,该控制信号用于控制第一光源处于发光状态,并控制第二光源处于不发光状态。The embodiment of the present application provides a light source control device of a handheld controller, which is associated with the handheld controller. As shown in FIG. 4 , the light
一种可能的实现方式中,上述确定模块41,具体可以用于获取上述手持控制器的第一位姿信息;且获取上述装置的第二位姿信息;且基于第一位姿信息和第二位姿信息,计算上述N个光源中每个光源的法线方向与上述摄像头拍摄方向间的夹角;且将该N个光源中对应夹角大于或等于90度的光源,确定为上述第一光源,并将该N个光源中对应夹角小于90度的光源,确定为上述第二光源。In a possible implementation manner, the
一种可能的实现方式中,上述确定模块41,具体可以用于将上述手持控制器的姿态参考坐标系与上述装置的姿态参考坐标系对齐;且获取该手持控制器在上一时间帧的第三位姿信息;并基于第三姿态信息,获取预测的该手持控制器在当前时间帧的第一位姿信息。In a possible implementation manner, the
一种可能的实现方式中,上述确定模块41,具体可以用于:获取上述手持控制器在该手持控制器与上述装置间的相对参考坐标系下的第一位姿信息;并获取该装置在该相对参考坐标系下的第二位姿信息。In a possible implementation manner, the
一种可能的实现方式中,上述装置还可以包括获取模块和计算模块。获取模块,可以用于在上述确定模块41获取上述手持控制器的第一位姿信息之前,获取该装置的6DOF信息。计算模块,可以用于基于获取模块获取的该6DOF信息,和该手持控制器的姿态角,计算该装置的姿态与该手持控制器的姿态间的初始偏差值。确定模块41,具体可以用于基于第一姿态信息和该初始偏差值,获取该装置的第二位姿信息。In a possible implementation manner, the above device may further include an acquisition module and a calculation module. The acquiring module may be configured to acquire the 6DOF information of the device before the determining
一种可能的实现方式中,上述确定模块41,具体可以用于获取上述手持控制器的姿态角;并基于该姿态角,确定该手持控制器的第一位姿信息。In a possible implementation manner, the
在本申请实施例提供的手持控制器光源的控制装置中,由于该手持控制器光源的控制装置可以向与其关联的手持控制器发送控制信号,以控制该手持控制器的光源中,仅处于该装置的摄像头的拍摄范围内的第一光源处于发光状态,因此在获取该手持控制器的六自由度位姿的过程中,在该摄像头每次曝光时,可以无需该手持控制器的所有光源均处于发光状态,从而可以降低手持控制器的功耗。In the control device of the hand-held controller light source provided in the embodiment of the present application, since the control device of the hand-held controller light source can send a control signal to the hand-held controller associated with it to control the light source of the hand-held controller, only in the The first light source within the shooting range of the camera of the device is in a light-emitting state, so in the process of obtaining the six-degree-of-freedom pose of the handheld controller, when the camera is exposed every time, all light sources of the handheld controller may not need to be In the light-emitting state, which can reduce the power consumption of the handheld controller.
本申请实施例中的手持控制器光源的控制装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The device for controlling the light source of the handheld controller in the embodiment of the present application may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR ) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobilepersonal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc. ), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in this embodiment of the present application.
本申请实施例中的手持控制器光源的控制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为IOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The device for controlling the light source of the handheld controller in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的手持控制器光源的控制装置能够实现图2至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。The device for controlling the light source of the hand-held controller provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 2 to FIG. 3 , and details are not repeated here to avoid repetition.
可选地,如图5所示,本申请实施例还提供一种头戴式设备500,包括处理器501和存储器502,存储器502上存储有可在所述处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述手持控制器光源的控制方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 5 , the embodiment of the present application also provides a head-mounted
图6为实现本申请实施例的一种头戴式设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of a head-mounted device implementing an embodiment of the present application.
该头戴式设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。The head mounted
本领域技术人员可以理解,头戴式设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的头戴式设备结构并不构成对头戴式设备的限定,头戴式设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the head-mounted
其中,上述头戴式设备1000与手持控制器关联,上述处理器1010,可以用于从该手持控制器包含的N个光源中,确定处于该头戴式设备1000的摄像头的拍摄范围内的第一光源,以及处于该拍摄范围外的第二光源,N为正整数。上述射频单元1001,可以用于向该手持控制器发送控制信号,该控制信号用于控制第一光源处于发光状态,并控制第二光源处于不发光状态。Wherein, the above-mentioned head-mounted
一种可能的实现方式中,上述处理器1010,具体可以用于获取上述手持控制器的第一位姿信息;且获取上述头戴式设备1000的第二位姿信息;且基于第一位姿信息和第二位姿信息,计算上述N个光源中每个光源的法线方向与上述摄像头拍摄方向间的夹角;且将该N个光源中对应夹角大于或等于90度的光源,确定为上述第一光源,并将该N个光源中对应夹角小于90度的光源,确定为上述第二光源。In a possible implementation manner, the above-mentioned
一种可能的实现方式中,上述处理器1010,具体可以用于将上述手持控制器的姿态参考坐标系与上述头戴式设备1000的姿态参考坐标系对齐;且获取该手持控制器在上一时间帧的第三位姿信息;并基于第三姿态信息,获取预测的该手持控制器在当前时间帧的第一位姿信息。In a possible implementation manner, the above-mentioned
一种可能的实现方式中,上述处理器1010,具体可以用于:获取上述手持控制器在该手持控制器与上述头戴式设备1000间的相对参考坐标系下的第一位姿信息;并获取该头戴式设备1000在该相对参考坐标系下的第二位姿信息。In a possible implementation manner, the above-mentioned
一种可能的实现方式中,上述处理器1010,还可以用于在获取上述手持控制器的第一位姿信息之前,获取上述头戴式设备1000的6DOF信息;并基于获取的该6DOF信息,和该手持控制器的姿态角,计算该头戴式设备1000的姿态与该手持控制器的姿态间的初始偏差值。处理器1010,具体可以用于基于第一姿态信息和该初始偏差值,获取该头戴式设备1000的第二位姿信息。In a possible implementation manner, the above-mentioned
一种可能的实现方式中,上述处理器1010,具体可以用于获取上述手持控制器的姿态角;并基于该姿态角,确定该手持控制器的第一位姿信息。In a possible implementation manner, the
在本申请实施例提供的头戴式设备中,由于该头戴式设备可以向与其关联的手持控制器发送控制信号,以控制该手持控制器的光源中,仅处于该头戴式设备的摄像头的拍摄范围内的第一光源处于发光状态,因此在获取该手持控制器的六自由度位姿的过程中,在该摄像头每次曝光时,可以无需该手持控制器的所有光源均处于发光状态,从而可以降低手持控制器的功耗。In the head-mounted device provided in the embodiment of the present application, since the head-mounted device can send a control signal to the hand-held controller associated with it to control the light source of the hand-held controller, only the camera of the head-mounted device The first light source within the shooting range of the handheld controller is in a light-emitting state, so in the process of obtaining the six-degree-of-freedom pose of the handheld controller, it is not necessary for all light sources of the handheld controller to be in a light-emitting state when the camera is exposed every time , so that the power consumption of the handheld controller can be reduced.
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。For the beneficial effects of the various implementations in this embodiment, refer to the beneficial effects of the corresponding implementations in the foregoing method embodiments. To avoid repetition, details are not repeated here.
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(GraphicsProcessing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in this embodiment of the present application, the
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。The
处理器1010可包括一个或多个处理单元;可选的,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现如上述手持控制器光源的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by the processor, the various processes in the above embodiment of the method for controlling the light source of the hand-held controller are implemented , and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
其中,所述处理器为上述实施例中所述的头戴式设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the head-mounted device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如上述手持控制器光源的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the light source of the hand-held controller as described above Each process of the embodiment of the control method can achieve the same technical effect, so in order to avoid repetition, details are not repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述手持控制器光源的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above embodiment of the method for controlling the light source of the hand-held controller, and can achieve The same technical effects are not repeated here to avoid repetition.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.
Claims (15)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310243861.1A CN116367394A (en) | 2023-03-13 | 2023-03-13 | Handheld controller light source control method, system, device, equipment and medium |
| PCT/CN2024/081023 WO2024188220A1 (en) | 2023-03-13 | 2024-03-11 | Control method, system and apparatus for light sources of handheld controller, device and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310243861.1A CN116367394A (en) | 2023-03-13 | 2023-03-13 | Handheld controller light source control method, system, device, equipment and medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116367394A true CN116367394A (en) | 2023-06-30 |
Family
ID=86912717
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310243861.1A Pending CN116367394A (en) | 2023-03-13 | 2023-03-13 | Handheld controller light source control method, system, device, equipment and medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116367394A (en) |
| WO (1) | WO2024188220A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024188220A1 (en) * | 2023-03-13 | 2024-09-19 | 维沃移动通信有限公司 | Control method, system and apparatus for light sources of handheld controller, device and medium |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111752386B (en) * | 2020-06-05 | 2024-07-16 | 深圳市欢创科技股份有限公司 | Space positioning method, system and head-mounted equipment |
| KR102871258B1 (en) * | 2020-06-22 | 2025-10-16 | 삼성전자 주식회사 | Brightness adjustment method and hmd device |
| CN112437213A (en) * | 2020-10-28 | 2021-03-02 | 青岛小鸟看看科技有限公司 | Image acquisition method, handle device, head-mounted device and head-mounted system |
| CN112527102B (en) * | 2020-11-16 | 2022-11-08 | 青岛小鸟看看科技有限公司 | Head-mounted all-in-one machine system and 6DoF tracking method and device thereof |
| CN113382228B (en) * | 2021-05-17 | 2023-04-18 | 青岛小鸟看看科技有限公司 | Head-mounted display device and head-mounted display system |
| CN116367394A (en) * | 2023-03-13 | 2023-06-30 | 维沃移动通信有限公司 | Handheld controller light source control method, system, device, equipment and medium |
-
2023
- 2023-03-13 CN CN202310243861.1A patent/CN116367394A/en active Pending
-
2024
- 2024-03-11 WO PCT/CN2024/081023 patent/WO2024188220A1/en not_active Ceased
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024188220A1 (en) * | 2023-03-13 | 2024-09-19 | 维沃移动通信有限公司 | Control method, system and apparatus for light sources of handheld controller, device and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2024188220A1 (en) | 2024-09-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11625841B2 (en) | Localization and tracking method and platform, head-mounted display system, and computer-readable storage medium | |
| US12526380B2 (en) | Method and apparatus for controlling a plurality of virtual characters, device, and storage medium | |
| CN108229332B (en) | Bone posture determination method, device and computer readable storage medium | |
| US10255489B2 (en) | Adaptive tracking system for spatial input devices | |
| US7796118B2 (en) | Integration of navigation device functionality into handheld devices | |
| US20130076617A1 (en) | Adaptive tracking system for spatial input devices | |
| US20140168261A1 (en) | Direct interaction system mixed reality environments | |
| EP4189526B1 (en) | Systems and methods for object tracking using fused data | |
| US11422609B2 (en) | Electronic device and method for controlling operation of display in same | |
| JP2023509291A (en) | Joint infrared and visible light visual inertial object tracking | |
| US20130076616A1 (en) | Adaptive tracking system for spatial input devices | |
| JP7495459B2 (en) | Head-mounted display device and control method for head-mounted display device | |
| CN111898535B (en) | Target recognition method, device and storage medium | |
| US20210005014A1 (en) | Non-transitory computer-readable medium, image processing method, and image processing system | |
| JP2016115268A (en) | Information processing method, information processing program, and information processing apparatus | |
| CN113282355B (en) | Instruction execution method, device, terminal and storage medium based on state machine | |
| CN113051485B (en) | Group searching method, device, terminal and storage medium | |
| US20140292636A1 (en) | Head-Worn Infrared-Based Mobile User-Interface | |
| CN116367394A (en) | Handheld controller light source control method, system, device, equipment and medium | |
| US20210132684A1 (en) | Human computer interaction system and human computer interaction method | |
| CN114115544B (en) | Human-computer interaction method, three-dimensional display device and storage medium | |
| CN113568552B (en) | Data structure comparison result display method and device and computer storage medium | |
| CN116609789A (en) | Positioning method of wearable device, wearable device and electronic device | |
| CN115944906A (en) | VR handle, VR glasses, method and device for determining pose information | |
| TW202319889A (en) | Method and system for detecting hand gesture, and computer readable storage medium |
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 |