Inspection detector reinforcement learning training method in microgravity environment and electronic equipment

By constructing a three-dimensional terrain model and reinforcement learning training in a microgravity environment, the problem of operational stability and accuracy of traditional detectors in a microgravity environment has been solved, and the detector's autonomous operation and control decision-making capabilities have been improved.

CN118655783AInactive Publication Date: 2024-09-17NINGBO INST OF NORTHWESTERN POLYTECHNICAL UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411124206.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional detector operation and control methods are difficult to adapt to complex motion conditions in microgravity environments, affecting stability and accuracy. They are also difficult to cope with complex and changeable microgravity environments, and have poor ability to operate autonomously and cope with complex environments.

Method used

The reinforcement learning training method of patrol detectors in a microgravity environment is used to construct a three-dimensional terrain model by obtaining picture information on the surface of celestial bodies. Combined with the reinforcement learning algorithm, the movement of the detector is simulated to generate a simulation data set, and a standard for the interaction between the dynamic environment and the reinforcement learning algorithm is established. Interface, add reinforcement learning module for training, and optimize the control decision of the detector.

Benefits of technology

It realizes the rapid training and deployment of patrol detectors in microgravity environments, improves the detector's control decision-making ability and autonomous operation performance, and can better cope with complex and changeable microgravity environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655783A
    Figure CN118655783A
Patent Text Reader

Abstract

The invention discloses a patrol detector reinforcement learning training method and electronic equipment in a microgravity environment, and the method comprises the steps: obtaining the image information of the surface of a celestial body, building a three-dimensional terrain model of the celestial body based on the image information, and defining the model information of a patrol detector in a URDF format; importing model information of the inspection detector and a three-dimensional terrain model into a physical engine; applying various different types of control quantities to simulate the movement of the detector, and generating a simulation data set; and establishing a standard interface for interaction between the dynamic environment and a reinforcement learning algorithm, adding a reinforcement learning module, and inputting the simulation data set into the reinforcement learning module for reinforcement learning training. By using a triangulation and terrain reconstruction method, a celestial body surface picture and a three-dimensional scanning graph are converted into a training environment, and are input into a reinforcement learning algorithm as a part of an environment state, so that each step of action decision of the detector is obtained, and the detector can carry out rapid training and deployment of a control decision model based on different task requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of reinforcement learning, and in particular to a reinforcement learning training method and electronic equipment for patrol detectors in a microgravity environment. Background Art

[0002] In April 2021, Academician Ye Peijian announced at the main forum of the China Space Conference that China's small-body exploration mission has begun engineering development. The mission plans to explore the Earth-orbiting celestial body 2016HO3 and the asteroid 311P. It aims to achieve two types of exploration objectives and three detection modes, namely close range, attachment, and sampling, through a single launch, to achieve a comprehensive breakthrough in the detection field and core technologies, and enable China's small-body exploration to reach the international advanced level at the same time. Small-body exploration has received much attention and has become one of the most important development goals of major aerospace countries in the field of deep space exploration.

[0003] Traditional probe operation and control methods face many challenges in microgravity environments. For example, traditional autonomous control algorithms may not be able to adapt to the complex motion conditions in a microgravity environment, which may affect the stability and accuracy of the probe. In addition, traditional methods usually require accurate modeling of the environment and tasks in advance, which may become more difficult in a microgravity environment because the dynamics and uncertainty of the environment will increase. Traditional methods are often limited by fixed control strategies and parameter settings, and it is difficult to cope with the complex and changeable microgravity environment. This also makes the traditional probe operation and control methods less capable of autonomous operation and coping with complex environments. Summary of the invention

[0004] The purpose of the present invention is to overcome the above-mentioned technical deficiencies, propose a reinforcement learning training method for patrol detectors in a microgravity environment, and solve the technical problems of poor autonomous operation and poor ability to cope with complex environments of traditional detector operation and control methods.

