Control method, system and apparatus for light sources of handheld controller, device and medium
By only emitting light within the camera shooting range in the handheld controller, the problems of high power consumption and reflection interference in the handheld controller are solved, achieving more efficient energy use and more stable controller tracking.
Patent Information
- Application Number
- PCT/CN2024/081023
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-13
- Filing Date
- 2024-03-11
- Publication Date
- 2024-09-19
AI Technical Summary
The light source of the handheld controller is always emitting light during the acquisition of the six-degree-of-freedom pose, which results in high power consumption and may interfere with the detection and recognition of the head-mounted device in scenes with reflective surfaces, reducing the tracking accuracy of the controller. and stability.
The light source in the handheld controller is determined by the head-mounted device. Only the light source within the camera shooting range is in the emitting state, while the light source outside the range is in the non-emitting state. This switch is realized through the control signal, reducing the overall power consumption and optimizing The service life of the light source.
It effectively reduces the power consumption of the handheld controller, improves the tracking robustness and accuracy of the controller, reduces the duty cycle of the light source when not needed, avoids reflection interference, and extends the use time of the device.
Smart Images

Figure CN2024081023_19092024_PF_FP_ABST
Abstract
Description
Control method, system, device, equipment and medium for handheld controller light source
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application number 202310243861.1 filed in China on March 13, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of electronic technology, and specifically relates to a method, system, device, equipment and medium for controlling a light source of a handheld controller. Background Art
[0004] Currently, a head-mounted device associated with a handheld controller can obtain the six-degree-of-freedom position of the handheld controller based on the camera of the head-mounted device and the light source of the handheld controller within the shooting range of the camera to control the working state of the handheld controller.
[0005] During the acquisition of the six-degree-of-freedom pose, the light source must be in a lighting state when the camera is exposed. To ensure that the light source is in a lighting state when the camera is exposed, all light sources of the handheld controller can be operated in a constant lighting state, or all light sources of the handheld controller can be illuminated before the camera is exposed and extinguished after the camera is exposed.
[0006] However, according to the above method, since all the light sources of the handheld controller are in a lighting state when the camera is exposed, the handheld controller consumes a large amount of power.
[0007] Summary of the Invention
[0008] The purpose of the embodiments of the present application is to provide a method, system, device, equipment and medium for controlling the light source of a handheld controller, which can solve the problem of high power consumption of the handheld controller.
[0009] In a first aspect, an embodiment of the present application provides a method for controlling the light source of a handheld controller, which is applied to a head-mounted device associated with the handheld controller. The method includes: determining a first light source within the shooting range of a camera of the head-mounted device and a second light source outside the shooting range from N light sources contained in the handheld controller, where N is a positive integer; and sending a control signal to the handheld controller, wherein 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.
[0010] In a second aspect, an embodiment of the present application provides a control system for a handheld controller light source, the system comprising a handheld controller and a head-mounted device associated with the handheld controller; wherein the head-mounted device is used to determine a first light source within the shooting range of a camera of the head-mounted device and a second light source outside the shooting range from N light sources contained in the handheld controller, where N is a positive integer; the head-mounted device is also used to send a control signal to the handheld controller, the control signal being 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 handheld controller 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 based on the control signal when receiving the control signal.
[0011] In a third aspect, an embodiment of the present application provides a control device for a handheld controller light source, which is associated with a handheld controller and includes: a determination module and a sending module; the determination module is used to determine, from the N light sources contained in the handheld controller, a first light source that is within the shooting range of the camera of the device and a second light source that is outside the shooting range, where N is a positive integer; the sending module is used to send a control signal to the handheld controller, the control signal being 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.
[0012] In a fourth aspect, an embodiment of the present application provides a head-mounted device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0013] In a fifth aspect, an embodiment of the present application provides a readable storage medium, which stores a program or instruction. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0014] In a sixth aspect, an embodiment of the present application provides a chip, which 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 implement the method described in the first aspect.
[0015] In a seventh aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0016] In an embodiment of the present application, a head-mounted device associated with a handheld controller can determine, from the N light sources contained in the handheld controller, a first light source within the shooting range of the head-mounted device's camera and a second light source outside the shooting range, where N is a positive integer; and send a control signal to the handheld controller, the control signal being used to control the first light source to be in a light-emitting state and 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 handheld controller associated with it to control only the first light source within the shooting range of the head-mounted device's camera to be in a light-emitting state among the light sources of the handheld controller, during the process of acquiring 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 each time the camera is exposed, thereby reducing the power consumption of the handheld controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] FIG1 is a schematic diagram of light source distribution of a 6-degree-of-freedom (DOF) handle;
[0018] FIG2 is a flow chart of a method for controlling a light source of a handheld controller provided in an embodiment of the present application;
[0019] FIG3 is a schematic diagram of a method for controlling a light source of a handheld controller provided in an embodiment of the present application;
[0020] FIG4 is a schematic diagram of a control device for a light source of a handheld controller provided in an embodiment of the present application;
[0021] FIG5 is a schematic diagram of a head mounted device provided in an embodiment of the present application;
[0022] FIG6 is a hardware schematic diagram of a head-mounted device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0024] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0025] The following describes in detail the control method, system, device, equipment and medium of the handheld controller light source provided by the embodiments of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0026] Currently, 6DOF controllers commonly used in the extended reality field typically use infrared light-emitting diodes (IR-LEDs) to form a ring of light as markers, forming a unique pattern. For example, a pattern consisting of 21 IR-LEDs, each consuming 0.036W of power, is algorithmically tracked using the camera of a headset associated with the 6DOF controller. This data is then integrated with the controller's inertial measurement unit (IMU) data to ultimately determine the controller's 6DOF pose.
[0027] It is worth noting that among all the IR-LEDs in the 6DOF controller, the IR-LEDs that are within the shooting range of the head-mounted device's camera must be in a light-emitting state when the camera is exposed. Currently, there are two solutions:
[0028] 1. All IR-LEDs in the 6DOF controller are constantly on, allowing the camera to capture a pattern of IR-LEDs during each exposure. However, this solution consumes a lot of power because the camera is mostly off while all IR-LEDs are constantly on.
[0029] 2. All IR-LEDs of the 6DOF controller are turned on before the camera is exposed and turned off after the camera is exposed to ensure that the camera can capture a pattern composed of a group of IR-LEDs each time it is exposed. Although this solution can reduce the power consumption of IR-LEDs compared to solution 1, it still has the following problems:
[0030] A. As shown in Figure 1, in order to ensure that all IR-LEDs of the 6DOF handle 10 can cover any handle posture, the layout of the IR-LEDs on the 6DOF handle 10 is 360° visible, and when the camera of the head-mounted device is exposed, all IR-LEDs 11 within the shooting range of the camera will be lit at the same time.
[0031] B. The camera of the head-mounted device can often only capture a portion of all IR-LEDs. When the camera is exposed, the IR-LEDs outside the camera's shooting range do not need to be lit.
[0032] C. In scenes with reflective surfaces (such as mirrors and smooth tabletops), when the IR-LED is fully illuminated, a connected area (blob) in the image that was originally not in the "field of view" can enter the "field of view" through reflection, thereby interfering with the headset's detection and recognition of the blob, and further interfering with the positioning and tracking of the controller, reducing the controller's tracking accuracy and stability.
[0033] In order to solve the above problems, in the control method of the light source of the handheld controller provided in the embodiment of the present application, the head-mounted device associated with the above-mentioned 6DOF handle (such as the handheld controller in the embodiment of the present application) can 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 from the N IR-LEDs (such as the light source in the embodiment of the present application) contained in the 6DOF handle, where N is a positive integer; and send a control signal to the 6DOF handle, which 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 the 6DOF handle associated with it to control the IR-LEDs of the 6DOF handle, only the first IR-LED within the shooting range of the camera of the head-mounted device is in a light-emitting state, therefore in the process of obtaining the six-degree-of-freedom posture of the 6DOF handle, it is not necessary for all IR-LEDs of the 6DOF handle to be in a light-emitting state each time the camera is exposed, thereby reducing the duty cycle of the IR-LED light-emitting state, and further reducing the power consumption of the 6DOF handle, thereby increasing the usage time of the 6DOF handle on a single charge.
[0034] Furthermore, the service life and failure rate of IR-LEDs can be optimized, and in scenarios with reflective surfaces, IR-LEDs outside the "field of view" can be turned off to reduce interference with blob detection and improve the robustness and accuracy of controller tracking.
[0035] An embodiment of the present application provides a method for controlling a light source of a handheld controller. FIG2 shows a flow chart of the method for controlling a light source of a handheld controller provided in this embodiment of the application. As shown in FIG2 , the method for controlling a light source of a handheld controller provided in this embodiment of the application may include the following steps 201 and 202. The following description uses the example of executing the method on a head-mounted device associated with a handheld controller as an example.
[0036] Step 201: The head mounted device determines, from N light sources included in the handheld controller, a first light source that is within the shooting range of a camera of the head mounted device and a second light source that is outside the shooting range.
[0037] Wherein, N is a positive integer.
[0038] Optionally, in an embodiment of the present application, the above-mentioned handheld controller can be a virtual reality (VR) handle (for example, a 6DOF VR handle) or an extended reality (XR) handle, etc.
[0039] Optionally, in an embodiment of the present application, the head-mounted device may be a head-mounted display device associated with the handheld controller. For example, the head-mounted device may be a VR helmet, VR glasses, an XR helmet or XR glasses, etc.
[0040] Optionally, in an embodiment of the present application, the light source may be an IR-LED.
[0041] Optionally, in an embodiment of the present application, the shooting range may be a spatial range in which the camera can capture an image of the object.
[0042] It can be understood that the first light source within the above-mentioned shooting range can have its corresponding image captured by the above-mentioned camera; the second light source outside the shooting range cannot have its corresponding image captured by the camera.
[0043] Optionally, in an embodiment of the present application, the above step 201 can be specifically implemented through the following steps 201a to 201d.
[0044] Step 201a: The head mounted device obtains the first position information of the handheld controller.
[0045] Optionally, in an embodiment of the present application, the first pose information may indicate the position of the handheld controller in three-dimensional space.
[0046] The specific method for the above-mentioned head-mounted device to obtain the first position information is described in detail below.
[0047] Optionally, in an embodiment of the present application, the head-mounted device may obtain the first posture information through the following method 1 or method 2.
[0048] Method 1
[0049] Optionally, in the embodiment of the present application, the above step 201a can be specifically implemented through the following steps 201a1 to 201a3.
[0050] Step 201a1: The head-mounted device aligns the posture reference coordinate system of the handheld controller with the posture reference coordinate system of the head-mounted device.
[0051] Optionally, in an embodiment of the present application, the head-mounted device can align the posture reference coordinate system of the handheld controller with the posture reference coordinate system of the head-mounted device based on the 6DOF of the camera and the magnetometer of the head-mounted device.
[0052] For a detailed description of aligning the posture reference coordinate system of the handheld controller with the posture reference coordinate system of the head-mounted device, reference can be made to the relevant description in the related art. To avoid repetition, it will not be repeated here.
[0053] Step 201a2: The head mounted device obtains the third posture information of the handheld controller in the previous time frame.
[0054] Optionally, in an embodiment of the present application, the third posture information may indicate the position of the handheld controller in the three-dimensional space in the previous time frame.
[0055] Optionally, in an embodiment of the present application, the above-mentioned time frame is an image frame.
[0056] Step 201a3: The head mounted device obtains the predicted first pose information of the handheld controller in the current time frame based on the third pose information.
[0057] Optionally, in an embodiment of the present application, the head-mounted device may predict the first posture information of the handheld controller in the current time frame through the inertial measurement unit (IMU) of the head-mounted device based on the third posture information to obtain the first posture information.
[0058] Optionally, in an embodiment of the present application, the above-mentioned IMU may include a gyroscope or an accelerometer, etc.
[0059] It should be noted that the above-mentioned head-mounted device aligns the posture reference coordinate system of the above-mentioned handheld controller with the posture reference coordinate system of the head-mounted device, which can ensure that the acquired first posture information and the posture information of the head-mounted device are in a matching posture reference coordinate system, thereby ensuring the accuracy of the head-mounted device in controlling the working state of the handheld controller.
[0060] In an embodiment of the present application, since the head-mounted device can obtain the predicted first posture information of the handheld controller in the current time frame based on the obtained third posture information of the handheld controller in the previous time frame, the flexibility of obtaining the first posture information can be improved.
[0061] Method 2
[0062] Optionally, in an embodiment of the present application, the above step 201a can be specifically implemented through the following steps 201a4 and 201a5.
[0063] Step 201a4: The head mounted device obtains the posture angle of the handheld controller.
[0064] Step 201a5: The head mounted device determines the first position information of the handheld controller based on the posture angle.
[0065] For a detailed description of how the head-mounted device obtains the above-mentioned posture angle and determines the first posture information based on the posture angle, please refer to the relevant description in the relevant technology. In order to avoid repetition, it will not be repeated here.
[0066] In the embodiment of the present application, since the head-mounted device can determine the first position information of the handheld controller based on the acquired posture angle of the handheld controller, the flexibility of obtaining the first position information can be further improved.
[0067] Step 201b: The head-mounted device obtains second posture information of the head-mounted device.
[0068] Optionally, in an embodiment of the present application, the second posture information may indicate the position of the head-mounted device in three-dimensional space.
[0069] The specific method for the head-mounted device to obtain the second posture information is described in detail below.
[0070] Optionally, in an embodiment of the present application, the head-mounted device may obtain the second posture information through the following method I or method II.
[0071] Method I
[0072] Optionally, in the embodiment of the present application, the above step 201a can be specifically implemented through the following step 201a6; then the above step 201b can be specifically implemented through the following step 201b1.
[0073] Step 201a6: The head mounted device obtains the first position information of the handheld controller in the relative reference coordinate system between the handheld controller and the head mounted device.
[0074] Optionally, in an embodiment of the present application, the head-mounted device can obtain the first position information of the handheld controller in the above-mentioned relative reference coordinate system based on the data obtained by the IMU and magnetometer of the head-mounted device.
[0075] Step 201b1: The head-mounted device obtains second posture information of the head-mounted device in the relative reference coordinate system.
[0076] Optionally, in an embodiment of the present application, the head-mounted device can obtain 6DOF of the head-mounted device, and calculate the second posture information of the head-mounted device in the above-mentioned relative reference coordinate system in combination with the data obtained by the magnetometer.
[0077] In an embodiment of the present application, since the head-mounted device can obtain the first posture information of the handheld controller in the above-mentioned relative reference coordinate system and the second posture information of the head-mounted device in the relative reference coordinate system, even if IMU prediction cannot be performed, the first posture information and the second posture information can still be obtained, thereby improving the flexibility of obtaining posture information.
[0078] Method II
[0079] Optionally, in an embodiment of the present application, before the above step 201a, the control method of the handheld controller light source provided in the embodiment of the present application may further include the following steps A and B; then the above step 201b may be specifically implemented through the following step 201b2.
[0080] Step A: The head-mounted device obtains 6DOF information of the head-mounted device.
[0081] Step B: The head-mounted device calculates an initial deviation value between the posture of the head-mounted device and the posture of the hand-held controller based on the 6DOF information and the posture angle of the hand-held controller.
[0082] Optionally, in an embodiment of the present application, the above-mentioned attitude angle can be calculated based on data obtained by the IMU and magnetometer of the above-mentioned head-mounted device.
[0083] Optionally, in an embodiment of the present application, after calculating the initial deviation value, the head-mounted device can be aligned with the posture of each subsequent time frame.
[0084] Step 201b2: The head-mounted device obtains second posture information of the head-mounted device based on the first posture information and the initial deviation value.
[0085] In an embodiment of the present application, since the head-mounted device can first calculate the initial deviation value between the posture of the head-mounted device and the posture of the hand-held controller based on the acquired 6DOF information of the head-mounted device and the posture angle of the hand-held controller, and then obtain the second posture information based on the first posture information and the initial deviation value, it is not necessary to obtain the second posture information through the magnetometer of the head-mounted device, thereby improving the flexibility of obtaining the second posture information.
[0086] Step 201c: 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 based on the first pose information and the second pose information.
[0087] Optionally, in the embodiment of the present application, the normal direction is the positive normal direction, that is, the direction from the inside of the light source to the outside (that is, the camera side). It can be understood that after obtaining the first pose information and the second pose information, the head-mounted device can determine the position of the handheld controller and the head-mounted device in three-dimensional space, and then calculate the angle between the normal direction of each light source in the handheld controller and the shooting direction of the camera.
[0088] Step 201d: The head-mounted device determines the light source with a corresponding angle greater than or equal to 90 degrees among the N light sources as the first light source, and determines the light source with a corresponding angle less than 90 degrees among the N light sources as the second light source.
[0089] It can be understood that the corresponding image of the light source with an angle greater than or equal to 90 degrees can be captured by the above-mentioned camera; the corresponding image of the light source with an angle less than 90 degrees cannot be captured by the above-mentioned camera.
[0090] The following is an illustrative description of the method for controlling the light source of the handheld controller provided in the embodiment of the present application with reference to the accompanying drawings.
[0091] Exemplarily, as shown in Figure 3, after obtaining the above-mentioned first posture information and second posture information, the head-mounted device can calculate the angle between the normal direction of the light source 31 in the light source of the handheld controller and the shooting direction of the camera 32 of the head-mounted device. If the angle is greater than or equal to 90 degrees, the light source 31 is determined as the first light source; if the angle is less than 90 degrees, the light source 31 is determined as the second light source.
[0092] In an embodiment of the present application, since the head-mounted device can calculate the angle between the normal direction of each light source in the handheld controller and the shooting direction of the above-mentioned camera based on the acquired posture information of the handheld controller and the posture information of the head-mounted device, and determine the light source with a corresponding angle greater than or equal to 90 degrees as the first light source, and determine the light source with a corresponding angle less than 90 degrees as the second light source, the accuracy of determining the first light source and the second light source can be improved.
[0093] Step 202: The head mounted device sends a control signal to the handheld controller.
[0094] 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.
[0095] Optionally, in an embodiment of the present application, the head-mounted device may send the control signal to the handheld controller through wireless communication between the head-mounted device and the handheld controller.
[0096] In the method for controlling the light source of a handheld controller provided in an embodiment of the present application, since the head-mounted device can send a control signal to the handheld controller associated with it to control the light source of the handheld controller, only the first light source within the shooting range of the camera of the head-mounted device is in a light-emitting state. Therefore, in the process of obtaining the six-degree-of-freedom posture of the handheld controller, it is not necessary for all the light sources of the handheld controller to be in a light-emitting state each time the camera is exposed, thereby reducing the power consumption of the handheld controller.
[0097] An embodiment of the present application also provides a control system for a handheld controller light source, the system including a handheld controller and a head-mounted device associated with the handheld controller.
[0098] Among them, 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 contained in the above-mentioned handheld controller, where N is a positive integer.
[0099] The head-mounted device may also be used to send a control signal to the handheld controller, where 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.
[0100] The handheld controller may be configured to, upon receiving the control signal, 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 based on the control signal.
[0101] Optionally, in an embodiment of the present application, the above-mentioned head-mounted device can be specifically used to obtain the first posture information of the above-mentioned handheld controller; and obtain the second posture information of the head-mounted device; and based on the first posture information and the second posture information, calculate the angle between the normal direction of each of the above-mentioned N light sources and the shooting direction of the above-mentioned camera; and determine the light source among the N light sources whose corresponding angle is greater than or equal to 90 degrees as the above-mentioned first light source, and determine the light source among the N light sources whose corresponding angle is less than 90 degrees as the above-mentioned second light source.
[0102] Optionally, in an embodiment of the present application, the above-mentioned head-mounted device can be specifically used to align the posture reference coordinate system of the above-mentioned handheld controller with the posture reference coordinate system of the head-mounted device; and obtain the third posture information of the handheld controller in the previous time frame; and based on the third posture information, obtain the predicted first posture information of the handheld controller in the current time frame.
[0103] Optionally, in an embodiment of the present application, the above-mentioned head-mounted device can be specifically used to obtain the first posture information of the above-mentioned handheld controller in the relative reference coordinate system between the handheld controller and the head-mounted device; and obtain the second posture information of the head-mounted device in the relative reference coordinate system.
[0104] Optionally, in an embodiment of the present application, the head-mounted device may be further configured to obtain 6DOF information of the head-mounted device before obtaining the first pose information of the handheld controller; and based on the 6DOF information and the pose angle of the handheld controller, calculate an initial deviation between the pose of the head-mounted device and the pose of the handheld controller. The head-mounted device may be specifically configured to obtain second pose information of the head-mounted device based on the first pose information and the initial deviation.
[0105] Optionally, in an embodiment of the present application, the head-mounted device may be specifically used to obtain the posture angle of the handheld controller; and based on the posture angle, obtain the first posture information of the handheld controller.
[0106] For the specific description of the embodiments of the present application and the technical effects that can be achieved by each device, please refer to the relevant description in the above-mentioned handheld controller light source control method embodiment. In order to avoid repetition, they will not be repeated here.
[0107] In the control system of the handheld controller light source provided in the embodiment of the present application, since the head-mounted device can send a control signal to the handheld controller associated with it to control the light source of the handheld controller, only the first light source within the shooting range of the camera of the head-mounted device is in a light-emitting state; and the handheld controller can, after receiving the control signal, control the first light source to be in a light-emitting state based on the control signal, and control the second light source of the handheld controller that is outside the shooting range to be in a non-light-emitting state; therefore, in the process of obtaining the six-degree-of-freedom posture of the handheld controller, it is not necessary for all the light sources of the handheld controller to be in a light-emitting state each time the camera is exposed, thereby reducing the power consumption of the handheld controller.
[0108] The control method for a handheld controller light source provided in the embodiment of the present application can be executed by a control device for a handheld controller light source. In the embodiment of the present application, the control device for a handheld controller light source is used as an example to illustrate the control method for a handheld controller light source provided in the embodiment of the present application.
[0109] An embodiment of the present application provides a control device for a light source of a handheld controller, which is associated with the handheld controller. As shown in FIG4 , the control device 40 for the light source of the handheld controller includes a determination module 41 and a transmission module 42. The determination module 41 can be used to determine, from among N light sources contained in the handheld controller, a first light source within the camera's shooting range and a second light source outside the camera's shooting range, where N is a positive integer. The transmission module 42 can be used to send a control signal to the handheld controller, which is used to control the first light source to be in an emitting state and the second light source to be in an emitting state.
[0110] In one possible implementation, the above-mentioned determination module 41 can be specifically used to obtain the first posture information of the above-mentioned handheld controller; and obtain the second posture information of the above-mentioned device; and based on the first posture information and the second posture information, calculate the angle between the normal direction of each of the above-mentioned N light sources and the shooting direction of the above-mentioned camera; and determine the light source among the N light sources whose corresponding angle is greater than or equal to 90 degrees as the above-mentioned first light source, and determine the light source among the N light sources whose corresponding angle is less than 90 degrees as the above-mentioned second light source.
[0111] In one possible implementation, the above-mentioned determination module 41 can be specifically used to align the posture reference coordinate system of the above-mentioned handheld controller with the posture reference coordinate system of the above-mentioned device; and obtain the third posture information of the handheld controller in the previous time frame; and based on the third posture information, obtain the predicted first posture information of the handheld controller in the current time frame.
[0112] In one possible implementation, the determination module 41 may be specifically configured to: obtain first posture information of the handheld controller in a relative reference coordinate system between the handheld controller and the device; and obtain second posture information of the device in the relative reference coordinate system.
[0113] In one possible implementation, the device may further include an acquisition module and a calculation module. The acquisition module may be configured to acquire 6DOF information of the device before the determination module 41 acquires the first pose information of the handheld controller. The calculation module may be configured to calculate an initial deviation between the pose of the device and the pose of the handheld controller based on the 6DOF information acquired by the acquisition module and the pose angle of the handheld controller. The determination module 41 may specifically be configured to acquire second pose information of the device based on the first pose information and the initial deviation.
[0114] In a possible implementation, the determination module 41 may be specifically configured to obtain the posture angle of the handheld controller; and determine the first posture information of the handheld controller based on the posture angle.
[0115] In the control device for the light source of a handheld controller provided in an embodiment of the present application, since the control device for the light source of the handheld controller can send a control signal to the handheld controller associated therewith to control the light source of the handheld controller, only the first light source within the shooting range of the camera of the device is in a light-emitting state, therefore in the process of obtaining the six-degree-of-freedom posture of the handheld controller, it is not necessary for all the light sources of the handheld controller to be in a light-emitting state each time the camera is exposed, thereby reducing the power consumption of the handheld controller.
[0116] The control device of the light source of the handheld controller in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0117] The control device of the handheld controller light source in the embodiment of the present application can be a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0118] The control device for the light source of the handheld controller provided in the embodiment of the present application can implement each process implemented in the method embodiments of Figures 2 to 3. To avoid repetition, they are not described here.
[0119] Optionally, as shown in Figure 5, an embodiment of the present application also provides a head-mounted device 500, including a processor 501 and a memory 502, and the memory 502 stores a program or instruction that can be run on the processor 501. When the program or instruction is executed by the processor 501, the various steps of the above-mentioned handheld controller light source control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0120] FIG6 is a schematic diagram of the hardware structure of a head-mounted device implementing an embodiment of the present application.
[0121] The head mounted device 1000 includes but is not limited to components such as a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
[0122] Those skilled in the art will appreciate that the head-mounted device 1000 may also include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 1010 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The structure of the head-mounted device shown in FIG6 does not limit the head-mounted device. The head-mounted device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be further described here.
[0123] The head-mounted device 1000 is associated with a handheld controller, and the processor 1010 can be configured to determine, from N light sources included in the handheld controller, a first light source within the camera's shooting range of the head-mounted device 1000 and a second light source outside the shooting range, where N is a positive integer. The radio frequency unit 1001 can be configured to send a control signal to the handheld controller, the control signal being configured to control the first light source to be in an emitting state and the second light source to be in an emitting state.
[0124] In one possible implementation, the processor 1010 can be specifically used to obtain the first posture information of the handheld controller; and obtain the second posture information of the head-mounted device 1000; and based on the first posture information and the second posture information, calculate the angle between the normal direction of each of the N light sources and the shooting direction of the camera; and determine the light source among the N light sources whose corresponding angle is greater than or equal to 90 degrees as the first light source, and determine the light source among the N light sources whose corresponding angle is less than 90 degrees as the second light source.
[0125] In one possible implementation, the processor 1010 can be specifically used to align the posture reference coordinate system of the handheld controller with the posture reference coordinate system of the head-mounted device 1000; and obtain the third posture information of the handheld controller in the previous time frame; and based on the third posture information, obtain the predicted first posture information of the handheld controller in the current time frame.
[0126] In one possible implementation, the processor 1010 may be specifically used to: obtain the first posture information of the handheld controller in a relative reference coordinate system between the handheld controller and the head-mounted device 1000; and obtain the second posture information of the head-mounted device 1000 in the relative reference coordinate system.
[0127] In one possible implementation, the processor 1010 may be further configured to obtain 6DOF information of the head-mounted device 1000 before obtaining the first pose information of the handheld controller; and based on the obtained 6DOF information and the pose angle of the handheld controller, calculate an initial deviation between the pose of the head-mounted device 1000 and the pose of the handheld controller. Specifically, the processor 1010 may be configured to obtain second pose information of the head-mounted device 1000 based on the first pose information and the initial deviation.
[0128] In a possible implementation, the processor 1010 may be specifically configured to obtain the attitude angle of the handheld controller; and based on the attitude angle, determine the first position information of the handheld controller.
[0129] 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 handheld controller associated therewith to control the light source of the handheld controller, only the first light source within the shooting range of the camera of the head-mounted device is in a light-emitting state. Therefore, in the process of obtaining the six-degree-of-freedom posture of the handheld controller, it is not necessary for all the light sources of the handheld controller to be in a light-emitting state each time the camera is exposed, thereby reducing the power consumption of the handheld controller.
[0130] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described here.
[0131] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0132] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0133] Processor 1010 may include one or more processing units. Optionally, processor 1010 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1010.
[0134] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the control method embodiment of the handheld controller light source as described above is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0135] The processor is the processor in the head mounted device described in the above embodiment. 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.
[0136] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the handheld controller light source as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0137] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0138] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the handheld controller light source as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0139] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted 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 the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0140] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0141] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A method for controlling a light source of a handheld controller, applied to a head mounted device associated with the handheld controller, the method comprising: Determine, from N light sources included in the handheld controller, a first light source that is within a shooting range of a camera of the head mounted device, and a second light source that is outside the shooting range, where N is a positive integer; A control signal is sent to the handheld controller, wherein 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.
2. The method according to claim 1, wherein: The step of determining, from the N light sources included in the handheld controller, a first light source within a shooting range of a camera of the head mounted device and a second light source outside the shooting range comprises: Acquire the first position information of the handheld controller; Acquire second posture information of the head mounted device; Based on the first posture information and the second posture information, calculating the angle between the normal direction of each of the N light sources and the shooting direction of the camera; A light source whose corresponding angle is greater than or equal to 90 degrees among the N light sources is determined as the first light source, and a light source whose corresponding angle is less than 90 degrees among the N light sources is determined as the second light source.
3. The method according to claim 2, wherein: The obtaining of the first position information of the handheld controller comprises: Aligning a posture reference coordinate system of the handheld controller with a posture reference coordinate system of the head mounted device; Obtaining third posture information of the handheld controller in the previous time frame; Based on the third posture information, the predicted first posture information of the handheld controller in the current time frame is obtained.
4. The method according to claim 2, wherein: The obtaining of the first position information of the handheld controller comprises: Acquire the first position information of the handheld controller in a relative reference coordinate system between the handheld controller and the head mounted device; The obtaining the second posture information of the head mounted device includes: Acquire the second posture information of the head mounted device in the relative reference coordinate system.
5. The method according to claim 2, wherein: Before obtaining the first posture information of the handheld controller, the method further includes: Obtaining 6-degree-of-freedom (DOF) information of the head mounted device; Calculating an initial deviation value between a posture of the head mounted device and a posture of the handheld controller based on the 6DOF information and a posture angle of the handheld controller; The obtaining the second posture information of the head mounted device includes: Based on the first posture information and the initial deviation value, second posture information of the head mounted device is obtained.
6. The method according to claim 2, wherein: The obtaining of the first position information of the handheld controller comprises: Obtaining the attitude angle of the handheld controller; Based on the attitude angle, first position information of the handheld controller is obtained.
7. A control system for a handheld controller light source, the system comprising a handheld controller and a head mounted device associated with the handheld controller; in, The head mounted device is used to determine, from the N light sources included in the handheld controller, a first light source within a shooting range of a camera of the head mounted device and a second light source outside the shooting range, where N is a positive integer; The head mounted device is further used to send a control signal to the handheld controller, wherein 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; The handheld controller 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 based on the control signal when the control signal is received.
8. A control device for a light source of a handheld controller, the device being associated with the handheld controller, the device comprising: Determine module and send module; The determining module is used to determine, from the N light sources included in the handheld controller, a first light source that is within the shooting range of the camera of the device and a second light source that is outside the shooting range, where N is a positive integer; The sending module is used to send a control signal to the handheld controller, and 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.
9. The device according to claim 8, wherein: The determination module is specifically used to obtain the first posture information of the handheld controller; and obtain the second posture information of the device; and based on the first posture information and the second posture information, calculate the angle between the normal direction of each of the N light sources and the shooting direction of the camera; and determine the light source among the N light sources whose corresponding angle is greater than or equal to 90 degrees as the first light source, and determine the light source among the N light sources whose corresponding angle is less than 90 degrees as the second light source.
10. The device according to claim 9, wherein: The determination module is specifically used to align the posture reference coordinate system of the handheld controller with the posture reference coordinate system of the device; and obtain the third posture information of the handheld controller in the previous time frame; and based on the third posture information, obtain the predicted first posture information of the handheld controller in the current time frame.
11. The device according to claim 9, wherein: The determination module is specifically used for: Acquire the first position information of the handheld controller in a relative reference coordinate system between the handheld controller and the device; Acquire the second posture information of the device in the relative reference coordinate system.
12. The device according to claim 9, wherein: The device also includes an acquisition module and a calculation module; The acquisition module is used to acquire the 6DOF information of the device before the determination module acquires the first pose information of the handheld controller; The calculation module is used to calculate an initial deviation value between the posture of the device and the posture of the handheld controller based on the 6DOF information obtained by the acquisition module and the posture angle of the handheld controller; The determination module is specifically used to obtain second posture information of the device based on the first posture information and the initial deviation value.
13. The device according to claim 9, wherein: The determination module is specifically used to obtain the posture angle of the handheld controller; and based on the posture angle, determine the first posture information of the handheld controller.
14. A head mounted device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method for controlling a light source of a handheld controller as described in any one of claims 1 to 6 are implemented.
15. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the method for controlling a light source of a handheld controller according to any one of claims 1 to 6.
16. A computer program product, wherein the computer program product is executed by at least one processor to implement the method for controlling a light source of a handheld controller according to any one of claims 1 to 6.
17. An electronic device, comprising: the electronic device being configured to execute the method for controlling a light source of a handheld controller according to any one of claims 1-6.
18. A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the control method of a handheld controller light source according to any one of claims 1 to 6.
Citation Information
Patent Citations
Spatial positioning method and system and head-mounted equipment
CN111752386A
Image acquisition method, handle device, head-mounted device and head-mounted system
CN112437213A
Head-mounted all-in-one machine system and 6DoF tracking method and device thereof
CN112527102A
Head-mounted display device and head-mounted display system
CN113382228A
Control method, system, device and equipment for light source of handheld controller and medium
CN116367394A
