Small celestial body surface dynamic simulation and landing scene simulation method

Through the hybrid modeling and texture map optimization method based on geometry and images, combined with the Unity3D engine, a virtual visual simulation system is built, which solves the problem of difficulty in verifying the landing section of the small celestial body detector and achieves efficient dynamic simulation and image acquisition. It meets the navigation and guidance needs of deep space exploration.

CN114565742BActive Publication Date: 2024-09-06QINGDAO UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210142780.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-16
Publication Date
2024-09-06
Estimated Expiration
2042-02-16

AI Technical Summary

Technical Problem

In the complex deep space environment, it is difficult to verify the experiments of the landing section of small celestial body detectors, and the existing virtual scene simulation system cannot meet the needs of dynamic simulation and high-resolution image acquisition of small celestial body detectors.

Method used

A hybrid modeling method based on geometry and images is used to construct a three-dimensional model of the target celestial body. The weighted least squares method is used for smoothing processing, combined with texture map optimization, and the Unity3D engine is used to build a virtual visual simulation system to achieve detector attitude control and image acquisition. .

Benefits of technology

The dynamic simulation of the small celestial body surface and the landing scene simulation are realized, which improves the simulation verification efficiency and accuracy of the probe's landing section, and provides efficient navigation guidance and flexible attachment prerequisites for deep space exploration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114565742B
    Figure CN114565742B
Patent Text Reader

Abstract

The present invention provides a method for dynamic simulation of the surface of a small celestial body and a landing visual simulation method. The method for dynamic simulation of the surface of a small celestial body and a landing visual simulation method based on virtual reality is specifically as follows: using three-dimensional modeling technology to establish a three-dimensional model of a small celestial body, using weighted least squares method to realize model mesh smoothing; using bilinear linear interpolation to process mapping, and realizing texture mapping by combining spherical mapping with cube mapping; constructing a virtual scene, realizing real-time control of the probe attitude and orbit according to the quaternion method and the rotation matrix method, and designing a virtual camera motion and image storage function to obtain image information of the surface of a small celestial body in real time. This method can meet the experimental verification requirements of the landing stage of the probe, can realize dynamic observation of the surface of a celestial body and acquisition of landing images, with high graphics quality and good real-time performance. The effectiveness of this method has been verified by docking with the GNC (Guidance, Navigation and Control) system of a certain research institute.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of autonomous navigation for precise positioning and landing of deep space exploration based on sequence images, and in particular to a method for dynamic simulation of the surface of a small celestial body and a landing scene simulation method. Background Art

[0002] Small celestial bodies in deep space are typical non-cooperative targets in space. The sequence of images of celestial bodies obtained by small celestial body detectors has become the most effective way to accurately understand the three-dimensional morphology of small celestial bodies and other information. It has also become a prerequisite for achieving navigation and guidance during the landing process of the detector and a smooth landing. Due to the complex and diverse surface features of small celestial bodies, many environmental perturbations, and dim and irregular targets, the navigation and guidance process of the detector during the landing phase is affected by complex disturbances such as various noises, environmental perturbations, and irregular weak gravitational fields, making it difficult to ensure the accuracy of the detector's attitude control. The acquired landing images are disordered, inefficient, and have poor real-time performance. Therefore, the detector design should have advanced precision control and image processing systems. The complex deep space environment and the high requirements for detector design and manufacturing have greatly increased the cost of the experiment, making it difficult to carry out the detector landing detection mission.

[0003] Considering the unpredictability of the deep space environment and the complexity of landing exploration, the observation of small celestial bodies during the landing phase and the acquisition of sequential images are highly complex and difficult to guarantee. Therefore, a large number of comprehensive simulations are the prerequisite for ensuring the successful completion of the mission. In view of the many problems existing in complex environment experiments, virtual reality technology has been widely used to ensure the accuracy and rapidity of the experiment, and has achieved good experimental results. Using virtual reality technology, Cheng Bowen and others designed a forest joint harvesting machine training system, built an intuitive user interface, and combined with a real working environment, effectively overcame the problems of diverse operations in the forestry environment and limited practice space. Yu Xiuwei and others built a virtual experimental platform for comet approach phase navigation image simulation, simulated the comet detection approach process through OSG simulation software, established a virtual camera model, and realized the simulation of the image sequence of the comet approach process. Zhao Jing and others constructed the Mars terrain and landforms in Unreal Engine 4 to simulate the Mars simulation environment, built a Mars rover model, realized the Mars scene roaming, and completed the Mars exploration mission visual simulation from the mission point to the target point. Zhao Xi and others used the OpenGL graphics library to build a three-dimensional scene, and implemented asteroid imaging simulation based on GPU programming in Cg shading language, producing asteroid simulation images with a strong sense of reality. Virtual reality technology has achieved good results in simulating Mars surface exploration and dynamic simulation of comet approach phase, and successfully simulated the visual simulation process of the Mars rover on the surface of Mars and the dynamic acquisition process of navigation images in the comet approach phase. Due to factors such as the small mass of small celestial bodies, dim and irregular targets, and diverse surface features, the development of deep space exploration missions is full of complexity and uncertainty. The existing virtual visual simulation systems for comets and Mars are difficult to apply to small celestial body exploration missions, and cannot meet the task requirements of dynamic simulation of small celestial body probes and acquisition of high-resolution surface images in the landing phase. Based on the above factors, the developed small celestial body surface dynamic simulation and landing visual simulation system can meet the operation simulation of the small celestial body probe landing phase, and provide simulation verification for the precise positioning and landing autonomous navigation of deep space exploration based on sequence images.

[0004] In response to this phenomenon, in order to study the operation of the probe landing phase and the process of acquiring sequential images in a complex space environment, a set of small celestial body surface dynamic simulation and landing scene simulation methods were developed. Summary of the invention

