Gravity Estimation and Bundle Adjustment for Visual Inertial Odometry

Wearable head devices with IMUs and visual inertial odometry enhance MR systems by accurately aligning virtual content with the real world, addressing immersion and computational challenges in VR and AR systems.

JP7565349B2Active Publication Date: 2024-10-10MAGIC LEAP INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022522895
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-09-09
Filing Date
2020-10-16
Publication Date
2024-10-10
Estimated Expiration
2040-10-16

AI Technical Summary

Technical Problem

Existing virtual reality (VR) and augmented reality (AR) systems face challenges in creating immersive and realistic environments due to motion sickness, disorientation, computational burden, and the inability to integrate real-world sensory data, while mixed reality (MR) systems struggle with accurately overlaying virtual content on real environments without conflicts.

Method used

The use of wearable head devices equipped with sensors and inertial measurement units (IMUs) for visual inertial odometry and bundle adjustment, which estimate the position and orientation of the device, reduce reprojection errors, and present virtual content aligned with the real world through gravity estimation and SLAM techniques.

Benefits of technology

This approach enhances the accuracy and efficiency of MR systems by minimizing errors and latency, allowing for seamless integration of virtual content with real environments, reducing motion sickness, and improving user immersion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565349000011
    Figure 0007565349000011
  • Figure 0007565349000012
    Figure 0007565349000012
  • Figure 0007565349000013
    Figure 0007565349000013
Patent Text Reader

Abstract

Examples of the present disclosure describe systems and methods for presenting virtual content on a wearable head device. In some embodiments, a state of the wearable head device is determined by minimizing a total error based on a reduced weight associated with a reprojection error. A view reflecting the determined state of the wearable head device is presented via a display of the wearable head device. In some embodiments, the wearable head device calculates a first pre-integral term and a second pre-integral term based on image data received via a sensor of the wearable head device and inertial data received via a first IMU and a second IMU of the wearable head device.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims the benefit of U.S. Provisional Application No. 62 / 923,317, filed October 18, 2019, and U.S. Provisional Application No. 63 / 076,251, filed September 9, 2020, the entire disclosures of which are incorporated herein by reference for all purposes.

[0002] FIELD OF THE DISCLOSURE This disclosure relates generally to systems and methods for mapping and displaying visual information, and more particularly to systems and methods for mapping and displaying visual information within a mixed reality environment. [Background technology]

[0003] Virtual environments are ubiquitous in computing environments, finding use in video games (where a virtual environment may represent a game world), maps (where a virtual environment may represent a terrain to be navigated), simulations (where a virtual environment may simulate a real environment), digital storytelling (where virtual characters may interact with one another within a virtual environment), and many other applications. Modern computer users are generally comfortable perceiving and interacting with virtual environments. However, a user's experience with a virtual environment may be limited by the technology for presenting the virtual environment. For example, conventional displays (e.g., 2D display screens) and audio systems (e.g., fixed speakers) may be incapable of realizing a virtual environment in a way that creates a compelling, realistic, and immersive experience.