[0005] In order to achieve the above technical objectives, in a first aspect, the technical solution of the present invention provides a method for training patrol probes in a microgravity environment through reinforcement learning, comprising the following steps: Acquire image information of the surface of a celestial body, and construct a three-dimensional terrain model of the celestial body based on the image information, and define the model information of the patrol probe in URDF (Unified Robot Description Format) format; Importing the model information of the patrol probe and the three-dimensional terrain model into a physical engine; Apply various types of control quantities to simulate the detector motion and generate simulation data sets; A standard interface for interaction between a dynamic environment and a reinforcement learning algorithm is established, a reinforcement learning module is added, and the simulation data set is input into the reinforcement learning module for reinforcement learning training.

[0006] Compared with the prior art, the beneficial effects of the patrol detector reinforcement learning training method in a microgravity environment provided by the present invention include: The patrol probe reinforcement learning training method provided by the present invention in a microgravity environment utilizes triangulation and terrain reconstruction methods to convert celestial surface photos and three-dimensional scanned images into a training environment, which are input into a reinforcement learning algorithm as part of the environmental state, thereby obtaining each action decision of the patrol probe, which is beneficial to the rapid training and deployment of control decision models for the patrol probe based on different mission requirements.

[0007] According to some embodiments of the present invention, constructing a three-dimensional terrain model of a celestial body based on the image information comprises the steps of: Preprocessing and image correction are performed on the image information to eliminate noise and distortion; Using computer vision technology, key feature points in the image are extracted as the basis for terrain reconstruction. The key feature points include: surface concavity, edge and texture; Based on the key feature points, a three-dimensional reconstruction algorithm is used to deduce the geometric structure of the celestial body surface, and the spatial position of each of the key feature points is calculated according to the parallax information in the image information by combining stereo vision and triangulation technology, and the three-dimensional terrain model is generated by a triangulation method; On the generated three-dimensional terrain model, the image texture is mapped onto the three-dimensional terrain model for fusion, so as to retain the visual features of the surface; A smoothing algorithm is used to smooth the geometric structure of the celestial body surface to eliminate noise and discontinuity in the three-dimensional terrain model.

[0008] According to some embodiments of the present invention, defining the model information of the patrol probe in URDF format comprises the steps of: Define patrol probe links: Use <link> The tags define each link of the patrol probe, including: the name, geometry, mass and inertia information of the link; Define patrol probe joints: Use <joint>The tags define the joints of the patrol probe, including: the type of joint, parent link and child link, joint axis and joint limit information; Define patrol detector sensors: Use <sensor>The tags define the sensors of the patrol detector, including: a camera, a lidar, and an inertial measurement unit; the type, position, direction, field of view angle information of the sensor, and the data publishing method and format of the sensor are defined in the parameters of the sensor.

[0009] After all information is defined, syntax checking and model validation are performed to ensure that the file format is correct and complies with the URDF standard.

[0010] According to some embodiments of the present invention, applying various types of control quantities to simulate the motion of the detector and generating a large number of simulation data sets includes the steps of: During the simulation process, various types of control quantities are applied, including thrust and torque, to simulate the motion trajectory and posture changes of the patrol probe when performing various tasks, and generate a large number of simulation data sets.

[0011] According to some embodiments of the present invention, the establishment of a standard interface for interaction between a dynamic environment and a reinforcement learning algorithm includes: The env.load (*) interface function is used to load the dynamic environment, and the three-dimensional terrain model file is imported into the physical engine through the env.load (*) interface function, and the STL file path, surface texture information, elastic coefficient, and friction coefficient of the three-dimensional terrain model are specified through the env.load (*) interface function; The env.init (*) interface function is used to initialize the state and action of the patrol probe, wherein the state includes: position, speed, posture information, and defines the action that the patrol probe can take, and the state and action are used as inputs of the reinforcement learning algorithm; The env.close(*) interface function is used to close the dynamics environment. The env.close(*) interface function is used to close the simulation environment, release resources and clean up the environment. It is called after completing the simulation task or ending the training; The env.step(*) interface function for single-step simulation of the dynamic environment is used to execute a step action in the simulation environment and return the new state, reward value and information on whether it is ended. The call of the env.step(*) interface function will trigger the movement of the patrol detector in the simulation environment and update the state of the reinforcement learning algorithm according to the feedback information of the simulation environment; The env.render(*) interface function is used for visual output. The env.render(*) interface function is used to visualize the current state of the simulation environment so as to observe the movement of the patrol detector and the changes in the environment. The env.render(*) interface function is used to debug and visualize the results of the simulation process.