[0005] The purpose of the present invention is to provide a method for dynamic simulation of the surface of a small celestial body and a landing scene simulation method, so as to solve the problem that the landing phase experiment of a small celestial body probe is difficult to verify.

[0006] In order to solve the above technical problems, the present invention provides a method for dynamic simulation of the surface of a small celestial body and a landing visual simulation method, the method comprising the following steps:

[0007] (1) Construct a three-dimensional model of the target celestial body by using a hybrid modeling method based on geometry and images to construct a three-dimensional grid model of the target celestial body, and then smooth the model grid using the weighted least squares method;

[0008] (2) Optimize the rendering of the three-dimensional model of the target celestial body, and use bilinear interpolation to improve the image resolution. This is achieved by performing first-order linear interpolation on the x-axis and y-axis respectively. First, linear interpolation is performed on the x-axis direction to insert two pixels, and then interpolation is further performed on the y-axis direction. The pixels at the interpolation point are calculated by linear interpolation based on the two inserted pixels, thus achieving image interpolation.

[0009] The image obtained by linear interpolation is cropped as a texture valid area and the texture coordinates are updated. In the texture updating process, the coordinates of the new texture are obtained. Since the shape of the target celestial body is approximately ellipsoidal, the spherical texture mapping method is first used to perform texture mapping of the model. However, this texture mapping method will produce obvious texture deformation at both ends of the model. Therefore, the texture deformation produced by the model is further processed with the help of stereo projection technology. Finally, the new image obtained by linear interpolation is combined with the spherical mapping and cubic mapping, and the UV coordinates and U, V, W tiling parameters are adjusted to achieve texture mapping optimization of the three-dimensional irregular complex model, so that it is close to the three-dimensional morphological characteristics of the target celestial body.

[0010] (3) Design of virtual visual simulation system, simulating the operation of the probe landing phase in a real space environment. The design of the virtual visual simulation system requires the standardization of the system scene, including: first, export the optimized three-dimensional model of the target celestial body Itokawa as a ".FBX" format file and copy it to the asset folder Assets of Unity3D. With the help of the tree-like resource list, the scene resources are reasonably planned, and the parent-child relationship between objects is designed to achieve resource standardization. The small celestial body model is loaded into the virtual Unity3D, and the Itokawa body coordinate system is fixed to the world coordinate system in the simulation environment to keep it consistent with the world coordinate system. The model is rotated, translated, and adjusted, and the relevant attributes of the model are set. The virtual camera and other scene models are introduced. Secondly, the scene skybox is reasonably designed and the scene lighting system is built to construct a virtual deep space environment. Thirdly, the probe attitude control method and motion function are designed, and the probe-related motion actions are realized through assembly language. At the same time, the collision detection relationship between each object is constructed. Then, auxiliary functions such as the virtual camera field of view angle change and image acquisition are designed. Finally, the connection with the GNC system is realized to build a semi-physical simulation system.

[0011] A further step (1) comprises:

[0012] Combining the point cloud data, model size and elevation data of the small celestial body, a 3D model simulation was performed on the basis of a large amount of model reference data to obtain the Itokawa simulation model, and the 3D morphological features of the small celestial body were observed. With the help of the 3D morphological features of the small celestial body, a hybrid modeling method based on geometry and image was adopted to construct the terrain features such as craters and surface bulges on the celestial body based on the model elevation data, and the basic 3D grid stereo model of the target celestial body Itokawa was established. The 3D stereo model of the target celestial body is composed of triangular patch meshes, and the model mesh is smoothed using the weighted least squares method, and the smoothing of the model mesh is achieved by changing the smoothing weight coefficient.

[0013] A further step (2) comprises:

[0014] The texture map is improved by bilinear interpolation, which is achieved by first-order linear interpolation on the x-axis and y-axis respectively. 11 =(x1,y1),Q 12 =(x1,y2),Q 21 =(x2,y1),Q 22 =(x2,y2), first linearly interpolate the x-axis direction and insert R1 and R2 pixels:

[0015]

[0016] The y-axis direction is further interpolated, and the pixel at point P is calculated by linear interpolation based on the R1 and R2 pixels to achieve image interpolation.

[0017]

[0018] The linear interpolation image is cropped to the texture valid area and the texture coordinates are updated. During the texture update process, the new texture (u′, v′) coordinates are:

[0019]

[0020] where u min , v min are the minimum values ​​of the original texture in the u and v directions, respectively, and l u , l v It is the length of the original texture in u and v directions.

[0021] The shape of the target celestial body is approximately ellipsoidal, and the spherical texture mapping method is used:

[0022]

[0023] However, this texture mapping method will produce obvious texture deformation at both ends of the model. Therefore, the texture deformation of the model is further processed by stereo projection technology. Stereo projection mapping is defined as:

[0024]

[0025] in φ is the longitude and latitude.

[0026] Combined with the new image obtained by linear interpolation, by combining spherical mapping and cube mapping, and by adjusting the UV coordinates and U, V, W tiling parameters, it is possible to accurately attach the two-dimensional plane map to the three-dimensional complex model.

[0027] Still further step (3) comprises the following steps:

[0028] (31) The virtual scene simulation design defines that the fixed coordinate system of the small celestial body is consistent with the world coordinate system in the scene, and the coordinate system of the small celestial body detector is based on the fixed coordinate system of the small celestial body. In order to ensure the consistency with the simulation data given by the GNC system in the future, it is uniformly defined as a left-handed coordinate system. The position and attitude information of the small celestial body detector in the simulation data given by the GNC system is based on the fixed coordinate system of the small celestial body. Therefore, when designing the simulation system, the small celestial body is used as the parent object, and the detector, lighting and other objects are used as child objects. When the parent object is moved or operated, the child object will also perform corresponding actions.

