Sensor placement scheme optimization method, device and system and storage medium

By simulating the motion trajectory of the head-mounted display device in the virtual scene, evaluating and optimizing the sensor placement scheme, it solves the problems of high testing cost and poor robustness of the sensor placement scheme in the existing technology, and achieves more efficient sensor placement and SLAM performance.

CN118690540APending Publication Date: 2024-09-24YONGJIANG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410712791.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing extended reality technology, the sensor placement scheme of the head-mounted display device needs to be tested in real scenes, which results in high cost, large manpower and time consumption, and it is difficult to capture all possible scenes and conditions.

Method used

By simulating the virtual motion trajectory of the head-mounted display device in the virtual scene, various sensor placement schemes are evaluated, the initial sensor placement scheme is determined, and the virtual visual inertial odometry data set and Fisher information matrix are used to optimize sensor placement and reduce Physical prototyping and calibration process.

Benefits of technology

It reduces hardware costs and labor time consumption, improves the robustness of the sensor placement scheme, can simulate all possible application scenarios in virtual scenes, reduces the hand-eye calibration process, and improves SLAM performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690540A
    Figure CN118690540A
Patent Text Reader

Abstract

The invention discloses an optimization method, an optimization device and an optimization system of a sensor placement scheme and a computer readable storage medium. The optimization method comprises the following steps: acquiring a plurality of pre-designed sensor placement schemes to obtain a first scheme set; acquiring a virtual scene, and simulating a virtual motion track of the head-mounted display device in the virtual scene; determining a second scheme set from the first scheme set based on the virtual motion track; generating a virtual vision inertial odometer data set of each sensor placement scheme in the second scheme set based on the virtual movement track; an initial sensor placement scheme is determined from the second scheme set according to the plurality of virtual visual inertial odometer data sets. Therefore, compared with repeated construction, placement and calibration of the physical prototype, the method has the advantages that the hardware cost is greatly reduced, the manpower and time consumption is reduced, and the determined sensor placement scheme has better robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of extended reality technology, and in particular to an optimization method, an optimization device, an optimization system and a computer-readable storage medium for a sensor placement solution. Background Art

[0002] Extended Reality (XR) includes Augmented Reality (AR), Virtual Reality (VR) and Mixed Reality (MR). Extended Reality can combine the virtual world generated by computer graphics with the real world generated by wearable devices, allowing users to perceive information that does not exist in the real world. Simultaneous Localization and Mapping (SLAM), as an indispensable key technology in the field of extended reality, brings users a high-quality positioning interaction experience. Due to the differences in the positioning principles and algorithms used, different extended reality devices often have different sensor combinations and placement schemes. Before actual application, it is necessary to build a physical prototype in a real scene for testing to determine the best sensor combination and placement scheme, which is costly. Summary of the invention

[0003] The embodiments of the present application provide a sensor placement scheme optimization method, an optimization device, an optimization system and a computer-readable storage medium to solve at least one of the above-mentioned technical problems.

[0004] The optimization method of the sensor placement scheme of the embodiment of the present application is applied to a head-mounted display device, wherein the head-mounted display device includes a plurality of sensors, and the optimization method includes:

[0005] Acquire a plurality of pre-designed sensor placement schemes to obtain a first set of schemes;

[0006] Acquire a virtual scene, and simulate a virtual motion trajectory of the head mounted display device in the virtual scene;

[0007] Determine a second solution set from the first solution set based on the virtual motion trajectory, wherein the number of sensor placement solutions in the second solution set is less than the number of sensor placement solutions in the first solution set;

[0008] Generate a virtual visual inertial odometer data set for each sensor placement solution in the second solution set based on the virtual motion trajectory;

[0009] An initial sensor placement solution is determined from the second solution set according to the plurality of virtual visual-inertial odometry data sets.

[0010] In some embodiments, acquiring a virtual scene and simulating a virtual motion trajectory of the head mounted display device in the virtual scene includes:

[0011] Get the virtual scene;

[0012] The preset motion trajectory of the head mounted display device is integrated into the virtual scene to obtain a virtual motion trajectory.

[0013] In some embodiments, the multiple sensors include multiple visual sensors and multiple inertial sensors. In the multiple sensor placement schemes, the position of any one of the multiple inertial sensors is the spatial reference origin of the head mounted display device. The optimization method further includes:

[0014] Determine a plurality of landmarks from the virtual scene to obtain a landmark set, wherein the landmark set includes spatial coordinates of the plurality of landmarks;

[0015] Sampling the virtual motion trajectory to obtain a plurality of trajectory sampling points, where the plurality of trajectory sampling points are points corresponding to different positions of the spatial reference origin of the head mounted display device on the virtual motion trajectory;

[0016] Calculate a pose set of each visual sensor in each sensor placement scheme according to the multiple trajectory sampling points, wherein the pose of each visual sensor at the multiple trajectory sampling points corresponds to one pose set;

[0017] The determining a second solution set from the first solution set based on the virtual motion trajectory comprises:

[0018] Based on the landmark set and the pose set, a second solution set is determined from the first solution set according to a Fisher information matrix.

[0019] In some embodiments, determining a second solution set from the first solution set based on the landmark set and the pose set according to a Fisher information matrix includes:

[0020] Constructing an observation model based on the landmark set and the plurality of posture sets corresponding to each sensor placement scheme, wherein in each sensor placement scheme, each visual sensor observes each landmark corresponding to one observation model at each posture;

[0021] Constructing a cost function, and optimizing the estimation of the state vector in each of the observation models based on the cost function;

[0022] Calculate the corresponding Fisher information matrix based on the optimized state vector, each observation model corresponds to one Fisher information matrix;

[0023] The determinants of the plurality of Fisher information matrices are calculated respectively, and a second solution set is determined from the first solution set according to the size of the determinants.

[0024] In some embodiments, constructing the observation model based on the landmark set and the plurality of pose sets corresponding to each of the sensor placement schemes includes:

[0025] Calculate the imaging coordinates of each of the road signs captured by each of the visual sensors at each of the trajectory sampling points according to the external parameter matrix of each of the visual sensors and the spatial coordinates of each of the road signs;

[0026] Calculate the pixel coordinates of each of the road signs photographed by each of the visual sensors at each of the trajectory sampling points according to the internal parameter matrix of each of the visual sensors and each of the imaging coordinates;

[0027] An observation model is constructed based on the posture of each visual sensor at each trajectory sampling point, and the spatial coordinates and corresponding pixel coordinates of each photographed road sign.

[0028] In some embodiments, constructing a cost function and optimizing the estimation of the state vector in each observation model based on the cost function includes:

[0029] Constructing a cost function based on the plurality of pixel coordinates corresponding to each of the sensor placement schemes and the plurality of observation models;

[0030] The cost function is minimized to optimize the estimate of the state vector in each of the observation models.