[0012] According to some embodiments of the present invention, adding a reinforcement learning module comprises the steps of: Link to the reinforcement learning algorithm library, which includes: OpenAI Gym, TensorFlowAgents, Stable Baselines, and reinforcement learning algorithms include: Deep Q Network (DQN), Policy Gradient Method (PG), Actor-Critic Algorithm (A2C); Designing task indicators based on the specific type of patrol detector; Taking into account the characteristics and mission requirements of the patrol probe, mission indicators are defined, and the mission indicators include: attitude stability of the patrol probe, effectiveness of path planning, and energy efficiency, which are used to evaluate the performance and behavior of the patrol probe in a microgravity environment; Define state space and action space; The state space includes: position, speed, and attitude information; the action space includes the actions of the patrol probe: the jet force of the thruster and the rotation speed of the reaction wheel. By clearly defining the state space and the action space, the reinforcement learning algorithm can understand and learn the characteristics and operations in the microgravity environment.

[0013] According to some embodiments of the present invention, the adding of the reinforcement learning module further comprises the steps of: Perform algorithm debugging and evaluation: monitor the performance of the algorithm during training, analyze the learning curve and convergence speed, and evaluate the generalization ability of the three-dimensional terrain model in a microgravity environment after training. Perform algorithm debugging and evaluation through the tenserboard tool to improve the performance of the algorithm.

[0014] In a second aspect, the technical solution of the present invention provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements a patrol probe reinforcement learning training method in a microgravity environment as described in any one of the first aspects.

[0015] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, wherein the abstract drawings are identical to one of the drawings in the specification: Figure 1 A flowchart of a method for training patrol probes under microgravity environment through reinforcement learning provided by one embodiment of the present invention; Figure 2 A flowchart of a method for training patrol probes through reinforcement learning in a microgravity environment provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0018] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flow chart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0019] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0020] Reference Figure 1 and Figure 2 , Figure 1 A flowchart of a method for training patrol probes under microgravity environment through reinforcement learning provided by one embodiment of the present invention; Figure 2 A flowchart of a method for training patrol detectors under microgravity environment reinforcement learning provided by an embodiment of the present invention, wherein the method for training patrol detectors under microgravity environment reinforcement learning includes but is not limited to steps S110 to S140; Step S110, obtaining image information of the surface of the celestial body, and constructing a three-dimensional terrain model of the celestial body based on the image information, and defining the model information of the patrol probe in URDF format; Step S120, importing the model information of the patrol detector and the three-dimensional terrain model into the physical engine; Step S130, applying various types of control variables to simulate the motion of the detector and generate a simulation data set; Step S140, establishing a standard interface for interaction between the dynamic environment and the reinforcement learning algorithm, adding a reinforcement learning module, and inputting the simulation data set into the reinforcement learning module for reinforcement learning training.

[0021] In some embodiments, a method for reinforcement learning training of a patrol probe in a microgravity environment includes the steps of: obtaining image information of the surface of a celestial body, and constructing a three-dimensional terrain model of the celestial body based on the image information, defining the model information of the patrol probe in URDF (Unified Robot Description Format) format; importing the model information and three-dimensional terrain model of the patrol probe into a physical engine; applying various types of control quantities to simulate the motion of the probe and generate a simulation data set; establishing a standard interface for interaction between a dynamic environment and a reinforcement learning algorithm, adding a reinforcement learning module, and inputting the simulation data set into the reinforcement learning module for reinforcement learning training.