[0004] Virtual reality ("VR"), augmented reality ("AR"), mixed reality ("MR"), and related technologies (collectively, "XR") share the ability to present a user of an XR system with sensory information corresponding to a virtual environment represented by data in a computer system. This disclosure considers specificity between VR, AR, and MR systems (although some systems may be categorized as VR in one aspect (e.g., visual aspects) and simultaneously categorized as AR or MR in another aspect (e.g., audio aspects). As used herein, a VR system presents a virtual environment that replaces the user's real environment in at least one aspect. For example, a VR system may present a user with a view of the virtual environment while simultaneously obscuring that view of the real environment, such as with a light-blocking head-mounted display. Similarly, a VR system may present a user with audio corresponding to the virtual environment while simultaneously blocking (attenuating) the audio from the real environment.

[0005] VR systems may suffer from various shortcomings that result from replacing the user's real environment with a virtual environment. One shortcoming is motion sickness, which can occur when the user's field of view in the virtual environment no longer corresponds to the state of their inner ear, which detects their balance and orientation in the real (but not the virtual) environment. Similarly, a user may suffer disorientation in a VR environment if their own body and limbs (the view on which the user relies to feel "grounded" in the real environment) are not directly visible. Another shortcoming is the computational burden (e.g., memory, processing power) imposed on a VR system that must present a full 3D virtual environment, especially in real-time applications that seek to immerse the user in the virtual environment. Similarly, such an environment may need to reach a very high level of realism to be considered immersive, since users tend to be sensitive to even slight imperfections in the virtual environment, any of which can destroy the user's immersion in the virtual environment. Yet another disadvantage of VR systems is that such applications of the systems cannot take advantage of the wide range of sensory data in the real environment, such as the various sights and sounds experienced in the real world. A related disadvantage is that VR systems may struggle to create shared environments in which multiple users can interact, because users who share a physical space in the real environment may not be able to see or interact with each other directly in the virtual environment.

[0006] As used herein, an AR system presents a virtual environment that overlaps or overlays the real environment in at least one aspect. For example, an AR system may present a user with a view of the virtual environment overlaid on the user's view of the real environment, such as with a see-through head-mounted display that presents a displayed image while allowing light to pass through the display into the user's eyes. Similarly, an AR system may present a user with audio corresponding to the virtual environment while simultaneously mixing in audio from the real environment. Similarly, as used herein, an MR system may present a virtual environment that overlaps or overlays the real environment in at least one aspect, similar to an AR system, and additionally allow the virtual environment in the MR system to interact with the real environment in at least one aspect. For example, a virtual character in the virtual environment may flip a light switch in the real environment, causing a corresponding light bulb in the real environment to turn on or off. As another example, the virtual character may react to an audio signal in the real environment (such as with facial expressions). By maintaining the presentation of the real environment, AR and MR systems may avoid some of the aforementioned shortcomings of VR systems. For example, motion sickness in a user is reduced because visual cues from the real environment (including the user's own body) can remain visible and such systems do not need to present the user with a fully realized 3D environment to be immersive. Additionally, AR and MR systems can create new applications that utilize real-world sensory input (e.g., views and sounds of scenery, objects, and other users) to augment that input.

[0007] It can be difficult to present a virtual environment that overlaps or overlays a real environment. For example, blending a virtual environment with a real environment can require a complex and complete understanding of the real environment so that objects in the virtual environment do not conflict with objects in the real environment. Furthermore, it can be desirable to maintain persistence in the virtual environment that corresponds to consistency in the real environment. For example, it can be desirable for a virtual object displayed on a physical table to appear in the same place even if the user looks away, moves around, and then looks back at the physical table. To achieve this type of immersion, it can be beneficial to develop accurate and precise estimates of where objects exist in the real world and where the user exists in the real world. Summary of the Invention [Means for solving the problem]

[0008] Examples of the present disclosure describe systems and methods for presenting virtual content on a wearable head device. For example, systems and methods for performing visual inertial odometry with gravity estimation and bundle adjustment are disclosed. In some embodiments, first sensor data indicative of a first feature at a first position is received via a sensor of the wearable head device. Second sensor data indicative of the first feature at a second position is received via a sensor. Inertial measurements are received via an inertial measurement unit on the wearable head device. A velocity is determined based on the inertial measurements. A third position of the first feature is estimated based on the first position and the velocity. A reprojection error is determined based on the third position and the second position. A weight associated with the reprojection error is reduced. A state of the wearable head device is determined. The step of determining the state includes minimizing a total error, the total error being based on the reduced weight associated with the reprojection error. A view reflecting the determined state of the wearable head device is presented via a display of the wearable head device.

[0009] In some embodiments, the wearable head device receives image data via a sensor of the wearable head device. The wearable head device receives first and second inertial data via a first inertial measurement unit (IMU) and a second IMU, respectively. The wearable head device calculates a first pre-integral term and a second pre-integral term based on the image data and the inertial data. The wearable head device estimates a position of the device based on the first and second pre-integral terms. Based on the position of the device, the wearable head device presents virtual content. The present invention provides, for example, the following: (Item 1) 1. A method comprising: receiving first sensor data indicative of a first characteristic at a first location via a sensor in a wearable head device; receiving, via the sensor, second sensor data indicative of the first characteristic at a second location; receiving inertial measurements via an inertial measurement unit (IMU) on the wearable head device; determining a velocity based on the inertial measurements; estimating a third position of the first feature based on the first position and the velocity; and determining a reprojection error based on the third position and the second position; and reducing a weight associated with the reprojection error; and determining a state of the wearable head device, the determining the state comprising minimizing a total error, the total error being based on the reduced weight associated with the reprojection error; presenting, via a display of the wearable head device, a view reflecting the determined state of the wearable head device; A method comprising: (Item 2) Item 14. The method of item 1, wherein a weight associated with the reprojection error is reduced based on a quantity of features identified. (Item 3) 2. The method of claim 1, wherein reducing a weight associated with the reprojection error comprises determining whether the reprojection error comprises a statistical miscorrespondence. (Item 4) 2. The method of claim 1, wherein the total error is further based on an error from the inertial measurement unit. (Item 5) determining whether a movement of the wearable head device is below a threshold; updating an information matrix according to a determination that the movement of the wearable head device does not fall below the threshold; and not updating the information matrix in response to a determination that the wearable head device is below the threshold. The method of claim 1, further comprising: (Item 6) 2. The method of claim 1, further comprising pre-integrating the inertial measurements. (Item 7) receiving a second inertial measurement via a second IMU on the wearable head device; pre-integrating the second inertial measurement; The method according to item 6, further comprising: (Item 8) the first sensor data is received at a first time; The pre-integrated inertial measurements are associated with a movement of the wearable head device between the first time and a second time, the method further comprising: determining whether a time interval between the first time and the second time exceeds a maximum time interval; using the pre-integrated inertial measurements pursuant to a determination that the time interval does not exceed the maximum time interval; pursuant to a determination that the time interval exceeds the maximum time interval, not using the pre-integrated inertial measurements. The method according to item 6, comprising: (Item 9) 2. The method of claim 1, further comprising applying a correction to the state of the wearable head device based on the updated state of the wearable head device. (Item 10) 1. A system comprising: A sensor of a wearable head device; an inertial measurement unit of the wearable head device; a display of the wearable head device; and one or more processors, said one or more processors comprising: receiving first sensor data indicative of a first characteristic at a first location via a sensor of the wearable head device; receiving, via the sensor, second sensor data indicative of the first characteristic at a second location; receiving inertial measurements via an inertial measurement unit on the wearable head device; determining a velocity based on the inertial measurements; estimating a third position of the first feature based on the first position and the velocity; and determining a reprojection error based on the third position and the second position; and reducing a weight associated with the reprojection error; and determining a state of the wearable head device, the determining the state comprising minimizing a total error, the total error being based on the reduced weight associated with the reprojection error; presenting, via a display of the wearable head device, a view reflecting the determined state of the wearable head device; one or more processors configured to execute a method comprising: A system comprising: (Item 11) Item 11. The system of item 10, wherein a weight associated with the reprojection error is reduced based on a quantity of features identified. (Item 12) Item 11. The system of item 10, wherein reducing a weight associated with the reprojection error includes determining whether the reprojection error comprises a statistical miscorrespondence. (Item 13) Item 11. The system of item 10, wherein the total error is further based on an error from the inertial measurement unit. (Item 14) The method further comprises: determining whether a movement of the wearable head device is below a threshold; updating an information matrix according to a determination that the movement of the wearable head device does not fall below the threshold; and not updating the information matrix in response to a determination that the wearable head device is below the threshold. Item 11. The system according to item 10, comprising: (Item 15) 11. The system of claim 10, wherein the method further comprises pre-integrating the inertial measurements. (Item 16) The method further comprises: receiving a second inertial measurement via a second IMU on the wearable head device; pre-integrating the second inertial measurement; Item 16. The system according to item 15, comprising: (Item 17) the first sensor data is received at a first time; the pre-integrated inertial measurements are associated with a movement of the wearable head device between the first time and a second time; The method further comprises: determining whether a time interval between the first time and the second time exceeds a maximum time interval; using the pre-integrated inertial measurements pursuant to a determination that the time interval does not exceed the maximum time interval; pursuant to a determination that the time interval exceeds the maximum time interval, not using the pre-integrated inertial measurements. Item 16. The system according to item 15, comprising: (Item 18) Item 11. The system of item 10, wherein the method further comprises applying a correction to the state based on an updated state of the wearable head device. (Item 19) A non-transitory computer readable medium having instructions stored thereon that, when executed by one or more processors, cause the one or more processors to: receiving first sensor data indicative of a first characteristic at a first location via a sensor in a wearable head device; receiving, via the sensor, second sensor data indicative of the first characteristic at a second location; receiving inertial measurements via an inertial measurement unit on the wearable head device; determining a velocity based on the inertial measurements; estimating a third position of the first feature based on the first position and the velocity; and determining a reprojection error based on the third position and the second position; and reducing a weight associated with the reprojection error; and determining a state of the wearable head device, the determining the state comprising minimizing a total error, the total error being based on the reduced weight associated with the reprojection error; presenting, via a display of the wearable head device, a view reflecting the determined state of the wearable head device; A non-transitory computer readable medium for carrying out a method comprising: (Item 20) 21. The non-transitory computer-readable medium of claim 20, wherein the method further comprises pre-integrating the inertial measurements. [Brief description of the drawings]

[0010] [Figure 1A] 1A-1C illustrate an example mixed reality environment in accordance with one or more embodiments of the present disclosure. [Figure 1B]1A-1C illustrate an example mixed reality environment in accordance with one or more embodiments of the present disclosure. [Figure 1C] 1A-1C illustrate an example mixed reality environment in accordance with one or more embodiments of the present disclosure. [Figure 2A] 2A-2D illustrate components of an example mixed reality system in accordance with one or more embodiments of the present disclosure. [Figure 2B] 2A-2D illustrate components of an example mixed reality system in accordance with one or more embodiments of the present disclosure. [Figure 2C] 2A-2D illustrate components of an example mixed reality system in accordance with one or more embodiments of the present disclosure. [Figure 2D] 2A-2D illustrate components of an example mixed reality system in accordance with one or more embodiments of the present disclosure.

[0011] [Figure 3A] FIG. 3A illustrates an example mixed reality handheld controller in accordance with one or more embodiments of the present disclosure.

[0012] [Figure 3B] FIG. 3B illustrates an exemplary auxiliary unit according to one or more embodiments of the present disclosure.

[0013] [Figure 4] FIG. 4 illustrates an example functional block diagram for an example mixed reality system in accordance with one or more embodiments of the present disclosure.

[0014] [Diagram 5] FIG. 5 illustrates an example pipeline for visual inertial odometry, according to one or more embodiments of the present disclosure.

[0015] [Figure 6]6A-6B illustrate example graphs for visual inertial odometry, according to one or more embodiments of the present disclosure.

[0016] [Figure 7A] 7A-7B illustrate an example decision process for performing bundle adjustment in accordance with one or more embodiments of the present disclosure. [Figure 7B] 7A-7B illustrate an example decision process for performing bundle adjustment in accordance with one or more embodiments of the present disclosure.

[0017] [Figure 8] FIG. 8 illustrates an example graph for standalone gravity estimation in accordance with one or more embodiments of the present disclosure.

[0018] [Figure 9] FIG. 9 illustrates an example IMU configuration according to one or more embodiments of the present disclosure.

[0019] [Figure 10] FIG. 10 illustrates an example IMU configuration according to one or more embodiments of the present disclosure.

[0020] [Figure 11] FIG. 11 illustrates an example graphical representation of SLAM calculations in accordance with one or more embodiments of the present disclosure.

[0021] [Figure 12] FIG. 12 illustrates an example process for presenting virtual content according to one or more embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0022] Detailed Description In the following description of the embodiments, reference is made to the accompanying drawings which form a part hereof, and in which is shown, by way of illustration, specific embodiments which may be practiced. It is to be understood that other embodiments may be used and structural changes may be made without departing from the scope of the disclosed embodiments.

[0023] Mixed Reality Environment

[0024] Like all people, users of a mixed reality system exist in a real environment, i.e., the three-dimensional portion of the "real world" and all of its content are perceivable by the user. For example, the user perceives the real environment using normal human senses, i.e., sight, hearing, touch, taste, and smell, and interacts with the real environment by moving his or her body within the real environment. Locations within the real environment can be described as coordinates in a coordinate space. For example, coordinates can include latitude, longitude, and altitude relative to sea level, distance in three orthogonal dimensions from a reference point, or other suitable values. Similarly, a vector can describe a quantity, having a direction and magnitude in a coordinate space.

[0025] A computing device may maintain a representation of a virtual environment, for example, in a memory associated with the device. As used herein, a virtual environment is a computed representation of a three-dimensional space. A virtual environment may include representations of any objects, actions, signals, parameters, coordinates, vectors, or other properties associated with that space. In some examples, a circuit (e.g., a processor) of a computing device may maintain and update a state of the virtual environment. That is, the processor may determine a state of the virtual environment at a second time t1 based on data associated with the virtual environment and / or input provided by a user at a first time t0. For example, if an object in the virtual environment is located at a first coordinate at time t0 and has certain programmed physical parameters (e.g., mass, coefficient of friction), and input received from a user indicates that a force should be applied to the object in a certain directional vector, the processor may apply the laws of kinematics and use basic mechanics to determine the location of the object at time t1. The processor may use any suitable information known about the virtual environment and / or any suitable input to determine the state of the virtual environment at time t1. In maintaining and updating the state of the virtual environment, the processor may execute any suitable software, including software related to creating and deleting virtual objects in the virtual environment, software (e.g., scripts) for defining behavior of virtual objects or characters in the virtual environment, software for defining behavior of signals (e.g., audio signals) in the virtual environment, software for creating and updating parameters associated with the virtual environment, software for generating audio signals in the virtual environment, software for handling inputs and outputs, software for implementing network operations, software for applying asset data (e.g., animation data for moving a virtual object over time), or many other possibilities.

[0026] An output device, such as a display or speaker, can present any or all aspects of the virtual environment to the user. For example, the virtual environment may include virtual objects (which may include representations of inanimate objects, people, animals, lights, etc.) that may be presented to the user. The processor can determine a view of the virtual environment (e.g., corresponding to a "camera," with its origin coordinates, viewing axis, and frustum) and render on the display a viewable scene of the virtual environment corresponding to that view. Any suitable rendering technique may be used for this purpose. In some examples, the viewable scene may include only some virtual objects in the virtual environment and exclude certain other virtual objects. Similarly, the virtual environment may include audio aspects that may be presented to the user as one or more audio signals. For example, a virtual object in the virtual environment may generate sounds originating from the object's location coordinates (e.g., a virtual character may speak or create a sound effect), or the virtual environment may be associated with musical cues or ambient sounds that may or may not be associated with a particular location. The processor can determine audio signals corresponding to "listener" coordinates, e.g., audio signals corresponding to the synthesis of sounds in the virtual environment and that are mixed and processed to simulate the audio signals that would be heard by a listener at the listener coordinates, and present the audio signals to the user via one or more speakers.

[0027] Because the virtual environment exists only as a computational structure, the user cannot directly perceive the virtual environment using normal senses. Instead, the user can only indirectly perceive the virtual environment, as presented to the user, for example, by a display, a speaker, a tactile output device, etc. Similarly, the user cannot directly touch, manipulate, or otherwise interact with the virtual environment, but can provide input data via input devices or sensors to a processor, which can use the device or sensor data to update the virtual environment. For example, a camera sensor can provide optical data indicating that the user is attempting to move an object in the virtual environment, and the processor can use that data to cause the object to respond appropriately within the virtual environment.

[0028] A mixed reality system can present a user with a mixed reality environment ("MRE") that combines aspects of real and virtual environments, for example, using a see-through display and / or one or more speakers (which may be incorporated, for example, into a wearable head device). In some embodiments, the one or more speakers may be external to the head-mounted wearable unit. As used herein, an MRE is a simultaneous representation of a real environment and a corresponding virtual environment. In some examples, the corresponding real and virtual environments share a single coordinate space. In some examples, the real coordinate space and the corresponding virtual coordinate space are related to each other by a transformation matrix (or other suitable representation). Thus, a single coordinate (in some examples, together with the transformation matrix) may define a first location in the real environment and also a second corresponding location in the virtual environment, and vice versa.

[0029] In an MRE, a virtual object (e.g., in a virtual environment associated with the MRE) may correspond to a real object (e.g., in a real environment associated with the MRE). For example, if the real environment of the MRE includes a real lamppost (a real object) at a location coordinate, the virtual environment of the MRE may include a virtual lamppost (a virtual object) at a corresponding location coordinate. As used herein, a real object combines with its corresponding virtual object to comprise a "mixed reality object." It is not necessary for a virtual object to perfectly match or match a corresponding real object. In some examples, a virtual object may be a simplified version of a corresponding real object. For example, if the real environment includes a real lamppost, the corresponding virtual object may include a cylinder of approximately the same height and radius as the real lamppost (reflecting that a lamppost may be approximately cylindrical in shape). Simplifying virtual objects in this manner may enable computational efficiencies and simplify calculations to be performed on such virtual objects. Furthermore, in some examples of an MRE, not all real objects in the real environment may be associated with a corresponding virtual object. Similarly, in some embodiments of the MRE, not all virtual objects in the virtual environment may be associated with corresponding real objects, i.e., some virtual objects may exist solely within the virtual environment of the MRE without any real-world counterpart.

[0030] In some embodiments, virtual objects may have characteristics that differ, sometimes significantly, from those of the corresponding real object. For example, a real environment in an MRE may contain a green, two-pronged cactus, a thorny, inanimate object, while the corresponding virtual object in the MRE may have the characteristics of a green, two-armed virtual character with human facial features and a surly attitude. In this embodiment, the virtual object resembles its corresponding real object in some characteristics (color, number of arms) but differs from the real object in other characteristics (facial features, personality). In this way, virtual objects have the potential to represent real objects in creative, abstract, exaggerated, or fictitious ways, or to impart behaviors (e.g., human personality) to otherwise inanimate real objects. In some embodiments, virtual objects may be purely fictitious creations with no real-world counterpart (e.g., virtual monsters in a virtual environment, perhaps in a location that corresponds to a void in the real environment).

[0031] Compared to a VR system that presents a virtual environment to a user while obscuring the real environment, a mixed reality system that presents an MRE offers the advantage that the real environment remains perceptible while the virtual environment is presented. Thus, a user of a mixed reality system can experience and interact with a corresponding virtual environment using visual and audio cues associated with the real environment. As an example, a user of a VR system may struggle to perceive or interact with virtual objects displayed in the virtual environment because the user may not directly perceive or interact with the virtual environment as described herein, whereas a user of an MR system may find it intuitive and natural to interact with virtual objects by seeing, hearing, and touching the corresponding real objects in their own real environment. This level of interaction may enhance the user's sense of immersion, connection, and engagement with the virtual environment. Similarly, by presenting a real environment and a virtual environment simultaneously, a mixed reality system may reduce the negative psychological sensations (e.g., cognitive dissonance) and negative physical sensations (e.g., motion sickness) associated with a VR system. Mixed reality systems also offer many possibilities for applications that can augment or modify our experience of the real world.

[0032] 1A illustrates an exemplary real environment 100 in which a user 110 uses a mixed reality system 112. The mixed reality system 112 may comprise a display (e.g., a see-through display) and one or more speakers, and one or more sensors (e.g., cameras), for example, as described herein. The illustrated real environment 100 comprises a rectangular room 104A in which the user 110 is standing, and real objects 122A (lamp), 124A (table), 126A (sofa), and 128A (painting). The room 104A further comprises a location coordinate 106, which may be considered as the origin of the real environment 100. As shown in FIG. 1A, an environment / world coordinate system 108 (comprising an x-axis 108X, a y-axis 108Y, and a z-axis 108Z), with its origin at point 106 (world coordinates), may define a coordinate space for the real environment 100. In some embodiments, the origin 106 of the environment / world coordinate system 108 may correspond to where the mixed reality system 112 was powered on. In some embodiments, the origin 106 of the environment / world coordinate system 108 may be reset during operation. In some examples, the user 110 may be considered a real object in the real environment 100. Similarly, the body parts (e.g., hands, feet) of the user 110 may be considered real objects in the real environment 100. In some examples, the user / listener / head coordinate system 114 (comprising an x-axis 114X, a y-axis 114Y, and a z-axis 114Z), with its origin at point 115 (e.g., user / listener / head coordinate), may define a coordinate space for the user / listener / head on which the mixed reality system 112 is located. The origin 115 of the user / listener / head coordinate system 114 may be defined relative to one or more components of the mixed reality system 112. For example, the origin 115 of the user / listener / head coordinate system 114 may be defined relative to the display of the mixed reality system 112, such as during an initial calibration of the mixed reality system 112. Matrices (which may include translation matrices and quaternion or other rotation matrices) or other suitable representations can characterize the transformation between the user / listener / head coordinate system 114 space and the environment / world coordinate system 108 space.In some embodiments, the left ear coordinates 116 and right ear coordinates 117 may be defined relative to the origin 115 of the user / listener / head coordinate system 114. Matrices (which may include translation matrices and quaternion matrices or other rotation matrices) or other suitable representations can characterize the transformation between the left ear coordinates 116 and right ear coordinates 117 and the user / listener / head coordinate system 114 space. The user / listener / head coordinate system 114 can simplify the representation of location relative to the user's head or head-mounted device, e.g., relative to the environment / world coordinate system 108. Using simultaneous localization and mapping (SLAM), visual odometry, or other techniques, the transformation between the user coordinate system 114 and the environment coordinate system 108 can be determined and updated in real time.

[0033] 1B illustrates an exemplary virtual environment 130 that corresponds to the real environment 100. The illustrated virtual environment 130 includes a virtual rectangular room 104B that corresponds to the real rectangular room 104A, a virtual object 122B that corresponds to the real object 122A, a virtual object 124B that corresponds to the real object 124A, and a virtual object 126B that corresponds to the real object 126A. Metadata associated with the virtual objects 122B, 124B, 126B may include information derived from the corresponding real objects 122A, 124A, 126A. The virtual environment 130 additionally includes a virtual monster 132, which does not correspond to any real object in the real environment 100. A real object 128A in the real environment 100 does not correspond to any virtual object in the virtual environment 130. A persistent coordinate system 133 (with x-axis 133X, y-axis 133Y, and z-axis 133Z) with its origin at point 134 (persistent coordinate) may define a coordinate space for the virtual content. The origin 134 of the persistent coordinate system 133 may be defined relative to / with respect to one or more real objects, such as real object 126A. A matrix (which may include a translation matrix and a quaternion matrix or other rotation matrix) or other suitable representation may characterize the transformation between the persistent coordinate system 133 space and the environment / world coordinate system 108 space. In some embodiments, virtual objects 122B, 124B, 126B, and 132 may each have its own persistent coordinate point relative to the origin 134 of the persistent coordinate system 133. In some embodiments, there may be multiple persistent coordinate systems, and virtual objects 122B, 124B, 126B, and 132 may each have its own persistent coordinate point relative to one or more persistent coordinate systems.

[0034] 1A and 1B, the environment / world coordinate system 108 defines a shared coordinate space for both the real environment 100 and the virtual environment 130. In the illustrated embodiment, the coordinate space has its origin at point 106. Furthermore, the coordinate space is defined by the same three orthogonal axes (108X, 108Y, 108Z). Thus, a first location in the real environment 100 and a second corresponding location in the virtual environment 130 can be described with respect to the same coordinate space. This simplifies the steps of identifying and displaying corresponding locations in the real and virtual environments, since the same coordinates can be used to identify both locations. However, in some embodiments, the corresponding real and virtual environments need not use a shared coordinate space. For example, in some embodiments (not shown), matrices (which may include translation matrices and quaternion matrices or other rotation matrices) or other suitable representations can characterize the transformation between the real environment coordinate space and the virtual environment coordinate space.

[0035] 1C illustrates an exemplary MRE 150 that simultaneously presents aspects of real environment 100 and virtual environment 130 to user 110 via mixed reality system 112. In the example shown, MRE 150 simultaneously presents to user 110 real objects 122A, 124A, 126A, and 128A from real environment 100 (e.g., via a transparent portion of a display of mixed reality system 112) and virtual objects 122B, 124B, 126B, and 132 from virtual environment 130 (e.g., via a display active display portion of mixed reality system 112). As described herein, origin 106 may act as an origin for a coordinate space corresponding to MRE 150, and coordinate system 108 defines the x-, y-, and z-axes for the coordinate space.

[0036] In the illustrated example, the mixed reality objects comprise corresponding pairs of real and virtual objects (i.e., 122A / 122B, 124A / 124B, 126A / 126B) that occupy corresponding locations in coordinate space 108. In some examples, both real and virtual objects may be visible to user 110 at the same time. This may be desirable in instances where, for example, a virtual object presents information designed to augment the view of the corresponding real object (such as in a museum application where a virtual object presents a missing portion of an ancient damaged statue). In some examples, the virtual objects (122B, 124B, and / or 126B) may be displayed so as to occlude the corresponding real objects (122A, 124A, and / or 126A) (e.g., via active pixelated occlusion using a pixelated occlusion shutter). This may be desirable, for example, in instances where a virtual object acts as a visual replacement for a corresponding real object (such as in interactive storytelling applications where inanimate real objects become "living" characters).

[0037] In some examples, real objects (e.g., 122A, 124A, 126A) may be associated with virtual content or helper data that does not necessarily constitute a virtual object. The virtual content or helper data may facilitate processing or handling of the virtual object within a mixed reality environment. For example, such virtual content may include a two-dimensional representation of the corresponding real object, a custom asset type associated with the corresponding real object, or statistical data associated with the corresponding real object. This information may enable or facilitate calculations involving the real object without incurring unnecessary computational overhead.

[0038] In some examples, the presentations described herein may also incorporate audio aspects. For example, in MRE 150, virtual monster 132 may be associated with one or more audio signals, such as footstep effects, that are generated as the monster walks around MRE 150. As described herein, a processor in mixed reality system 112 may calculate an audio signal corresponding to a mixed and processed combination of all such sounds within MRE 150 and present the audio signal to user 110 via one or more speakers included within mixed reality system 112 and / or one or more external speakers.

[0039] Exemplary Mixed Reality System

[0040] An exemplary mixed reality system 112 can include a wearable head device (e.g., a wearable augmented reality or mixed reality head device) that includes a display (which may include left and right see-through displays, which may be eyepiece displays, and associated components for coupling light from the displays to the user's eyes), left and right speakers (e.g., positioned adjacent the user's left and right ears, respectively), an inertial measurement unit (IMU) (e.g., mounted on a temple arm of the head device), a quadrature coil electromagnetic receiver (e.g., mounted on the left temple piece), left and right cameras (e.g., depth (time of flight) cameras) oriented away from the user, and left and right eye cameras (e.g., for detecting the user's eye movements) oriented toward the user. However, the mixed reality system 112 can incorporate any suitable display technology and any suitable sensors (e.g., optical, infrared, acoustic, LIDAR, EOG, GPS, magnetic). In addition, the mixed reality system 112 may incorporate networking features (e.g., Wi-Fi capabilities) to communicate with other devices and systems, including other mixed reality systems. The mixed reality system 112 may further include a battery (which may be mounted in an auxiliary unit, such as a belt pack designed to be worn around the waist of a user), a processor, and a memory. The wearable head device of the mixed reality system 112 may include a tracking component, such as an IMU or other suitable sensor, configured to output a set of coordinates of the wearable head device relative to the user's environment. In some examples, the tracking component may provide input to the processor to implement simultaneous localization and mapping (SLAM) and / or visual odometry algorithms. In some examples, the mixed reality system 112 may also include a handheld controller 300 and / or an auxiliary unit 320, which may be a wearable belt pack as described further herein.

[0041] 2A-2D illustrate components of an exemplary mixed reality system 200 (which may correspond to the mixed reality system 112) that may be used to present an MRE (which may correspond to the MRE 150) or other virtual environment to a user. FIG. 2A illustrates a perspective view of a wearable head device 2102 included in the exemplary mixed reality system 200. FIG. 2B illustrates a top view of the wearable head device 2102 mounted on a user's head 2202. FIG. 2C illustrates a front view of the wearable head device 2102. FIG. 2D illustrates an edge view of an exemplary eyepiece 2110 of the wearable head device 2102. As shown in FIGS. 2A-2C, the exemplary wearable head device 2102 includes an exemplary left eyepiece (e.g., a left transparent waveguide set eyepiece) 2108 and an exemplary right eyepiece (e.g., a right transparent waveguide set eyepiece) 2110. Each eyepiece 2108 and 2110 can include a transmissive element through which the real environment is visible, and a display element for presenting a display (e.g., via image-wise modulated light) that is superimposed on the real environment. In some embodiments, such a display element can include a surface diffractive optical element for controlling the flow of image-wise modulated light. For example, the left eyepiece 2108 can include a left internal coupling grating set 2112, a left orthogonal pupil expansion (OPE) grating set 2120, and a left exit (output) pupil expansion (EPE) grating set 2122. Similarly, the right eyepiece 2110 can include a right internal coupling grating set 2118, a right OPE grating set 2114, and a right EPE grating set 2116. The image-wise modulated light can be transferred to the user's eye via the internal coupling gratings 2112 and 2118, the OPE 2114 and 2120, and the EPE 2116 and 2122. Each internal coupling grating set 2112, 2118 can be configured to deflect light towards its corresponding OPE grating set 2120, 2114. Each OPE grating set 2120, 2114 can be designed to progressively deflect light downward towards its associated EPE 2122, 2116, thereby extending the exit pupil formed horizontally.Each EPE 2122, 2116 can be configured to progressively redirect at least a portion of the light received from its corresponding OPE grating set 2120, 2114 outwardly to a user eyebox location (not shown), defined behind the eyepieces 2108, 2110, to vertically extend an exit pupil formed in the eyebox. Alternatively, instead of the internal coupling grating sets 2112 and 2118, the OPE grating sets 2114 and 2120, and the EPE grating sets 2116 and 2122, the eyepieces 2108 and 2110 can include gratings and / or other arrangements of refractive and reflective features to control the coupling of the image-wise modulated light into the user's eye.

[0042] In some embodiments, the wearable head device 2102 can include a left temple arm 2130 and a right temple arm 2132, with the left temple arm 2130 including a left speaker 2134 and the right temple arm 2132 including a right speaker 2136. A quadrature coil electromagnetic receiver 2138 can be located in the left temple piece or another suitable location in the wearable head unit 2102. An inertial measurement unit (IMU) 2140 can be located in the right temple arm 2132 or another suitable location in the wearable head device 2102. The wearable head device 2102 can also include a left depth (e.g., time-of-flight) camera 2142 and a right depth camera 2144. The depth cameras 2142, 2144 can be preferably oriented in different directions so that both cover a wider field of view.

[0043] 2A-2D, a left source of image-wise modulated light 2124 can be optically coupled into the left eyepiece 2108 through a left internal coupling grating set 2112, and a right source of image-wise modulated light 2126 can be optically coupled into the right eyepiece 2110 through a right internal coupling grating set 2118. The source of image-wise modulated light 2124, 2126 can include, for example, a fiber optic scanner, a projector including an electronic light modulator such as a digital light processing (DLP) chip or a liquid crystal on silicon (LCoS) modulator, or an emissive display such as a micro light emitting diode (μLED) or micro organic light emitting diode (μOLED) panel that is coupled into the internal coupling grating sets 2112, 2118 using one or more lenses per side. The input coupling grating sets 2112, 2118 can deflect light from the source of image-wise modulated light 2124, 2126 to an angle above the critical angle for total internal reflection (TIR) ​​for the eyepieces 2108, 2110. The OPE grating sets 2114, 2120 progressively deflect the propagating light downwards by TIR towards the EPE grating sets 2116, 2122. The EPE grating sets 2116, 2122 progressively couple the light towards the user's face, including the pupils of the user's eyes.

[0044] In some examples, as shown in FIG. 2D , the left eyepiece 2108 and the right eyepiece 2110 each include multiple waveguides 2402. For example, each eyepiece 2108, 2110 can include multiple individual waveguides, each dedicated to a separate color channel (e.g., red, blue, and green). In some examples, each eyepiece 2108, 2110 can include multiple sets of such waveguides, each set configured to impart a different wavefront curvature to the emitted light. The wavefront curvature may be convex with respect to the user's eye, for example, to present a virtual object located at a distance in front of the user (e.g., a distance corresponding to the inverse of the wavefront curvature). In some examples, the EPE grating sets 2116, 2122 can include curved grating grooves to provide a convex wavefront curvature by modifying the Poynting vector of the light exiting across each EPE.

[0045] In some examples, stereoscopically accommodated left and right eye images can be presented to the user through light modulators 2124, 2126 and eyepieces 2108, 2110 for each image to create the perception that the displayed content is three-dimensional. The perceived realism of the presentation of three-dimensional virtual objects can be enhanced by selecting the waveguides (and thus the corresponding wavefront curvatures) such that the virtual objects are displayed at distances that approximate the distances shown by the stereoscopic left and right images. The technique can also reduce motion sickness suffered by some users, which can be caused by differences between the depth perception cues provided by the stereoscopic left and right eye images and the automatic accommodation (e.g., object distance-dependent focus) of the human eye.

[0046] FIG. 2D illustrates an edge view from the top of the right eyepiece 2110 of the exemplary wearable head device 2102. As shown in FIG. 2D, the plurality of waveguides 2402 can include a first subset of three waveguides 2404 and a second subset of three waveguides 2406. The two subsets of waveguides 2404, 2406 can be distinguished by different EPE gratings that feature different grating line curvatures to impart different wavefront curvatures to the exiting light. Within each of the subsets of waveguides 2404, 2406, each waveguide can be used to couple a different spectral channel (e.g., one of the red, green, and blue spectral channels) to the user's right eye 2206. (Although not shown in FIG. 2D, the structure of the left eyepiece 2108 is similar to that of the right eyepiece 2110.)

[0047] 3A illustrates an example handheld controller component 300 of a mixed reality system 200. In some examples, the handheld controller 300 includes a grip portion 346 and one or more buttons 350 disposed along a top surface 348. In some examples, the buttons 350 may be configured for use as an optical tracking target to track six degrees of freedom (6DOF) movement of the handheld controller 300, for example, in conjunction with a camera or other optical sensor (which may be mounted in a head unit (e.g., wearable head device 2102) of the mixed reality system 200). In some examples, the handheld controller 300 includes a tracking component (e.g., an IMU or other suitable sensor) for detecting a position or orientation, such as a position or orientation relative to the wearable head device 2102. In some examples, such a tracking component may be positioned in a handle of the handheld controller 300 and / or may be mechanically coupled to the handheld controller. The handheld controller 300 can be configured to provide one or more output signals corresponding to one or more of a button press state, or a position, orientation, and / or movement (e.g., via an IMU) of the handheld controller 300. Such output signals may be used as inputs to a processor of the mixed reality system 200. Such inputs may correspond to the position, orientation, and / or movement of the handheld controller (or, for that matter, the position, orientation, and / or movement of a user's hand holding the controller). Such inputs may also correspond to a user pressing a button 350.

[0048] 3B illustrates an exemplary auxiliary unit 320 of the mixed reality system 200. The auxiliary unit 320 may include a battery for providing energy and operating the system 200, and may include a processor for executing programs and operating the system 200. As shown, the exemplary auxiliary unit 320 includes a clip 2128 for attaching the auxiliary unit 320 to a user's belt, etc. It will be apparent that other form factors are also suitable for the auxiliary unit 320, including form factors that do not involve mounting the unit on a user's belt. In some embodiments, the auxiliary unit 320 is coupled to the wearable head device 2102 through a multi-tube cable, which may include, for example, electrical wires and optical fibers. A wireless connection between the auxiliary unit 320 and the wearable head device 2102 may also be used.

[0049] In some examples, the mixed reality system 200 can include one or more microphones to detect sounds and provide corresponding signals to the mixed reality system. In some examples, the microphones may be attached to or integrated with the wearable head device 2102 and configured to detect the user's voice. In some examples, the microphones may be attached to or integrated with the handheld controller 300 and / or the auxiliary unit 320. Such microphones may be configured to detect environmental sounds, ambient noise, the user's or a third party's voice, or other sounds.

[0050] FIG. 4 illustrates an example functional block diagram that may correspond to an example mixed reality system, such as the mixed reality system 200 described herein (which may correspond to the mixed reality system 112 with respect to FIG. 1). As shown in FIG. 4, the example handheld controller 400B (which may correspond to the handheld controller 300 ("totem")) includes a totem / wearable head device six degree of freedom (6DOF) totem subsystem 404A, and the example wearable head device 400A (which may correspond to the wearable head device 2102) includes a totem / wearable head device 6DOF subsystem 404B. In an example, the 6DOF totem subsystem 404A and the 6DOF subsystem 404B cooperate to determine six coordinates (e.g., offsets in three translational directions and rotations along three axes) of the handheld controller 400B relative to the wearable head device 400A. The six degrees of freedom may be expressed relative to the coordinate system of the wearable head device 400A. The three translational offsets may be represented as X, Y, and Z offsets in such a coordinate system, a translation matrix, or some other representation. The rotational degrees of freedom may be represented as a sequence of yaw, pitch, and roll rotations, as a rotation matrix, as a quaternion, or some other representation. In some examples, the wearable head device 400A, one or more depth cameras 444 (and / or one or more non-depth cameras) included within the wearable head device 400A, and / or one or more optical targets (e.g., buttons 350 of handheld controller 400B as described herein or dedicated optical targets included within handheld controller 400B) may be used for 6DOF tracking. In some examples, the handheld controller 400B may include a camera as described herein, and the wearable head device 400A may include an optical target for optical tracking in conjunction with the camera.In some examples, the wearable head device 400A and the handheld controller 400B each include a set of three orthogonally oriented solenoids that are used to wirelessly transmit and receive three distinguishable signals. By measuring the relative magnitudes of the three distinguishable signals received in each of the coils used to receive, the 6DOF of the wearable head device 400A relative to the handheld controller 400B can be determined. Additionally, the 6DOF totem subsystem 404A can include an inertial measurement unit (IMU), which is useful for providing improved accuracy and / or more timely information regarding high speed movements of the handheld controller 400B.

[0051] In some examples, it may be necessary to transform coordinates from a local coordinate space (e.g., a coordinate space fixed relative to the wearable head device 400A) to an inertial coordinate space (e.g., a coordinate space fixed relative to the real environment), e.g., to compensate for movement of the wearable head device 400A relative to the coordinate system 108. For example, such a transformation may be necessary so that the display of the wearable head device 400A presents virtual objects in an expected position and orientation relative to the real environment (e.g., a virtual person sitting in a real chair facing forward, regardless of the position and orientation of the wearable head device), rather than in a fixed position and orientation on the display (e.g., the same position in the bottom right corner of the display), preserving the illusion that the virtual objects are present in the real environment (and do not appear unnaturally positioned in the real environment, e.g., as the wearable head device 400A shifts and rotates). In some examples, a compensation transformation between coordinate spaces can be determined by processing images from the depth camera 444 using SLAM and / or visual odometry procedures to determine a transformation of the wearable head device 400A relative to the coordinate system 108. In the example shown in FIG. 4, the depth camera 444 can be coupled to the SLAM / visual odometry block 406 and provide images to the block 406. The SLAM / visual odometry block 406 implementation can include a processor configured to process the images and then determine a position and orientation of the user's head, which can be used to identify a transformation between the head coordinate space and another coordinate space (e.g., an inertial coordinate space). Similarly, in some examples, an additional source of information regarding the user's head pose and location is obtained from the IMU 409. Information from the IMU 409 can be integrated with information from the SLAM / visual odometry block 406 to provide improved accuracy and / or more timely information regarding fast adjustments of the user's head pose and position.

[0052] In some examples, the depth camera 444 can provide 3D images to a hand gesture tracker 411, which can be implemented within a processor of the wearable head device 400A. The hand gesture tracker 411 can identify the user's hand gestures, for example, by matching the 3D images received from the depth camera 444 to stored patterns representing hand gestures. Other suitable techniques for identifying the user's hand gestures will also be apparent.

[0053] In some embodiments, one or more processors 416 may be configured to receive data from the 6DOF headgear subsystem 404B, the IMU 409, the SLAM / visual odometry block 406, the depth camera 444, and / or the hand gesture tracker 411 of the wearable head device. The processor 416 may also send and receive control signals to and from the 6DOF totem system 404A. The processor 416 may be wirelessly coupled to the 6DOF totem system 404A, such as in embodiments where the handheld controller 400B is not tethered. The processor 416 may further communicate with additional components, such as an audio / visual content memory 418, a graphical processing unit (GPU) 420, and / or a digital signal processor (DSP) audio spatializer 422. The DSP audio spatializer 422 may be coupled to a head-related transfer function (HRTF) memory 425. The GPU 420 may include a left channel output coupled to a left source of imagewise modulated light 424 and a right channel output coupled to a right source of imagewise modulated light 426. The GPU 420 may output stereoscopic image data to the imagewise modulated light sources 424, 426, for example, as described herein with respect to FIGS. 2A-2D. The DSP audio spatializer 422 may output audio to the left speaker 412 and / or the right speaker 414. The DSP audio spatializer 422 may receive an input from the processor 419 indicating a direction vector from the user to a virtual sound source (which may be moved by the user, e.g., via the handheld controller 320). Based on the direction vector, the DSP audio spatializer 422 may determine a corresponding HRTF (e.g., by accessing an HRTF or by interpolating multiple HRTFs). The DSP audio spatializer 422 may then apply the determined HRTF to an audio signal, such as an audio signal corresponding to a virtual sound generated by a virtual object.This can improve the believability and realism of virtual sounds by incorporating the user's relative position and orientation to the virtual sounds in the mixed reality environment, i.e., by presenting virtual sounds that match the user's expectations of what they would hear if the virtual sounds were real sounds in a real environment.

[0054] 4, one or more of the processor 416, GPU 420, DSP audio spatializer 422, HRTF memory 425, and audio / visual content memory 418 may be included in an auxiliary unit 400C (which may correspond to auxiliary unit 320 described herein). The auxiliary unit 400C may include a battery 427 to power its components and / or provide power to the wearable head device 400A or handheld controller 400B. Including such components in an auxiliary unit, which may be mounted on the user's waist, can limit the size and weight of the wearable head device 400A, which in turn can reduce fatigue in the user's head and neck.

[0055] 4 presents elements corresponding to various components of an exemplary mixed reality system, various other suitable arrangements of these components will be apparent to those skilled in the art. For example, elements presented in FIG. 4 as being associated with auxiliary unit 400C may instead be associated with wearable head device 400A or handheld controller 400B. Further, some mixed reality systems may dispense with handheld controller 400B or auxiliary unit 400C entirely. Such variations and modifications should be understood as falling within the scope of the disclosed embodiments.

[0056] Simultaneous Localization and Mapping

[0057] Displaying virtual content in a mixed reality environment such that the virtual content corresponds to real content can be difficult. For example, it may be desirable to display virtual object 122B in FIG. 1C in the same location as real object 122A. Doing so may involve several capabilities of mixed reality system 112. For example, mixed reality system 112 may create a three-dimensional map of real environment 104A and real objects (e.g., lamp 122A) in real environment 104A. Mixed reality system 112 may also establish its location in real environment 104A (which may correspond to the location of a user in the real environment). Mixed reality system 112 may further establish its orientation in real environment 104A (which may correspond to the orientation of a user in the real environment). Mixed reality system 112 may also establish its movement relative to real environment 104A, e.g., linear and / or angular velocity and linear and / or angular acceleration (which may correspond to the movement of a user relative to the real environment). SLAM can be one way to make a virtual object 122B appear in the same location as a real object 122A even when the user 110 moves around the room 104A, looks away from the real object 122A, and then looks back at the real object 122A.

[0058] Additionally, it may be desirable to perform SLAM in an accurate, yet computationally efficient and low latency manner. As used herein, latency may refer to the time delay between a change in position or orientation of a component of a mixed reality system (e.g., a rotation of a wearable head device) and a reflection of that change as represented within the mixed reality system (e.g., the display angle of the field of view presented on the display of the wearable head device). Computational inefficiency and / or high latency may adversely affect a user's experience with the mixed reality system 112. For example, when a user 110 looks around the room 104A, virtual objects may appear to "wobble" as a result of the user's movement and / or high latency. Accuracy may be essential to produce an immersive mixed reality environment; otherwise, virtual content that competes with real content may remind the user of the difference between the virtual and real content and reduce the user's sense of immersion. Additionally, in some cases, latency may result in motion sickness, headaches, or other negative physical experiences for some users. Computational inefficiencies may exacerbate the problem in embodiments where the mixed reality system 112 is a mobile system that relies on a limited power source (e.g., a battery). The systems and methods described herein can produce an improved user experience as a result of more accurate, computationally efficient, and / or lower latency SLAM.

[0059] Visual Inertial Odometry

[0060] FIG. 5 illustrates an exemplary pipeline for visual inertial odometry ("VIO") using bundle adjustment and independent gravity estimation. At step 504, sensor input from one or more sensors 502 can be processed. In some embodiments, the sensor 502 can be an IMU, and processing the IMU input at step 504 can include pre-integrating the IMU measurements. Pre-integrating the IMU measurements can include determining a single relative motion constraint from a series of inertial measurements obtained from the IMU. It may be desirable to pre-integrate the IMU measurements to reduce the computational complexity of integrating the entire series of inertial measurements. For example, inertial measurements collected between sequential frames (which may also be key frames) captured in a video recording may include data about the entire path followed by the IMU. A key frame may be a frame that is specifically selected based on time (e.g., time since a previous key frame selection), identified features (e.g., having sufficient new identified features compared to a previous key frame), or other criteria. However, in some embodiments, the VIO method may only require data for the start point (e.g., in the first frame) and the end point (e.g., in the second frame). In some embodiments, the VIO method may only require data for the current time point (e.g., the most recent frame) and the previous state (e.g., the previous frame). The VIO calculation may be simplified by pre-integrating the inertial measurement data to produce a single relative motion constraint (e.g., from the first frame to the second frame). Pre-integrated inertial measurements may further be combined with other pre-integrated inertial measurements without having to repeat pre-integration across both sets of measurements.This may be useful, for example, when inertial measurements between keyframes are pre-integrated but it is later determined that a keyframe should no longer be used (e.g., because it has been removed as redundant or obsolete, or if the optimization is first performed on a subset of the first keyframes and then on a different set of keyframes while reusing the results of the first optimization). For example, if the inertial measurements between frames 1 and 2 have already been pre-integrated and the inertial measurements between frames 2 and 3 have already been pre-integrated, both sets of pre-integrated measurements can be combined without performing a new pre-integration when frame 2 is removed from the optimization. It is also contemplated that this may be performed across any number of frames.

[0061] In some embodiments, step 504 may include tracking features identified in camera frames, which may be sensor inputs from sensor 502. For example, each image may be fed through a computer vision algorithm to identify features (e.g., corners and edges) in the image. Adjacent or closely adjacent frames may be compared to each other to determine correspondence between features across frames (e.g., one particular corner may be identified in two adjacent frames). In some embodiments, adjacency may refer to temporal adjacency (e.g., frames captured in succession) and / or spatial adjacency (e.g., frames capturing similar features that may not be captured in succession). In some embodiments, corresponding features may be searched for within a given radius of the identified feature. The search radius may be fixed or a function of velocity between frames (e.g., calculated by integrating linear acceleration measured by an IMU).

[0062] In step 506, a VIO computation can be initiated. VIO can be a method for observing, tracking, and locating features in an environment for use in SLAM. VIO can include information streams from multiple types of sensors. For example, VIO can include information streams from visual sensors (e.g., one or more cameras) and inertial sensors (e.g., IMUs). In one exemplary method of VIO, a camera mounted on a moving mixed reality system (e.g., mixed reality system 112, 200) can record / capture multiple images (e.g., frames in a video recording). Each image can be fed through a computer vision algorithm to identify features (e.g., corners and edges) in the image. Adjacent or closely adjacent frames can be compared to each other to determine correspondence between features across frames (e.g., one particular corner can be identified in two sequential frames). In some embodiments, a three-dimensional map can be constructed (e.g., from stereoscopic images) and the identified features can be located in the three-dimensional map.

[0063] In some embodiments, inertial information from an IMU sensor can be combined with visual information from one or more cameras to match and / or predict the expected location of an identified feature across frames. For example, IMU data collected between two captured frames can include linear acceleration and / or angular velocity. In embodiments where an IMU is coupled to one or more cameras (e.g., both are built into a wearable head device), the IMU data can determine movement relative to the one or more cameras. This information can be used to estimate where the identified feature may be seen in the captured image based on its estimated location in the three-dimensional map and based on the movement of the one or more cameras. In some embodiments, the newly estimated location of the identified feature in the three-dimensional map can be projected onto the two-dimensional image to recreate the way one or more cameras may capture the identified feature. This projection of the estimated location of the identified feature can then be compared to different images (e.g., subsequent frames). The difference between the projection of the estimated location and the observed location may be the reprojection error for the identified feature.

[0064] The IMU may also contribute errors to the VIO optimization. For example, sensor noise may contribute errors in the IMU data. The IMU sensor output may also include biases (e.g., offsets in the recorded measurements that may be present even without movement) that may be a function of the physics of the IMU (e.g., temperature or mechanical stress). In some embodiments, errors in the IMU data may accumulate as a result of integrating the IMU data over time. Reprojection errors may also be a function of inaccurate estimates of the location of an identified feature in the three-dimensional map. For example, if the originally assumed location of an identified feature is incorrect, then the newly estimated location for that feature after movement may also be incorrect, and as a result, the projection of the newly estimated location onto the two-dimensional image may also be incorrect. It may be desirable for the VIO optimization to minimize the overall error, which may include reprojection errors and IMU errors.

[0065] 6A-6B illustrate example graphs of VIO calculations. The example graphs may visually depict a nonlinear factorization of a function of several variables. For example, variables (e.g., 602a and 602b) may be represented as circular nodes, and functions of variables (e.g., 604, 606, and 610a, also referred to as factors) may be represented as square nodes. Each factor may be a function of any associated variables. In the depicted embodiment, nodes 602a and 602b may represent data associated with an image captured at t=1. Data associated with an image captured at t=2 and an image captured at t=3 are similarly displayed in the example embodiment. Node 602a may represent variable information, including bias (e.g., IMU bias) and velocity, which may be obtained by integrating acceleration measurements over time. Node 602a may represent the bias of the IMU and the velocity of a camera attached to the IMU at time t=1 when the camera captured an image. Node 602b may represent a pose estimate at time t=1. The pose estimate may include an estimate of the position and orientation of the camera in three-dimensional space (which may be a result of the VIO). Node 604 may represent an n-point perspective ("PnP") term at time t=1. The PnP term may include an estimate of the position and orientation of an identified feature in three-dimensional space (e.g., the corner of an object identified in an image). Node 606 may include IMU measurements captured between time t=1 and time t=2. The IMU measurements at node 606 may be optionally pre-integrated to reduce computational load. Node 608 may represent a gravity estimate for the real environment. The gravity estimate may include an indication of an estimated direction (e.g., vector) of gravity based on inertial measurements from the IMU.

[0066] Nodes 610a and 610b may include a marginal prior. In some embodiments, the marginal prior may include marginalized information about some or all previously captured frames. In some embodiments, the marginal prior may contain some or all previous camera states (which may include pose data), gravity estimates, and / or estimates of IMU extrinsic properties. In some embodiments, the marginal prior may include an information matrix that may capture the state's dependency on previous visual and / or inertial measurements. In some embodiments, the marginal prior may include one or more error vectors that hold the residual error at a linearization point. Using a marginal prior may be beneficial for several reasons. One advantage may be that the marginalization terms may allow the optimization problem to have a fixed number of variables if the optimization does not have a predetermined limit. For example, the VIO may be launched on any number of frames depending on the length of time that a user may use the mixed reality system with the VIO launched. The VIO optimization may therefore require optimizing thousands of frames, which may exceed the computational limits of a portable system. The marginal prior can provide information about some or all previous frames in a single term, so that the optimization problem can be calculated with much fewer variables (e.g., three variables: the marginal prior and the two most recent frames). Another advantage is that the marginal prior can consider a long history of previous frames. For example, calculation limits may require that only recent frames (e.g., the three most recent frames) can be optimized. As a result, the optimization may suffer from drift, where errors introduced in one frame may continue to be propagated forward. A marginal prior, which approximates information of many previous frames, may be less susceptible to errors introduced by a single frame. In some embodiments, the marginal prior 610a may approximate information from all frames captured prior to time t=1.

[0067] FIG. 6B illustrates an example embodiment in which a frame captured at t=1 and data associated with the frame captured at t=1 are marginalized into a marginal prior node 610b, which may include data for a marginal prior 610a and data for a newly marginalized frame captured at t=1. In some embodiments, the VIO may utilize a sliding window size of, for example, two frames in addition to the marginal prior that marginalizes the previous frame. As new frames are added to the VIO optimization (which may minimize error), the oldest frame may be marginalized into the marginal prior term. Any size sliding window may be used, with larger window sizes producing more accurate VIO estimates and smaller window sizes producing more efficient VIO calculations. In some embodiments, the VIO optimization may fix nodes (e.g., node 604) that represent PnP terms and optimize only nodes that represent attitude (or state) estimates, gravity estimates, inertial measurements, and / or IMU extrinsic properties (which may be included in node 602a). The state estimates may include attitude estimates in addition to velocity and bias estimates.

[0068] In some embodiments, each frame that is factored into the VIO estimate of the state can have an associated weighting. For example, minimizing error may result in frames in which many identified features are weighted more heavily in the optimization. Because errors may arise from visual information (e.g., reprojection error) and / or inertial information (e.g., IMU bias), frames with many identified features may be weighted significantly more heavily, thereby reducing the inertial measurement relative weighting during the minimization process. It may be desirable to decay the scaling of the frame weighting with the identified features, because such scaling may reduce the weighting of IMU data by comparison, and because the scaling may assign much more weight to one frame than to another. One solution to decay the weight scaling is to divide the weighting of each identified feature by the square root of the sum of all the weightings of all identified features in the frame. Each attenuated reprojection error is then minimized in the VIO optimization, thereby allowing the scaling of visual information to be attenuated with more discriminative features.

[0069] In some embodiments, each identified feature can have a weighting associated with the confidence in the identified feature. For example, the reprojection error between the identified feature and its expected location based on observation of the corresponding feature in the previous frame and the estimated motion between frames can be weighted (e.g., larger reprojection errors can be assigned lower weights). In another example, reprojection errors can be removed from the calculation as mis-correspondences based on the distribution of measured reprojection errors in the image. For example, reprojection errors up to 10% can be removed from the calculation as mis-correspondences, although any threshold can be used, including a dynamic threshold.

[0070] In some embodiments, it may be desirable to modify the way the marginal prior is updated when the mixed reality system (e.g., mixed reality system 112, 200) is static and not moving. For example, if the mixed reality system is set on a table but continues to run, it may continue to observe feature and inertial measurements, which may lead to overconfidence in the state estimate due to the repeated measurements. Thus, it may be desirable to stop updating the information matrix (which may include uncertainty) in the marginal prior when the mixed reality system is detected to be static for a certain threshold amount of time. A static position can be determined from IMU measurements (e.g., not recording significant measurements outside the noise range), from visual information (e.g., frames continue to show no movement within the identified features), or in other suitable ways. In some embodiments, other components of the marginal prior (e.g., error vector, state estimate) can continue to be updated.

[0071] Bundle Adjustment and Gravity Estimation

[0072] Referring back to FIG. 5, a key rig insertion can be determined in step 508. Using a key rig can be beneficial for gravity estimation, bundle adjustment, and / or VIO because the use of a key rig can lead to sparser data over a longer time frame without increasing computational load. In some embodiments, a key rig can be a set of key frames from a multi-camera system (e.g., an MR system with two or more cameras) that may have been captured at a certain time. In some embodiments, a key rig can be a key frame. A key rig can be selected based on any criteria. For example, a key rig can be selected in the time domain based on the elapsed time between key rigs (e.g., one frame every 0.5 seconds can be selected as a key rig). In another example, a key rig can be selected in the spatial domain based on identified features (e.g., a frame can be selected as a key rig if it has sufficiently similar or different features compared to the previous key rig). A key rig can be stored and saved in memory.

[0073] In some embodiments, dense key rig insertion (which may be useful for gravity estimation) may be performed (e.g., if standard key rig insertion provides too sparse data). In some embodiments, a threshold condition may be met before dense key rig insertion is performed. One threshold condition may be whether the VIO optimization is still receiving gravity input. Another threshold condition may be whether a threshold amount of time (e.g., 0.5 seconds) has elapsed since the last key rig was inserted. For example, inertial measurements may only be valid for a short period of time as a result of IMU errors (e.g., bias or drift), and therefore it may be desirable to limit the amount of time between key rigs when inertial measurements are collected (optionally pre-integrated). Another threshold condition may be whether there is sufficient motion between the most recent key rig candidate and the most recent key rig (i.e., it may be desirable to have enough motion to make all variables observable). Another threshold condition may be whether the most recent key rig candidate is of sufficiently high quality (e.g., whether the new key rig candidate has a sufficiently high ratio of reprojection correct correspondences to reprojection mismatches). Some or all of these threshold conditions may be required prior to dense key rig insertion, and other threshold conditions may be used as well.

[0074] At step 510, a key rig buffer can be maintained. The key rig buffer can include a memory configured to store the inserted key rig. In some embodiments, the key rig can be stored with associated inertial measurement data (e.g., raw inertial measurements or pre-integrated inertial measurements) and / or associated timestamps (e.g., when the key rig was captured). It can also be determined whether the time gap between the key rigs is short enough to maintain validity for pre-integrating the inertial measurements. If it is determined that the time gap is not short enough, the buffer can be reset to avoid bad estimations (e.g., bad gravity estimations). The key rigs and associated data can be stored in a database 511.

[0075] In step 512, bundle adjustment may be performed. Bundle adjustment may optimize estimates of camera pose, state, feature location, and / or other variables based on repeated observations of the identified feature across frames, increasing the accuracy and confidence of the estimate (e.g., of the location of the identified feature). The same identified feature may be observed multiple times, but each observation may not match other observations as a result of errors (e.g., IMU bias, feature detection inaccuracies, camera calibration errors, computational simplifications, etc.). Therefore, it may be desirable to use multiple observations of the identified feature to estimate the likely location of the identified feature in the 3D map while minimizing the errors of the input observations. Bundle adjustment may include optimizing the frames (or key rigs) over a sliding window (e.g., of 30 key rigs). This may be referred to as fixed lag smoothing, and may be more accurate than the use of a Kalman filter, which may accumulate past errors. In some embodiments, the bundle adjustment can be a visual-inertial bundle adjustment, where the bundle adjustment is based on visual data (e.g., images from a camera) and inertial data (e.g., measurements from an IMU). The bundle adjustment can output a 3D map of identified features, which may be more accurate than a 3D map generated by a VIO. The bundle adjustment can be more accurate than a VIO estimation because the VIO estimation can be performed on a frame-by-frame basis and the bundle adjustment can be performed on a per-key rig basis. In some embodiments, the bundle adjustment can optimize the map points (e.g., identified features) in addition to the position and / or orientation of the MR system (which may approximate the position and / or orientation of the user). In some embodiments, the VIO estimation can optimize only the position and / or orientation of the MR system (e.g., because the VIO estimation can take the map points as fixed inputs). Utilizing a key rig can allow the input data to span a longer time frame without increasing the computational load, which may result in increased accuracy.In some embodiments, bundle adjustment may be performed remotely on a more powerful processor, allowing for more accurate estimation compared to VIO (due to more optimized frames).

[0076] In some embodiments, the bundle adjustment may include minimizing errors, which may include visual errors (e.g., reprojection errors) and / or inertial errors (e.g., errors resulting from estimates of the location of identified features based on movement to previous and next key rigs). Minimizing errors may be done by identifying the root mean square of the errors and optimizing the estimates to achieve the lowest average root mean square of all errors. It is also contemplated that other minimization methods may be used. In some embodiments, individual measurements may be assigned individual weights (e.g., measurements may be weighted based on confidence in the accuracy of the measurements). For example, measurements from images captured from more than one camera may be weighted according to the quality of each camera (e.g., higher quality cameras may produce measurements with more weight). In another example, measurements can be weighted according to the temperature of the sensor at the time the measurement was recorded (e.g., a sensor may perform optimally within a defined temperature range, and therefore measurements taken within that temperature range can be weighted more heavily). In some embodiments, a depth sensor (e.g., LIDAR, time-of-flight camera, etc.) can provide information in addition to the visual and inertial measurements. Depth information can also be included in the bundle adjustment by minimizing errors associated with the depth information (e.g., when the depth information is compared to an estimated three-dimensional map constructed from visual and inertial information). In some embodiments, a global bundle adjustment can be performed using the bundle adjustment output as an input (e.g., instead of the key rig) to further improve accuracy.

[0077] FIG. 7A illustrates an exemplary decision process for performing bundle adjustment. In step 702, a new key rig can be added to a sliding window for optimization. In step 704, the time interval between each key rig in the sliding window can be evaluated. If none of the time intervals are above a certain static or dynamic time threshold (e.g., 0.5 seconds), a visual inertial bundle adjustment can be performed in step 706 using the inertial measurements from database 705 and the key rigs (which can be images) from database 712. Database 705 and database 712 can be the same database or separate databases. In some embodiments, if at least one time interval between sequential key rigs is above a certain static or dynamic time threshold, a spatial bundle adjustment can be performed in step 710. If the time interval is above the static or dynamic time threshold, it can be beneficial to exclude the inertial measurements because only the IMU measurements may be valid for integration over a short period of time (e.g., due to sensor noise and / or drift). The spatial bundle adjustment may optionally rely on a different set of key rigs than the visual inertial bundle adjustment. For example, the sliding window may change from being fixed to a certain time or a certain number of key rigs to being fixed in the spatial domain (e.g., the sliding window is fixed to a certain amount of movement). In step 708, the oldest key rig may be removed from the sliding window.

[0078] FIG. 7B illustrates an exemplary decision process for performing bundle adjustment. At step 720, a new key rig can be added to the sliding window for optimization. At step 722, the temporally recent key rigs can be retrieved from a database of key rigs 730. For example, a number (e.g., 5) of the most recently captured key rigs (e.g., based on associated timestamps) may be retrieved. At step 724, it may be determined whether the time interval between each retrieved key rig is below a static or dynamic threshold (e.g., 0.5 seconds). If each interval between captured key rigs is below a static or dynamic threshold, a visual inertial bundle adjustment may be performed at step 726, which may utilize inertial measurements in addition to visual information from the key rig. If at least one time interval between captured key rigs is above a static or dynamic threshold, at step 728, spatially proximate key rigs may be retrieved from the database 730. For example, a key rig with a threshold number of identified features that correspond to the identified features in the most recent key rig may be retrieved. In step 728, a spatial bundle adjustment may be performed, which may use visual information from the key rig or may not use inertial information for the bundle adjustment.

[0079] Other decision processes can also be used to perform bundle adjustment. For example, in steps 704 and / or 724, it can be determined whether any time interval between sequential key rigs exceeds a static or dynamic threshold time. If at least one time interval is determined to exceed the threshold, the inertial measurements can be ignored between the two related key rigs, but still be used for all remaining key rigs that comply with the time interval threshold. In another example, if a time interval is determined to exceed the threshold, one or more additional key rigs can be inserted between the two related key rigs, and visual inertial bundle adjustment can be performed. In some embodiments, the key rigs stored in the key rig buffer or in database 511 and / or 730 can be updated with the results of the bundle adjustment.

[0080] Referring back to FIG. 5, in step 514, an independent gravity estimation can be performed. The independent gravity estimation performed in step 514 can be more accurate than the VIO gravity estimation determined in step 506 because it can be performed, for example, on a more powerful processor or over a longer time frame and can allow optimization over additional variables (e.g., frames or key rigs). The independent gravity estimation can utilize key rigs (which can comprise key frames) to estimate gravity (e.g., vectors), which can be used for SLAM and / or VIO. Key rigs can be beneficial because they can allow independent gravity estimation to be performed over a longer period of time without exceeding computational limits. For example, an independent gravity estimation over 30 seconds can be more accurate than an independent gravity estimation over 1 second, but a 30 second estimate may require optimizing 900 frames if the video was recorded at 30 fps. Key rigs can be obtained at sparser intervals (e.g., 2 times / second) so that the gravity estimation may only require optimizing 60 frames. In some embodiments, the key rig used for independent gravity estimation may be the result of dense key rig insertion (which may be performed in step 508). The gravity estimate may also utilize a simple frame. It may be desirable to estimate the direction of gravity to anchor the display of virtual content that corresponds to real content. For example, a poor gravity estimate may lead to virtual content appearing tilted relative to the real content. An IMU may provide inertial measurements that may include gravity, but the inertial measurements may also include all other motions (e.g., real motion or noise), which may obscure the gravity vector.

[0081] FIG. 8 illustrates an example graph of independent gravity estimation. The example graph may visually depict a nonlinear factorization of a function of several variables. For example, variables (e.g., 802a and 802b) may be represented as circular nodes, and functions of variables (e.g., 804, also called factors) may be represented as square nodes. Each factor may be a function of any linked variables. Nodes 802a and 802b may represent data associated with an image captured at time i=0. Node 802a may include data representing an IMU state, which may be an estimate of an error in an IMU measurement. The IMU state may be output from a VIO method. Node 802b may include data representing a key rig pose associated with a particular key rig. The key rig pose may be based on the output of a bundle adjustment. Node 804 may include an IMU term edge, which may include a pre-integrated inertial movement. Node 804 may also define an error function that correlates other linked nodes. Node 806 may include data representing IMU extrinsic properties (which may correspond to the accuracy and orientation of the IMU relative to the mixed reality system), and node 808 may include a gravity estimate. Gravity estimation optimization may include minimizing an error function at node 804. In some embodiments, nodes related to key rig attitude and IMU extrinsic properties (e.g., nodes 802b and 806) may be fixed, and nodes related to IMU state and gravity (e.g., nodes 802a and 808) may be optimized.

[0082] Referring back to FIG. 5, in step 515, the results from the independent gravity estimate and the bundle adjustment can be applied to the VIO output. For example, the difference between the VIO gravity estimate and the independent gravity estimate and / or the difference between the VIO pose estimate and the bundle adjustment pose estimate can be represented by a transformation matrix. The transformation matrix can be applied to the VIO pose estimate and / or the pose estimate of the marginal prior. In some embodiments, the rotational components of the transformation matrix can be applied to the VIO and / or the state estimated by the VIO gravity estimate. In some embodiments, the independent gravity estimate cannot be applied to correct the VIO gravity estimate if the generated map becomes too large (i.e., it may be computationally infeasible if the independent gravity estimate needs to be applied to too many frames). In some embodiments, the blocks in group 516 can be implemented in a separate location from the blocks in group 518. For example, group 516 can be implemented in a wearable head device, which may include a power-efficient processor and a display. Group 518 can be implemented in an attached device (e.g., a waist-wearable device) that may include a more powerful processor. It may be desirable to perform certain calculations (e.g., those in group 516) in near real-time so that the user may have low-latency visual feedback for the virtual content. It may also be desirable to perform more accurate and computationally expensive computational parallelism and backpropagation corrections to maintain long-term accuracy of the virtual content.

[0083] Dual IMU SLAM

[0084] In some embodiments, two or more IMUs can be used for SLAM calculations. The addition of a second IMU can improve the accuracy of the SLAM calculation, which may introduce less jitter and / or drift into the virtual content. The addition of a second IMU in the SLAM calculation may also be advantageous in situations where the information associated with the map points may not be sufficient for a more accurate SLAM calculation (e.g., low texture (e.g., walls lacking geometric or visual features such as flat walls in one color), low light, low light and low texture). In some examples, a reduction of 14-19% in terms of drift and 10-20% in terms of jitter may be achieved using two IMUs compared to the use of one IMU to calculate SLAM. Drift and jitter may be measured in arc minutes relative to the actual position (e.g., the actual position of the object in the mixed reality environment).

[0085] In some embodiments, the second IMU may be used in low light or low texture situations, and the second IMU may not be used in situations where the lighting and / or texture of the mixed reality environment is sufficient. In some embodiments, one or more visual metrics and information from a sensor of the mixed reality system are used to determine whether the lighting and / or texture of the mixed reality environment is sufficient (e.g., sufficient texture is determined from objects in the mixed reality environment, sufficient lighting in the mixed reality environment is determined). For example, a sensor of the MR system may be used to capture lighting and / or texture information associated with the mixed reality environment, and the captured information may be compared to lighting and / or texture thresholds to determine whether the lighting and / or texture is sufficient. If the lighting and / or texture is determined to be insufficient, the second IMU may be used for pre-integral term calculation (e.g., for better accuracy, to reduce potential jitter and / or drift) as disclosed herein. In some embodiments, the calculations using one IMU and the calculations using two IMUs are compared, and if the difference between the calculations is within a threshold, using one IMU for the SLAM calculations may be sufficient in these instances. As an example advantage, the ability to use one IMU in situations where the lighting and / or texture of the mixed reality environment is determined to be sufficient may reduce power consumption and speed up calculation times.

[0086] In some embodiments, the second IMU can enable repeated measurements of the same value to be obtained, which can increase confidence in the measured value. For example, a first IMU can measure a first angular velocity and a second IMU can simultaneously measure a second angular velocity.

[0087] The first IMU and the second IMU may be coupled to the same rigid body (e.g., the rigid body undergoes negligible deformation, the rigid body may be the frame of a wearable head device). The first angular velocity associated with the first IMU and the second angular velocity associated with the second IMU may both be measurements of the same ground truth angular velocity. In some embodiments, repeated measurements of the same value may produce a more accurate estimate of the ground truth value by canceling noise in each individual measurement. In some embodiments, coupling the two IMUs to the same rigid body may expedite SLAM computations in a two-IMU system as described herein. Because low latency may be critical to SLAM computations, it may be desirable to develop systems and methods that incorporate additional inertial information in a computationally efficient manner while preserving the accuracy gains of the additional data.

[0088] FIG. 9 illustrates an example IMU configuration in a mixed reality system, according to some embodiments. In some embodiments, an MR system 900 (which may correspond to MR systems 112, 200) can be configured to include an IMU 902a and an IMU 902b. In some embodiments, the IMUs 902a and 902b are rigidly coupled to the mixed reality system (e.g., attached to a frame of the mixed reality system) such that the velocities of the IMUs are coupled. For example, the relationship between the two velocities may be calculated using known values, such as angular velocities and vectors associated with the individual IMU positions. As described herein, a system with an IMU in which the two velocities are coupled may advantageously reduce the computation complexity of the pre-integral term associated with the system while observing better computation accuracy in general, especially in low light and / or low texture situations in a mixed reality environment, compared to a single IMU system.

[0089] In some embodiments, MR system 900 can be configured such that IMU 902a is as close as possible to camera 904a and IMU 902b is as close as possible to camera 904b. In some embodiments, cameras 904a and 904b can be used for SLAM (e.g., cameras 904a and 904b can be used for object / edge recognition and / or the visual component of VIO). It may be desirable to configure MR system 900 such that the IMU is as close as possible to the SLAM camera to accurately track the movement incurred by the SLAM camera (e.g., by using the movement of the IMU as a proxy for the movement of the SLAM camera).

[0090] 10 illustrates an example IMU configuration in a mixed reality system, according to some embodiments. In some embodiments, two IMU sensors (e.g., IMU 1002 and IMU 1004) can generally provide two IMU terms and / or pre-integral terms. For example, the components of the pre-integral term associated with IMU 1002 may be represented by equations (1), (2), and (3), where: [ka] may represent a quaternion (which may represent the rotation and / or orientation of the MR system) corresponding to the IMU 1002, [ka] may represent the angular velocity measured by the IMU 1002 about a point W (which may be on and / or at the center of the MR system), [ka] may represent the linear velocity of the IMU 1002 relative to point W, [ka] may represent the linear acceleration at the IMU 1002 relative to point W, [ka] may represent the location of the IMU 1002 relative to point W. [ka]

[0091] Similarly, equations (4), (5), and (6) may represent components of the pre-integral term associated with the IMU 1004. [ka]

[0092] Although t and Δt are used to describe the rotation, angular velocity, and angular acceleration of individual IMUs at a particular time, it should be understood that different quantities may not be captured at exactly the same time. For example, due to hardware timing, there may be a delay (e.g., 200 ms) between data capture or sampling between two IMUs. In these instances, the MR system may synchronize sets of data between the two IMUs to account for this delay. As another example, IMU data associated with different quantities may be sampled or captured at different times during the same clock cycle of the system. The period of the clock cycle may be determined by the timing resolution requirements of the system.

[0093] In some embodiments, a solution for equations (1)-(6) may be solved to calculate pre-integral terms associated with the first and second IMUs. For example, the solution may use regression analysis (e.g., least squares) or other suitable methods to reduce errors associated with the solution of the simultaneous equations.

[0094] In some embodiments, the pre-integral terms associated with IMU 1002 and IMU 1004 may be kinematically constrained if IMU 1002 and IMU 1004 are rigidly coupled to one another (e.g., via rigid body 1006, which may correspond to MR system 900). In these instances, the variables associated with equations (1)-(6) may be reduced due to this coupling. In some embodiments, the rigid coupling between IMU 1002 and IMU 1004 may allow both pre-integral terms to be expressed in the same variables. Equation (7) may represent the relationship between the variables measured at IMU 1002 and IMU 1004 (due to the rigid coupling), where: [ka] may represent a positional relationship (e.g., a vector) between IMU 1002 and IMU 1004, and ω may represent an angular velocity associated with the mixed reality system (e.g., an angular velocity associated with IMU 1002, an angular velocity associated with IMU 1004, an average angular velocity associated with IMU 1002 and IMU 1004, a noise-reduced angular velocity associated with the system, a bias-removed angular velocity associated with the system). [ka]

[0095] Using the kinematic relationship between IMU 1002 and IMU 1004, equations (8), (9), and (10) may replace equations (4), (5), and (6) as components of the pre-integral term for IMU 1004. [ka]

[0096] By rigidly coupling IMU 1002 and IMU 1004 as illustrated above, the relationship between the two IMUs can be derived (e.g., using equation (7)), and the set of IMU equations associated with the IMU pre-integral terms (e.g., equations (4), (5), and (6)) can be advantageously simplified (e.g., to equations (8), (9), and (10)), generally reducing the complexity of calculating the pre-integral terms associated with two IMUs while observing better calculation accuracy compared to a one-IMU system.

[0097] It should be understood that while equations (4), (5), and (6) are simplified from the perspective of a first IMU, equations (1), (2), and (3) may instead be simplified to perform similar calculations (e.g., from the perspective of a second IMU). It should be understood that while the angular velocity associated with IMU 1002 is used in equations (8), (9), and (10), a different angular velocity associated with the mixed reality system may be used to calculate the pre-integral term. For example, the average angular velocity between IMU 1002 and IMU 1004 may be used in equations (8), (9), and (10).

[0098] The stiffness of the IMUs (e.g., IMU902a, IMU902b, IMU1002, IMU1004) coupled to the MR system may change over time. For example, the mechanism used to attach the IMU to the frame of the MR system may undergo plastic or inelastic deformation. These deformations may affect the mathematical relationship between the two IMUs. In particular, these deformations may affect the accuracy of Equation (7) and the accuracy of the relationship derived from Equation (7) between the set of equations associated with the first IMU (e.g., IMU902a, IMU1002) and the set of equations associated with the second IMU (e.g., IMU902b, IMU1004). These deformations may also affect the accuracy of the pre-integral terms associated with the IMUs. In some embodiments, the position of the IMU may be calibrated prior to the SLAM calculation. For example, prior to the SLAM calculation, the current position of the IMU (e.g., obtained by using sensors of the MR system) may be compared to a predetermined value (e.g., known IMU position, ideal IMU position, manufactured IMU position) and the difference (e.g., offset) may be accounted for in the SLAM calculation (e.g., remove the difference in equation (7)). By calibrating the IMU prior to the SLAM calculation and accounting for potential deformations in the IMU coupling, the accuracy associated with the pre-integral term and the SLAM calculation may be advantageously increased.

[0099] FIG. 11 illustrates an example graph representation of SLAM, according to some embodiments. The graph representation in FIG. 11 may depict a nonlinear factorization of a function of several variables. For example, the variables (e.g., 1110, 1112, 1114, 1116, and 1122) may be represented as circular nodes, and the functions of the variables (e.g., 1102, 1118, and 1120, also called factors) may be represented as square nodes. Each factor may be a function of any (or all) of the variables to which it is connected.

[0100] In some embodiments, state 1102 may represent a system state (e.g., a state of an MR system) and / or any variables in the system state at time t=1. Similarly, state 1104 may represent a system state and / or any variables in the system state at time t=2, and state 1106 may represent a system state and / or any variables in the system state at time t=3. A system state may correspond to a key rig captured at that time. A system state may include (and / or be defined by) the state of one or more variables in the state. For example, state 1102 may include PnP term 1108. In some embodiments, state 1102 may include pose estimate 1110. In some embodiments, state 1102 may include bias term 1112 for the first (and / or left) IMU (which may correspond to IMU 902a or IMU 1002). In some embodiments, bias term 1112 may include bias values ​​for a linear accelerometer and a gyroscope. In some embodiments, the bias term 1112 may include bias values ​​for each linear accelerometer and gyroscope corresponding to the respective measurement axis. In some embodiments, the state 1102 may include a bias term 1114 for the second (and / or right) IMU (which may correspond to IMU 902b or IMU 1004). The bias term 1114 may include a corresponding bias value similar to the bias term 1112. In some embodiments, the state 1102 may include a velocity term 1116. The velocity term 1116 may include an angular velocity of the system. In some embodiments, if the system is substantially rigid, the angular velocity may be one of an angular velocity associated with the first IMU, an angular velocity associated with the second IMU, an average angular velocity associated with the first and second IMUs, a noise-reduced angular velocity associated with the system, and a bias-removed angular velocity associated with the system. In some embodiments, the velocity term 1116 may include one or more linear velocity values ​​corresponding to one or more locations in the system (e.g., a linear velocity value at each IMU in the system).In some embodiments, state 1102 can include stateless term 1122. Stateless term 1122 can include one or more variables that may not depend on a particular state. For example, stateless term 1122 can include a gravity variable, which may include an estimated direction of gravity. In some embodiments, stateless term 1122 can include IMU extrinsic properties (e.g., the relative positions of IMU 904a or IMU 1002 and / or 904b or 1004 within MR system 900).

[0101] In some embodiments, two pre-integral terms can correlate two system states. For example, pre-integral term 1118 and pre-integral term 1120 can correlate state 1102 to state 1104. In some embodiments, pre-integral term 1118 (which may correspond to IMU 904a or IMU 1002) and pre-integral term 1120 (which may correspond to IMU 904b or IMU 1004) can be functions of the same set of variables. This structuring of the nonlinear optimization calculation can provide several advantages. For example, the second pre-integral term (compared to the nonlinear factorization using a single IMU in FIG. 8) may not require a proportional increase in computational power because the second pre-integral term may be kinematically constrained to the first pre-integral term as described herein. However, the addition of data from a second IMU may result in improvements in jitter and / or drift compared to a single IMU factorization.

[0102] 12 illustrates an example process for presenting virtual content, according to some embodiments. For brevity, examples associated with the method steps described with respect to FIGS. 9-11 will not be described again here. In step 1202, image data may be received (e.g., via a sensor of an MR system). The image data may comprise a photograph and / or visual features (e.g., edges).

[0103] In step 1204, the first inertial data can be received via a first inertial measurement unit (e.g., IMU 902a, IMU 1002) and the second inertial data can be received via a second inertial measurement unit (e.g., IMU 902b, IMU 1004). In some embodiments, the first inertial measurement unit and the second inertial measurement unit can be coupled together via a rigid body. The rigid body can be an object configured not to deform under normal use (e.g., made of rigid plastic, metal, etc.). The first inertial data and / or the second inertial data can include one or more linear acceleration measurements (e.g., three measurements along each of three measurement axes) and / or one or more angular velocity measurements (e.g., three measurements along each of three measurement axes). In some embodiments, the first inertial data and / or the second inertial data can include linear velocity measurements and / or angular acceleration measurements.

[0104] In step 1206, a first pre-integral term and a second pre-integral term may be calculated based on the image data, the first inertial data, and the second inertial data. In some embodiments, the first pre-integral term and the second pre-integral term may be calculated using a graph optimization of non-linearly related variables and functions. For example, a factor graph depicted in FIG. 11 may be used to calculate the first pre-integral term (e.g., pre-integral term 1118) and the second pre-integral term (e.g., pre-integral term 1120). In some embodiments, optimizing the factor graph and / or calculating the functions in the factor graph may involve fixing some variables while optimizing others.

[0105] In step 1208, a position of the wearable head device may be estimated based on the first and second pre-integral terms. In some embodiments, the position may be estimated using a graph optimization of non-linearly related variables and functions. For example, the factor graph depicted in FIG. 11 may be used to estimate the position (e.g., pose term 1110). In some embodiments, optimizing the factor graph and / or computing functions in the factor graph may involve fixing some variables while optimizing others.

[0106] In step 1210, virtual content can be presented based on the position. In some embodiments, the virtual content can be presented via one or more see-through displays of the wearable head device as described herein. In some embodiments, the MR system can estimate the user's field of view based on the position. If the virtual content is determined to be within the user's field of view, the virtual content can be presented to the user.

[0107] In some embodiments, the key rigs are separated by time intervals. For example, as described with respect to Figures 6A, 6B, 8, and 11, adjacent key rigs (e.g., t=0 and t=1, t=1 and t=2, etc., i=0 and i=1, i=1 and i=2, etc., functions of variables 1102 and 1104, functions of variables 1104 and 1106, etc.) are separated by distinct time intervals. The distinct time intervals may be different (e.g., the time at which the key rigs were generated may be determined by the system). In some embodiments, when the time interval between key rigs exceeds a maximum time interval (e.g., 5 seconds), the benefit of using pre-integration (e.g., node 606, node 804, pre-integration terms 1118, 1120) for visual inertial bundle adjustment may be reduced (e.g., reduced accuracy compared to using pre-integration when adjacent key rigs are less than the maximum time interval, reduced accuracy compared to not using pre-integration when adjacent key rigs are greater than the maximum time interval). Thus, it may be desirable to not use pre-integration for bundle adjustment when the benefit of pre-integration is reduced.

[0108] In some embodiments, the system (e.g., mixed reality system 112, mixed reality system 200, mixed reality system in FIG. 4, mixed reality system 900) determines whether the time interval between key rigs exceeds a maximum time interval (e.g., 5 seconds). Based on this determination, the system determines whether to use pre-integration for bundle adjustment corresponding to adjacent key rigs. As an example advantage, by not using pre-integration when the pre-integration is less accurate (e.g., when the time interval between adjacent key rigs exceeds a maximum time interval), bundle adjustment accuracy is optimized (e.g., improved accuracy compared to using pre-integration when adjacent key rigs exceed a maximum time interval, improved accuracy compared to using pre-integration when adjacent key rigs exceed a maximum time interval and weights are not adjusted). In some embodiments, as another example advantage, by not using pre-integration when the pre-integration is less accurate, bundle adjustment accuracy may be optimized without any weight adjustment and without reducing computing time and resource needs.

[0109] In some embodiments, pursuant to determining that the time interval does not exceed the maximum time interval, the system uses pre-integration for bundle adjustment, e.g., when the time interval does not exceed the maximum time interval, visual inertial bundle adjustment is performed as described herein.

[0110] In some embodiments, following a determination that the time interval exceeds the maximum time interval, the system does not use pre-integration for bundle adjustment. For example, when the time interval exceeds the maximum time interval, a spatial bundle adjustment is performed as described herein (e.g., instead of visual inertial bundle adjustment). A method including this step may be known as a hybrid visual inertial bundle adjustment. As another example, when the time interval exceeds the maximum time interval, a visual inertial bundle adjustment is performed, but a corresponding pre-integral term (e.g., node 606, node 804, pre-integral terms 1118, 1120) is not added to the graph as described with respect to Figures 6A, 6B, 8, and 11. A method including this step may be known as a partial visual inertial bundle adjustment.

[0111] The techniques and methods described herein with respect to FIG. 11 and the dual IMUs can also be applied in other respects. For example, the dual IMU data can be used in the VIO method described with respect to FIG. 6A-6B. The dual IMU data can also be used for the gravity estimation method described with respect to FIG. 8. For example, a second pre-integral term can be added to the variables for the graph optimization and bias of each IMU in FIG. 6A-6B and / or FIG.

[0112] It is contemplated that the graph optimization (e.g., the optimization depicted in FIGS. 6A-6B, 8, and / or 11) may depict a variable node that includes one or more variable values, but the variable values ​​within the variable node may be represented as one or more individual nodes. While the techniques and methods described herein disclose a dual IMU graph optimization structure, it is contemplated that similar techniques and methods can be used for other IMU configurations (three IMUs, four IMUs, ten IMUs, etc.). For example, the graph optimization model may include a pre-integration term per IMU that may be a function of pose estimate, one or more bias terms (corresponding to each IMU), velocity, gravity direction, and one or more IMU extrinsic values ​​corresponding to each IMU.

[0113] Although the disclosed embodiments have been fully described with reference to the accompanying drawings, it should be noted that various changes and modifications will be apparent to those skilled in the art. For example, elements of one or more implementations may be combined, deleted, modified, or supplemented to form further implementations. Such changes and modifications should be understood as being included within the scope of the disclosed embodiments as defined by the appended claims.

Claims

1. 1. A method comprising: receiving first sensor data indicative of a first characteristic at a first location via a sensor in a wearable head device; receiving, via the sensor, second sensor data indicative of the first characteristic at a second location; receiving inertial measurements via an inertial measurement unit (IMU) on the wearable head device; determining a velocity of a user of the wearable head device based on the inertial measurements; estimating a third position of the first feature based on the first position and the velocity; and determining a reprojection error based on the third position and the second position; reducing a weight associated with the reprojection error; and determining a state of the wearable head device, the determining the state comprising minimizing a total reprojection error, the total reprojection error being based on the reduced weight associated with the reprojection error; presenting a view reflecting the determined state of the wearable head device via a display of the wearable head device; The method includes:

2. The method of claim 1 , wherein the weight associated with the reprojection error is reduced based on a quantity of features identified.

3. The method of claim 1, wherein determining the state further includes minimizing an error from the inertial measurement unit.

4. The method comprises: determining whether the velocity of the user of the wearable head device is below a threshold; and updating an information matrix according to a determination that the velocity of the user of the wearable head device does not fall below the threshold; not updating the information matrix in response to a determination that the velocity of the user of the wearable head device is below the threshold; and The method of claim 1 further comprising:

5. The method of claim 1, further comprising pre-integrating the inertial measurements.

6. The inertial measurement unit is a first inertial measurement unit, The method comprises: receiving a second inertial measurement via a second inertial measurement unit on the wearable head device; pre-integrating the second inertial measurement; The method of claim 5 further comprising:

7. The first sensor data is received at a first time; the pre-integrated inertial measurements are related to a movement of the wearable head device between the first time and a second time; The method comprises: determining whether a time interval between the first time and the second time is greater than a maximum time interval; using the pre-integrated inertial measurements pursuant to a determination that the time interval is not greater than the maximum time interval; pursuant to a determination that the time interval is greater than the maximum time interval, not using the pre-integrated inertial measurements. The method of claim 5 further comprising:

8. 1. A system comprising: A sensor of a wearable head device; an inertial measurement unit on the wearable head device; a display of the wearable head device; and one or more processors, the one or more processors comprising: receiving first sensor data indicative of a first characteristic at a first location via the sensor of the wearable head device; receiving, via the sensor, second sensor data indicative of the first characteristic at a second location; receiving inertial measurements via the inertial measurement unit on the wearable head device; determining a velocity of a user of the wearable head device based on the inertial measurements; estimating a third position of the first feature based on the first position and the velocity; and determining a reprojection error based on the third position and the second position; reducing a weight associated with the reprojection error; and determining a state of the wearable head device, the determining the state comprising minimizing a total reprojection error, the total reprojection error being based on the reduced weight associated with the reprojection error; presenting a view reflecting the determined state of the wearable head device via the display of the wearable head device; one or more processors configured to execute a method comprising: A system comprising:

9. The system of claim 8 , wherein the weight associated with the reprojection error is reduced based on a quantity of features identified.

10. The system of claim 8, wherein determining the state further includes minimizing error from the inertial measurement unit.

11. The method comprises: determining whether the velocity of the user of the wearable head device is below a threshold; updating an information matrix according to a determination that the velocity of the user of the wearable head device does not fall below the threshold; not updating the information matrix in response to a determination that the velocity of the user of the wearable head device is below the threshold; and The system of claim 8 further comprising:

12. The system of claim 8 , wherein the method further comprises pre-integrating the inertial measurements.

13. The inertial measurement unit, The method comprises: receiving a second inertial measurement via a second inertial measurement unit on the wearable head device; pre-integrating the second inertial measurement; The system of claim 12 further comprising:

14. The first sensor data is received at a first time; the pre-integrated inertial measurements are related to a movement of the wearable head device between the first time and a second time; The method comprises: determining whether a time interval between the first time and the second time is greater than a maximum time interval; using the pre-integrated inertial measurements pursuant to a determination that the time interval is not greater than the maximum time interval; pursuant to a determination that the time interval is greater than the maximum time interval, not using the pre-integrated inertial measurements. The system of claim 12 further comprising:

15. A program including instructions that, when executed by one or more processors, receiving first sensor data indicative of a first characteristic at a first location via a sensor in a wearable head device; receiving, via the sensor, second sensor data indicative of the first characteristic at a second location; receiving inertial measurements via an inertial measurement unit on the wearable head device; determining a velocity of a user of the wearable head device based on the inertial measurements; estimating a third position of the first feature based on the first position and the velocity; and determining a reprojection error based on the third position and the second position; reducing a weight associated with the reprojection error; and determining a state of the wearable head device, the determining the state comprising minimizing a total reprojection error, the total reprojection error being based on the reduced weight associated with the reprojection error; presenting a view reflecting the determined state of the wearable head device via a display of the wearable head device; A program causing the one or more processors to execute a method comprising:

16. The method of claim 15 , further comprising pre-integrating the inertial measurements.

Citation Information

Patent Citations

  • Mapping optimization in autonomous and non-autonomous platforms

    EP3428760A1

  • Method and apparatus for compensating motion of head-mounted display

    JP2017076119A

  • Object detection and tracking

    US20190197196A1