[0031] In some embodiments, generating a virtual visual inertial odometer data set for each sensor placement scheme in the second scheme set based on the virtual motion trajectory includes:

[0032] Obtaining visual information of the visual sensor based on the virtual motion trajectory;

[0033] Obtaining inertial information of the inertial sensor based on the virtual motion trajectory;

[0034] A virtual visual-inertial odometer data set for each sensor placement scheme in the second scheme set is generated according to the visual information and the inertial information.

[0035] In some embodiments, obtaining visual information of the visual sensor based on the virtual motion trajectory includes:

[0036] According to the pose set of each visual sensor, combined with the virtual scene, visual information of the visual sensor is obtained.

[0037] In some embodiments, when the virtual motion trajectory includes the inertial information, obtaining the inertial information of the inertial sensor based on the virtual motion trajectory includes:

[0038] directly acquiring inertial information of the inertial sensor based on the virtual motion trajectory;

[0039] When the virtual motion trajectory does not include the inertial information, obtaining the inertial information of the inertial sensor based on the virtual motion trajectory includes:

[0040] The virtual motion trajectory is represented by a high-frequency continuous-time model, and the theoretical value of the accelerometer and the theoretical value of the gyroscope in each of the inertial sensors are calculated;

[0041] Noise is added to the accelerometer theoretical value and the gyroscope theoretical value to obtain inertial information of the inertial sensor.

[0042] In some embodiments, determining an initial sensor placement solution from the second solution set according to the plurality of virtual visual inertial odometry data sets includes:

[0043] Testing and verifying a plurality of the virtual visual inertial odometry data sets to evaluate the absolute trajectory error;

[0044] The sensor placement scheme corresponding to the virtual visual inertial odometer data set with the smallest absolute trajectory error is used as an initial sensor placement scheme.

[0045] In certain embodiments, the optimization method further comprises:

[0046] Based on the initial sensor placement scheme, random disturbance is introduced to generate multiple candidate sensor placement schemes;

[0047] The multiple candidate sensor placement schemes are iteratively optimized based on an iterative optimization algorithm to obtain an optimal sensor placement scheme.

[0048] The sensor placement scheme optimization device of the embodiment of the present application is applied to a head mounted display device, wherein the head mounted display device includes a plurality of sensors, and the optimization device includes:

[0049] An acquisition module, used to acquire a plurality of pre-designed sensor placement schemes to obtain a first set of schemes;

[0050] A simulation module, used to acquire a virtual scene and simulate a virtual motion trajectory of the head mounted display device in the virtual scene;

[0051] A first determining module, configured to determine a second solution set from the first solution set based on the virtual motion trajectory, wherein the number of sensor placement solutions in the second solution set is less than the number of sensor placement solutions in the first solution set;

[0052] A generating module, configured to generate a virtual visual inertial odometer data set for each sensor placement scheme in the second scheme set based on the virtual motion trajectory;

[0053] A second determination module, configured to determine an initial sensor placement solution from the second solution set according to the plurality of virtual visual inertial odometer data sets;

[0054] The iterative module is used to iteratively optimize the initial sensor placement plan to obtain the optimal sensor placement plan. The sensor placement plan optimization system of the embodiment of the present application includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the sensor placement plan optimization method of any of the above embodiments is implemented.

[0055] The computer-readable storage medium of the embodiment of the present application stores a computer program thereon, and when the program is executed by a processor, the optimization method of the sensor placement scheme of any of the above-mentioned embodiments is implemented.

[0056] In the optimization method, optimization device, optimization system and computer-readable storage medium of the sensor placement scheme of the implementation mode of the present application, a plurality of pre-designed sensor placement schemes are obtained to obtain a first set of schemes, and the virtual motion trajectory of the head-mounted display device is simulated in a virtual scene to evaluate the plurality of sensor placement schemes, and a second set of schemes is determined from the first set of schemes; and then an initial sensor placement scheme is further determined from the second set of schemes. In this way, compared with repeatedly building, placing and calibrating physical prototypes, the hardware cost is greatly reduced, the manpower and time consumption are reduced, and the determined sensor placement scheme has good robustness.

[0057] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0059] Figure 1 It is a flowchart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0060] Figure 2 is a schematic diagram of a module of a head mounted display device according to some embodiments of the present application;

[0061] Figure 3 It is a flow chart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0062] Figure 4 It is a flow chart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0063] Figure 5 It is a flowchart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0064] Figure 6 It is a flow chart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0065] Figure 7 It is a flow chart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0066] Figure 8 It is a flowchart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0067] Fig. 9 It is a flow chart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0068] Fig.10 It is a flow chart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0069] Fig.11 It is a flowchart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0070] Fig.12 It is a flow chart of a method for optimizing a sensor placement scheme in certain embodiments of the present application;

[0071] Fig.13 It is a schematic diagram of a module of an optimization device for sensor placement schemes in certain embodiments of the present application;

[0072] Fig.14 It is a schematic diagram of a module of an optimization device for sensor placement schemes in certain embodiments of the present application;

[0073] Fig.15It is a module schematic diagram of an optimization system for sensor placement solutions of certain embodiments of the present application;

[0074] Fig.16 It is a schematic diagram of the connection status between a computer-readable storage medium and a processor in certain embodiments of the present application. DETAILED DESCRIPTION

[0075] The following is a further description of the embodiments of the present application in conjunction with the accompanying drawings. The same or similar reference numerals in the accompanying drawings represent the same or similar elements or elements with the same or similar functions from beginning to end. In addition, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the present application.

[0076] The current mainstream SLAM includes monocular, binocular, RGB-D, inertial measurement unit (IMU) information, and laser radar (Light Detection And Ranging, LiDAR) information implementation schemes. Due to the differences in positioning principles and algorithms used, different head-mounted display devices often have different sensor combinations and placement schemes.

[0077] For example, in AR glasses, Microsoft HoloLens includes 1 IMU and 4 environment perception cameras (two inner ones facing forward, and two outer ones facing left and right). Magic Leap 2 headset includes 2 IMUs and 5 front-facing cameras.

[0078] In VR glasses, DPVR E4 includes 1 IMU and 4 wide-angle cameras (the two inner ones face the front and bottom, and the two outer ones face the left and right sides and diagonally upward). Meta Quest 2 includes 1 IMU and 4 wide-angle cameras (the two inner ones face the front and bottom, and the two outer ones face the left and right sides and diagonally upward).

[0079] In MR glasses, PICO 4 includes 1 IMU and 4 wide-angle cameras (the two inner ones face the front and bottom, and the two outer ones face the left and right sides diagonally upward). Meta Quest 3 includes 1 IMU and 4 grayscale cameras (the two inner ones face the front, and the two outer ones face the left and right sides diagonally downward). Apple Vision Pro includes 4 IMUs (facing downward) and 4 positioning cameras (the two inner ones face the front and bottom, and the two outer ones face the left and right sides diagonally upward).