[0022] Among them, building a three-dimensional terrain model of a celestial body based on image information includes the following steps: preprocessing and image correction of the image information to eliminate noise and distortion; using computer vision technology to extract key feature points in the image as the basis for terrain reconstruction, the key feature points include: surface convexity and concavity, edges and textures; using a three-dimensional reconstruction algorithm based on the key feature points to deduce the geometric structure of the celestial body surface, and combining stereo vision and triangulation technology to calculate the spatial position of each key feature point according to the parallax information in the image information, and generating a three-dimensional terrain model through a triangulation method; on the generated three-dimensional terrain model, mapping the image texture onto the three-dimensional terrain model for fusion to retain the visual features of the surface; using a smoothing algorithm to smooth the geometric structure of the celestial body surface to eliminate noise and discontinuity in the three-dimensional terrain model.

[0023] First, the photos or scanned images of the celestial body surface are imported into the computer for preprocessing and image correction to eliminate noise and distortion. Then, computer vision technology is used to extract key feature points in the image, such as surface bumps, edges and textures, as the basis for terrain reconstruction. Based on the image feature points, a three-dimensional reconstruction algorithm is used to deduce the geometric structure of the celestial body surface. Combining stereo vision and triangulation technology, the spatial position of each key feature point is calculated according to the parallax information in the image, and then a three-dimensional terrain model is generated through triangulation and other methods. On the generated three-dimensional terrain model, the image texture map is fused with the three-dimensional terrain model, or the image information is projected onto the three-dimensional terrain model using camera projection technology to retain the visual features of the surface. Finally, a smoothing algorithm is used to smooth the geometric structure of the celestial body surface, eliminate noise and discontinuity in the three-dimensional terrain model, and retain the main features of the surface to improve the accuracy and fidelity of the three-dimensional terrain model.

[0024] Define the model information of the patrol probe in URDF format, including the following steps: Define the patrol probe link: Use <link> The tags define the links of the patrol probe, including: the name, geometry, mass and inertia information of the link; define the patrol probe joints: use <joint>Tags define the joints of the patrol probe, including: joint type, parent link and child link, joint axis and joint limit information; define the patrol probe sensor: use <sensor>Tags define the sensors of the patrol detector, including: camera, lidar and inertial measurement unit; define the sensor type, position, direction, field of view angle information, and sensor data publishing method and format in the sensor parameters; after all information is defined, perform syntax checking and model verification to ensure that the file format is correct and complies with the URDF standard.

[0025] The model information of the patrol probe is defined in URDF (Unified Robot Description Format). The model information of the patrol probe is an important basis for applications such as simulation, control and planning. URDF is a commonly used format for describing robot models. It provides a standardized way to define the geometric structure and kinematic characteristics of the robot, i.e., the patrol probe. By using URDF, the patrol probe model can be easily integrated into platforms such as ROS (Robot Operating System) and related simulation and control can be performed. The implementation method is as follows: (1) Define patrol detector link: Use <link> Tags define each link of the patrol detector, including the name, geometry, mass, inertia and other information of the link. In the geometric properties of the link, various geometric bodies such as boxes, cylinders, spheres, etc., as well as external model files (such as STL files) can be used to define the appearance of the link; (2) Define patrol detector joints: Use <joint>The tag defines the joints of the patrol probe, including the type of joint (such as rotational joint, translational joint), parent link and child link, joint axis, joint limit and other information. According to the actual structure of the patrol probe, the connection relationship between the joints, as well as their range of motion and constraints can be defined; (3) Define patrol detector sensor: Use <sensor>Tags define the sensors of patrol detectors, such as cameras, lidars, inertial measurement units, etc. The sensor parameters define the sensor type, position, direction, field of view, and other information, as well as the sensor data publishing method and format. After all information is defined, syntax checking and model verification are performed to ensure that the file format is correct and complies with the URDF standard.