[0029] (32) The virtual scene simulation design is to create a skybox to simulate the real deep space environment in order to make the scene in the simulation platform more realistic. The design of the skybox should create a skybox shader, generate a skybox with multiple textures through texturing, where the source texture represents the background view in each direction, and finally realize the creation of the skybox. The skybox is rendered using the built-in rendering pipeline and the universal rendering pipeline. The skybox material is then applied to the ambient lighting. The created skybox is selected and assigned in the Lighting window of the scene. The light source in the deep space environment is an important part of the simulation system. This system uses directional light to simulate sunlight. First, the direction of the light source is adjusted and the light intensity is set. Secondly, in order to simulate complex lighting conditions, the light source mode adopts a mixed mode. The light source shadow effect is applied to the soft shadow mode to make the shadow effect of the scene objects more significant. Finally, the scene is dynamically rendered with light, where the impact of sunlight on the detector imaging from different directions is simulated by changing the incident direction of the light source.

[0030] (33) In order to obtain the desired posture of the detector under a specific rotation sequence zyx, the virtual scene simulation design divides the abstract spatial rotation into three rotations around different rotation axes in sequence, and implements them respectively through the rotation matrix method and the quaternion method.

[0031] The detection attitude control by using the rotation matrix method mainly includes:

[0032] According to the basic principle of coordinate transformation matrix, the rotation matrix around different rotation axes is obtained using Euler angles. According to the desired rotation order, the posture matrix represented by zyx rotation is obtained:

[0033]

[0034] The rotation function in Unity3D uses zxy as the order, and a new posture matrix needs to be established. The new posture matrix is ​​D zxy (γ1, α1, β1). Transform the known Euler angles and give the rotation matrix N so that it satisfies the following equivalent relationship:

[0035]

[0036] N=D zxy (γ1,α1,β1)

[0037] The transformed Euler angles (α1, β1, γ1) are obtained by using the formula equivalence principle:

[0038]

[0039] Substitute the transformed rotation angles of each axis into D zxy (γ1, α1, β1) to get the attitude matrix in the new rotation order:

[0040]

[0041] Assume that P is a point on the detector with coordinates (X, Y, Z), P1 is obtained after the detector is rotated, and the coordinates after the transformation are (X1, Y1, Z1), and the detector posture transformation is obtained as P1 = PD zxy (γ1, α1, β1).

[0042] The quaternion method is used to realize the attitude control of the detector, which mainly includes:

[0043] The three-dimensional rotation in space can be regarded as a combination of rotations around three basic axes. The rotation angles of the three basic axes are (α, β, γ). The quaternion of the basic rotation of the coordinate axis can be represented as:

[0044]

[0045] The present invention adopts the rotation order of zyx, and its rotation process is defined as:

[0046]

[0047] Assume that a point Q(x3,y3,z3) is on the detector, and its Euler rotation angle is (α,β,γ). The coordinate after rotation is Q1(x4,y4,z4). Expand the three-dimensional coordinates Q and Q1 to four-dimensional space. The quaternion representations are Q[0(x3,y3,z3)] and Q1[0(x4,y4,z4)] respectively. Calculate the detector attitude transformation:

[0048]

[0049] It can be concluded that the expected posture trajectory of the detector is:

[0050]

[0051] (34) In the virtual scene simulation design, during the actual probe landing process, the probe cannot pass through the surface of the celestial body. If the model in the scene is not designed with collision detection, the probe may pass through the celestial body during operation. Therefore, collision detection is required for the model in the scene. Objects in the scene are designed using the collision information detection method, and corresponding colliders are added to the objects in the scene. Box colliders or ball colliders are added to scene models such as virtual cameras. For complex small celestial body models, mesh colliders are used to improve the accuracy of collision detection. The function of entering the collision area is designed to detect the collision state, and the corresponding function of leaving the collision area is designed to implement the action after collision detection. The scene is monitored in real time by calling the event response function and the event monitoring function, so as to jointly implement collision detection and control the behavior after the collision.

[0052] (35) The virtual scene simulation design, through the design of the detector motion and attitude control unit, the detector virtual camera realizes the dynamic observation of the Itokawa surface morphology. In order to meet the task requirements of studying the high-precision celestial surface image simulation method based on the constructed high-resolution celestial body three-dimensional terrain library, the detector virtual camera is designed with image acquisition function, perspective change and other functional units, which can quickly and conveniently set the resolution, number of images, opening angle and acquisition time of the acquired image according to the needs. On the basis of being able to realize automatic screenshot, the camera manual screenshot function is designed. By clicking the designed button, the scene object image can be captured. The image is stored in the preset folder and can be opened directly.

[0053] (36) The virtual scene simulation design is realized by writing a script in C# language to connect with the serial port of the GNC system, and the connection between systems is completed by monitoring threads to realize the sending and receiving of data. The GNC system provides the sunlight vector information, detector position information and attitude information data text during the landing process of the detector, designs the associated data script, associates the simulation data files, loads the data information into the virtual engine, stores the associated data in the form of an array, and creates a data array reading method to realize the reading of data information. The read information is used to design the virtual camera attitude, position and light source direction in the scene.

[0054] Beneficial effects:

[0055] Compared with the existing technology, the advantages of the present invention are: in order to study the operation of the probe landing stage and the process of acquiring sequential images in a complex space environment, a set of small celestial body surface dynamic simulation and landing visual simulation system has been developed. The present invention has a complete model reconstruction method and a virtual simulation algorithm for the probe attitude. First, the target celestial body model is adjusted by using three-dimensional modeling technology, the model grid is smoothed by using weighted least squares method, the mapping quality is improved by using linear interpolation, and the texture mapping method is reasonably selected to achieve model optimization. Secondly, the Unity3D engine is used to build a virtual simulation system in combination with three-dimensional interaction technology and collision detection technology, and the precise control of the probe attitude is achieved through rotation matrix and quaternion. Then, the probe movement and image saving functions are realized through programming language. Finally, through docking with the GNC system of a certain research institute, real-time data transmission and reading are realized, and a semi-physical simulation system is constructed. When designing the simulation system, the characteristics of the multi-platform release of the Unity3D engine are fully utilized, so that it can run on multiple mainstream platforms, greatly reducing the cost of hardware equipment, and further realizing fast connection with the GNC system. The designed system overcomes the limitations of the complex deep space environment on the probe, can well realize the simulation of the probe's landing phase, better ensure the high efficiency of small celestial body landing detection, and provide the premise for the probe's landing phase navigation guidance and flexible attachment. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 A flow chart of a system design for dynamic simulation of a small celestial body surface and landing scene simulation according to an embodiment of the present invention;