[0080] See also Figure 1 and Figure 2, the embodiment of the present application provides a method for optimizing a sensor placement scheme. The method for optimizing a sensor placement scheme is applied to a head mounted display device 100, and the head mounted display device 100 includes a plurality of sensors. The optimization method includes:

[0081] 010: Obtain a plurality of pre-designed sensor placement schemes to obtain a first scheme set;

[0082] 020: Acquire a virtual scene, and simulate a virtual motion trajectory of the head mounted display device 100 in the virtual scene;

[0083] 030: determining a second solution set from the first solution set based on the virtual motion trajectory, wherein the number of sensor placement solutions in the second solution set is less than the number of sensor placement solutions in the first solution set;

[0084] 040: Generate a virtual visual inertial odometer data set for each sensor placement scheme in the second scheme set based on the virtual motion trajectory;

[0085] 050: Determine an initial sensor placement scheme from a second set of schemes based on multiple virtual visual-inertial odometry data sets.

[0086] In the method for optimizing the sensor placement scheme of the embodiment of the present application, a plurality of pre-designed sensor placement schemes are obtained to obtain a first set of schemes, and the virtual motion trajectory of the head mounted display device 100 is simulated in a virtual scene to evaluate the plurality of sensor placement schemes, and a second set of schemes is determined from the first set of schemes; and then an initial sensor placement scheme is further determined from the second set of schemes. In this way, compared with repeatedly building, placing and calibrating physical prototypes, the hardware cost is greatly reduced, the manpower and time consumption are reduced, and the determined sensor placement scheme has good robustness.

[0087] Specifically, the head mounted display device 100 includes a plurality of sensors. Based on factors such as hardware placement limitations, ergonomics, and industrial design, a plurality of different sensor placement schemes are pre-designed for the plurality of sensors in the head mounted display device 100. For example, one sensor placement scheme includes four sensors facing four directions, namely, up, down, left, and right, or two of them facing forward and the other two facing obliquely downward on the left and right sides. In the plurality of sensor placement schemes, the number of sensors included in the head mounted display device 100 may be the same or different.

[0088] A plurality of sensor placement schemes constitute a first scheme set. For example, S represents the first scheme set, where S = {S1, S2, S3, ..., S n}, multiple subsets S1, S2, S3, ..., S in the first solution set nThey represent a sensor placement scheme consisting of several sensors; and S n For example, S n ={S n1 , S n2 , S n3 , ..., S nm}, sensor placement scheme S n In the example, there are m sensors, among which S n1 , S n2 , S n3 , ..., S nm Respectively represent each sensor in the m sensors and the placement position of the sensor and other related information. In each sensor placement scheme, the relative position relationship between multiple sensors is known, that is, the external parameter matrix between multiple sensors is known.

[0089] After obtaining the first solution set, obtain a virtual scene. The virtual scene can be derived from a public data set, or it can be designed and constructed according to the application scenario requirements of the head-mounted display device 100 through a three-dimensional modeling and simulation platform, such as Blender, Unity 3D or Nvidia Omniverse. In combination with the virtual scene and the relative position relationship between multiple sensors, a virtual prototype of the head-mounted display device 100 under different sensor placement schemes can be modeled. After obtaining the virtual scene, simulate the virtual motion trajectory of the head-mounted display device 100 in the virtual scene. Based on the virtual motion trajectory, a second solution set can be determined from the first solution set, and the second solution set includes some sensor placement schemes in the first solution set. This part of the sensor placement scheme is a better variety of sensor placement schemes in the first solution set.

[0090] Afterwards, for each sensor placement scheme in the second scheme set, a virtual visual inertial odometry data set is generated based on the virtual motion trajectory. One sensor placement scheme corresponds to one virtual visual inertial odometry data set, and a total of multiple virtual visual inertial odometry data sets are generated. Based on the multiple virtual visual inertial odometry data sets, an initial sensor placement scheme can be determined from the second scheme set, and the initial sensor placement scheme is the best sensor placement scheme in the second scheme set.

[0091] It is understandable that different sensor placement schemes will lead to different positioning effects, and it is necessary to test a variety of different placement schemes to determine the best sensor placement scheme. In the related art, in order to conduct tests in real scenes, it is necessary to build multiple physical prototypes of the head-mounted display device 100 to test different schemes; and each iterative update of the head-mounted display device 100 requires the reconstruction, calibration and calibration of new physical prototypes, which has high hardware costs. When designing physical prototypes for sensor positions, a lot of manpower and time are required. During testing, if a robotic arm is used to control the movement of the head-mounted display device 100, additional hand-eye calibration and other processes are required, which will also consume a lot of manpower and time. In addition, due to the limitations of the real-world testing environment, the test process may not capture all the scenarios and conditions that the head-mounted display device 100 may encounter in actual applications.

[0092] In the implementation mode of the present application, the virtual motion trajectory of the head-mounted display device 100 is simulated in a virtual scene to evaluate a variety of sensor placement schemes, and then determine the initial sensor placement scheme from the multiple sensor placement schemes. In this way, compared with repeatedly building, placing and calibrating physical prototypes, the limitation of hardware dependence is bypassed, the hardware cost is greatly reduced, and the manpower and time consumption are reduced; it is also possible to quickly build a virtual prototype and improve the arrangement of sensors based on factors such as SLAM performance indicators, hardware placement limitations and ergonomics, without involving additional hand-eye calibration, etc., further reducing manpower and time consumption. In addition, the virtual scene is changeable and controllable, without environmental restrictions, and can simulate all scenes and conditions that the head-mounted display device 100 may encounter in actual applications, so that the determined initial sensor placement scheme has good robustness.

[0093] See also Figure 2 and Figure 3 In some embodiments, obtaining a virtual scene and simulating a virtual motion trajectory (ie, 020) of the head mounted display device 100 in the virtual scene includes:

[0094] 021: Get the virtual scene;

[0095] 022: Integrate the preset motion trajectory of the head mounted display device 100 into the virtual scene to obtain a virtual motion trajectory.

[0096] Specifically, taking the virtual scene obtained as an example, which is built based on a 3D modeling and simulation platform, the Blender platform can be chosen as the rendering simulation engine. In Blender, the construction of the virtual scene starts with basic mesh shapes, such as triangles, circles, cubes, etc. These basic shapes are expanded into more complex and sophisticated models through the combination of their vertices, edges, and faces. In this construction process, vertices are the basic units that make up the edges, and the edges are connected to form faces, which together define the structure of the mesh. The mesh structure is then textured. The texture map contains rich image features that can give the surface of the object details and colors.