[0026] In some embodiments, a method for training a patrol probe in a microgravity environment through reinforcement learning includes the steps of: obtaining image information of the surface of a celestial body, and constructing a three-dimensional terrain model of the celestial body based on the image information, defining the model information of the patrol probe in URDF (Unified Robot Description Format) format; importing the model information and three-dimensional terrain model of the patrol probe into a physical engine; applying various types of control quantities to simulate the motion of the probe and generate a simulation data set; establishing a standard interface for interaction between a dynamic environment and a reinforcement learning algorithm, adding a reinforcement learning module, inputting the simulation data set into the reinforcement learning module for reinforcement learning training, applying various types of control quantities to simulate the motion of the probe, and generating a large number of simulation data sets, including the steps of: during the simulation process, applying various types of control quantities, including thrust and torque, simulating the motion trajectory and posture changes of the patrol probe when performing various tasks, and generating a large number of simulation data sets.

[0027] During the simulation process, various types of control quantities can be applied, such as thrust (corresponding to the jet of the thruster) and torque (rotation of the reaction wheel), to simulate the motion trajectory and posture changes of the patrol probe when performing various tasks, thereby generating a large number of simulation data sets. These data can be used to analyze the performance, stability and sensitivity of the patrol probe in different tasks and working environments, and can also be used to verify and optimize the control algorithms and mission decisions of the patrol probe, thereby improving its autonomous operation and mission execution capabilities.

[0028] A standard interface for the interaction between the dynamic environment and the reinforcement learning algorithm is established, including: the env.load (*) interface function for loading the dynamic environment, importing the 3D terrain model file into the physics engine through the env.load (*) interface function, and specifying the STL file path, surface texture information, elastic coefficient, and friction coefficient of the 3D terrain model through the env.load (*) interface function; the env.init (*) interface function for initializing the state and action of the patrol probe. The state includes: position, speed, and posture information, as well as defining the action that the patrol probe can take. The state and action serve as inputs to the reinforcement learning algorithm; the env.close (*) interface function for closing the dynamic environment. The env.close (*) interface function is used to close the dynamic environment. Close the simulation environment, release resources and clean up the simulation environment. It is called after completing the simulation task or ending the training. The env.step(*) interface function used for single-step simulation of the dynamic environment is used to perform a step action in the simulation environment and return the new state, reward value and information on whether it is ended. The call of the env.step(*) interface function will trigger the movement of the patrol probe in the simulation environment and update the state of the reinforcement learning algorithm according to the feedback information of the simulation environment. The env.render(*) interface function used for visualization output is used to visualize the current state of the simulation environment in order to observe the movement of the patrol probe and the changes in the simulation environment. The env.render(*) interface function is used to debug and visualize the results of the simulation process.

[0029] In some embodiments, a method for training a patrol probe in a microgravity environment through reinforcement learning includes the following steps: obtaining image information of a celestial body surface, constructing a three-dimensional terrain model of the celestial body based on the image information, and defining the model information of the patrol probe in a URDF (Unified Robot Description Format) format; importing the model information and the three-dimensional terrain model of the patrol probe into a physical engine; applying various types of control quantities to simulate the motion of the probe and generating a simulation data set; establishing a standard interface for interaction between a dynamic environment and a reinforcement learning algorithm, adding a reinforcement learning module, and inputting the simulation data set into the reinforcement learning module for reinforcement learning training; Add a reinforcement learning module, including the following steps: Link to the reinforcement learning algorithm library, which includes: OpenAI Gym, TensorFlow Agents, Stable Baselines, and reinforcement learning algorithms include: Deep Q Network (DQN), Policy Gradient Method (PG), Actor-Critic Algorithm (A2C); Design mission indicators based on the specific type of patrol detector; Considering the characteristics and mission requirements of the patrol probe, the mission indicators are defined. The mission indicators include: attitude stability of the patrol probe, effectiveness of path planning, and energy efficiency, which are used to evaluate the performance and behavior of the patrol probe in a microgravity environment. Define state space and action space; The state space includes all possible states: position, velocity, and attitude information. The action space includes all actions that the rover can take: the jet force of the thrusters and the rotation speed of the reaction wheels. By clearly defining the state space and action space, the reinforcement learning algorithm can understand and learn the characteristics and operations in the microgravity environment. Implement algorithm debugging and evaluation functions; monitor the performance of the algorithm during training, analyze the learning curve and convergence speed, and evaluate the generalization ability of the trained 3D terrain model in a microgravity environment. Implement algorithm debugging and evaluation functions through the tenserboard tool to improve the performance of the algorithm.

