Simulation optimization method and device, computer device and storage medium
By using virtual sensors to collect motion parameters and attitude estimation algorithms in a simulation environment, the sensors and algorithms of augmented reality devices are optimized, solving the problem of insufficient test coverage in existing technologies, improving optimization efficiency and reducing costs.
Patent Information
- Application Number
- CN202311257492.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-09-26
AI Technical Summary
In existing technologies, the 6-DOF spatial positioning test of augmented reality (XR) devices is limited by site conditions and equipment costs, making it difficult to achieve comprehensive test coverage and resulting in low optimization efficiency.
By collecting motion parameters in a simulation environment using virtual sensors, determining attitude information using attitude estimation algorithms, and optimizing the sensors and algorithms based on simulation test results, automated simulation optimization can be achieved.
It improves testing efficiency, reduces production costs, enhances the robustness and applicability of algorithms, and provides a more accurate virtual reality and augmented reality experience.
Smart Images

Figure CN117252017B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of simulation testing technology, and in particular to a simulation optimization method, apparatus, computer equipment, and storage medium. Background Technology
[0002] For 6-DOF spatial localization of augmented reality (XR) devices, various sensors are used, including cameras, inertial measurement units (IMUs), and lidar. Different sensor combinations and models can be selected to suit different application scenarios and performance requirements. Sensor selection involves considering performance parameters (such as resolution, sampling rate, and angular velocity range) as well as balancing cost and power consumption. The structural design focuses on the sensor's position, angle, and relative attitude, as well as the overall assembly method of the device, to ensure accurate sensor sensing and stability.
[0003] In related technologies, to verify and evaluate the performance of 6DOF algorithms and XR devices, testing is typically conducted in real-world environments. Developers then optimize the sensor selection, structural design, and related algorithms of the XR device based on the test results. However, this approach is limited by site conditions and equipment costs, making comprehensive test coverage difficult and resulting in low optimization efficiency. Summary of the Invention
[0004] This application proposes a simulation optimization method, apparatus, computer equipment, and storage medium to improve the efficiency of simulation optimization.
[0005] In a first aspect, embodiments of this application provide a simulation optimization method, the method comprising: acquiring first motion parameters of a first simulation object during a target simulation process using a first motion sensor, wherein the first motion sensor is a virtual sensor deployed on the first simulation object; determining first posture information of the first simulation object during the target simulation process using an attitude estimation algorithm and based on the first motion parameters; generating simulation test results based on the first posture information and preset posture information of the first simulation object during the target simulation process; and optimizing at least one of the first motion sensor and the attitude estimation algorithm based on the simulation test results.
[0006] Secondly, embodiments of this application provide a simulation optimization device, comprising: a parameter acquisition module, an attitude estimation module, a simulation result generation module, and a simulation optimization module. The parameter acquisition module is used to acquire first motion parameters of a first simulation object during a target simulation process using a first motion sensor, wherein the first motion sensor is a virtual sensor deployed on the first simulation object. The attitude estimation module is used to determine first attitude information of the first simulation object during the target simulation process using an attitude estimation algorithm and based on the first motion parameters. The simulation result generation module is used to generate simulation test results based on the first attitude information and preset attitude information of the first simulation object during the target simulation process. The simulation optimization module is used to optimize at least one of the first motion sensor and the attitude estimation algorithm based on the simulation test results.
[0007] Thirdly, embodiments of this application provide a computer device, including: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the methods described above.
[0008] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code that can be invoked by a processor to execute the methods described above.
[0009] The solution provided in this application acquires the first motion parameters of a first simulated object during the target simulation process using a first motion sensor, which is a virtual sensor deployed on the first simulated object. An attitude estimation algorithm is used, and based on the first motion parameters, the first attitude information of the first simulated object during the target simulation process is determined. Simulation test results are generated based on the first attitude information and preset attitude information of the first simulated object during the target simulation process. Based on the simulation test results, at least one of the first motion sensor and the attitude estimation algorithm is optimized. In other words, a sensor-algorithm simulation approach is adopted, where a virtual sensor collects the motion parameters of the first simulated object during the target simulation process, and its first attitude information is estimated based on the motion parameters. The first attitude information is then compared with preset attitude information to generate corresponding simulation test results. Based on the simulation test results, at least one of the first motion sensor and the attitude estimation algorithm is optimized. This allows for verification and evaluation in a simulation environment, improving testing efficiency. Furthermore, it achieves automated simulation optimization, significantly improving optimization efficiency compared to manual optimization based on test results from a real environment. Attached Figure Description
[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 A schematic flowchart of a simulation optimization method provided in an embodiment of this application is shown.
[0012] Figure 2 A flowchart illustrating a simulation optimization method provided in another embodiment of this application is shown.
[0013] Figure 3 It shows Figure 2 A flowchart illustrating a sub-step of step S280 in one embodiment.
[0014] Figure 4 A flowchart illustrating a simulation optimization method provided in another embodiment of this application is shown.
[0015] Figure 5 This is a block diagram of a simulation optimization device provided according to an embodiment of this application.
[0016] Figure 6 This is a block diagram of a computer device for performing a simulation optimization method according to an embodiment of this application.
[0017] Figure 7 This is a storage unit in this application embodiment for storing or carrying program code that implements the simulation optimization method according to this application embodiment. Detailed Implementation
[0018] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative effort are within the scope of protection of the present application.
[0019] It should be noted that some processes described in the specification, claims, and accompanying drawings of this application include multiple operations that appear in a specific order. These operations may not be performed in the order they appear herein, or they may be performed in parallel. Operation numbers such as S110, S120, etc., are merely used to distinguish different operations and do not represent any execution order. Furthermore, these processes may include more or fewer operations, and these operations may be performed sequentially or in parallel. Also, the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover non-exclusive inclusion, such that a process, method, system, product, or server that includes a series of steps or sub-modules is not necessarily limited to those steps or sub-modules that are explicitly listed, but may include other steps or sub-modules that are not explicitly listed or that are inherent to such process, method, product, or device.
[0020] The inventors have proposed a simulation optimization method, apparatus, computer equipment, and storage medium. The simulation optimization method provided in the embodiments of this application will be described in detail below.
[0021] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a simulation optimization method provided in one embodiment of this application. The following will be combined with... Figure 1 The simulation optimization method provided in the embodiments of this application will be described in detail. The simulation optimization method may include the following steps:
[0022] Step S110: Obtain the first motion parameters of the first simulation object during the target simulation process through the first motion sensor, wherein the first motion sensor is a virtual sensor deployed on the first simulation object.
[0023] In this embodiment, the first simulation object can be understood as a virtual 3D model of the actual appearance of an electronic device. Electronic devices include, but are not limited to, Augmented Reality (AR) devices, Virtual Reality (VR) devices, and VR and XR devices, such as VR headsets, AR headsets, VR glasses, AR glasses, or VR controllers. A virtual sensor can be understood as a software package simulated based on the mathematical model of its corresponding real sensor. Deploying this software package on a computer device allows it to simulate the working principle of the real sensor and generate corresponding data output. That is, in the simulation environment of the computer device, the virtual sensor can simulate the data output by its corresponding real sensor in the real environment. The real sensors corresponding to the virtual sensors include, but are not limited to, various types of sensors such as IMUs, cameras, LiDAR, and ultrasonic sensors.
[0024] Since the motion parameters of the first simulated object during the target simulation process are collected through virtual sensors, different virtual sensors collect different types of motion parameters. For example, if the first motion sensor is a virtual sensor corresponding to an IMU, then the first motion parameters it collects are data such as acceleration and angular velocity; if the first motion sensor is a virtual sensor corresponding to a camera (i.e., a virtual camera), then the first motion parameters it collects are images. Understandably, any data that can be used to represent or calculate the motion state of the simulated object can be considered as the first motion parameter; that is, the first motion parameter does not only include traditional motion parameters such as velocity, acceleration, and angular velocity. Images, point cloud data, and ultrasonic data, which can be used to calculate the aforementioned traditionally defined data, can also be considered as motion parameters. Naturally, the first motion sensor is not limited to an IMU; it can be a virtual sensor corresponding to any of the aforementioned submitted real sensors.
[0025] The target simulation process can be the process of a first simulated object performing a target action within a target simulation environment. Both the target simulation environment and the target action can be pre-set by the user. The target simulation environment can be a virtual 3D simulation environment generated by computer equipment, or it can be a virtual 3D environment corresponding to the real 3D environment, generated by computer equipment based on received video of a real 3D environment, extracting point cloud data of the real 3D environment, and then using the point cloud data. The real 3D environment includes, but is not limited to, indoor, outdoor, underwater, nighttime, extreme weather, daily life, and professional industrial scenes. Such a simulation environment, generated based on a real 3D environment, is similar to the real 3D environment, thereby improving the simulation effect. Target actions include, but are not limited to, head rotation movements, haptic movements, hand interaction movements, high-speed movement, and steep turns.
[0026] This embodiment employs advanced graphics rendering technology and a physical simulation engine to highly reproduce the 3D usage scenarios of XR devices in the real world. From indoors to outdoors, from everyday life scenarios to professional applications, the platform provides diverse scene settings to ensure the high realism and reliability of the generated sensor data under different environments. This comprehensive scene simulation provides important reference for the development and optimization of XR devices.
[0027] Step S120: Using an attitude estimation algorithm and based on the first motion parameters, determine the first attitude information of the first simulation object in the target simulation process.
[0028] Furthermore, an attitude estimation algorithm can be used to determine the sub-attitude information corresponding to each sub-state in the multiple sub-states of the first simulation object during the target simulation process, based on the first motion parameters. This results in multiple sub-attitude information, which serves as the first attitude information of the first simulation object during the target simulation process. The attitude estimation algorithm can include at least the 6DOF algorithm and a multi-sensor data fusion algorithm, including but not limited to extended Kalman filtering, unscented Kalman filtering, and particle filtering algorithms.
[0029] Step S130: Generate simulation test results based on the first attitude information and the preset attitude information of the first simulation object in the target simulation process.
[0030] Understandably, the preset attitude information includes multiple preset sub-attitude information, each corresponding one-to-one with the aforementioned multiple sub-states; that is, during the target simulation process, the preset sub-attitude information corresponding to each of the multiple sub-states of the first simulation object is known. Based on this, the differences between the multiple sub-attitude information and the multiple preset sub-attitude information can be compared, and the corresponding simulation test results can be generated based on the comparison results.
[0031] In other implementations, the simulation model and algorithm can be optimized by collecting sensor data in a real environment and comparing and calibrating the real attitude information determined based on the real sensor data with the first attitude information determined based on the sensor data collected by virtual sensors. This makes the simulation model and algorithm closer to the real scene and improves the credibility and predictive ability of the simulation platform.
[0032] Step S140: Based on the simulation test results, optimize at least one of the first motion sensor and the attitude estimation algorithm.
[0033] In this embodiment, the simulation test results can characterize whether the first attitude information estimated based on the first motion parameters collected by the first motion sensor is consistent with the preset attitude information. Optionally, if the first attitude information is inconsistent with the preset attitude information, it indicates that the first attitude information estimated based on the first motion parameters is inaccurate. Understandably, the reasons for inaccuracy include at least one of the following: too many or too few first motion sensors, insufficient accuracy of the data collected by the first motion sensors, a mismatch between the accuracy of the data collected by the first motion sensors and the accuracy of the attitude estimation algorithm, unsuitable algorithm parameters in the attitude estimation algorithm, and inappropriate deployment positions of the first motion sensors on the first simulation object, etc. Therefore, if the simulation test results indicate that the first attitude information is inconsistent with the preset attitude information, the computer device can automatically optimize at least one of the first motion sensors and the attitude estimation algorithm.
[0034] In this embodiment, a sensor-algorithm simulation approach is adopted. A virtual sensor collects the motion parameters of the first simulated object during the target simulation process, and its first posture information is estimated based on these motion parameters. The first posture information is then compared with preset posture information to generate corresponding simulation test results. Based on these results, at least one of the first motion sensor and the posture estimation algorithm is optimized. This allows for verification and evaluation in a simulation environment, improving testing efficiency. Furthermore, it achieves automated simulation optimization, significantly improving efficiency compared to manual optimization based on real-world test results. In the early development and design stages of the device, this application evaluates and optimizes the hardware structure of XR, AR, and VR devices, predicting 6DOF performance under different design schemes, reducing product design risks and production costs. Generating diverse 6DOF sensor data through a simulation platform improves algorithm development and testing efficiency, accelerates the optimization process, and enhances the robustness and applicability of the algorithm. During the algorithm development stage, large-scale testing using simulation data helps the development team iterate quickly, thereby providing a more accurate and smooth virtual reality and augmented reality experience.
[0035] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a simulation optimization method provided in another embodiment of this application. The following will be combined with... Figure 2 The simulation optimization method provided in the embodiments of this application will be described in detail. The simulation optimization method may include the following steps:
[0036] Step S210: Display the simulation configuration interface, which includes at least multiple virtual simulation objects and multiple virtual sensors.
[0037] In this embodiment, after the user launches the simulation application, the computer device can display the main interface of the simulation application; in response to the configuration command input by the user, the corresponding simulation configuration interface is displayed. The simulation configuration interface may include at least multiple virtual simulation objects and multiple virtual sensors. The multiple virtual simulation objects correspond one-to-one with the appearance of multiple electronic devices. The multiple electronic devices may be different models or the same model but with different external dimensions; the multiple virtual sensors may be different models or the same model but with different data acquisition accuracies.
[0038] Step S220: In response to the first selection command input based on the simulation configuration interface, determine the selected virtual simulation object as the first simulation object from the plurality of virtual simulation objects, and determine the selected virtual sensor as the first motion sensor from the plurality of virtual sensors.
[0039] Based on this, the user can input a first selection command through the simulation configuration interface to select the virtual simulation object to be simulated and the virtual sensor to be deployed on the virtual simulation object. The number of virtual sensors selected can be one or more; this embodiment does not limit this. Correspondingly, the computer device can respond to the user's first selection command by determining the selected virtual simulation object as the first simulation object from multiple virtual simulation objects, and determining the selected virtual sensor as the first motion sensor from multiple virtual sensors.
[0040] In other implementations, the simulation configuration interface may also include an interface area for custom virtual objects; based on this, users can draw their own 3D models from this interface area as virtual simulation objects, or import external 3D models from this interface area as virtual simulation objects.
[0041] As can be seen, this application not only includes a variety of virtual simulation objects and virtual sensors for users to choose from, allowing users to select the virtual simulation objects and corresponding models of virtual sensors that need to be simulated according to their actual needs; it also allows users to customize 3D models with different appearances as virtual simulation objects, improving the flexibility of simulation applications and helping users to perform corresponding simulation optimizations on sensors on electronic devices with different appearances.
[0042] Step S230: In response to the location deployment command, deploy the first motion sensor at the target location corresponding to the first simulation object.
[0043] Furthermore, after the user selects the first simulation object and the first motion sensor, they can input a deployment command to deploy the selected first motion sensor at the desired target location on the first simulation object. Correspondingly, the computer device can respond to the deployment command and deploy the first motion sensor at the target location corresponding to the first simulation object.
[0044] In some implementations, the simulation configuration interface may include a default location deployment control. Users can input deployment commands based on this control, and the computer device will then deploy the first motion sensor at the default location on the first simulation object. Thus, users can quickly deploy the first motion sensor on the first simulation object using the location deployment control.
[0045] In other implementations, the user can input a deployment command for the first motion sensor by dragging it to a target location on the first simulated object. Correspondingly, the computer device responds to the dragging operation by deploying the first motion sensor at the endpoint of the drag. It is important to note that the computer device will only respond to the dragging operation when the sensor has moved to the first simulated object at its endpoint. This provides the user with more flexible sensor deployment methods, facilitating simulation optimization of sensors at different deployment locations and thus better optimizing the hardware structure design of the electronic device corresponding to the first simulated object.
[0046] Step S240: In response to the simulation control command, control the first simulation object to execute the target simulation process.
[0047] After the deployment of the first motion sensor on the first simulation object is completed, the user can input simulation control commands to control the first simulation object to perform the corresponding target simulation process.
[0048] In some implementations, the simulation control commands include simulation scene selection, simulation action selection, and simulation start operations. That is, the simulation configuration interface can include multiple virtual 3D simulation environments and multiple preset simulation actions; the user can select the desired simulation environment from these environments by inputting the simulation scene selection operation, select the desired simulation action from the preset simulation actions by inputting the simulation action selection operation, and then input the simulation start operation; correspondingly, the computer device can respond to the simulation start operation by controlling the first simulation object to execute the selected simulation action in the selected virtual 3D simulation environment.
[0049] Step S250: Obtain the first motion parameters of the first simulation object during the target simulation process through the first motion sensor, wherein the first motion sensor is a virtual sensor deployed on the first simulation object.
[0050] Step S260: Using an attitude estimation algorithm and based on the first motion parameters, determine the first attitude information of the first simulation object in the target simulation process.
[0051] Step S270: Generate simulation test results based on the first attitude information and the preset attitude information of the first simulation object in the target simulation process.
[0052] In this embodiment, the specific implementation of steps S250 to S270 can be found in the foregoing embodiments, and will not be repeated here.
[0053] Step S280: Based on the simulation test results, optimize at least one of the first motion sensor and the attitude estimation algorithm.
[0054] In some implementations, please refer to Figure 3 Step S280 may include the contents of steps S281 to S284:
[0055] Step S281: Obtain the current simulation optimization mode.
[0056] In this embodiment, multiple simulation optimization modes can be preset in the aforementioned simulation configuration interface. Before entering the simulation start operation, the user can pre-select the desired simulation optimization mode to perform corresponding simulation optimization based on the final simulation test results.
[0057] Step S282: If the current simulation optimization mode is the first simulation optimization mode, then optimize at least one algorithm parameter in the attitude estimation algorithm according to the simulation test results.
[0058] The first simulation optimization mode can be understood as a mode for optimizing the attitude estimation algorithm, assuming the first motion sensor is deployed at an accurate location on the first simulated object. That is, if the number, parameters, and deployment locations of the first motion sensor are all accurate, then based on the simulation test results, at least one parameter of the attitude estimation algorithm can be optimized until the difference between the re-estimated attitude information based on the adjusted algorithm and the preset attitude information is within a preset error range, thus obtaining a better attitude estimation algorithm. The algorithm parameters include, but are not limited to, sensor noise processing parameters, image processing parameters, feature matching parameters, and data fusion parameters. In this way, by simulating a first simulated object with a properly deployed first motion sensor, and then based on the simulation test results, the attitude estimation algorithm can be optimized to improve its accuracy and efficiency, thereby enhancing its estimation performance when applied to actual electronic devices.
[0059] Step S283: If the current simulation optimization mode is the second simulation optimization mode, then adjust at least one of the number and deployment position of the first motion sensor according to the simulation test results.
[0060] The second simulation optimization mode can be understood as optimizing only the first motion sensor, where the user is currently unsure whether the number and deployment location of the first motion sensor are appropriate. Based on this, the user can utilize an optimized attitude estimation algorithm to estimate the first attitude information of the simulated object during the target simulation process. Thus, if there is a difference between the first attitude information and the preset attitude information, at least one of the following can be adjusted: the number and deployment location of the first motion sensor. This adjustment continues until the difference between the re-estimated attitude information based on the adjusted first motion sensor and the preset attitude information is within a preset error range, resulting in a better number and deployment location of the first motion sensor. In other words, optimizing the sensor deployment structure design through simulation can improve algorithm performance.
[0061] Step S284: If the current simulation optimization mode is the third simulation optimization mode, then based on the simulation test results, optimize at least one algorithm parameter in the attitude estimation algorithm, and adjust at least one of the number and deployment position of the first motion sensor.
[0062] The second simulation optimization mode can be understood as a mode that requires optimization of both the first motion sensor and the attitude estimation algorithm. That is, the user currently wants to optimize and adjust the attitude estimation algorithm, the number of first motion sensors, and their deployment locations. Based on this, when there is a difference between the first attitude information and the preset attitude information, at least one of the following can be adjusted: the number of first motion sensors and their deployment locations. At least one parameter of the attitude estimation algorithm can also be optimized. This continues until, based on the adjusted first motion sensors and the optimized attitude estimation algorithm, the difference between the re-estimated attitude information and the preset attitude information is within a preset error range. This results in a better attitude estimation algorithm, a better number of first motion sensors, and a better deployment location.
[0063] Among them, the attitude estimation algorithm can be an algorithm that can learn and optimize automatically, that is, an attitude estimation model. It can use attitude information with large errors as negative samples to update its own model parameters, thereby further improving the performance and adaptability of the model.
[0064] In other embodiments, at least one of the first motion sensor and the attitude estimation algorithm is optimized based on the simulation scene parameters corresponding to the target simulation scene and the simulation test results. Simulation scene parameters may include illumination parameters, humidity parameters, drag parameters, etc. It is understood that for target simulation scenes with weak illumination, if the first motion sensor includes a camera, the low illumination will result in low brightness in the captured images, making it impossible to extract more feature points, thus affecting the accuracy of attitude localization of the first simulation object based on the captured images. Therefore, when the simulation test results indicate a significant difference between the first attitude information and the preset attitude information, at least one of the first motion sensor and the attitude estimation algorithm can be optimized based on the simulation test results and the simulation scene parameters. For example, if the simulation scene parameters indicate weak illumination, the number of first motion sensors can be automatically increased, the night shooting mode of the first motion sensor can be enabled, the algorithm parameters related to feature extraction in the attitude estimation algorithm can be optimized, and / or a more suitable attitude estimation algorithm for low-light scenarios can be used.
[0065] Understandably, if the computer device automatically optimizes the first motion sensor and the pose estimation algorithm, and the recalculated pose information is still significantly different from the preset pose information, then a prompt message can be output to prompt the user to adjust the algorithm parameters or algorithm logic of the pose estimation algorithm, as well as to re-rotate the first motion sensor, or adjust the number and deployment position of the first motion sensor to meet the user's product requirements.
[0066] In some implementations, the execution entity of this application may be the same computer device.
[0067] In another possible implementation, this application can be implemented across platforms. Specifically, steps S210 to S250 can be executed on a mobile device, such as a mobile phone or tablet computer, which can be regarded as a simulation platform. After obtaining the first motion parameters, the mobile device sends the first motion parameters to a computer device, which then executes the above steps S260 to S280. The computer device can be a device with richer computing resources than the mobile device, thereby enabling faster algorithm analysis and optimization. In this case, the computer device can be regarded as an algorithm platform.
[0068] In this approach, the simulation platform employs efficient and reliable data transmission technologies to ensure that generated sensor data is transmitted to the algorithm platform in real time. Data transmission protocols can include various protocols such as TCP / IP and UDP to meet the needs of different environments. To reduce transmission latency, the simulation platform uses data compression and optimization algorithms to ensure excellent performance in both real-time performance and stability. Furthermore, the simulation platform supports real-time recording and playback, allowing users to save simulation data as files for subsequent analysis and evaluation.
[0069] In some implementations, the computer device can also provide data visualization tools, allowing users to understand the changes in motion parameters collected by virtual sensors and the results of simulation tests. This helps developers better understand the optimization potential of algorithm performance and hardware architecture. Furthermore, it supports data export and import, enabling convenient sharing of simulation data across different systems and environments, promoting team collaboration and technical exchange. Through data visualization and analysis technologies, developers can comprehensively evaluate the performance of XR products, thereby optimizing hardware architecture design and 6DOF algorithm development, driving the development of virtual reality technology and improving user experience.
[0070] In this embodiment, the user can independently configure the number, position, and attitude relationship of corresponding virtual sensors (e.g., cameras, IMUs), as well as hardware parameters, for the simulation object. The computer device can support multiple sensor models and simulate 6DOF sensor data under different hardware combinations. This flexibility allows users to perform customized simulations according to actual needs, providing a highly controllable environment for hardware structure design and 6DOF algorithm evaluation. Based on this, the computer device can quickly convert the motion parameters collected by the virtual sensors into the 6DOF motion posture of the simulation object and compare it with the target action set in the simulation to obtain simulation test results. Through the simulation test results, the computer device can combine the current simulation optimization mode and adaptively utilize the corresponding simulation optimization mode for optimization, greatly improving the simulation optimization efficiency. In the early development and design stage of the device, this application evaluates and optimizes the hardware structure of XR devices, AR devices, and VR devices, predicts the 6DOF performance under different design schemes, reduces product design risks, and reduces production costs; by generating diverse 6DOF sensor data through the simulation platform, it can improve the efficiency of algorithm development and testing, accelerate the algorithm optimization process, and enhance the robustness and applicability of the algorithm. During the algorithm development phase, large-scale testing using simulation data helps the development team iterate quickly, thereby providing a more accurate and smoother virtual reality and augmented reality experience.
[0071] Please refer to Figure 4 , Figure 4 This is a flowchart illustrating a simulation optimization method provided in another embodiment of this application. The following will be combined with... Figure 4 The simulation optimization method provided in the embodiments of this application will be described in detail. The simulation optimization method may include the following steps:
[0072] Step S310: Obtain the first motion parameters of the first simulation object during the target simulation process through the first motion sensor, wherein the first motion sensor is a virtual sensor deployed on the first simulation object.
[0073] Step S320: Using an attitude estimation algorithm and based on the first motion parameters, determine the first attitude information of the first simulation object in the target simulation process.
[0074] In this embodiment, the specific implementation of steps S310 to S320 can be found in the content of the foregoing embodiments, and will not be repeated here.
[0075] Step S330: Obtain the attitude difference value between the first attitude information and the preset attitude information as the first simulation error value, and generate the simulation test result based on the first simulation error value.
[0076] In this embodiment, the first attitude information as described in the preceding embodiments includes multiple sub-attitude information, and the preset attitude information includes multiple preset sub-attitude information. Each sub-attitude information corresponds one-to-one with a specific sub-attitude, and each preset sub-attitude information also corresponds one-to-one with a specific sub-attitude. Based on this, the attitude difference value between each sub-attitude information and its corresponding preset sub-attitude information can be obtained as a sub-simulation error value for each sub-attitude information, resulting in multiple sub-simulation error values. Further, the multiple sub-simulation error values can be weighted and summed to obtain a first simulation error value. Then, simulation test results are generated based on the first simulation error value.
[0077] Step S340: If the first simulation error value is less than the first error threshold, then the algorithm parameters in the attitude estimation algorithm are optimized.
[0078] Furthermore, it can be determined whether the first simulation error value is less than the first error threshold, where the first error threshold can be a preset value, which can be determined based on the actual required accuracy. Optionally, if the first simulation error value is less than the first error threshold, it indicates that the attitude information estimated based on the first motion parameters is relatively accurate. In this case, the number and deployment position of the first motion sensors are also generally relatively accurate. Therefore, only the algorithm parameters in the attitude estimation algorithm can be optimized until the simulation error value between the attitude information re-estimated based on the adjusted attitude estimation algorithm and the preset attitude information is less than the second error threshold, thereby obtaining a better attitude estimation algorithm, where the second error threshold is less than the first error threshold.
[0079] Step S350: If the first simulation error value is greater than or equal to the first error threshold, then at least one of the number of the first motion sensors and their deployment location is adjusted.
[0080] Optionally, if the first simulation error value is greater than or equal to the first error threshold, it indicates that the attitude information estimated based on the first motion parameters is highly inaccurate. This is more likely due to a mismatch between the number and deployment location of the first motion sensors, leading to inaccurate attitude information ultimately estimated based on the first motion parameters. Therefore, at this point, at least one of the number and deployment location of the first motion sensors can be adjusted until the simulation error value between the re-estimated attitude information based on the adjusted first motion sensors and the preset attitude information is less than the aforementioned second error threshold, thereby obtaining a more optimal number and deployment location of the first motion sensors.
[0081] In some implementations, after step S350, the first simulation object after adjusting the first motion sensor can be controlled to execute the target simulation process again; second posture information of the first simulation object after adjusting the first motion sensor in the target simulation process can be obtained; the posture difference value between the second posture information and the preset posture information can be obtained as the second simulation error value; if the second simulation error value is greater than or equal to the first error threshold, the first motion sensor on the first simulation object can be replaced with a second motion sensor, and the accuracy of the motion parameters collected by the second motion sensor is greater than the parameter accuracy of the motion parameters collected by the first motion sensor. That is to say, after adjusting at least one of the number and deployment position of the first motion sensor, if the estimated posture information is still too different from the preset posture information, it may indicate that the user's sensor selection is inappropriate. For example, the data acquisition accuracy of the sensor is too different from the algorithm accuracy of the posture estimation algorithm, or the data acquisition accuracy of the selected multiple sensors is too different, resulting in the inability to accurately estimate the accurate posture information based on the collected motion parameters.
[0082] Of course, before step S310, the contents of steps S210 to S240 in the previous embodiments can also be used, which will not be repeated here.
[0083] In this embodiment, the user can independently configure the number, position, and attitude relationship of corresponding virtual sensors (e.g., cameras, IMUs), as well as hardware parameters, for the simulation object. The computer device can support multiple sensor models and simulate 6DOF sensor data under different hardware combinations. This flexibility allows users to perform customized simulations according to actual needs, providing a highly controllable environment for hardware structure design and 6DOF algorithm evaluation. Based on this, the computer device can quickly convert the motion parameters collected by the virtual sensors into the 6DOF motion posture of the simulation object and compare it with the target action set in the simulation to obtain simulation test results. Through the simulation test results, the computer device can call more suitable optimization methods for optimization based on the simulation error value in the simulation test results, thereby greatly improving the simulation optimization efficiency and optimization effect. In the early development and design stage of the device, this application evaluates and optimizes the hardware structure of XR devices, AR devices, and VR devices, predicts the 6DOF performance under different design schemes, reduces product design risks, and reduces production costs; by generating diverse 6DOF sensor data through the simulation platform, it can improve the efficiency of algorithm development and testing, accelerate the algorithm optimization process, and enhance the robustness and applicability of the algorithm. During the algorithm development phase, large-scale testing using simulation data helps the development team iterate quickly, thereby providing a more accurate and smoother virtual reality and augmented reality experience.
[0084] Please refer to Figure 5 The diagram shows a structural block diagram of a simulation optimization device 400 according to an embodiment of this application. The device 400 may include: a parameter acquisition module 410, an attitude estimation module 420, a simulation result generation module 430, and a simulation optimization module 440.
[0085] The parameter acquisition module 410 is used to acquire the first motion parameters of the first simulation object during the target simulation process through the first motion sensor, wherein the first motion sensor is a virtual sensor deployed on the first simulation object.
[0086] The attitude estimation module 420 is used to determine the first attitude information of the first simulation object in the target simulation process by using an attitude estimation algorithm and based on the first motion parameters.
[0087] The simulation result generation module 430 is used to generate simulation test results based on the first attitude information and the preset attitude information of the first simulation object in the target simulation process.
[0088] The simulation optimization module 440 is used to optimize at least one of the first motion sensor and the attitude estimation algorithm based on the simulation test results.
[0089] In some implementations, the simulation optimization module 440 may be specifically used to: if currently in a first simulation optimization mode, optimize at least one algorithm parameter in the attitude estimation algorithm based on the simulation test results; if currently in a second simulation optimization mode, adjust at least one of the number and deployment location of the first motion sensor based on the simulation test results; if currently in a third simulation optimization mode, optimize at least one algorithm parameter in the attitude estimation algorithm based on the simulation test results, and adjust at least one of the number and deployment location of the first motion sensor.
[0090] In other embodiments, the simulation result generation module 430 may be specifically used to: obtain the attitude difference value between the first attitude information and the preset attitude information as a first simulation error value; and generate the simulation test result based on the first simulation error value.
[0091] In this manner, the simulation optimization module 440 can be specifically used to: optimize the algorithm parameters in the attitude estimation algorithm if the first simulation error value is less than the first error threshold; and adjust at least one of the number and deployment position of the first motion sensor if the first simulation error value is greater than or equal to the first error threshold.
[0092] In this manner, the simulation optimization device 400 may further include a simulation control module. The simulation control module can be used to control the first simulation object after adjusting at least one of the number and deployment positions of the first motion sensors if the first simulation error value is greater than or equal to the first error threshold, and then control the first simulation object with adjusted first motion sensors to re-execute the target simulation process. The attitude estimation module 420 can be used to obtain second attitude information of the first simulation object after adjusting the first motion sensors during the target simulation process. The simulation result generation module 430 can be used to obtain the attitude difference value between the second attitude information and the preset attitude information as the second simulation error value. The simulation optimization module 440 can be used to replace the first motion sensor on the first simulation object with a second motion sensor if the second simulation error value is greater than or equal to the first error threshold, wherein the accuracy of the motion parameters collected by the second motion sensor is greater than the accuracy of the motion parameters collected by the first motion sensor.
[0093] In other embodiments, the simulation optimization module 440 may be specifically used to optimize at least one of the first motion sensor and the attitude estimation algorithm based on the simulation scene parameters corresponding to the target simulation scene and the simulation test results.
[0094] In some embodiments, the simulation optimization device 400 may include a display module, a simulation selection module, a simulation deployment module, and a simulation control module. The display module may be used to display a simulation configuration interface before acquiring the first motion parameters of the first simulation object in the target simulation process via the first motion sensor. The simulation configuration interface includes at least a plurality of virtual simulation objects and a plurality of virtual sensors. The simulation selection module may be used to, in response to a first selection command input based on the simulation configuration interface, determine a selected virtual simulation object as the first simulation object from the plurality of virtual simulation objects, and determine a selected virtual sensor as the first motion sensor from the plurality of virtual sensors. The simulation deployment module may be used to, in response to a location deployment command, deploy the first motion sensor at a target location corresponding to the first simulation object. The simulation control module may be used to, in response to a simulation control command, control the first simulation object to execute the target simulation process.
[0095] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0096] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0097] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0098] In summary, the first motion parameters of the first simulated object during the target simulation process are acquired through a first motion sensor, which is a virtual sensor deployed on the first simulated object. An attitude estimation algorithm is used, and based on the first motion parameters, the first attitude information of the first simulated object during the target simulation process is determined. Simulation test results are generated based on the first attitude information and the preset attitude information of the first simulated object during the target simulation process. Based on the simulation test results, at least one of the first motion sensor and the attitude estimation algorithm is optimized. In other words, a sensor-algorithm simulation approach is adopted. The motion parameters of the first simulated object during the target simulation process are collected through a virtual sensor, and its first attitude information is estimated based on the motion parameters. The first attitude information is then compared with the preset attitude information to generate corresponding simulation test results. Based on the simulation test results, at least one of the first motion sensor and the attitude estimation algorithm is optimized. This allows for verification and evaluation in a simulation environment, improving testing efficiency. Furthermore, it achieves automated simulation optimization, significantly improving optimization efficiency compared to manual optimization based on test results from a real environment.
[0099] The following will combine Figure 6 This application describes a computer device.
[0100] Reference Figure 6 , Figure 6This diagram illustrates a structural block diagram of a computer device 5500 provided in an embodiment of this application. The method described above in this embodiment can be executed by this computer device 5500. The computer device can be an electronic terminal with data processing capabilities, including but not limited to smartphones, tablets, laptops, desktop computers, smartwatches, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, and smart home devices. Alternatively, the computer device can be a server, which can be an independent physical server, a server cluster composed of multiple physical servers, or a distributed system. It can also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms.
[0101] The computer device 500 in this application embodiment may include one or more of the following components: processor 501, memory 502, and one or more application programs, wherein the one or more application programs may be stored in memory 502 and configured to be executed by one or more processors 501, and the one or more programs are configured to perform the methods as described in the foregoing method embodiments.
[0102] Processor 501 may include one or more processing cores. Processor 501 connects to various parts within the computer device 500 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 502, and by calling data stored in memory 502. Optionally, processor 501 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 501 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the aforementioned modem can also be integrated into processor 501 and implemented using a separate communication chip.
[0103] The memory 502 may include random access memory (RAM) or read-only memory (ROM). The memory 502 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 502 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the computer device 500 during use (such as the various correspondences described above).
[0104] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0105] In the several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or other forms.
[0106] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0107] Please refer to Figure 7 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 600 stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0108] The computer-readable storage medium 600 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 600 has storage space for program code 610 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 610 may be compressed, for example, in a suitable form.
[0109] In some embodiments, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the steps in the above-described method embodiments.
[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A simulation optimization method, characterized in that, The method includes: The first motion parameters of the first simulated object during the target simulation process are obtained by the first motion sensor, wherein the first motion sensor is a virtual sensor deployed on the first simulated object; Using an attitude estimation algorithm and based on the first motion parameters, the first attitude information of the first simulation object in the target simulation process is determined; The attitude difference value between the first attitude information and the preset attitude information of the first simulation object in the target simulation process is obtained as the first simulation error value; Based on the first simulation error value, generate simulation test results; Based on the simulation test results, at least one of the first motion sensor and the attitude estimation algorithm is optimized.
2. The method according to claim 1, characterized in that, The step of optimizing at least one of the first motion sensor and the attitude estimation algorithm based on the simulation test results includes: If the current simulation is in the first optimization mode, then based on the simulation test results, at least one algorithm parameter in the attitude estimation algorithm is optimized. If the current simulation optimization mode is in the second simulation optimization mode, then based on the simulation test results, at least one of the following adjustments is made: the number of the first motion sensors and their deployment locations. If the current simulation optimization mode is in the third simulation optimization mode, then based on the simulation test results, at least one algorithm parameter in the attitude estimation algorithm is optimized, and at least one of the number and deployment position of the first motion sensor is adjusted.
3. The method according to claim 1, characterized in that, The step of optimizing at least one of the first motion sensor and the attitude estimation algorithm based on the simulation test results includes: If the first simulation error value is less than the first error threshold, then the algorithm parameters in the attitude estimation algorithm are optimized; If the first simulation error value is greater than or equal to the first error threshold, then at least one of the number of the first motion sensors and their deployment location is adjusted.
4. The method according to claim 3, characterized in that, After adjusting at least one of the number and deployment location of the first motion sensors if the first simulation error value is greater than or equal to the first error threshold, the method further includes: The first simulation object, after adjusting the first motion sensor, executes the target simulation process again. Acquire the second posture information of the first simulated object after adjusting the first motion sensor during the target simulation process; The attitude difference value between the second attitude information and the preset attitude information is obtained as the second simulation error value; If the second simulation error value is greater than or equal to the first error threshold, then the first motion sensor on the first simulation object is replaced with a second motion sensor, and the accuracy of the motion parameters collected by the second motion sensor is greater than the accuracy of the motion parameters collected by the first motion sensor.
5. The method according to any one of claims 1-4, characterized in that, The target simulation process is a simulation process under a target simulation scenario. The step of optimizing at least one of the first motion sensor and the attitude estimation algorithm based on the simulation test results includes: Based on the simulation scene parameters corresponding to the target simulation scene and the simulation test results, at least one of the first motion sensor and the attitude estimation algorithm is optimized.
6. The method according to any one of claims 1-4, characterized in that, Before acquiring the first motion parameters of the first simulated object during the target simulation process via the first motion sensor, the method further includes: The simulation configuration interface is displayed, which includes at least multiple virtual simulation objects and multiple virtual sensors; In response to a first selection command input based on the simulation configuration interface, a selected virtual simulation object is determined from the plurality of virtual simulation objects as the first simulation object, and a selected virtual sensor is determined from the plurality of virtual sensors as the first motion sensor; In response to a location deployment command, the first motion sensor is deployed at the target location corresponding to the first simulation object; In response to a simulation control command, the first simulation object is controlled to execute the target simulation process.
7. A simulation optimization device, characterized in that, The device includes: The parameter acquisition module is used to acquire the first motion parameters of the first simulation object during the target simulation process through the first motion sensor, wherein the first motion sensor is a virtual sensor deployed on the first simulation object; The attitude estimation module is used to determine the first attitude information of the first simulation object in the target simulation process by using an attitude estimation algorithm and based on the first motion parameters. The simulation result generation module is used to obtain the attitude difference value between the first attitude information and the preset attitude information of the first simulation object in the target simulation process, as the first simulation error value; and to generate simulation test results based on the first simulation error value. The simulation optimization module is used to optimize at least one of the first motion sensor and the attitude estimation algorithm based on the simulation test results.
8. A computer device, characterized in that, include: One or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code that can be invoked by a processor to execute the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Knowledge and data hybrid driven hydraulic support relative pose virtual reconstruction method
CN115685240A
Systems, methods and apparatuses for calibrating sensors mounted on a device
US20210215811A1