[0097] After acquiring the virtual scene, in order to simulate the virtual motion trajectory of the head-mounted display device 100 in the virtual scene, a preset motion trajectory can be selected. This preset motion trajectory can be derived from a public data set, or it can be collected by a motion capture system device (such as a Vicon system), or generated by a computer through virtual simulation. When a preset motion trajectory is selected, the preset motion trajectory is integrated into the virtual scene to ensure the natural coordination of the preset motion trajectory and the virtual scene. The relative position and scale between the preset motion trajectory and the virtual scene, or the layout of objects in the virtual scene can be adjusted, so as to avoid unnatural behaviors such as collision and wall penetration during the movement of the head-mounted display device 100.

[0098] See also Figure 2 and Figure 4 In some embodiments, the plurality of sensors include a plurality of visual sensors 10 and a plurality of inertial sensors 20. In the plurality of sensor placement schemes, the position of any one of the plurality of inertial sensors 20 is the spatial reference origin of the head mounted display device 100. The optimization method further includes:

[0099] 070: Determine multiple landmarks from the virtual scene to obtain a landmark set, where the landmark set includes spatial coordinates of the multiple landmarks;

[0100] 080: Sampling the virtual motion trajectory to obtain a plurality of trajectory sampling points, where the plurality of trajectory sampling points are points corresponding to different positions of the spatial reference origin of the head mounted display device 100 on the virtual motion trajectory;

[0101] 090: Calculate a pose set of each visual sensor 10 in each sensor placement scheme according to a plurality of trajectory sampling points, wherein the pose of each visual sensor 10 at a plurality of trajectory sampling points corresponds to a pose set;

[0102] At this time, determining a second solution set (ie, 030) from the first solution set based on the virtual motion trajectory includes:

[0103] 031: Based on the landmark set and the pose set, determine the second solution set from the first solution set according to the Fisher information matrix.

[0104] The multiple sensors include multiple visual sensors 10 and multiple inertial sensors 20. The position of any one of the multiple inertial sensors 20 can be used as the spatial reference origin of the head mounted display device 100 to facilitate determining the relative positions and directions of other sensors. Given the spatial reference origin, based on the rigid body transformation properties, the six degrees of freedom (6-DoF) measurement of each visual sensor 10 can be calculated.

[0105] Specifically, after acquiring the virtual scene, multiple landmarks can be determined from the virtual scene. When constructing the virtual scene, the vertices of the mesh shape can not only constitute the shape of the object, but can also be selected as landmarks in the virtual scene. After texture mapping, specific feature points can be identified and selected in the image features, which are also defined as landmarks. The landmark set consisting of all the landmarks in the virtual scene is denoted as L, where L = {L1, L2, L3, ..., L n}, where subsets L1, L2, L3, ..., L n They respectively represent a landmark in the virtual scene, and each subset includes the spatial coordinates corresponding to the landmark, where the spatial coordinates refer to the three-dimensional coordinates in the world coordinate system.

[0106] After obtaining the virtual motion trajectory, a sampling frequency can be set to sample the virtual motion trajectory to obtain multiple trajectory sampling points. The sampling frequency can be set and adjusted according to actual needs and is not limited here. The multiple trajectory sampling points are points corresponding to different positions of the spatial reference origin of the head mounted display device 100 on the virtual motion trajectory.

[0107] Therefore, based on multiple trajectory sampling points, through the rigid body transformation properties and the relative posture information between multiple sensors, the posture set of each visual sensor 10 moving along the virtual motion trajectory in each sensor placement scheme can be calculated. The posture set is denoted as P, P = {P1, P2, P3, ..., P n}, where the subsets P1, P2, P3, ..., P n They respectively represent the 6-DoF measurement of the visual sensor 10 at a certain trajectory sampling point. The six degrees of freedom are the degrees of freedom of movement along the three rectangular coordinate axes of x, y, and z and the degrees of freedom of rotation around these three coordinate axes. Afterwards, based on the landmark set and the pose set, the second solution set can be determined from the first solution set according to the Fisher information matrix.

[0108] See also Figure 5In some embodiments, based on the landmark set and the pose set, determining the second solution set (i.e., 031) from the first solution set according to the Fisher information matrix includes:

[0109] 0311: constructing an observation model based on a set of road signs and a plurality of pose sets corresponding to each sensor placement scheme, wherein in each sensor placement scheme, each visual sensor 10 observes each road sign in each pose corresponding to an observation model;

[0110] 0312: Construct a cost function and optimize the estimate of the state vector in each observation model based on the cost function;

[0111] 0313: Based on the optimized state vector, the corresponding Fisher information matrix is ​​calculated. Each observation model corresponds to a Fisher information matrix.

[0112] 0314: Calculate the determinants of multiple Fisher information matrices respectively, and determine the second solution set from the first solution set according to the size of the determinant.

[0113] Specifically, each visual sensor 10 included in each sensor placement scheme corresponds to a pose set P. An observation model is constructed based on a set of landmarks and multiple pose sets corresponding to each sensor placement scheme. In each sensor placement scheme, a visual sensor 10 observes a landmark in a pose corresponding to an observation model. After the observation model is constructed, a cost function is constructed, and the estimation of the state vector in each observation model is optimized based on the cost function.

[0114] The specific process of constructing the observation model is as follows:

[0115] See also Figure 2 and Figure 6 In some embodiments, an observation model (i.e., 0311) is constructed based on a set of landmarks and a plurality of pose sets corresponding to each sensor placement scheme, including:

[0116] 03111: Calculate the imaging coordinates of each road sign captured by each visual sensor 10 at each trajectory sampling point according to the external parameter matrix of each visual sensor 10 and the spatial coordinates of each road sign;

[0117] 03112: Calculate the pixel coordinates of each road sign captured by each visual sensor 10 at each trajectory sampling point according to the internal parameter matrix and each imaging coordinate of each visual sensor 10;

[0118] 03113: Construct an observation model based on the position and posture of each visual sensor 10 at each trajectory sampling point, as well as the spatial coordinates and corresponding pixel coordinates of each landmark photographed.

[0119] Specifically, according to the external parameter matrix of each visual sensor 10 and the spatial coordinates of each road sign, the imaging coordinates of multiple road signs that each visual sensor 10 can capture at each trajectory sampling point are calculated respectively. Let the external parameter matrix of the visual sensor 10 be

[0120]

[0121] Let the spatial coordinates of the road sign in the world coordinate system be [x w ,y w , z w ], then the imaging coordinates of the road sign in the coordinate system of the visual sensor 10 can be obtained [x c ,y c , z c ], expressed as:

[0122]

[0123] The pixel coordinates of the multiple road signs are calculated according to the internal reference matrix of each visual sensor 10 and the imaging coordinates of the multiple road signs. The pixel coordinates refer to the two-dimensional coordinates of the road sign in the pixel coordinate system of the visual sensor 10. The calculation formula of the pixel coordinates [u, v] is as follows:

[0124]

[0125] in, is the internal parameter matrix of the visual sensor 10.

[0126] Afterwards, an observation model can be constructed based on the position and posture of each visual sensor 10 at each trajectory sampling point, as well as the spatial coordinates and corresponding pixel coordinates of each road sign captured. The observation model can describe the observation process of the state vector. The expression of the observation model is as follows:

[0127] z=h(X,L)+w

[0128] Wherein, X and L are the state vectors of the observation model. X represents any one of the pose sets P corresponding to multiple visual sensors 10 in a sensor placement scheme. z represents the pixel coordinates generated by the visual sensor 10 observing a landmark (a landmark in the landmark set L) at pose X, and z is the actual observation coordinate. h is a nonlinear observation function, and h(X, L) is the ideal pixel coordinate of the visual sensor 10 observing the landmark at pose X based on calculation, and is the estimated coordinate. w is a noise vector that obeys a Gaussian distribution and has a covariance matrix of R.

[0129] After constructing the observation model, the specific process of constructing the cost function is as follows:

[0130] See also Figure 2 and Figure 7In some embodiments, a cost function is constructed, and an estimate of a state vector in each observation model is optimized based on the cost function (i.e., 0312), including:

[0131] 03121: Construct a cost function based on multiple pixel coordinates and multiple observation models corresponding to each sensor placement scheme;

[0132] 03122: Minimize the cost function to optimize the estimate of the state vector in each observation model.

[0133] Specifically, the cost function is defined as the residual sum of squares of all estimated coordinates of the observation model, which can be constructed based on multiple pixel coordinates corresponding to each sensor placement scheme and the observation coordinates of multiple observation models. The expression of the cost function is as follows:

[0134]

[0135] Among them, z ijk Indicates the position X of the i-th visual sensor 10 in a certain sensor placement scheme j Observe the road sign L k The pixel coordinates generated are the actual observed coordinates. j ,L k ) is the calculated position of the i-th visual sensor 10 in position X j Observe the road sign L k The ideal pixel coordinates of are the estimated coordinates. The cost function can measure the difference between the actual observed coordinates and the estimated coordinates. Minimize the cost function and optimize the estimate of the state vector in each observation model so that the observation model can make the best estimate of the state vectors X and L to obtain the best estimated coordinates. The cost function can be minimized by adjusting the parameters in the nonlinear observation function h.

[0136] After optimizing the observation model, the Fisher information matrix of each sensor placement scheme in the first set of schemes is calculated based on the optimized state vector. The Fisher Information Matrix (FIM) provides a method to theoretically evaluate the information richness of the sensor placement scheme. The determinant of the FIM represents the amount of Fisher information. The larger the determinant of the FIM, the more information can be extracted from the sensor placement scheme, and theoretically a more accurate estimate of the state vector can be obtained. For a single estimated coordinate, the FIM is the product of the Jacobian matrix of the nonlinear observation function h with respect to the state vectors X and L and the inverse of the noise covariance matrix R, as shown in the following formula:

[0137]

[0138] Among them, H ijkis the Jacobian matrix, the Jacobian matrix H ijk is the first-order partial derivative of the nonlinear observation function h with respect to the state vector X and L. The total FIM for all estimated coordinates is the sum of the FIM of each estimated coordinate, as shown below:

[0139]

[0140] Calculate the Fisher information matrix (F total ) and F total The determinant of FIM is obtained, and the second solution set is determined from the first solution set according to the size of the determinant. The multiple sensor placement solutions can be arranged in descending order according to the size of the determinant of FIM, and a preset number of sensor placement solutions with the highest ranking are selected to form a new solution set, that is, the second solution set. The preset number can be set and adjusted according to actual conditions. Alternatively, a determinant threshold can be set, and sensor placement solutions whose size of the determinant of FIM is greater than the determinant threshold are selected to form the second solution set. Thus, the second solution set includes multiple sensor placement solutions with better performance in the first solution set.

[0141] See also Figure 2 and Figure 8 In some embodiments, generating a virtual visual inertial odometer data set (i.e., 040) for each sensor placement scheme in the second scheme set based on the virtual motion trajectory includes:

[0142] 041: Obtaining visual information of the visual sensor 10 based on the virtual motion trajectory;

[0143] 042: Obtaining inertial information of the inertial sensor 20 based on the virtual motion trajectory;

[0144] 043: Generate a virtual visual inertial odometry data set for each sensor placement scheme in the second scheme set based on the visual information and the inertial information.

[0145] Specifically, after determining the second solution set, a virtual visual-inertial odometry (VIO) data set is generated for each sensor placement solution in the second solution set. VIO is a technology that uses one or more visual sensors 10 and one or more inertial sensors 20 to measure sensor states, and can fuse data from the visual sensor 10 and the inertial sensor 20. Generating a virtual visual-inertial odometry data set requires visual information and inertial information, and both visual information and inertial information can be obtained based on a virtual motion trajectory. A virtual visual-inertial odometry data set can be generated for each sensor placement solution in the second solution set based on the visual information and inertial information.

[0146] See also Figure 2 and Fig. 9 In some embodiments, obtaining visual information (ie, 041) of the visual sensor 10 based on the virtual motion trajectory includes:

[0147] 0411: According to the pose set of each visual sensor 10 and in combination with the virtual scene, the visual information of the visual sensor 10 is obtained.

[0148] Specifically, for the visual data of the visual sensor 10, according to the posture set of each visual sensor 10 and combined with the virtual scene, Blender can be used to render the image of the virtual scene taken by the visual sensor 10 at each trajectory sampling point, and the rendered multiple images are the visual information.

[0149] See also Figure 2 and Fig.10 In some embodiments, when the virtual motion trajectory includes inertial information, obtaining the inertial information of the inertial sensor 20 based on the virtual motion trajectory (ie, 042) includes:

[0150] 0421: directly acquiring inertial information of the inertial sensor 20 based on the virtual motion trajectory;

[0151] When the virtual motion trajectory does not include inertial information, the inertial information of the inertial sensor 20 is obtained based on the virtual motion trajectory (ie, 042), including:

[0152] 0422: Representing the virtual motion trajectory with a high-frequency continuous-time model, and calculating the theoretical value of the accelerometer and the theoretical value of the gyroscope in each inertial sensor 20;

[0153] 0423: Add noise to the accelerometer theoretical value and the gyroscope theoretical value to obtain the inertial information of the inertial sensor 20.

[0154] Specifically, for the inertial data of the inertial sensor 20, when the virtual motion trajectory includes inertial information, the inertial information can be directly obtained from the virtual motion trajectory. When the virtual motion trajectory does not include inertial information, the inertial information corresponding to the virtual motion trajectory can be generated by simulation. The specific generation steps are as follows:

[0155] The inertial sensor 20 includes an accelerometer and a gyroscope, and the virtual motion trajectory includes 6-DoF information. The virtual motion trajectory containing 6-DoF information can be represented by a high-frequency continuous-time model using methods such as B-spline and vicon2gt, and then the theoretical values ​​of the accelerometer and the gyroscope in the inertial sensor 20 are calculated. Then, according to actual needs, an appropriate noise model is selected, and noise is added to the theoretical values ​​of the accelerometer and the gyroscope to more realistically simulate the output value of the actual inertial sensor 20, that is, the inertial information.