[0030] In some embodiments, a method for constructing a reinforcement learning training environment for a micro-patrol probe in a microgravity environment includes the following steps: S1: Define the rigid body model of the celestial body surface and the micro-rovers; Optionally, S11 includes: S11: Reconstruct three-dimensional terrain information based on photos or scans of the celestial body surface; First, the photos or scanned images of the celestial body surface are imported into the computer for preprocessing and image correction to eliminate noise and distortion. Then, computer vision technology is used to extract key feature points in the image, such as surface bumps, edges, and textures, as the basis for terrain reconstruction. Based on the key feature points of the image, a 3D reconstruction algorithm is used to deduce the geometric structure of the celestial body surface. The spatial position of each key feature point is calculated based on the parallax information in the image by combining stereo vision and triangulation technology. Then, a 3D terrain model is generated through triangulation and other methods. On the generated 3D terrain model, the visual features of the surface are preserved by fusing the image texture map with the 3D terrain model or projecting the image information onto the 3D terrain model using camera projection technology; Finally, a smoothing algorithm is used to smooth the surface of the celestial body, eliminating noise and discontinuity in the three-dimensional terrain model while retaining the main features of the surface to improve the accuracy and realism of the model; S12: define the model information of the patrol probe in URDF (Unified Robot Description Format); S2: Import the URDF file of the micro patrol probe into the physical engine as the multi-rigid body model of the patrol probe, and simulate the motion state of the patrol probe after applying the control amount as the simulation data set; S2 includes: S21: Import the URDF file of the micro patrol probe into the Bullet physics engine; Import the URDF file of the micro-probe into the physics engine as a multi-rigid body model of the probe. The URDF file describes the various components, connection relationships, mass, inertia and other parameters of the probe, so that the physical engine can accurately simulate the structure and dynamic characteristics of the probe, as well as the movement behavior of the probe in a microgravity environment taking into account other external interference factors; S22: applying various types of control quantities to simulate the motion of the detector and generate corresponding simulation data sets; S3: Establish a standard interface for interaction between dynamic environments and reinforcement learning algorithms; S3 includes: S31: Interface function env.load(*) for loading dynamics environment; This interface function is responsible for loading the dynamic environment, that is, importing the file of the 3D terrain model generated in S11 into the physical engine. This function needs to specify the necessary parameters such as the STL file path, surface texture information, elastic coefficient, friction coefficient, etc. of the 3D terrain model; S32: Interface function env.init (*) used to initialize the state and action quantities of the patrol detector; This interface function is used to initialize the state of the patrol probe, including information such as position, speed, and posture, and to define the actions that the patrol probe can take. These state and action quantities will be used as inputs to the reinforcement learning algorithm. S33: Interface function env.close(*) used to close the dynamics environment; This interface function is used to close the simulation environment, release resources and clean up the environment. It is usually called after completing the simulation task or ending the training. S34: Interface function env.step(*) for single-step simulation of dynamic environment; This interface function is used to execute an action in the simulation environment and return the new state, reward value, and information on whether the action is over. The call of this function will trigger the movement of the patrol detector in the simulation environment and update the state of the reinforcement learning algorithm based on the feedback information from the environment. S35: Interface function env.render(*) for visualization output; This interface function is used to visualize the current state of the simulation environment so that users can observe the movement of patrol detectors and changes in the environment. This function is usually used to debug and visualize the results of the simulation process; By providing these interface functions, effective interaction between the dynamic environment and the reinforcement learning algorithm can be achieved, thereby realizing the intelligent control and learning of the patrol probe in a microgravity environment; S4: Add reinforcement learning module to enable effective learning and training; S4 includes: S41: Link to common reinforcement learning algorithm libraries; In the reinforcement learning module, common reinforcement learning algorithm libraries are linked, such as OpenAI Gym, TensorFlowAgents, Stable Baselines, etc. These libraries provide various classic reinforcement learning algorithm implementations, such as Deep Q Network (DQN), Policy Gradient Method (PG), Actor-Critic Algorithm (A2C), etc., which can provide strong support for model training; S42: Design task indicators based on specific patrol detector types; When designing reinforcement learning tasks, it is necessary to consider the characteristics and task requirements of the micro-rovers and define appropriate task indicators. These indicators may include the attitude stability of the patrol probe, the effectiveness of path planning, and the efficiency of energy utilization, etc., in order to evaluate the performance and behavior of the patrol probe in a microgravity environment. S43: Define state space and action space; The state space includes all possible states, such as position, speed, attitude and other information, and the action space includes all actions that the patrol probe can take, such as the jet force of the thruster, the speed of the reaction wheel, etc. By clearly defining the state space and action space, it can help the algorithm better understand and learn the characteristics and operations in the environment; S44: Implement algorithm debugging and evaluation functions; In addition to the model training function, the algorithm debugging and evaluation functions are also required, which include monitoring the performance of the algorithm during training, analyzing the learning curve and convergence speed, and evaluating the generalization ability of the trained three-dimensional terrain model in a microgravity environment. Implementing this function through tools such as tenserboard can better understand and improve the performance of the algorithm.