[0057] Figure 2 This is a flow chart of modeling a small celestial body surface dynamic simulation and landing scene simulation system according to an embodiment of the present invention;

[0058] Figure 3 A three-dimensional grid model of a small celestial body according to an embodiment of the present invention;

[0059] Figure 4This is a flow chart of software design for a small celestial body surface dynamic simulation and landing scene simulation system according to an embodiment of the present invention;

[0060] Figure 5 A schematic diagram of the Euler angle rotation of a small celestial body detector zyx according to an embodiment of the present invention;

[0061] Figure 6 This is a flowchart of a small celestial body probe taking photos according to an embodiment of the present invention;

[0062] Figure 7 This is a diagram of the trajectory of a small celestial body probe according to an embodiment of the present invention;

[0063] Figure 8 This is a simulation diagram of the attitude of a small celestial body probe according to an embodiment of the present invention; DETAILED DESCRIPTION

[0064] In order to further illustrate the advantages and features of each embodiment of the present invention, the present invention will be further described in detail in combination with the embodiments and the corresponding drawings. It should be noted that the drawings only describe typical embodiments of the present invention and are only used to briefly and clearly assist in explaining the embodiments of the present invention, and are not intended to limit the present invention.

[0065] The core idea of ​​the present invention is to design a small celestial body surface dynamic simulation and landing scene simulation system based on virtual reality, realize the probe attitude control and landing sequence image acquisition, so as to solve the problem that the small celestial body probe landing phase experiment is difficult to verify. Figure 1 , taking 25143 Itokawa as the target celestial body, the system and method of small celestial body surface dynamic simulation and landing scene simulation are explained in detail.

[0066] See attached Figure 2 As shown, the modeling process of a small celestial body surface dynamic simulation and landing scene simulation system disclosed in this embodiment includes the following steps:

[0067] Step S1: Collection of small celestial body data and establishment and adjustment of three-dimensional models.

[0068] Combining the point cloud data, model size and elevation data of the small celestial body, a 3D model simulation was performed on the basis of a large amount of model reference data to obtain the Itokawa simulation model, and the 3D morphological features of the small celestial body were observed. The accuracy of the model can be further improved by refining the model data information. Further with the help of the 3D morphological features of the small celestial body, a hybrid modeling method based on geometry and images was adopted. On the basis of the model elevation data, the small celestial body model was established and adjusted through the editable polygons, stretching, FFD modifier and other commands in 3dsMax, and the terrain features such as celestial craters and surface bulges were constructed, and the basic 3D grid model of the target celestial body Itokawa was established.

[0069] Step S2: Smoothing of the small celestial body model mesh.

[0070] The weighted least squares method is used to smooth the mesh of small celestial bodies to achieve smooth model and reduce the influence of noise. The least squares-based smoothing algorithm can be described as follows: Assume that a noisy triangular mesh is defined as T = {V, E, F}, where V = {v i |i=0,1,...,t-1} is the set of all vertices of the model, and a new triangular mesh T′={V′,E,F} with the same adjacency relationship as T is obtained, where V′={v i ′|i=0,1,...,t-1}, T′ needs to be smooth and similar to T, and it is also necessary to maintain the sharp characteristics of T. Mathematically, feature-preserving mesh smoothing can be expressed as finding new mesh vertices, and its energy function is:

[0071]

[0072] Let the above formula take the minimum, where (v i ′-v i ) 2 is to make T′ and T as similar as possible; i ω 2 (v i ′) is to ensure that the feature T′ is as smooth as possible; λ is the smoothness weight coefficient, which is closely related to the smoothness.

[0073] Take where i * is the vertex v i The set of all adjacent vertex subscripts, ω ij v j rights and satisfy s i The selection of is determined by the original noise grid T.

[0074] The above formula can be expressed in matrix form as:

[0075] E=(V′-V) Τ (V′-V)+λ(V′ Τ L Τ SLV′)

[0076] Where S is the diagonal element s i The diagonal matrix of , V and V′ are the vectors of the original mesh vertices and the smoothed mesh vertices, respectively, where L is:

[0077]

[0078] The right side of the above formula is a new mesh vertex {v i′|i=0,1,...,t-1}, let it take the minimum value, and get the vector V′, which is obtained by (I+λL Τ SL)V′=V is determined, because its coefficient matrix is ​​a singular matrix, so its unique solution is V′=(I+λL Τ SL) -1 V. The smoothing of the grid can be achieved by changing the smoothing weight coefficient λ. Figure 3 .

[0079] Step S3: Rendering optimization and model test export of small celestial body three-dimensional model.

[0080] The adjustment of the 3D model constructed the basic outline of Itokawa. By processing the triangular mesh of the model, the surface smoothness of the model was improved, but it was quite different from the actual surface characteristics of the celestial body. In order to make the model more realistic, it is necessary to further fine-tune the model and debug and modify the corresponding parameters in the model modifier to make the craters and surface terrain of the model more obvious and the model closer to the Itokawa simulation model.

[0081] In order to further enrich the surface feature information of the model, texture mapping is used to highlight the details of the object without increasing the complexity of the model, and various effects such as reflection and bump can be created to improve the appearance of the model and make the constructed model more realistic. The essence of texture mapping is to map a two-dimensional texture image to the surface of a three-dimensional model. The key to texture mapping is to determine the mapping M between the object space and the texture space. M can be expressed as follows:

[0082] (u,v)=F(x,y,z)

[0083] Where (u,v) and (x,y,z) represent the coordinates of the point in texture space and object space respectively. Since the shape of the target celestial body is approximately ellipsoidal, the spherical texture mapping method is adopted:

[0084]

[0085] However, this texture mapping method will produce obvious texture deformation at both ends of the model. Therefore, it is necessary to use stereo projection technology to further process the texture deformation generated by the model. Stereo projection mapping is defined as:

[0086]

[0087] in φ are the longitude and latitude respectively.

[0088] The image quality and size of the texture map determine the final display effect. The original image is improved by bilinear interpolation, which is achieved by first-order linear interpolation on the x-axis and y-axis respectively.11 =(x1,y1),Q 12 =(x1,y2),Q 21 =(x2,y1),Q 22 =(x2,y2), first linearly interpolate the x-axis direction and insert R1 and R2 pixels:

[0089]

[0090] The y-axis direction is further interpolated, and the pixel at point P is calculated by linear interpolation based on the R1 and R2 pixels to achieve image interpolation.

[0091]

[0092] The linear interpolation image is cropped to the texture valid area and the texture coordinates are updated. During the texture update process, the new texture (u′, v′) coordinates are as follows:

[0093]

[0094] where u min , v min are the minimum values ​​of the original texture in the u and v directions, respectively, and l u , l v It is the length of the original texture in u and v directions.

[0095] Combined with the new image obtained by linear interpolation, the texture mapping of the complex three-dimensional model is realized by combining spherical mapping and cubic mapping, and by adjusting the UV coordinates and U, V, W tiling parameters, avoiding texture stretching and pixel blurring. Finally, the optimized three-dimensional model is checked and tested for size, texture mapping, coordinate axis, etc., and the three-dimensional models that pass the test are exported as ".FBX" format files in groups.

[0096] See also Figure 4 As shown, the software design process of a small celestial body surface dynamic simulation and landing scene simulation system disclosed in this embodiment includes the following steps:

[0097] Step S1, designing the parent-child relationship of each object in the scene and defining the coordinate system unit.

[0098] The Unity3D platform has a visual tree-like resource list (Hierarchy), which can list all the scenes and files in the project. You can directly drag objects to establish a parent-child relationship between objects. In the parent-child relationship, the movement or operation of the parent object will cause the same operation to occur on its child objects, which also makes it easier to change the properties of a large number of objects. When the target model established by this system is exported, the transformation and coordinate axis conversion processing are reset, so that after the model is imported into Unity3D, the model scale and size do not change, avoiding deformation of child objects or position display errors caused by model scale.

[0099] The three-dimensional model of the small celestial body is imported into the virtual engine, and the fixed coordinate system of the small celestial body is defined to be consistent with the world coordinate system in the scene. The coordinate system of the small celestial body detector is based on the fixed coordinate system of the small celestial body. In order to ensure the consistency with the simulation data given by the GNC system in the future, it is uniformly defined as a left-handed coordinate system. The position and attitude information of the small celestial body detector in the simulation data given by the GNC system is based on the fixed coordinate system of the small celestial body. Therefore, when designing the simulation system, the small celestial body is used as the parent object, and the detector, lighting and other objects are used as child objects. The child object will also perform corresponding actions for the movement or operation of the parent object.

[0100] Step S2: Building a simulation scene based on the virtual engine Unity3D.

[0101] The 3D model is imported into the virtual scene. In order to make the scene in the Unity3D platform more realistic, a skybox is created to simulate the real deep space environment. The design of the skybox should create a skybox shader, and generate a skybox with multiple textures through texturing. The source texture represents the background view in all directions, and finally the skybox is created. The skybox is used to render the sky through the built-in rendering pipeline and the universal rendering pipeline. The skybox material is then applied to the ambient lighting, and the created skybox is selected and assigned in the Lighting window of the scene. The light source in the deep space environment is an important part of the simulation system, and the light source in the scene determines the atmosphere presented by the scene. There are four main types of light source objects in Unity3D: area light, point light, directional light, and spotlight. This system uses directional light to simulate sunlight. The intensity of directional light in Unity3D will not attenuate with the distance of the light source. First, adjust the direction of the light source and set the light intensity. Secondly, to simulate complex lighting conditions, the light source mode adopts the mixed mode. Then, the light source shadow effect is applied in soft shadow mode to make the shadow effect of scene objects more significant. Finally, the scene is dynamically rendered by lighting. The impact of sunlight on detector imaging in different directions is simulated by changing the incident direction of the light source.

[0102] Step S3: Design of motion and attitude functions of target celestial body and small celestial body probe.

[0103] To realize the real simulation of celestial bodies, it is necessary to simulate each posture of celestial bodies accordingly. Therefore, the celestial body simulation system needs to establish a powerful logic action library, and the commands and actions are interconnected and linked. The motion characteristics of small celestial bodies have an important influence on whether the detector can be successfully simulated. Therefore, the design of small celestial body motion function is an indispensable part of the present invention. The motion of small celestial body model is realized through motion functions such as position() and rotate(), and its motion parameters are set according to the actual data of the celestial body. The basic information of the target small celestial body Itokawa used in the embodiment is given in Table 1.

[0104] Table 1 Itokawa basic parameters

[0105] parameter Quantity Shape(m) 535×298×244 Spin-rate(h) 12.132 Mass(Kg) 3.147×1010 Mean diameter(Km) 0.3300