[0156] See also Fig.11 In some embodiments, determining an initial sensor placement solution (i.e., 050) from a second solution set based on a plurality of virtual visual inertial odometer data sets includes:

[0157] 051: Test and validate multiple virtual visual inertial odometry datasets to evaluate absolute trajectory error;

[0158] 052: The sensor placement scheme corresponding to the virtual visual inertial odometry dataset with the smallest absolute trajectory error is used as the initial sensor placement scheme.

[0159] Specifically, after obtaining multiple virtual visual inertial odometry datasets, multiple virtual visual inertial odometry datasets can be tested and verified. OpenVINS, OKVIS, Vins-Fusion and other positioning algorithms can be used to test and verify multiple virtual visual inertial odometry datasets. Taking the use of OpenVINS to test and verify multiple virtual visual inertial odometry datasets as an example, each virtual visual inertial odometry dataset is used as input to run OpenVINS, and OpenVINS will output an estimated trajectory. Based on the virtual motion trajectory and the estimated trajectory, the absolute trajectory error is evaluated.

[0160] For example, the timestamps of the virtual motion trajectory and the estimated trajectory can be aligned, and for each pair of corresponding points in the virtual motion trajectory and the estimated trajectory (i.e., points with the same or similar timestamps), the Euclidean distance of the corresponding points in three-dimensional space is calculated. The Euclidean distances of all time points are averaged, and the average value is used as the absolute trajectory error (ATE). The absolute trajectory error can reflect the global consistency between the virtual motion trajectory and the estimated trajectory. The multiple absolute trajectory errors obtained based on multiple virtual visual inertial odometry data sets are sorted, and the sensor placement scheme corresponding to the virtual visual inertial odometry data set with the smallest absolute trajectory error is used as the initial sensor placement scheme.

[0161] See also Fig.12 In some embodiments, the optimization method further comprises:

[0162] 061: Based on the initial sensor placement plan, introduce random perturbations to generate multiple candidate sensor placement plans;

[0163] 062: Based on the iterative optimization algorithm, multiple candidate sensor placement schemes are iteratively optimized to obtain the optimal sensor placement scheme.

[0164] In an implementation manner of the present application, after determining the initial sensor placement scheme (i.e., 050) from the second scheme set based on multiple virtual visual inertial odometer data sets, the initial sensor placement scheme can also be iteratively optimized to obtain the optimal sensor placement scheme.

[0165] Specifically, based on the initial sensor placement scheme, random disturbances are introduced to generate multiple candidate sensor placement schemes. Based on the above Fisher information matrix and absolute trajectory error, a fitness function can be defined, through which a weight is assigned to each candidate scheme. The larger the weight, the more likely the candidate sensor placement scheme is to be close to the optimal sensor placement scheme. Afterwards, an iterative optimization algorithm is used to iteratively optimize the multiple candidate sensor placement schemes.

[0166] The iterative optimization algorithm can select the candidate sensor placement scheme with better performance as the basis for the next round of iteration based on these weights. The iterative optimization algorithm can be a particle filter algorithm or any other iterative optimization algorithm, which is not limited here. Repeat the above iterative process until the convergence condition is met. The convergence condition can be customized, such as pre-setting the number of iterations, weight changes, fitness function values, etc. For example, a predetermined number of iterations is set. When the number of iterations of the above iterative process reaches the predetermined number of iterations, the iterative process is considered to have converged. After the iteration is completed, the candidate sensor placement scheme with the largest weight is selected as the optimal sensor placement scheme after iterative optimization. In this way, the optimal sensor placement scheme after iterative optimization has good robustness.

[0167] See also Fig.12 and Fig.13, the embodiment of the present application also provides an optimization device 200 for a sensor placement scheme. The optimization device 200 is applied to a head mounted display device 100, and the head mounted display device 100 includes a plurality of sensors. The optimization device 200 includes an acquisition module 210, a simulation module 220, a first determination module 230, a generation module 240, and a second determination module 250. The acquisition module 210 is used to acquire a plurality of pre-designed sensor placement schemes to obtain a first set of schemes. The simulation module 220 is used to acquire a virtual scene and simulate a virtual motion trajectory of the head mounted display device 100 in the virtual scene. The first determination module 230 is used to determine a second set of schemes from the first set of schemes based on the virtual motion trajectory, and the number of sensor placement schemes in the second set of schemes is less than the number of sensor placement schemes in the first set of schemes. The generation module 240 is used to generate a virtual visual inertial odometer data set for each sensor placement scheme in the second set of schemes based on the virtual motion trajectory. The second determination module 250 is used to determine an initial sensor placement scheme from the second set of schemes based on a plurality of virtual visual inertial odometer data sets.

[0168] In some embodiments, the simulation module 220 is specifically used to obtain a virtual scene; a preset motion trajectory of the head mounted display device 100 is integrated into the virtual scene to obtain a virtual motion trajectory.

[0169] See also Fig.12 and Fig.14 In some embodiments, the multiple sensors include multiple visual sensors 10 and multiple inertial sensors 20. In the multiple sensor placement schemes, the position of any one of the multiple inertial sensors 20 is the spatial reference origin of the head-mounted display device 100. The optimization device 200 also includes a third determination module 270, a sampling module 280, and a calculation module 290. The third determination module 270 is used to determine multiple landmarks from the virtual scene to obtain a landmark set, and the landmark set includes the spatial coordinates of multiple landmarks. The sampling module 280 is used to sample the virtual motion trajectory to obtain multiple trajectory sampling points, and the multiple trajectory sampling points are points corresponding to the spatial reference origin of the head-mounted display device 100 at different positions on the virtual motion trajectory. The calculation module 290 is used to calculate the pose set of each visual sensor 10 in each sensor placement scheme according to the multiple trajectory sampling points, and the pose of each visual sensor 10 at the multiple trajectory sampling points corresponds to a pose set. At this time, the first determination module 230 is specifically used to determine the second solution set from the first solution set based on the landmark set and the pose set according to the Fisher information matrix.

[0170] In some embodiments, the first determination module 230 is specifically used to construct an observation model based on a set of landmarks and multiple pose sets corresponding to each sensor placement scheme, wherein, in each sensor placement scheme, each visual sensor 10 observes each landmark in each pose corresponding to an observation model; construct a cost function, and optimize the estimate of the state vector in each observation model based on the cost function; calculate the corresponding Fisher information matrix based on the optimized state vector, and each observation model corresponds to a Fisher information matrix; calculate the determinants of multiple Fisher information matrices respectively, and determine the second scheme set from the first scheme set according to the size of the determinant.

