Systems and methods for enhancing non-inertial tracking systems using inertial constraints
Through time synchronization and inertial coordinate alignment algorithms, the problem of data synchronization between IMU and exteroceptive sensors is solved, robust tracking in highly dynamic motion is achieved, and the accuracy and robustness of the tracking system are improved.
Patent Information
- Application Number
- CN202010963854.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-12
- Filing Date
- 2020-09-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-09-14
AI Technical Summary
In the existing technology, without external sensors, the measurement data of the inertial measurement unit (IMU) and the exteroceptive sensor are difficult to synchronize, resulting in limited robustness and accuracy of the tracking system in highly dynamic movements.
By introducing time synchronization and inertial coordinate alignment algorithms, the measurement results of the IMU and the exteroceptive sensor are aligned, and the distributed state estimation method is used to eliminate the state specific to the exteroceptive sensor and achieve robust state estimation.
It achieves robust tracking in highly dynamic motion, reduces dependence on hardware synchronization signals, simplifies system integration, and improves the accuracy and robustness of the tracking system.
Smart Images

Figure CN112484719B_ABST
Abstract
Description
Technical Field
[0001] The present application relates generally to systems for enhancing non-inertial tracking systems using inertial measurements. Background Art
[0002] Spatial localization is used in robotics and augmented reality to track the self-motion of the device. In augmented reality, accurate tracking enables realistic augmentation of virtual content as the user moves through the environment. Similarly, in robotics, tracking enables inference of the spatial relationship between the robot and the environment, and thus enables interaction. The tracking system forms an integral part of augmented reality (AR) and virtual reality (VR) devices such as HoloLens, Magic Leap, Occulus Rift, HTC Vive, etc., and robotic systems such as Roomba, Pepper, etc.
[0003] Tracking systems use different sensors to observe the environment and infer the position and orientation (state) of the device. Sensors used for tracking can be broadly classified as exteroceptive or proprioceptive. Exteroceptive sensors (such as cameras, LIDAR (laser imaging, detection and ranging sensors), and sonar) enable observation of motion based on measurements from the outside world. Proprioceptive sensors (such as inertial measurement units (IMUs) and odometers) enable observation of motion based on measurements inside the system or device. In recent years, "inside-out tracking", which is performed without any sensors outside the device, has become increasingly popular. The choice of exteroceptive sensor is mainly based on the environment and application use case, and the most commonly used proprioceptive sensor is the inertial measurement unit. Summary of the invention
[0004] A controller-based method for tracking the position and orientation of a device includes predicting a first tracking state of the device using measurements from an exteroceptive sensor sampled at a first rate, and generating a second tracking state of the device using measurements from an inertial measurement unit (IMU) sampled at a second rate asynchronous to the first rate. The method also includes synchronizing the first and second tracking states to a common time domain by estimating a time offset that minimizes an error between changes over time between the first and second tracking states such that a first time series associated with the first tracking state and a second time series associated with the second tracking state are aligned in time. The method also includes aligning the first tracking state and the second tracking state to an inertial reference frame and generating an inertial-assisted tracking state by minimizing a cost function that includes a first residual term derived from propagating a previous state estimate using a second tracking state with the time offset changed and a second residual term derived from the first tracking state.
[0005] The method may also include predicting a first tracking state by searching for a state estimate that minimizes a measurement error relative to a set of observations, wherein the motion state specific to the ES is in a local coordinate system. The method may also include using a gravity vector from the IMU to generate a transformation that aligns the local coordinate system to the inertial reference system. The method may also include predicting a first orientation change based on a difference between recent predictions of the first tracking state within a time interval defined by a first rate, and predicting a second orientation change based on a second tracking state within the time interval. The method may also include predicting a second orientation change by integrating samples of the second tracking state within the time interval. The second rate may be greater than the first rate, and a predetermined number of samples from the IMU may be integrated to predict the second change, the predetermined number being based on the ratio of the first rate to the second rate. The method may further include using an optimization algorithm to minimize the error.
[0006] A position and orientation tracking system for a device, comprising: a controller in communication with an exteroceptive sensor core and an inertial measurement unit (IMU), the exteroceptive sensor core sampling exteroceptive sensors at a first rate and generating a first set of measurement data, the inertial measurement unit (IMU) sampling IMU sensors at a second rate asynchronous to the first rate and generating a second set of measurement data, the controller being programmed to track the motion of the device according to a tracking state derived by synchronizing the first and second sets of measurement data to a common time domain, wherein the first and second sets of measurement data are synchronized by shifting one of the sets of measurement data by a time offset that minimizes a total error between a change in device orientation predicted by the first set of measurement data over a time interval defined by the first rate and a change in device orientation predicted by the second set of measurement data over the time interval.
[0007] The external perception sensor may be a camera. The tracking state may include one or more of the position of the device, the speed of the device, and the orientation of the device. The controller may be further programmed to update the time offset with a time amount that minimizes the distance between the motion state estimated by the model that predicts the motion of the device based on the second set of measurement data and the model that predicts the motion of the device based on the first set of measurement data with the time offset and the time amount changed. The controller may be further programmed to receive an activity type based on IMU data and transmit the activity type to the external perception sensor core. The controller may be programmed to receive an activity type based on IMU data and change the model for estimating the tracking state based on the activity type. The controller may be further programmed to estimate the tracking state by minimizing a cost function, the cost function including the difference between the tracking state estimated by propagating the previous tracking state derived from the second set of measurement data and the tracking state predicted by the model based on the activity type. The controller may be further programmed to perform an optimization method to minimize the total error.
[0008] A device for synchronizing measurement data from an inertial measurement unit (IMU) and an exteroceptive sensor (ES) without a common electrical measurement trigger signal therebetween, comprising: a controller in communication with an exteroceptive sensor core and an inertial measurement unit (IMU), the exteroceptive sensor core being configured to sample the exteroceptive sensor at a first rate, the inertial measurement unit (IMU) being configured to sample the IMU sensor at a second rate asynchronous with the exteroceptive sensor, the controller being programmed to: predict a first orientation change based on a difference between recent ES orientation data within a time interval defined by the first rate; predict a second orientation change based on the IMU orientation data within the time interval, and shift the measurement data from the ES by a time offset that minimizes an error between the first change and the second change, so that a first time series associated with the first change and a second time series associated with the second change are aligned in time.
[0009] The controller may be further programmed to update the time offset by an amount of time that minimizes a distance between a tracking state estimated by a model that predicts the state based on the IMU data and a model that predicts the state based on the exteroceptive sensor data with the time offset changed. The controller may be further programmed to receive an activity type based on the IMU data and transmit the activity type to the exteroceptive sensor core. The controller may be further programmed to perform an integration on the sampled IMU data over a time interval for predicting a second rotation change. The controller may be further programmed to use the time offset to vary a signal used to generate the tracking state in time to estimate the tracking state of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A possible architecture for a tracking system for a device is depicted.
[0011] Figure 2 A block diagram of a general inertial aided tracking system is described.
[0012] Figure 3 Possible timing diagrams for sampling IMU data and exteroceptive sensor data are described.
[0013] Figure 4 Depicted is a block diagram for estimating temporal alignment between states estimated by exteroceptive sensors and an IMU.
[0014] Figure 5 Depicted are possible relationships between the inertial coordinate system, the IMU coordinate system, and the exteroceptive sensor coordinate system.
[0015] Figure 6 Depicts a block diagram for aligning IMU and exteroceptive sensor data to an inertial coordinate system.
[0016] Figure 7 Schematic diagram depicting the elimination of states specific to exteroceptive sensors by reparameterizing constraints that depend on the history of pose estimates.
[0017] Figure 8 Possible system architectures for mobile devices are depicted.
[0018] Fig. 9 Depicted a possible system architecture using a dedicated IMU-exteroceptive sensor fusion core.
[0019] Fig.10 A flow chart depicting a possible sequence of operations for a position and orientation tracking system including synchronizing measurement data from an inertial measurement unit (IMU) and an exteroceptive sensor (ES) in the absence of a common electrical measurement trigger signal. DETAILED DESCRIPTION
[0020] Embodiments of the present disclosure are described herein. However, it should be understood that the disclosed embodiments are merely examples, and other embodiments may take various forms and alternative forms. These figures are not necessarily to scale; some features may be enlarged or minimized to show the details of a particular component. Therefore, the specific structural and functional details disclosed herein should not be interpreted as restrictive, but merely as a representative basis for teaching those skilled in the art to adopt the embodiments in different ways. As will be understood by those of ordinary skill in the art, the various features illustrated and described with reference to any one of the figures may be combined with the features illustrated in one or more of the other figures to produce embodiments that are not explicitly illustrated or described. The combination of features shown provides representative embodiments for typical applications. However, various combinations and modifications of features consistent with the teachings of the present disclosure are desirable for specific applications or implementations.
[0021] A tracking system is disclosed herein that estimates the position and orientation of a device by fusing observations from exteroceptive sensors and an IMU. The disclosed method separates exteroceptive sensor-specific processing from IMU-specific processing. This method provides a clear interface-driven separation that does not require developers to have IMU expertise. To achieve this, time synchronization and inertial coordinate alignment algorithms are introduced that enable measurements from the IMU and exteroceptive sensors to be aligned. A distributed state estimation approach is used, in which the elimination of states specific to exteroceptive sensors is reparameterized to depend on the history of position and orientation estimates. The disclosed system and method utilize gravity, activity sensing, and bias estimation available in modern sensor hubs to provide robust state estimation. Finally, the disclosed method presents a flexible distribution of algorithm blocks in different computing units.
[0022] The fusion of exteroceptive sensors with IMUs enables robust tracking of highly dynamic motion. An IMU is a proprioceptive sensor that includes one or more accelerometers and gyroscopes. An IMU can be configured to measure acceleration and rotation rate of a subject along / around one or more axes. With the advent of micro-electromechanical systems (MEMS), commercial-grade IMUs have become cheaper and widely available.
[0023] Figure 1A block diagram of a tracking system 100 is depicted. The tracking system 100 may be integrated as part of a device such as a cellular phone, a tablet computer, or a robotic system. The tracking system 100 may include an application processing unit 102. The application processing unit 102 may include a processor for executing instructions. The application processing unit 102 may include volatile and non-volatile memory for storing programs / applications and data. The application processing unit 102 may include additional inputs and outputs for communicating with external devices or components. The application processing unit 102 may store and execute applications 110. The application 110 may be a program or sequence of instructions for performing a specific set of operations. The application processing unit 102 may be a computing system, such as a computing system contained in a mobile phone or a tablet computer. The application processing unit 102 may be a controller that may be coupled to a mobile platform such as a robot.
[0024] The tracking system 100 may include a display 112 driven by an application processing unit 102. The display 112 may be a touch screen or a head-mounted display that provides display and input capabilities. The application processing unit 102 may implement an operating system (OS) 114 that is configured to manage applications programmed into the application processing unit 102. The operating system 114 may manage low-level features of the application processing unit 102 and provide access to the low-level features to the application 110. The application 110 may include instructions for implementing an AR and / or VR system. For example, the application 110 may be configured to position a virtual object on an image of a nearby environment. In addition, the application 110 may be programmed to reposition the virtual object within the image when the position / orientation of the device or tracking system 100 changes.
[0025] The tracking system 100 may include an exteroceptive sensor 104. The exteroceptive sensor 104 may be a global positioning system (GPS) sensor, a LIDAR, a camera, and / or a sonar sensor. The exteroceptive sensor 104 may include a sensor pre-processing core to manage the physical sensing device. The core may include a processor and a memory for executing program instructions and storing data. The exteroceptive sensor 104 may be configured to transmit raw sensor data. In other examples, the sensor pre-processing core may process observations from the exteroceptive sensor 104 to provide processed input to the application processing unit 102 instead of transmitting raw sensor data. Such processing may be specific to the associated exteroceptive sensor technology. The sensor pre-processing core may sample the corresponding sensor at predetermined time intervals.
[0026] The tracking system 100 may include an IMU 106. The IMU 106 may include a three-axis accelerometer and a three-axis gyroscope. The IMU 106 may provide acceleration and rotation rate information for each axis. The IMU 106 may include an IMU fusion core to manage the features of the IMU 106. The IMU fusion core may sample the accelerometer and gyroscope sensors at predetermined time intervals. An example of an IMU fusion core is the Bosch Sensrotech BHI160. Exemplary features and functions are described in the corresponding data sheet for the device, which is incorporated herein by reference. In some examples, the IMU 106 may be integrated with the application processing unit 102 (e.g., soldered on a board with a controller or processor). In other examples, the IMU 106 may be an external device that communicates with the application processing unit 102.
[0027] The exteroceptive sensors 104 and the IMU 106 may communicate with the application processing unit 102. The application processing unit 102 may implement an application programming interface (API) 108 configured to manage communications and information exchange between sensors (e.g., the exteroceptive sensors 104 and the IMU 106) and an application 110. The API 108 may define a predetermined number of interfaces or functions that may be executed by the application 110 to exchange data with the exteroceptive sensors 104 and the IMU 106.
[0028] Existing sensor fusion methods are specialized for specific exteroceptive sensors 104, such as GPS, LIDAR, cameras, and sonar. While it is possible to extend the algorithm from one exteroceptive sensor 104 to another, such extension requires intensive hardware changes, which requires expert knowledge and reconfiguration of the entire system to obtain suitable performance. In addition, existing methods do not separate exteroceptive sensor-specific processing from IMU-specific processing. This makes it difficult for developers who are not familiar with IMUs to incorporate such tracking algorithms. The inertial-aided positioning algorithm disclosed herein operates using a system architecture that does not impose hardware limitations when used with different exteroceptive sensors, including but not limited to cameras, LIDAR sensors, and sonar sensors.
[0029] Accurate time synchronization and external calibration between the exteroceptive sensor 104 and the IMU 106 may be implemented to achieve robust sensor fusion. In some systems, the process of obtaining time synchronization and external calibration may be closely related to the hardware implementation. This hinders the interoperability of algorithms from one system to another. The system disclosed herein introduces specific software functions, including a time synchronization function and an inertial coordinate alignment function, which estimates time offsets and external calibration based on measurements from the IMU 106 and the exteroceptive sensor 104. This improved approach removes the hardware requirement for time synchronization, which requires an explicit trigger signal to synchronize the measurements. In addition, the disclosed strategy removes the previous requirement for external calibration. The improved approach further allows different sensor units to be more simply integrated into the system.
[0030] The exteroceptive sensor specific computations can be separated from the IMU specific computations. This computational division provides a clear interface driven separation that does not require the developer to have IMU 106 expertise. However, this division divides the optimization process into two phases. In the first phase, only optimizations specific to the exteroceptive sensor 104 can be performed. In the second phase, the IMU information can be merged with the results from the exteroceptive sensor optimization to achieve robust tracking. The independence of the IMU optimization requirements from the exteroceptive sensor 104 allows developers to focus on improvements to the exteroceptive sensor specific algorithms.
[0031] The exteroceptive sensor 104 may be configured to provide data depending on the type of sensor. The exteroceptive sensor 104 may be one or more of various types of sensors, such as GPS, LIDAR, camera, and sonar. The output type of the exteroceptive sensor 104 may depend on the type of sensor technology being employed. For example, a camera system may provide images for processing. In other examples, a sonar or LIDAR sensor may provide information about the distance to objects at different locations.
[0032] Figure 2 A block diagram 200 is depicted that includes a set of possible processing blocks for an inertial assisted tracking algorithm that may be implemented as part of a tracking system. A feature extraction block 204 may be configured to process observations from the exteroceptive sensor 104 to extract different features that may be discerned over time as position and orientation change. The particular feature extraction algorithm may depend on the particular type of exteroceptive sensor 104 being used. For example, the feature extraction block 204 may be configured to detect various objects or features in the camera's field of view. In some configurations, the feature extraction block 204 may be implemented in a sensor pre-processing core.
[0033] The feature matching block 206 may be configured to search for matches between sensor measurements captured at different time instances and generate correspondences. The feature matching block 206 may be configured to identify the same features at different time instances from the observation data. Feature extraction and feature matching may be improved by using the predicted motion of the system or device. The predicted motion may reduce computation time and improve the accuracy of the function. For example, knowledge of the predicted motion of the system may be used to predict the positional movement of features identified from the observations. It may inform the feature matching block 206 where to search for features and may narrow the search area. In some configurations, the feature matching block 206 may be implemented in a sensor preprocessing core.
[0034] A motion prediction interface may be defined to facilitate the communication of predicted motion parameters to the feature matching block 206. For example, the interface may define functions that allow the feature matching block 206 to request and receive predicted motion parameters. The predicted motion parameters may include device position, device orientation, velocity, and acceleration information.
[0035] A minimum solver 208 depending on the dimensionality of the measurements from the exteroceptive sensor 104 may be implemented to determine an initial state estimate for the exteroceptive sensor state estimate 210, The minimum solver 208 may be implemented in the application processing unit 102. The minimum solver 208 may use a subset of the observed correspondences ( ) to estimate ( ). The minimum solver 208 may implement a numerical algorithm to estimate the sensor position based on multiple observations of samples sensed and provided by the external perception sensor 104. The minimum solver 208 may use the smallest possible subset of observations to generate an initial estimate of the position, orientation, and state of the system. Because the minimum solver 208 uses the smallest possible subset, it may be able to provide a fast initial estimate, however, the small subset size may lead to errors. For example, when a camera is used as an external perception sensor 104, a perspective n-point (PnP) algorithm may be used. Similarly, other geometric solvers may be used for other external perception sensors. In order to improve the robustness of the minimum solver, a random sampling consensus scheme (RANSAC) may be implemented. The number of points or features used by the minimum solver 208 may depend on the specific strategy implemented. For example, a three-point, five-point, and / or eight-point strategy may be implemented.
[0036] The exteroceptive state estimation block 210 may estimate the state specific to the exteroceptive sensor 104 in the local coordinate system of the exteroceptive sensor 104 ( ). The state estimation may be performed using a filter or an optimizer. For example, an extended Kalman filter algorithm (or a variation thereof) and a nonlinear least squares estimation (NLSQ) algorithm may be utilized. The state of the external sensor 104 may include the position of the device ,speed , angular velocity and orientation (quaternion) The orientation may be expressed as a quaternion or as three angles relative to a reference. The velocity may be expressed as a vector with magnitude and direction. The state may be identified for the system / device and for landmarks L identified in the environment. The purpose of the state estimation block 210 may be to estimate the velocity of the system / device given the observations. and measurement covariance λ to minimize the measurement error as follows:
[0037] (1).
[0038] Feature extraction block 204 , feature matching block 206 , minimum resolver block 208 , and exteroceptive state estimation block 210 may be implemented as part of an exteroceptive sensor processing routine.
[0039] An example of an IMU fusion core is the Bosch Sensortech BHI160. The sensors of the IMU 106 may be sampled at predetermined intervals. Sensor data from the IMU 106 may be received and processed. Some processing operations may be performed by the IMU fusion core. The gravity estimation block 224 may be configured to generate a gravity vector based on observations from the IMU 106. The gravity vector may define the orientation of the IMU 106 relative to the force of gravity.
[0040] The activity recognition block 226 can be configured to identify high-level activity types. For example, the activity recognition block 226 can identify the motion state of the IMU 106 as stationary, running in the hands, and / or in the car. Other motion states can be defined similarly. The activity can be distinguished by processing the accelerometer and gyroscope data from the IMU 106. Each activity type can be sensed based on corresponding criteria. The activity recognition block 226 can process velocity and acceleration data to determine the motion state. For example, in response to the acceleration and velocity being less than corresponding thresholds, the motion state can be defined as stationary. In response to the velocity exceeding the velocity threshold, the motion state can be defined as in the car. In response to the velocity being within a predetermined range and the acceleration following a predetermined curve, the motion state can be defined as running in the hands. Activity recognition can be used to predict motion.
[0041] The zero velocity bias estimation block 228 may be configured to estimate a bias or offset associated with the IMU 106. It may be beneficial to know the offset or bias of sensors (e.g., accelerometers and gyroscopes) during stationary conditions. Due to noise and / or tolerance generation, a sensor may output a non-zero value when the output should be zero. For example, when the sensor is stationary, acceleration and / or angular rate values may be measured as non-zero values, while the expected value should be zero. The bias or offset value may be estimated and subtracted from the measured value to reduce measurement errors. The bias or offset value may be calculated and stored in a non-volatile memory for later use.
[0042] Gravity estimation block 224, activity discrimination block 226, and zero velocity bias estimation 228 may be implemented in an IMU sensor hub. The following describes fusing exteroceptive sensor measurements with IMU sensor measurements to improve the overall performance of the system.
[0043] The exteroceptive sensors 104 and the IMU 106 may independently measure or estimate similar device motion parameters (e.g., position, orientation, velocity, direction of motion). However, due to sampling differences, the motion parameters may not be aligned in time. To obtain improved tracking, the measurements may be synchronized to a common clock domain. The time synchronization block 212 may be implemented to synchronize the IMU sensor measurements and the exteroceptive sensor measurements. In the absence of a common hardware trigger signal, the IMU 106 and the exteroceptive sensor 104 may not trigger measurements at the same time. The time synchronization block 212 may be configured to determine the time offset between the measurements from the IMU 106 and the exteroceptive sensor 104. The estimated time offset may then be used to time-shift the measurements from the IMU 106 or the exteroceptive sensor 104 so that the measurements may be utilized as if they were sampled simultaneously. External sensor state measurements Timestamp The IMU measurement results are obtained IMU timestamp available get.
[0044] The exteroceptive sensors 104 and the IMU sensors 106 may be sampled at different times and rates. Combining the exteroceptive sensor measurements with the IMU sensor measurements without accounting for the time difference may result in inaccurate state estimates. In order to fuse the exteroceptive sensor measurements with the IMU sensor measurements, all measurements may be time-shifted to a single clock domain. Some system designs may implement an explicit trigger signal or a shared clock between the exteroceptive sensors 104 and the IMU 106 to force simultaneous triggering. Even with hardware synchronization, different delays may be introduced during the sampling, acquisition, and transmission of the measurements that are not fully accounted for. The time synchronization block 212 may be configured to perform time synchronization to determine the time offset between the sensor measurements.
[0045] Figure 3 An example timing diagram 300 is depicted that shows sampling and acquisition times for the exteroceptive sensor 104 and the IMU 106. A first timing diagram 301 depicts sampling and acquisition times for the exteroceptive sensor 104. An exteroceptive sensor sampling instant 302 is shown as a dashed line. An exteroceptive sensor acquisition time 304 is shown as a solid line. The exteroceptive sensor sampling instant 302 may represent a time at which the exteroceptive sensor 104 is triggered to generate a measurement or sample. The exteroceptive sensor acquisition time 304 may represent a time at which the processing unit receives the observation and may include the time to transmit the sample to the processing unit. There may be an exteroceptive sensor sample acquisition (ES-SA) delay 314 between the exteroceptive sensor sampling instant 302 and the exteroceptive sensor acquisition time 304. The ES-SA delay 314 may incorporate the time for triggering and collecting observation data so that the corresponding data is ready for processing. Note that the exteroceptive sensor sampling instant 302 may exist before each exteroceptive sensor acquisition time 304 and is not all shown in this schematic diagram. Each exteroceptive sensor sampling instant 302 and exteroceptive sensor acquisition time 304 may be identified by a corresponding timestamp. The timestamp may be generated by latching or sampling a clock or timer value at the exteroceptive sensor acquisition time 304 and / or the exteroceptive sensor sampling instant 302.
[0046] The second timing diagram 305 depicts sampling and acquisition times for the IMU 106. The IMU sensor sampling instant 306 is shown as a dashed line. The IMU sensor acquisition time 308 is shown as a solid line. The IMU sensor sampling instant 306 may represent the time at which the IMU 106 is triggered to generate a measurement or sample. The IMU sensor acquisition time 308 may represent the time at which the processing unit receives the observation and may include the time to transmit the sample to the processing unit. There may be an IMU sample acquisition (IMU-SA) delay 316 between the IMU sensor sampling instant 306 and the IMU sensor acquisition time 308. The IMU-SA delay 316 may incorporate the time for triggering and collecting observation data so that the corresponding data is ready for processing. Note that the IMU sensor sampling instant 306 may occur before each IMU sensor acquisition time 308 and is not all shown in this schematic diagram. Each IMU sensor sampling instant 306 and IMU sensor acquisition time 308 may be identified by a corresponding timestamp.
[0047] The IMU 106 and the exteroceptive sensor 104 may not be synchronized via a hardware trigger. That is, the processing unit may not trigger the corresponding observations at the same time. A sensor sampling time offset 310 may exist between the exteroceptive sensor sampling time 302 and the IMU sensor sampling time 306. The sensor sampling time offset 310 may represent the difference in time at which the IMU sensor 106 and the exteroceptive sensor 104 are triggered or sampled.
[0048] The exteroceptive sensor acquisition time 302 may occur periodically, separated by an exteroceptive sensor sampling period 303. The IMU sensor acquisition time 308 may occur periodically, separated by an IMU sensor sampling time period 312. The exteroceptive sensor sampling period 303 and the IMU sensor sampling period 312 may be different. The exteroceptive sensor sampling period 303 may define an exteroceptive sensor sampling frequency (e.g., the frequency is the inverse of the time period) for acquiring data from the exteroceptive sensor 104. The IMU sensor sampling period 312 may define an IMU sensor sampling frequency for acquiring data from the IMU 106. The exteroceptive sensor sampling frequency may be different from the IMU sensor sampling frequency. For example, the IMU sensor sampling frequency may be greater than the exteroceptive sensor sampling frequency.
[0049] The time synchronization block 212 may implement a time alignment process. Figure 4 A possible block diagram 400 for the time synchronization block 212 is depicted. The exteroceptive state estimation block 210 may generate and output a timestamp for each measurement of the exteroceptive sensor 104. . Timestamp ( ) may be a sampled timer value representing the moment at which the exteroceptive sensor measurement is triggered.
[0050] The frequency estimation block 404 may be configured to estimate the frequency of the exteroceptive sensor measurements. The exteroceptive sensor sampling period 303 may be estimated as the difference between consecutive timestamps (e.g. ), where n is an integer representing the sampling time of the external sensor 104. The frequency may be the inverse of the external sensor sampling time period 303. The frequency estimation block 404 may use the estimated frequency to determine the time interval for pre-integration of the raw gyroscope information ( ΔT* ). This time interval may be provided to the pre-integration block 230. The time interval ( ΔT* ) defines the time period over which the raw IMU sensor data is integrated. The time interval ( ΔT* ) allows for a consistent time interval for comparing measurements from the exteroceptive sensors 104 and the IMU sensors 106. Due to the asynchronous nature of sampling, the motion parameters predicted by the IMU data and ES data within the same time interval may be different.
[0051] The pre-integration block 230 may generate a delta representing the change in orientation based on the IMU data within the time interval. qʹ The pre-integration block 230 can be implemented closely with the IMU sensor hub to calculate the value of I0 -τ Ik) ) The raw IMU measurements (acceleration , angular velocity ) are quickly converted into pre-integrated values. The IMU can provide sampled accelerometer and gyroscope measurements:
[0052] (2)
[0053] (3)
[0054] in b g and b a represents the deviation that affects the measurement, η g and η a represents the measurement noise, and Represents a rotation matrix.
[0055] IMU samples can be generated at a higher frequency than exteroceptive sensor samples, so measurements between consecutive exteroceptive sensor measurements can be pre-integrated. k The IMU measurement results sampled at the interval Δ T * It is derived from the integral of motion within as follows:
[0056] (4)
[0057] (5)
[0058] (6).
[0059] The time interval may correspond to the frequency estimate derived from ΔT* The resulting output of the pre-integration block 230 can also be expressed as a change or change in speed Δv , change or alteration of position Δp+ and changes or alterations in orientation Δq' , which can be directly incorporated into the inertial assisted state estimator. Pre-integration reduces the latency and computational requirements of the inertial assisted state estimator. Pre-integration depends on the integration duration ΔT* or (t E [n]-t E [n-1]) and the local reference system Ste[n-1] For example, pre-integration can be implemented by the following equation:
[0060] (7)
[0061] (8)
[0062] (9).
[0063] In the above equation, the IMU measurement result ( , ) and the accelerometer and gyroscope biases provided by the IMU fusion hub b g , b a Can be used to estimate speed changes Δv , Position Change Δp+ and orientation changes Δq' The pre-integration block 230 may provide the orientation change as the difference between the most recent values of the orientation variable. For the pre-integration calculation, the time intervals associated with n and n-1 exteroceptive sensor samples may be used.
[0064] The coarse time alignment block 408 may be configured to determine a coarse time offset between sensors. δ tc (e.g., sensor sampling time offset 310). The exteroceptive sensor state estimation block 210 may include orientation data ( q e ), from which the relative orientation (Δ q (n)). The IMU sensor data may be sampled at a rate different from the sampling rate of the exteroceptive sensor. In a configuration where the IMU sensor sampling rate is greater than the exteroceptive sensor sampling rate, the time interval (Δ T* ) may include a number of IMU sensor samples. The exteroceptive sensor timestamp may define the start and end time values of the time interval. The pre-integration block 230 may provide a similar time frame (Δ T* ). For example, the pre-integration block 230 may estimate the rotation or orientation within the time interval (Δ T* ) to generate the relative rotation or orientation Δ qʹ (n). Because the exteroceptive sensor 104 and the IMU 106 can be sampled at different rates, for each time interval (Δ T*) There may be multiple IMU sensor samples. The number of samples for IMU 106 may be based on the ratio of the sampling rate of exteroceptive sensor 104 to the sampling rate of IMU 106. In some cases, pre-integration block 230 may perform partial integration on some IMU sensor samples. For example, the time interval (Δ T* ) can be partially integrated. The result can be the exteroceptive sensor estimate Δ corresponding to the same time interval. q(n) Δ qʹ(n) Value. T* ) within Δ qʹ(n) Value and Δ q(n) The values define the corresponding time series or waveform.
[0065] The relative orientation Δ between two consecutive exteroceptive sensor estimates q(n) can be compared to the corresponding relative orientation Δ generated by the pre-integration block 230 over several IMU samples. qʹ(n) The coarse time alignment block 408 may be performed using an optimization method / algorithm. For example, a finite impulse response (FIR) filter designed in a third-order special orthogonal group (SO3) space may be implemented to determine the coarse time offset between sensors. δt c A waveform comparison algorithm can also be implemented to determine Δ q The coarse time offset between the signals δt c The coarse time alignment block 408 may adjust the relative orientation Δ q One of the waveforms or time series is changed to match the other. The time shift that causes the waveforms or time series to align can define a coarse time offset δt c The timestamps of exteroceptive sensor measurements can be corrected based on a coarse time alignment. For example, a coarse time offset δt c It can be determined by finding the minimum number of samples Δn required to reduce the difference between the orientation change estimated by the IMU 106 and the exteroceptive sensor 104:
[0066] (10)
[0067] (11).
[0068] The system can search for a sampling offset that gives the Δ estimated from consecutive exteroceptive sensor measurements. q and the change Δ derived from the IMU measurements in the same interval qʹ The system can be made by Δ q (n) and Δ qʹThe symmetric difference between the data sets represented by (n+Δn) is minimized. Δn represents the sampling offset between the exteroceptive sensor 104 and the IMU 106 expressed in number of samples. The Δn value can be an integer with a positive or negative value. To convert the offset from the number of samples to a time offset, the value can be multiplied by the time interval. Depending on the different configurations, the IMU data can be changed before or after the exteroceptive sensor data. In some configurations, a buffer of orientation values can be stored to enable a search for an optimal offset.
[0069] The inertia-assisted optimization block 410 may represent the remaining blocks in the process. For example, blocks 214 to 220 are related to the optimization process. The inertia-assisted optimization block 410 may be configured to refine the coarse time alignment. δ tc , to estimate the final time alignment online during the optimization phase. The final time offset δt f It can be determined as follows:
[0070] (12)
[0071] (13).
[0072] The final time offset is used during the optimization process to align the measurements to the same time frame. f(X,t) can represent the state estimate at time t. f pred (X, t) The additional time offset value that minimizes the function may be a final time offset value. The final time offset may be estimated as the amount of time that minimizes the distance between the state estimated using the IMU sample data and the state predicted by the exteroceptive sensor model that changes the time offset.
[0073] A time synchronization function 212 may be programmed into one or more of the cores or processors. The time synchronization function 212 may be configured to synchronize measurement data from the IMU 106 and the exteroceptive sensor 104 in a system that does not have a common electrical measurement trigger signal between the IMU 106 and the exteroceptive sensor 104 to a common time domain. A processor or core implementing the time synchronization function may receive orientation data from the exteroceptive sensor 104 at a first rate and receive orientation data from the IMU 106 at a second rate. The core or processor may be programmed to predict a first orientation change based on a difference between recent orientation data from the exteroceptive sensor 104 within a time interval defined by the first rate. The core or processor may be programmed to predict a second orientation change based on orientation data from the IMU 106 within the same time interval. The core or processor may shift the measurement data from one of the sensor systems by a time offset that minimizes an error between the first change and the second change so that waveforms or time series associated with the first change and the second change are aligned in time.
[0074] Reference again Figure 2 , the inertial coordinate alignment block 214 may be implemented to transform measurements from the IMU 106 and the exteroceptive sensor 104 to an inertial coordinate system. In VR / AR applications, alignment with an inertial reference frame enables physically based rendering and better estimation of environment geometry due to knowledge of the gravity vector.
[0075] Figure 5 A schematic diagram of coordinate systems that may be defined for a tracking system is depicted. In VR / AR applications, alignment with an inertial coordinate system 502 enables physically based presentation and better estimation of the geometry of the environment due to knowledge of a gravity vector 504. An exteroceptive sensor coordinate system 508 may be defined for the exteroceptive sensor 104 and offset from the inertial reference system 502. However, the initial position and orientation of the exteroceptive sensor 104 relative to the inertial coordinate system 502 is not observable. Thus, the position and orientation estimated by the exteroceptive sensor 104 and represented in the exteroceptive sensor coordinate system 508 are not aligned with the inertial coordinate system 502. An IMU coordinate system 506 may be defined by the IMU sensor 106 and may also be offset from the inertial coordinate system 502. It may be possible to perform a pre-calibration between the IMU 106 and the exteroceptive sensor 104, or use images to estimate the gravity vector, to align the exteroceptive sensor 104 with the inertial coordinate system 502. The IMU-inertial coordinate system transformation T that converts the IMU coordinates to the inertial coordinate system 502 may be determined. IB 512. For example, IMU-inertial coordinate system transformation T IB512 may be a matrix that is multiplied by the measurements to transform the measurements into an inertial coordinate system. Transformation T between the exteroceptive sensor coordinate system 508 and the IMU coordinate system 506 IE 510 may be determined as a transformation to convert the measured exteroceptive sensor values to match the measured IMU sensor values.
[0076] Reference again Figure 2 , the system may include an inertial coordinate alignment block 214 configured to transform the tracking data to an inertial coordinate system 502 . Figure 6 A block diagram 600 is depicted of a possible set of features for aligning coordinates to an inertial coordinate system 502 (such as may be implemented as part of an inertial coordinate alignment block 214). After time synchronization is performed, the alignment of the IMU 106 and exteroceptive sensor 104 with the inertial coordinate system 502 may be determined. The inertial coordinate initialization block 602 may receive input from the gravity estimation block 224 and a magnetometer 604 that provides a signal for orientation relative to the Earth's magnetic north. The IMU 106 measurements may be initially defined relative to the IMU coordinate system 506. The initial alignment of the IMU 106 with the gravity vector 504 (from the gravity estimation block 224) may be performed using the gravity vector estimated by the IMU sensor hub. For example, the IMU 106 may include an accelerometer positioned to measure vertical acceleration / deceleration. When the IMU 106 is positioned on a horizontal surface, the expected output will be the acceleration due to gravity. Any deviation from the known gravitational acceleration may be the result of the IMU 106 not being level (eg, tilted or tilted).
[0077] Magnetometer 604 may provide coordinate information for the north direction. Inertial coordinate system 502 may be defined such that each axis has a predetermined relationship with the gravity vector and magnetic north. Magnetometer signals may provide an orientation for inertial coordinate system 502. Knowing the orientation of inertial coordinate system 502 and gravity vector 504, the IMU-inertial coordinate system transformation T may be determined. IB 512. The IMU-inertial coordinate system transformation T IB 512 to transform the coordinates in the IMU-coordinate system 506 to the inertial coordinate system 502. For example, the IMU-inertial coordinate system transformation T IB 512 can be expressed as a matrix and can be obtained by T IB The IMU-coordinate vector is operated to obtain the inertial coordinate vector.
[0078] Next, the transformation between the coordinate system of the exteroceptive sensor 104 and the coordinate system of the IMU 106 may be estimated. The rotational alignment block 606 may receive input from the exteroceptive state estimation 210 and the pre-integration block 230. Each of the exteroceptive state estimation 210 and the pre-integration block 230 may provide an estimate of the rotational orientation (e.g., q) over a common time interval. It may be assumed that during the time interval, the exteroceptive sensor 104 and the IMU 106 have moved in the same manner. Any differences in rotational movement may be due to the relative alignment of the sensors. Knowing the rotation estimates provided by the two sensors, the transformation T may be calculated. IE 510, so that by transforming T IE 510 is applied to the external sensory coordinates to obtain the IMU coordinates. External sensory state estimation 210 can estimate the state X E = [R, t, ϕ E ], where R represents the rotation of the system relative to the inertial reference frame, t represents the position of the system relative to the inertial coordinate system, and ϕ E The representation depends on the support status of the exteroceptive sensor 104 .
[0079] The translation alignment block 608 may be implemented to perform translation alignment in a similar manner. For example, a translation transformation matrix may be determined from the translation elements (e.g., velocity and position) estimated by the exteroceptive state estimation 210 and the pre-integration block 230. This data may be applied to the translation transformation matrix, resulting in an estimate in the inertial coordinate system. These transformations may be combined into a single transformation that converts the state information associated with the exteroceptive sensor into the inertial coordinate system 502.
[0080] The transformation of the external sense to the IMU can be defined as T IE = [R IE , t IE ], where R IE and t IE represents the rotational transformation and the translational offset from the sensor coordinate system 508 to the IMU coordinate system 506. To estimate the rotational transformation, the following can be used in the external sensor coordinate system ( ) and the inertial coordinate system ( ) t1 and t2 The relative rotation between:
[0081] (14).
[0082] The translation offset may be estimated by using a method such as the Umeyama method or a similar method.
[0083] Reference again Figure 2 , the motion prediction block 216 may be implemented to predict the motion of the device. The motion prediction block 216 may receive the motion input from the motion recognition block 226. The motion prediction block 216 may also be provided with state information in the inertial coordinate system 502. The motion prediction block 216 may provide additional motion estimates for each of the tracked features from the exteroceptive sensors 104. The motion prediction block 216 may further provide an output to the feature matching block 206 to facilitate tracking of the features.
[0084] The time constraints imposed in inertial assisted optimization can be based on a prediction model used to predict the current state based on the previous state. Typically a continuous velocity model or a stationary motion model is used. However, modern IMU fusion hubs provide information about activity that can be used to select an appropriate motion model to use. The activity estimated by the IMU sensor hub can be used to enable an adaptive prediction model as described below:
[0085] (15)
[0086] Among them, if activity=in-vehicle: if activity=in-vehicle;
[0087] if activity=in-vehicle: if activity=in-vehicle;
[0088] if activity=stationary: If activity = stationary.
[0089] The time interval between the last state and the current state can be expressed as ΔT The first and second derivatives of the prediction model are defined as f' and f'' The predicted state change can be expressed as f pred (X) This example uses three models, but additional models can be incorporated if additional active states are defined. The states can be estimated based on the minimization of a nonlinear least squares criterion:
[0090] (16)
[0091] (17)
[0092] (18)
[0093] (19).
[0094] A state estimator may be used in an inertial assisted tracking algorithm to estimate the position and orientation of the system relative to the inertial coordinate system 502. In addition to position and orientation, the state estimator may also contain additional states specific to the IMU 106 (such as bias) and states specific to the exteroceptive sensors 104 (such as landmark distances). This increases the number of states estimated and, therefore, increases the complexity of the state estimator. The constraint aggregation block 218 may be implemented to remove states that depend only on the exteroceptive sensors 104. For example, state information (such as landmarks identified by the exteroceptive sensors 104) may be replaced with constraints related to past positions and orientations. The constraints may be obtained by X I =[p, q, t, ϕ I , E E ] to define the state to be estimated by the inertial assisted state estimator 220, where φ I Depends on the support status of the IMU sensor, and E represents the state aggregated from previous executions of the exteroceptive state estimation block 210 .
[0095] The state estimation can be divided into two stages. The state supported by the exteroceptive sensor 104 can be estimated in a separate estimator, and the result can be used to drive the inertial-assisted state estimator 220. This separation leads to early linearization of the state and fails to capture all correlations between the exteroceptive sensor 104 and IMU states. However, it reduces computational complexity because it reduces the number of variables to be estimated simultaneously. Constraints derived from the exteroceptive state estimator 210 can be used in the inertial-assisted state estimator 220 instead of the resulting state. This enables the final optimization performed by inertial-assisted tracking to indirectly incorporate exteroceptive constraints and proprioceptive constraints.
[0096] The state X can be estimated by the external sensory state estimator 210 E =[p E , q E , ϕ E ]. ϕ E consists of all landmarks observed by the exteroceptive sensors 104. This term can easily become unbounded and is not suitable for passing to the inertial-assisted state estimator 220. The state estimated by the exteroceptive sensors 104 ϕ E Although represented as independent, it can be reparameterized to depend on the history of previously estimated positions and orientations [q 1:n , p 1:n ].state ϕ EThis reparameterization of eliminates the states that depend only on the exteroceptive sensors 104. Mathematically, this can be viewed as a projection of only the exteroceptive sensor states onto the null space to remove them. For example, considering the case of landmarks in structure from motion-based tracking, the landmarks represented in the state estimate are actually the result of triangulation of multiple views. Landmarks may be identified or present in consecutive images. When the same feature or landmark is present in multiple images, there may be constraints between poses. The constraints may be expressed without including the landmark or feature locations.
[0097] A maximum a posteriori estimation may be implemented. ϕ E The connected constraints can be marginalized as follows:
[0098] (20)
[0099] (twenty one).
[0100] During marginalization, ϕ E The constraints in are represented by E with a simplified representation E Instead, we can assume that these states are random variables, and P(X) represents the probability density function of the random variable X.
[0101] Figure 7 7 is a diagram illustrating a re-parameterization or transformation of information specific to landmarks identified by exteroceptive sensor 104. A current camera pose 702 (p tk ). One or more landmarks 704 in the environment may be identified relative to the current camera pose 702. Each of the landmarks 704 may be identified in different camera poses (e.g., poses at different times). Each of the landmarks 704 may be associated with a set of previous camera poses. For example, a landmark may be associated with the current camera pose 702 (p tk ), the first previous camera pose 705 (p tk-1 ), the second previous camera pose 706 (p tk-2 ) and the third previous camera pose 708 (p tk-3 ) are associated with. Figure 7 represents a situation where the t k Down The current position 702 and the past position p and orientation q The state is used to define constraints, thereby eliminating landmarks 704 (L) based on cost. The transformation can be presented as:
[0102] (twenty two).
[0103] The constraints obtained from the exteroceptive sensors 104 can be combined with the temporal constraints provided by the IMU to estimate the final position and orientation of the device. X k-1 The estimated state and the prediction model f pred The time constraint from the IMU is estimated by the difference between the predicted states. In the disclosed method, an adaptive prediction model can be used, which depends on the activity determined by the IMU fusion hub. In addition, the residual of the external sensor 104 can also be calculated. The residual can be expressed as:
[0104] (twenty three)
[0105] (twenty four)
[0106] (25).
[0107] in l j Place landmarks and their i The corresponding measurement result on Z is expressed as Z = {z ij}.item r ext Represents the reprojection error. represents the intrinsic matrix, the term represents a rotation, and the term p i represents translation. Function π(x,y,z) = [x / z, y / z]. The cost function can be defined as a function of the residual as follows:
[0108] (26).
[0109] The application processing unit 102 may be programmed to implement a strategy for minimizing the cost function. Equation (26) represents a least squares minimization problem that may be solved using Gauss Netwon or Lavenberg Marquert optimization techniques. The covariance associated with the IMU prediction is given by Σ i , the covariance associated with the exteroceptive sensor measurements is given by Σ r express.
[0110] Modern IMU fusion hubs include activity discrimination features that identify the motion state of the system as stationary, in-hand running, in a car, etc. Similarly, the direction of the gravity vector and the IMU bias can also be estimated in the IMU fusion hub. The estimation performed by the IMU fusion hub is independent of the tracking algorithm and takes the characteristics of the IMU into account. The IMU fusion hub provides estimates that can be used as additional input to the inertial assisted tracking algorithm.
[0111] There are multiple distinct computational units between the raw sensor input and the processed high frequency position and orientation outputs. This computational partitioning enables higher overall processing power while reducing the load on the application processor. For example, the IMU may include a processor and the exteroceptive sensor 104 may have a corresponding processor. Additionally, the application processor may execute an application that uses the tracking data and may perform processing.
[0112] Existing approaches often ignore the different computational units and rely on the application processor to perform complete sensor fusion. However, the proposed system can be implemented to exploit the available number of computational units. Figure 8 A first example system architecture 800 for a typical smartphone-based system is presented, with a dedicated IMU-only fusion core 804 (such as Bosch Sensortech's BHI160) and a sensor processing core 806 (such as a Pixel Visual core). The system architecture 800 may include an IMU 106. The system architecture 800 may include an IMU-only fusion core 804 associated with and / or integrated with the IMU 106. The IMU-only fusion core 804 may include a processing unit or controller configured to execute programs or instructions for processing measurements from the IMU 106.
[0113] System architecture 800 may include exteroceptive sensor 104. System architecture 800 may include sensor processing core 806 associated with and / or integrated with exteroceptive sensor 104. Sensor processing core 806 may include a processing unit or processor configured to execute programs or instructions for processing measurements from exteroceptive sensor 104. In some examples, exteroceptive sensor 104 may be a camera that is part of a smartphone.
[0114] The system architecture 800 may include an application processor 802. For example, the application processor 802 may be a computing unit of a smartphone. The application processor 802 may be programmed with one or more applications. For example, the application processor 802 may be programmed with a first application 812 and a second application 814. The application processor 802 may further be programmed to implement an IMU-exteroceptive sensor fusion feature 808. The IMU-exteroceptive sensor fusion feature 808 may be configured to implement the sensor fusion strategy described above.
[0115] The application processor 802 may further be programmed to implement an application program interface (API) 810. The interface API 810 may be configured to provide an interface between the sensor processing core 806, the IMU-exteroceptive sensor fusion feature 808, and the first application 812 and the second application 814. The interface API 810 may define routines and interfaces to facilitate communication between sensors and software elements.
[0116] Only the IMU fusion core 804 may implement algorithms for bias correction and gravity estimation using zero velocity. The output of the hardware fusion core may be fused with gravity, bias, and motion state estimates. The sensor processing core 806 may be configured to perform functions specific to the external perception sensor 104, such as feature extraction, feature matching, and sensor conditioning. The IMU-external perception sensor fusion feature 808 is described in detail above herein. In this example, the IMU-external perception sensor fusion feature 808 is implemented by the application processor 802. The application processor 802 may be programmed to execute code that serves as an interface API 810 between the sensor pre-processing core 806 and the IMU-external perception sensor fusion feature 808. Having the interface API 810 on the application processor 802 increases the flexibility of the selection of the external perception sensor 104 and removes any hardware dependency on synchronization via physical wires.
[0117] Fig. 9 A second possible architecture 900 is presented in which the IMU-exteroceptive sensor fusion features are offloaded into the IMU-exteroceptive sensor fusion core 908. The second architecture 900 includes an application processor 902 that may be part of a smartphone. The IMU-exteroceptive sensor fusion core 908 may include a processing unit or controller configured to execute programs or instructions for implementing the IMU-exteroceptive sensor fusion features 808. The second architecture 900 removes processing overhead from the application processor 902. In this configuration, the IMU-exteroceptive sensor fusion core 908 and the IMU fusion core 804 alone may be integrated into a single unit.
[0118] The application processor 902 may be programmed with the first application 912 and the second application 914. The application processor 902 may further be programmed to implement the interface API 910. The interface API 910 may be configured to provide an interface between the sensor processing core 806, the IMU-exteroceptive sensor fusion feature 908, and the first application 912 and the second application 914.
[0119] The benefit of this configuration is that the application processor 902 (and the developer / programmer) does not need to perform the task of fusing sensor data. This allows developers to generate applications without having to consider sensor fusion tasks. Applications 912, 914 can use API 910 to access tracking data. API 910 provides flexibility in the selection of external sensing sensors and IMUs.
[0120] As an example, Figure 2 The features described in can be performed by different processors. Feature extraction block 204 can be implemented in sensor processing core 806. Feature matching block 206 can be implemented in sensor processing core 806. Information about motion prediction can be passed through API 910. Minimal solver 208 and constrained marginalization can be implemented in application processor 902. Time synchronization 212, inertial coordinate alignment 214, motion prediction 216, constraint aggregation 218, and inertial assisted optimization 220 can be implemented in IMU-exteroceptive sensor fusion core 908. Pre-integration 230, gravity estimation 224, activity discrimination 226, and bias estimation 228 can be implemented in IMU fusion core 804 only.
[0121] Fig.10 Flowchart 1000 depicts a possible sequence of operations for a position and orientation tracking system. At operation 1002, a controller may receive data from an exteroceptive sensor. The ES data may be received at a first rate and may include ES orientation data. At operation 1004, the controller may implement instructions to predict changes in position and orientation within a time interval based on the ES data. The change may be based on the difference between the latest ES data within the time interval defined by the first rate. The prediction of the change may be as previously described herein. At operation 1006, the controller may receive data from an IMU. The IMU data may be received at a second rate asynchronous to the first rate of the ES and may include IMU orientation data. At operation 1008, the controller may implement instructions to predict changes in position and orientation within the time interval based on the IMU data.
[0122] At operation 1010, the controller may generate a time offset, as previously described herein. The time offset may minimize the error between the change predicted by the ES and the change predicted by the IMU, so that the waveform or time series associated with the change predicted by the ES and the IMU are aligned in time. In some examples, the error may be minimized by using a finite impulse response algorithm. The final time offset may be estimated as a time amount that minimizes the distance between the estimated state of the model based on the IMU sample data to estimate the state and the model based on the ES sample data to predict the state, and the ES sample data changes the time offset. The time offset synchronizes the signals generated by the external sensor and the IMU to a common time domain. By aligning the signals to the common time domain, the synchronized sensor output values of the sensors may simultaneously represent the position and orientation of the associated device. At operation 1012, the controller may apply a time offset. For example, the time offset may be added to the timestamp of the ES data to align with the IMU data. At operation 1014, the controller may estimate the tracking state, as previously described herein. At operation 1016, the controller may operate the device according to the tracking state. The operation of the device may depend on the specific application. For example, an AR / VR application may overlay a virtual object on a displayed image that includes image data of the surrounding environment.
[0123] The process, method or algorithm disclosed herein may be delivered to / implemented by a processing device, controller or computer, which may include any existing programmable electronic control unit or dedicated electronic control unit. Similarly, the process, method or algorithm may be stored in many forms as data and instructions executable by a controller or computer, including but not limited to information permanently stored on a non-writable storage medium (such as a ROM device) and information variably stored on a writable storage medium (such as a floppy disk, a tape, a CD, a RAM device, and other magnetic and optical media). The process, method or algorithm may also be implemented in a software executable object. Alternatively, a suitable hardware component (such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a state machine, a controller or other hardware component or device) or a combination of hardware, software and firmware components may be used to implement the process, method or algorithm in whole or in part.
[0124] Although exemplary embodiments are described above, these embodiments are not intended to describe all possible forms covered by the claims. The words used in the specification are descriptive words, not restrictive words, and it should be understood that various changes can be made without departing from the spirit and scope of the present disclosure. As previously described, the features of the various embodiments can be combined to form other embodiments of the present invention that may not be explicitly described or illustrated. Although various embodiments may have been described as providing advantages or being superior to other embodiments or prior art implementations in terms of one or more desired characteristics, it is recognized by those of ordinary skill in the art that in order to achieve the desired overall system properties, compromises will be made in terms of one or more features or characteristics, depending on the specific application and implementation. These properties may include, but are not limited to, cost, strength, durability, life cycle cost, marketability, appearance, packaging, size, serviceability, weight, manufacturability, ease of assembly, etc. Thus, in any embodiment described as not as ideal as other embodiments or prior art implementations in terms of one or more characteristics, these embodiments are not outside the scope of the present disclosure and may be desirable for specific applications.
Claims
1. A method for tracking the position and orientation of a device, the method comprising: Perform the following steps via the controller: predicting a first tracking state of the device using measurements from an exteroceptive sensor sampled at a first rate; generating a second tracking state for the apparatus using measurements from an inertial measurement unit sampled at a second rate asynchronous to the first rate; synchronizing the first tracking state and the second tracking state to a common time domain by estimating a time offset that minimizes an error between changes over time between the first tracking state and the second tracking state such that a first time series associated with the first tracking state and a second time series associated with the second tracking state are aligned in time; aligning the first tracking state and the second tracking state to an inertial reference frame; as well as An inertial assisted tracking state is generated by minimizing a cost function comprising: a first residual term derived from propagating a previous state estimate using the second tracking state shifted by the time offset; and a second residual term derived from the first tracking state.
2. The method according to claim 1, further comprising: The first tracking state is predicted by searching for a state estimate that minimizes a measurement error relative to a set of observations, wherein the motion state specific to the exteroceptive sensor is in a local coordinate system.
3. The method according to claim 2, further comprising: A transformation for aligning the local coordinate system to an inertial reference system is generated using a gravity vector from the inertial measurement unit.
4. The method according to claim 1, further comprising: A first orientation change is predicted based on a difference between most recently predicted values of the first tracking state within a time interval defined by the first rate, and a second orientation change is predicted based on the second tracking state within the time interval.
5. The method according to claim 4, further comprising: The second orientation change is predicted by integrating samples of the second tracking state over the time interval.
6. The method according to claim 5, wherein: The second rate is greater than the first rate, and a predetermined number of samples from the inertial measurement unit are integrated to predict the second orientation change, the predetermined number being based on a ratio of the first rate to the second rate.
7. The method according to claim 1, further comprising: An optimization algorithm is used to minimize the error.
8. A position and orientation tracking system for a device, comprising: A controller in communication with an exteroceptive sensor core that samples exteroceptive sensors at a first rate and generates a first set of measurement data and an inertial measurement unit that samples inertial measurement unit sensors at a second rate that is asynchronous with the first rate and generates a second set of measurement data, the controller being programmed to track the motion of the device according to a tracking state by synchronizing the first set of measurement data and the second set of measurement data to a common time domain, wherein the first set of measurement data and the second set of measurement data are synchronized by offsetting one set of measurement data by a time offset that minimizes an error between a change in orientation of the device predicted by the first set of measurement data within a time interval defined by the first rate and a change in orientation of the device predicted by the second set of measurement data within the time interval.
9. The system according to claim 8, wherein: The exteroceptive sensor is a camera.
10. The system according to claim 8, wherein: The tracking state includes one or more of a position of the device, a speed of the device, and an orientation of the device.
11. The system according to claim 8, wherein: The controller is further programmed to update the time offset by an amount of time that minimizes the distance between: a model-estimated motion state predicting device motion based on the second set of measurement data, and a model-estimated motion state predicting device motion based on the first set of measurement data shifted by the time offset and the amount of time.
12. The system according to claim 8, wherein: The controller is further programmed to receive an activity type based on the inertial measurement unit data and transmit the activity type to the exteroceptive sensor core.
13. The system according to claim 8, wherein: The controller is programmed to receive an activity type based on inertial measurement unit data and to change a model used to estimate the tracking state based on the activity type.
14. The system according to claim 13, wherein: The controller is further programmed to estimate the tracking state by minimizing a cost function comprising a difference between a tracking state estimated by propagating a previous tracking state derived from the second set of measurement data and a tracking state predicted by the model based on the activity type.
15. The system according to claim 8, wherein: The controller is further programmed to perform an optimization method to minimize the total error.
16. An apparatus for synchronizing measurement data from an inertial measurement unit and an exteroceptive sensor without a common electrical measurement trigger signal therebetween, comprising: a controller in communication with an exteroceptive sensor core and an inertial measurement unit, the exteroceptive sensor core configured to sample an exteroceptive sensor at a first rate, the inertial measurement unit configured to sample an inertial measurement unit sensor at a second rate asynchronous with the exteroceptive sensor, the controller being programmed to: predict a first orientation change based on a difference between recent exteroceptive sensor orientation data within a time interval defined by the first rate; predicting a second orientation change based on inertial measurement unit orientation data within the time interval; and shifting measurement data from the exteroceptive sensor by a time offset that minimizes an error between the first orientation change and the second orientation change such that a first time series associated with the first orientation change and a second time series associated with the second orientation change are aligned in time.
17. The apparatus according to claim 16, wherein: The controller is further programmed to update the time offset by an amount of time that minimizes a distance between a tracking state estimated by a model that predicts the state based on inertial measurement unit data and a tracking state estimated by a model that predicts the state based on exteroceptive sensor data shifted by the time offset.
18. The apparatus according to claim 16, wherein: The controller is further programmed to receive an activity type based on inertial measurement unit data and transmit the activity type to the exteroceptive sensor core.
19. The apparatus according to claim 16, wherein: The controller is further programmed to perform an integration of the sampled inertial measurement unit data over the time interval for predicting the second orientation change.
20. The apparatus of claim 16, wherein: The controller is further programmed to use the time offset to shift in time a signal used to generate the tracking state to estimate a tracking state of a device.