[0106] The motion simulation of the probe is an important part of the present invention. It is the premise for the probe to realize dynamic observation of the surface of small celestial bodies. The specific motion of the probe is controlled by the script to realize real-time simulation. In the deep space exploration mission, the attitude trajectory design of the probe affects the result of the entire exploration mission. The attitude control is the premise of the orbit control of the probe. Through the attitude control, the actual operation status of the probe can be observed intuitively to ensure the smooth progress of the small celestial body exploration mission. The present invention simulates the dynamic observation of small celestial bodies at different positions and attitudes of the probe landing stage and obtains high-resolution landing images, wherein the probe position setting is realized by using the localposition() script function.

[0107] See attached Figure 5 In order to obtain the desired posture of the detector under a specific rotation order, the abstract space rotation is divided into three rotations around different rotation axes in sequence. Under different rotation orders, there are multiple matrices representing relative postures. The coordinate system in Unity3D is a left-handed coordinate system. Following the left-hand rule, the rotation order of the desired posture of the detector is zyx. The desired posture of the detector can be obtained by rotating around the z-axis by an angle of γ, around the y-axis by an angle of β, and around the x-axis by an angle of α. The detector posture trajectory control method mainly includes the rotation matrix method and the quaternion method.

[0108] The rotation matrix method is used to design the detector attitude information. According to the basic principle of coordinate transformation matrix, the rotation matrix around different rotation axes is obtained using Euler angles. According to the expected rotation order, the attitude matrix represented by zyx rotation is obtained:

[0109]

[0110] The rotation function in Unity3D uses zxy as the order, and a new posture matrix needs to be established. The new posture matrix is ​​D zxy(γ1, α1, β1). Transform the known Euler angles and give the rotation matrix N so that it satisfies the following equivalent relationship:

[0111]

[0112] N=D zxy (γ1,α1,β1)

[0113] The transformed Euler angles (α1, β1, γ1) are obtained by using the formula equivalence principle:

[0114]

[0115] Substitute the transformed rotation angles of each axis into D zxy (γ1, α1, β1) to get the attitude matrix in the new rotation order:

[0116]

[0117] Assume that P is a point on the detector with coordinates (X, Y, Z), P1 is obtained after the detector is rotated, and the coordinates after the transformation are (X1, Y1, Z1), and the detector posture transformation is obtained as P1 = PD zxy (γ1, α1, β1).

[0118]

[0119] Through the above change matrix, the detector posture can be expressed as:

[0120]

[0121] The quaternion method is used to design the detector attitude information. The three-dimensional rotation in space can be regarded as the combination and superposition of rotations around the three basic axes. The rotation angles of the three basic axes are (α, β, γ). The quaternion of the basic rotation of the coordinate axis can be represented as:

[0122]

[0123] This system adopts the rotation order of zyx, and its rotation process is defined as:

[0124]

[0125] For any three-dimensional vector c = (X2, Y2, Z2), it can correspond to a real quaternion C = 0 + X2i + Y2j + Z2k. There is a one-to-one correspondence between the three-dimensional vector space and the real quaternion. Assume that a point Q (x3, y3, z3) on the detector has a rotation Euler angle of (α, β, γ), and the coordinates after rotation are Q1 (x4, y4, z4). The three-dimensional coordinates Q and Q1 are extended to the four-dimensional space, and the quaternion representations are Q [0 (x3, y3, z3)], Q1 [0 (x4, y4, z4)], and the detector attitude transformation is obtained as follows:

[0126]

[0127] Combining the above formulas, the calculation formula for the detector's expected attitude trajectory can be derived:

[0128]

[0129] Step S4: designing a scene object collision detection unit.

[0130] Collision detection technology is the reaction of the detector when it hits the surface of a celestial body while moving in a virtual scene. In the actual landing process of the detector, it is impossible for the detector to pass through the surface of a celestial body. If the model in the scene is not designed with collision detection, the detector may pass through the celestial body during operation, and the scene will lose its realism and the interactive experience will also decrease. Therefore, collision detection is required for the models in the scene. Objects in the scene are designed using the collision information detection method, and corresponding colliders are added to the objects in the scene. Unity3D software provides a variety of colliders, including Box collider, Sphere Collider, Mesh Collider, etc. The function of the collider component is to use a regular polygon to approximate the object and detect whether the colliders between different objects intersect. Box colliders or ball colliders are added to scene models such as virtual cameras. For complex small celestial body models, mesh colliders are used to improve the accuracy of collision detection. The function of entering the collision area is designed to detect the collision state, and the corresponding function of leaving the collision area is designed to realize the action after collision detection. The scene is monitored in real time by calling the event response function and the event listening function, so as to jointly realize collision detection and control the behavior after the collision.

[0131] Step S5: design of auxiliary functions of virtual camera.

[0132] The virtual scene simulation design, through the design of the detector motion and attitude control unit, the detector virtual camera realizes the dynamic observation of the Itokawa surface morphology. In order to meet the task requirements of studying the high-precision celestial surface image simulation method based on the constructed high-resolution celestial body three-dimensional terrain library, the detector virtual camera is designed with image acquisition function, perspective change and other functional units, which can quickly and conveniently set the resolution, number of images, opening angle and acquisition time of the acquired image according to the needs. On the basis of being able to realize automatic screenshot, the camera manual screenshot function is designed. By clicking the designed button, the scene object image can be captured. The image is stored in the preset Images folder and can be opened directly.

[0133] See attached Figure 6 First, the software of the present invention designs an interface protocol for data reading through a C# script, completes system connection through a listening thread, reads relevant data information given by the GNC system, identifies and judges the data information through an associated data script, and stores the associated data; secondly, the setting of the detector posture and position is realized through an assembly script, and whether the program continues to run is determined by judging whether the detector reaches the expected position; thirdly, the direction of the light source in the simulation scene is designed, the illumination information in the given data information is given in the form of a vector direction, and the scene illumination direction is designed in the form of a vector; then, the surface image of the small celestial body is acquired, and whether the detector virtual camera stops running is determined by judging the number of screenshots and the number of rows of input data; finally, the acquired image is stored and exported.