[0171] In some embodiments, the first determination module 230 is specifically used to calculate the imaging coordinates of each road sign captured by each visual sensor 10 at each trajectory sampling point based on the external parameter matrix of each visual sensor 10 and the spatial coordinates of each road sign; calculate the pixel coordinates of each road sign captured by each visual sensor 10 at each trajectory sampling point based on the internal parameter matrix of each visual sensor 10 and each imaging coordinate; and construct an observation model based on the posture of each visual sensor 10 at each trajectory sampling point, as well as the spatial coordinates and corresponding pixel coordinates of each captured road sign.

[0172] In some embodiments, the first determination module 230 is specifically used to construct a cost function based on multiple pixel coordinates corresponding to each sensor placement scheme and multiple observation models; and minimize the cost function to optimize the estimation of the state vector in each observation model.

[0173] In some embodiments, the generation module 240 is specifically used to obtain visual information of the visual sensor 10 based on the virtual motion trajectory; obtain inertial information of the inertial sensor 20 based on the virtual motion trajectory; and generate a virtual visual inertial odometer data set for each sensor placement scheme in the second scheme set based on the visual information and the inertial information.

[0174] In some embodiments, the generation module 240 is specifically configured to obtain visual information of the visual sensor 10 based on a pose set of each visual sensor 10 in combination with a virtual scene.

[0175] In some embodiments, when the virtual motion trajectory includes inertial information, the generation module 240 is specifically used to directly obtain the inertial information of the inertial sensor 20 based on the virtual motion trajectory. When the virtual motion trajectory does not include inertial information, the generation module 240 is specifically used to represent the virtual motion trajectory with a high-frequency continuous-time model, calculate the accelerometer theoretical value and the gyroscope theoretical value in each inertial sensor 20, and add noise to the accelerometer theoretical value and the gyroscope theoretical value to obtain the inertial information of the inertial sensor 20.

[0176] In some embodiments, the second determination module 250 is specifically used to test and verify multiple virtual visual inertial odometry data sets to evaluate the absolute trajectory error; and use the sensor placement scheme corresponding to the virtual visual inertial odometry data set with the smallest absolute trajectory error as the initial sensor placement scheme.

[0177] In some embodiments, the optimization device 200 also includes an iteration module 260, which is used to introduce random disturbances based on the initial sensor placement plan to generate multiple candidate sensor placement plans; iteratively optimize the multiple candidate sensor placement plans based on an iterative optimization algorithm to obtain an optimal sensor placement plan.

[0178] It should be pointed out that the explanation of the optimization method of the sensor placement scheme in the aforementioned embodiment is also applicable to the optimization device 200 of the sensor placement scheme in the embodiment of the present application, and will not be elaborated here.

[0179] See also Fig.15 The embodiment of the present application also provides a sensor placement scheme optimization system 300. The optimization system 300 includes one or more processors 310 and a memory 320. The memory 320 stores a computer program. When the computer program is executed by the processor 310, the sensor placement scheme optimization method of any of the above embodiments is implemented.

[0180] For example, when the computer program is executed by the processor 310, the following method for optimizing the sensor placement scheme is implemented:

[0181] 010: Obtain a plurality of pre-designed sensor placement schemes to obtain a first scheme set;

[0182] 020: Acquire a virtual scene, and simulate a virtual motion trajectory of the head mounted display device 100 in the virtual scene;

[0183] 030: determining a second solution set from the first solution set based on the virtual motion trajectory, wherein the number of sensor placement solutions in the second solution set is less than the number of sensor placement solutions in the first solution set;

[0184] 040: Generate a virtual visual inertial odometer data set for each sensor placement scheme in the second scheme set based on the virtual motion trajectory;

[0185] 050: Determine an initial sensor placement scheme from a second set of schemes based on multiple virtual visual-inertial odometry data sets.

[0186] For another example, when the computer program is executed by the processor 310, the following method for optimizing the sensor placement scheme is implemented:

[0187] 021: Get the virtual scene;

[0188] 022: Integrate the preset motion trajectory of the head mounted display device 100 into the virtual scene to obtain a virtual motion trajectory.

[0189] It should be pointed out that the explanation of the sensor placement scheme optimization method and the optimization device 200 in the aforementioned embodiment is also applicable to the sensor placement scheme optimization system 300 of the embodiment of the present application, and will not be elaborated here.

[0190] See also Fig.16 The embodiment of the present application also provides a computer-readable storage medium 400 on which a computer program 410 is stored. When the program is executed by a processor 420, a method for optimizing the sensor placement scheme of any of the above embodiments is implemented.

[0191] For example, when the program is executed by the processor 420, the following method for optimizing the sensor placement scheme is implemented:

[0192] 010: Obtain a plurality of pre-designed sensor placement schemes to obtain a first scheme set;

[0193] 020: Acquire a virtual scene, and simulate a virtual motion trajectory of the head mounted display device 100 in the virtual scene;

[0194] 030: determining a second solution set from the first solution set based on the virtual motion trajectory, wherein the number of sensor placement solutions in the second solution set is less than the number of sensor placement solutions in the first solution set;

[0195] 040: Generate a virtual visual inertial odometer data set for each sensor placement scheme in the second scheme set based on the virtual motion trajectory;

[0196] 050: Determine an initial sensor placement scheme from a second set of schemes based on multiple virtual visual-inertial odometry data sets.

[0197] For another example, when the program is executed by the processor 420, the following method for optimizing the sensor placement scheme is implemented:

[0198] 021: Get the virtual scene;

[0199] 022: Integrate the preset motion trajectory of the head mounted display device 100 into the virtual scene to obtain a virtual motion trajectory.

[0200] It should be pointed out that the explanation of the optimization method and the optimization device 200 for the sensor placement scheme in the aforementioned embodiment is also applicable to the computer-readable storage medium 400 of the embodiment of the present application, and will not be elaborated here.

[0201] In summary, in the sensor placement optimization method, optimization device 200, optimization system 300 and computer-readable storage medium 400 of the embodiment of the present application, a plurality of pre-designed sensor placement schemes are obtained to obtain a first set of schemes, and the virtual motion trajectory of the head-mounted display device 100 is simulated in a virtual scene to evaluate the plurality of sensor placement schemes, and a second set of schemes is determined from the first set of schemes; and then the initial sensor placement scheme is further determined from the second set of schemes. In this way, compared with repeatedly building, placing and calibrating physical prototypes, the hardware cost is greatly reduced, the manpower and time consumption are reduced, and the determined sensor placement scheme has good robustness.

[0202] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0203] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0204] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a computer-readable storage medium can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0205] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0206] A person of ordinary skill in the art will appreciate that all or part of the steps carried by the method for implementing the above-mentioned embodiment can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment. In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.

[0207] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application. The scope of the present application is defined by the claims and their equivalents.

Claims