[0031] As a non-volatile computer-readable storage medium, the memory can be used to store non-volatile software programs and non-volatile computer executable programs. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory can optionally include a memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0032] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0033] In addition, an embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor or controller, for example, by a processor in the above-mentioned terminal embodiment, so that the above-mentioned processor can execute the patrol probe reinforcement learning training method in the microgravity environment in the above-mentioned embodiment.

[0034] It can be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof, and some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and a computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a transient medium). As is well known to those skilled in the art, the term computer storage medium includes a medium for storing information (such as computer-readable instructions, data structures, programs, etc.). The computer storage medium includes but is not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by the computer. In addition, it is well known to those skilled in the art that communication media generally contain computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery media.

[0035] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.

[0036] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.< / sensor> < / joint> < / sensor> < / joint> < / sensor> < / joint>

Claims

1. A reinforcement learning training method for patrol probes in a microgravity environment, characterized in that: The following steps are involved: Obtaining image information of the surface of a celestial body, and constructing a three-dimensional terrain model of the celestial body based on the image information, and defining the model information of the patrol probe in URDF format; Importing the model information of the patrol probe and the three-dimensional terrain model into a physical engine; Apply various types of control quantities to simulate the detector motion and generate simulation data sets; A standard interface for interaction between a dynamic environment and a reinforcement learning algorithm is established, a reinforcement learning module is added, and the simulation data set is input into the reinforcement learning module for reinforcement learning training.

2. The method for training patrol probes under microgravity environment according to claim 1, characterized in that: The method of constructing a three-dimensional terrain model of a celestial body based on the image information comprises the steps of: Preprocessing and image correction are performed on the image information to eliminate noise and distortion; Using computer vision technology, key feature points in the image are extracted as the basis for terrain reconstruction. The key feature points include: surface concavity, edge and texture; Based on the key feature points, a three-dimensional reconstruction algorithm is used to deduce the geometric structure of the celestial body surface, and the spatial position of each of the key feature points is calculated according to the parallax information in the image information by combining stereo vision and triangulation technology, and the three-dimensional terrain model is generated by a triangulation method; On the generated three-dimensional terrain model, the image texture is mapped onto the three-dimensional terrain model for fusion, so as to retain the visual features of the surface; A smoothing algorithm is used to smooth the geometric structure of the celestial body surface to eliminate noise and discontinuity in the three-dimensional terrain model.

3. The method for training patrol probes under microgravity environment according to claim 1 or 2, characterized in that: The method of defining the model information of the patrol detector in URDF format includes the following steps: Define patrol probe links: Use <link> The tags define each link of the patrol probe, including: the name, geometry, mass and inertia information of the link; Define patrol probe joints: Use <joint> The tags define the joints of the patrol probe, including: the type of joint, parent link and child link, joint axis and joint limit information;< / joint> Define patrol detector sensors: Use <sensor> The tag defines the sensors of the patrol detector, including: a camera, a laser radar, and an inertial measurement unit; the type, position, direction, and field of view angle information of the sensor, as well as the data publishing method and format of the sensor are defined in the parameters of the sensor;< / sensor> After all information is defined, syntax checking and model validation are performed to ensure that the file format is correct and complies with the URDF standard.