[0134] Step S6: realize connection with the GNC system and build a semi-physical simulation system.

[0135] The GNC system gives the data text of the position information, attitude information and sunlight information of the small celestial body detector in this software. This system software first uses C# language to write a script to realize the connection with the GNC system serial port, completes the connection between systems through the listening thread, realizes the sending and receiving of data, designs the associated data script, associates the simulation data file, loads the data information into the virtual engine, stores the associated data information in the form of an array, and reads it in the form of floating-point data, creates a data reading method, designs the maximum number of data storage, uses the for loop function and the line break as the dividing point to realize the continuous reading of data information, and uses the tab character as the dividing point to realize the segmentation of data information, so as to assign it to the corresponding target object. The virtual camera, light source and other scene objects run to the specified position or attitude by reading the assigned data information, realizing real-time communication with the GNC system.

[0136] By reading the simulation data given by the GNC system and combining it with the 3D attitude trajectory algorithm, the trajectory of the detector is simulated. Figure 7, the detector attitude description is shown in the attached Figure 8 . Figure 7 The probe's running route moves from point a to point b, simulating the probe's landing phase. Figure 8 It is a description of the probe attitude corresponding to some simulation data and the probe attitude at the end of the operation. When the simulation is running, the relative attitude and operation trajectory information of the landing stage probe can be clearly observed.

[0137] It can be seen that the small celestial body surface dynamic simulation and landing visual simulation system designed by the present invention can meet the experimental verification requirements of the probe landing stage. The system software uses three-dimensional modeling software and combines weighted least squares method and image texture interpolation algorithm to finally realize the modeling and texture optimization of the target celestial body model. Then, with the help of Unity3D, a small celestial body landing stage dynamic virtual simulation system is successfully built. Finally, based on the research of GNC simulation system data, the parent-child relationship of model objects and scene collision detection and other functional designs are rationally planned to realize the real-time simulation and image acquisition of the probe. The attitude trajectory algorithm designed by the present invention realizes the accurate control of the probe attitude. Combining two attitude control methods, it avoids the angle error and conversion error that occur during the attitude control process of the probe, improves the control accuracy of the system, and reduces the running time. Finally, the simulation results show that under the simulated deep space environment and probe function design, the present invention can effectively simulate the real-time observation of the probe on the surface of small celestial bodies, and realizes the acquisition of the landing stage sequence images based on the reading of accurate simulation data. The acquired images are real, rich in texture, and have a small overlap rate, which provides the premise for the precise positioning and landing navigation guidance of the probe landing stage and the flexible attachment of small celestial bodies.

[0138] The above specific description further illustrates the scheme, purpose and beneficial effects of the present invention in detail. It should be understood that this embodiment is only used to explain the present invention and is not used to limit the scope of protection of the present invention. Modifications and replacements based on the same research ideas and basic principles as the present invention are all included in the scope of protection of the present invention.

Claims

1. A method for dynamic simulation of small celestial body surface and landing scene simulation, characterized in that: The method is divided into the following steps: Step 1: construct a three-dimensional model of the target celestial body, adopt a hybrid modeling method based on geometry and image, construct a three-dimensional grid model of the target celestial body, and smooth the model grid by weighted least squares method; Step 2: Optimize the rendering of the three-dimensional model of the target celestial body, and use bilinear interpolation to improve the image resolution. This is achieved by performing first-order linear interpolation on the x-axis and y-axis respectively. First, linear interpolation is performed on the x-axis direction to insert two pixels, and then interpolation is further performed on the y-axis direction. Combined with the two inserted pixels, linear interpolation is performed to calculate the pixels at the interpolation points to achieve image interpolation. The image obtained by linear interpolation is cropped as a texture valid area and the texture coordinates are updated. In the texture updating process, the coordinates of the new texture are obtained. Since the shape of the target celestial body is approximately ellipsoidal, the spherical texture mapping method is first used to perform texture mapping of the model. However, this texture mapping method will produce obvious texture deformation at both ends of the model. Therefore, the texture deformation produced by the model is further processed with the help of stereo projection technology. Finally, the new image obtained by linear interpolation is combined with the spherical mapping and cubic mapping, and the UV coordinates and U, V, W tiling parameters are adjusted to achieve texture mapping optimization of the three-dimensional irregular complex model, so that it is close to the three-dimensional morphological characteristics of the target celestial body. Step 3: Design a virtual visual simulation system to simulate the landing phase operation of the probe in a real space environment. The design of the virtual visual simulation system requires the standardization of the system scene, including: the definition of the parent-child relationship of each object in the scene and the virtual scene coordinate system unit; the establishment of the scene skybox and lighting unit; the implementation of the probe motion and attitude control functional unit; the design of the object collision detection unit; the implementation of the virtual camera auxiliary functional unit; and the design of the interface protocol unit for communicating with the GNC system.

2. The method according to claim 1, characterized in that The target celestial body three-dimensional model construction module, wherein: Combining the point cloud data, model size, celestial body elevation data and other data of small celestial bodies, a three-dimensional model simulation was carried out on the basis of a large amount of model reference data to obtain the Itokawa simulation model, and the three-dimensional morphological characteristics of the small celestial body were observed. With the help of the three-dimensional morphological characteristics of the small celestial body, a hybrid modeling method based on geometry and image was adopted. On the basis of the model elevation data, the celestial body craters and surface protrusions were constructed, and the basic three-dimensional mesh model of the target celestial body Itokawa was established. The three-dimensional model of the target celestial body is composed of triangular face meshes, and the mesh is smoothed using the weighted least squares method, and the smoothing of the model mesh is achieved by changing the smoothing weight coefficient.