1. A method for optimizing sensor placement scheme, It is characterized in that Applied to a head mounted display device, the head mounted display device includes a plurality of sensors, and the optimization method includes: Acquire a plurality of pre-designed sensor placement schemes to obtain a first set of schemes; Acquire a virtual scene, and simulate a virtual motion trajectory of the head mounted display device in the virtual scene; Determine a second solution set from the first solution set based on the virtual motion trajectory, wherein the number of sensor placement solutions in the second solution set is less than the number of sensor placement solutions in the first solution set; Generate a virtual visual inertial odometer data set for each sensor placement solution in the second solution set based on the virtual motion trajectory; An initial sensor placement solution is determined from the second solution set according to the plurality of virtual visual-inertial odometry data sets.

2. The optimization method according to claim 1, It is characterized in that The step of acquiring a virtual scene and simulating a virtual motion trajectory of the head mounted display device in the virtual scene includes: Get the virtual scene; The preset motion trajectory of the head mounted display device is integrated into the virtual scene to obtain a virtual motion trajectory.

3. The optimization method according to claim 2, It is characterized in that The multiple sensors include multiple visual sensors and multiple inertial sensors. In the multiple sensor placement schemes, the position of any one of the multiple inertial sensors is the spatial reference origin of the head mounted display device. The optimization method further includes: Determine a plurality of landmarks from the virtual scene to obtain a landmark set, wherein the landmark set includes spatial coordinates of the plurality of landmarks; Sampling the virtual motion trajectory to obtain a plurality of trajectory sampling points, where the plurality of trajectory sampling points are points corresponding to different positions of the spatial reference origin of the head mounted display device on the virtual motion trajectory; Calculate a pose set of each visual sensor in each sensor placement scheme according to the multiple trajectory sampling points, wherein the pose of each visual sensor at the multiple trajectory sampling points corresponds to one pose set; The determining a second solution set from the first solution set based on the virtual motion trajectory comprises: Based on the landmark set and the pose set, a second solution set is determined from the first solution set according to a Fisher information matrix.

4. The optimization method according to claim 3, It is characterized in that The determining a second solution set from the first solution set based on the landmark set and the pose set according to a Fisher information matrix comprises: Constructing an observation model based on the landmark set and the plurality of posture sets corresponding to each sensor placement scheme, wherein in each sensor placement scheme, each visual sensor observes each landmark corresponding to one observation model at each posture; Constructing a cost function, and optimizing the estimation of the state vector in each of the observation models based on the cost function; Calculating a corresponding Fisher information matrix based on the optimized state vector, each observation model corresponds to one Fisher information matrix; The determinants of the plurality of Fisher information matrices are calculated respectively, and a second solution set is determined from the first solution set according to the size of the determinants.

5. The optimization method according to claim 4, It is characterized in that The constructing of the observation model based on the landmark set and the plurality of pose sets corresponding to each of the sensor placement schemes comprises: Calculate the imaging coordinates of each of the road signs captured by each of the visual sensors at each of the trajectory sampling points according to the external parameter matrix of each of the visual sensors and the spatial coordinates of each of the road signs; Calculate the pixel coordinates of each of the road signs photographed by each of the visual sensors at each of the trajectory sampling points according to the internal parameter matrix of each of the visual sensors and each of the imaging coordinates; An observation model is constructed based on the posture of each visual sensor at each trajectory sampling point, and the spatial coordinates and corresponding pixel coordinates of each photographed road sign.

6. The optimization method according to claim 5, It is characterized in that The step of constructing a cost function and optimizing the estimation of the state vector in each observation model based on the cost function includes: Constructing a cost function based on the plurality of pixel coordinates corresponding to each of the sensor placement schemes and the plurality of observation models; The cost function is minimized to optimize the estimate of the state vector in each of the observation models.

7. The optimization method according to claim 3, It is characterized in that The step of generating a virtual visual inertial odometer data set for each sensor placement scheme in the second scheme set based on the virtual motion trajectory includes: Obtaining visual information of the visual sensor based on the virtual motion trajectory; Obtaining inertial information of the inertial sensor based on the virtual motion trajectory; A virtual visual-inertial odometer data set for each sensor placement scheme in the second scheme set is generated according to the visual information and the inertial information.

8. The optimization method according to claim 7, It is characterized in that The obtaining of visual information of the visual sensor based on the virtual motion trajectory includes: According to the pose set of each visual sensor, combined with the virtual scene, visual information of the visual sensor is obtained.

9. The optimization method according to claim 7, It is characterized in that When the virtual motion trajectory includes the inertial information, obtaining the inertial information of the inertial sensor based on the virtual motion trajectory includes: directly acquiring inertial information of the inertial sensor based on the virtual motion trajectory; When the virtual motion trajectory does not include the inertial information, obtaining the inertial information of the inertial sensor based on the virtual motion trajectory includes: The virtual motion trajectory is represented by a high-frequency continuous-time model, and the theoretical value of the accelerometer and the theoretical value of the gyroscope in each of the inertial sensors are calculated; Noise is added to the accelerometer theoretical value and the gyroscope theoretical value to obtain inertial information of the inertial sensor.

10. The optimization method according to claim 1, It is characterized in that Determining an initial sensor placement scheme from the second scheme set according to the plurality of virtual visual inertial odometer data sets includes: Testing and verifying a plurality of the virtual visual inertial odometry data sets to evaluate the absolute trajectory error; The sensor placement scheme corresponding to the virtual visual inertial odometer data set with the smallest absolute trajectory error is used as an initial sensor placement scheme.

11. The optimization method according to claim 1, It is characterized in that The optimization method further comprises: Based on the initial sensor placement scheme, random disturbance is introduced to generate multiple candidate sensor placement schemes; The multiple candidate sensor placement schemes are iteratively optimized based on an iterative optimization algorithm to obtain an optimal sensor placement scheme.

12. A device for optimizing sensor placement scheme, It is characterized in that Applied to a head mounted display device, the head mounted display device includes a plurality of sensors, and the optimization device includes: An acquisition module, used to acquire a plurality of pre-designed sensor placement schemes to obtain a first set of schemes; A simulation module, used to acquire a virtual scene and simulate a virtual motion trajectory of the head mounted display device in the virtual scene; A first determining module, configured to determine a second solution set from the first solution set based on the virtual motion trajectory, wherein the number of sensor placement solutions in the second solution set is less than the number of sensor placement solutions in the first solution set; A generating module, configured to generate a virtual visual inertial odometer data set for each sensor placement scheme in the second scheme set based on the virtual motion trajectory; A second determination module, configured to determine an initial sensor placement solution from the second solution set according to the plurality of virtual visual inertial odometer data sets; The iterative module is used to iteratively optimize the initial sensor placement plan to obtain an optimal sensor placement plan.

13. A sensor placement optimization system, It is characterized in that The sensor placement scheme optimization system includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the sensor placement scheme optimization method described in any one of claims 1-11 is implemented.

14. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the optimization method of the sensor placement scheme described in any one of claims 1-11 is implemented.