4. The method for training patrol probes under microgravity environment according to claim 1, characterized in that: The method of applying various types of control quantities to simulate the motion of the detector and generate a large number of simulation data sets includes the following steps: During the simulation process, various types of control quantities are applied, including thrust and torque, to simulate the motion trajectory and posture changes of the patrol probe when performing various tasks, and generate a large number of simulation data sets.

5. The method for training patrol probes under microgravity environment according to claim 1, characterized in that: The standard interface for establishing the interaction between the dynamic environment and the reinforcement learning algorithm includes: The env.load (*) interface function is used to load the dynamic environment, and the file of the three-dimensional terrain model is imported into the physical engine through the env.load (*) interface function, and the STL file path, surface texture information, elastic coefficient, and friction coefficient of the three-dimensional terrain model are specified through the env.load (*) interface function; The env.init (*) interface function is used to initialize the state and action of the patrol probe, wherein the state includes: position, speed, posture information, and defines the action that the patrol probe can take, and the state and action are used as inputs of the reinforcement learning algorithm; The env.close(*) interface function is used to close the dynamics environment. The env.close(*) interface function is used to close the simulation environment, release resources and clean up the environment. It is called after completing the simulation task or ending the training; The env.step(*) interface function for single-step simulation of the dynamic environment is used to execute a step action in the simulation environment and return the new state, reward value and information on whether it is ended. The call of the env.step(*) interface function will trigger the movement of the patrol detector in the simulation environment and update the state of the reinforcement learning algorithm according to the feedback information of the simulation environment; The env.render(*) interface function is used for visual output. The env.render(*) interface function is used to visualize the current state of the simulation environment so as to observe the movement of the patrol detector and the changes in the environment. The env.render(*) interface function is used to debug and visualize the results of the simulation process.

6. The method for training patrol probes under microgravity environment according to claim 1, characterized in that: The adding of the reinforcement learning module comprises the steps of: Link to the reinforcement learning algorithm library, which includes: OpenAI Gym, TensorFlow Agents, Stable Baselines, and reinforcement learning algorithms include: Deep Q Network, Policy Gradient Method, Actor-Critic Algorithm; Designing task indicators based on the specific type of patrol detector; Taking into account the characteristics and mission requirements of the patrol probe, mission indicators are defined, and the mission indicators include: attitude stability of the patrol probe, effectiveness of path planning, and energy efficiency, which are used to evaluate the performance and behavior of the patrol probe in a microgravity environment; Define state space and action space; The state space includes: position, speed, and attitude information; the action space includes the actions taken by the patrol probe: the jet force of the thruster and the rotation speed of the reaction wheel. By clearly defining the state space and the action space, the reinforcement learning algorithm can understand and learn the characteristics and operations in the microgravity environment.

7. The method for training patrol probes under microgravity environment according to claim 6, characterized in that: The adding of the reinforcement learning module further comprises the steps of: Perform algorithm debugging and evaluation: monitor the performance of the algorithm during training, analyze the learning curve and convergence speed, and evaluate the generalization ability of the three-dimensional terrain model in a microgravity environment after training. Perform algorithm debugging and evaluation through the tenserboard tool to improve the performance of the algorithm.

8. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein when the program or instruction is executed by the processor, the method for training a patrol probe under a microgravity environment by reinforcement learning is implemented as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Unmanned vehicle reinforcement learning training environment construction method and training system thereof

    CN111795700A

  • Extraterrestrial star catalogue dangerous scene escape strategy learning training system and method

    CN113935232A

  • Small celestial body surface dynamic simulation and landing visual simulation system and method

    CN114565742A

  • Three-dimensional terrain visualization simulation modeling method

    CN116402966A

  • Mars surface three-dimensional terrain reconstruction method

    CN117788736A