3. The method according to claim 1, characterized in that The parent-child relationship of objects and the definition of coordinate system units in the virtual visual simulation design, wherein: The virtual vision simulation design defines that the fixed coordinate system of the small celestial body is consistent with the world coordinate system in the scene, and the coordinate system of the small celestial body detector is based on the fixed coordinate system of the small celestial body. In order to ensure the consistency with the simulation data given by the GNC system in the future, it is uniformly defined as a left-handed coordinate system. The position and attitude information of the small celestial body detector in the simulation data given by the GNC system is based on the fixed coordinate system of the small celestial body. Therefore, in the simulation design, the small celestial body is used as the parent object, and the detector, lighting and other objects are used as child objects. The child object will also perform corresponding actions when the parent object is moved or operated.

4. The method according to claim 1, characterized in that: The establishment of the scene skybox and the lighting unit in the virtual visual simulation design, wherein: The virtual vision simulation design creates a skybox to simulate a real deep space environment in order to make the scene in the simulation platform more realistic. The design of the skybox should create a skybox shader, generate a skybox with multiple textures through texturing, wherein the source texture represents the background view in each direction, and finally realize the creation of the skybox. The skybox is rendered using the constructed skybox through the built-in rendering pipeline and the universal rendering pipeline. The skybox material is subsequently applied to the ambient lighting, and the created skybox is selected and allocated in the Lighting window of the scene. The light source in the deep space environment is an important part of the simulation system. The system uses directional light to simulate sunlight. First, the direction of the light source is adjusted and the light intensity is set. Secondly, in order to simulate complex lighting conditions, the light source mode adopts a mixed mode. The light source shadow effect is applied in a soft shadow mode again to make the shadow effect of the scene objects more significant. Finally, the scene is dynamically rendered with lighting, wherein the impact of sunlight on detector imaging in different directions is simulated by changing the incident direction of the light source.

5. The method according to claim 1, characterized in that The detector motion and attitude control functional unit in the virtual scene simulation design is implemented, wherein: The virtual scene simulation design, in order to obtain the desired posture of the detector under a specific rotation sequence zyx, splits the abstract space rotation into three rotations around different rotation axes in sequence, and implements them respectively through the rotation matrix method and the quaternion method; The detector attitude control is realized by using the rotation matrix method. According to the basic principle of coordinate transformation matrix, the rotation matrix around different rotation axes is obtained by using Euler angles. According to the desired rotation order, the attitude matrix D represented by zyx rotation is obtained. zyx (γ, β, α), and the rotation function in Unity3D is based on zxy. A new posture matrix needs to be established. The established new posture matrix is ​​D zxy (γ1, α1, β1), use the formula equivalence principle to get the transformed Euler angle (α1, β1, γ1), and substitute the transformed rotation angles of each axis into D zxy (γ1, α1, β1) to obtain the attitude matrix under the new rotation order. Finally, assume that P is a point on the detector with coordinates (X, Y, Z). P1 is obtained after the detector is rotated and transformed. The coordinates after the transformation are (X1, Y1, Z1). The attitude transformation of the detector is obtained as P1 = PD zxy (γ1, α1, β1); The quaternion method is used to realize the attitude control of the detector. The three-dimensional rotation in space can be regarded as the combination and superposition of rotations around the three basic axes. The rotation angles of the three basic axes are (α, β, γ), and the quaternion representation of the basic rotation around the coordinate axis is obtained. z ,q y and q x , this system adopts the rotation order of zyx, and further obtains the rotation process q under this rotation order zyx Finally, assume that a point Q(x3,y3,z3) on the detector has a rotation Euler angle of (α,β,γ), and the coordinates after rotation are Q1(x4,y4,z4). Expand the three-dimensional coordinates Q and Q1 to four-dimensional space, and the quaternion representations are Q[0(x3,y3,z3)] and Q1[0(x4,y4,z4)] respectively. Obtain the detector attitude transformation matrix under this rotation sequence. Finally, the desired posture trajectory of the detector is obtained.

6. The method according to claim 1, characterized in that The design of the object collision detection unit in the virtual vision simulation design, wherein: The virtual vision simulation design is as follows: if the model in the scene is not designed with collision detection, the detector may pass through the celestial body during operation. Therefore, it is necessary to design collision detection for the model in the scene, and the objects in the scene are designed using a collision information detection method. Corresponding colliders are added to the objects in the scene, and a box collider or a ball collider is added to the virtual camera in the scene model. For complex small celestial body models, a grid collider is used to improve the accuracy of collision detection. A function for entering the collision area is designed to detect the collision state, and a corresponding function for leaving the collision area is designed to implement the action after collision detection. The scene is monitored in real time by calling an event response function and an event monitoring function to jointly implement collision detection and control the behavior after the collision.

7. The method according to claim 1, characterized in that The implementation of the virtual camera auxiliary unit in the virtual scene simulation design, wherein: The virtual scene simulation design, through the design of the detector motion and attitude control unit, the detector virtual camera realizes the dynamic observation of the Itokawa surface morphology. In order to meet the task requirements of studying the high-precision celestial surface image simulation method based on the constructed high-resolution celestial body three-dimensional terrain library, the detector virtual camera is designed with image acquisition function, viewing angle change and other functional units, and parameter information such as image resolution, image number, opening angle and acquisition time can be set quickly and conveniently as required. On the basis of being able to realize automatic screenshot, the camera manual screenshot function is designed, and the scene object image can be captured by clicking the designed button. The image is stored in a preset folder and can be opened directly.

8. The method according to claim 1, characterized in that The design of the interface protocol unit in the virtual visual simulation design, wherein: The virtual scene simulation design is realized by writing a script in C# language to connect with the serial port of the GNC system, completing the connection between systems through a monitoring thread, and realizing the sending and receiving of data. The GNC system provides the sunlight vector information, detector position information and attitude information data text during the landing process of the detector, designs an associated data script, associates the simulation data files, loads the data information into the virtual engine, stores the associated data in the form of an array, and creates an array reading method for the data to realize the reading of the data information. The information involved includes but is not limited to the virtual camera attitude, position and light source direction in the scene.