Path planning and control method of underwater robot cluster based on artificial intelligence

Through artificial intelligence-based underwater robot cluster path planning and control methods, physical engine modeling and reinforcement learning algorithms are used to solve the problems of high underwater robot path planning costs and energy waste, achieve an efficient and energy-saving path planning strategy, and improve Improve cluster operation efficiency.

CN118189977BActive Publication Date: 2024-09-17GUANGDONG OCEAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410612550.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-17
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

Existing technologies fail to effectively reduce the high cost of underwater robot path planning and fail to save energy in path planning.

Method used

Adopt an artificial intelligence-based underwater robot cluster path planning and control method, use a physics engine to model the environment, define the physical model and state of the underwater robot, design a reward function, and combine it with the Actor-Critic algorithm to train the reinforcement learning model to complete the path planning Strategy.

Benefits of technology

The actual experimental cost is reduced, obstacle avoidance and energy saving factors are comprehensively considered, making the learned path planning strategy more efficient and energy saving in practice, and improving the overall cluster operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118189977B
    Figure CN118189977B
Patent Text Reader

Abstract

The invention belongs to the technical field of underwater robots, and discloses an underwater robot cluster path planning and control method based on artificial intelligence; the method comprises: performing environmental modeling based on a physical engine and defining an underwater robot physical model; setting the shape, size and mass distribution of the underwater robot; defining the underwater robot state and the environmental state; the underwater robot state includes three-dimensional position, orientation, speed and battery power; defining a state space and designing a reward function based on the underwater robot state and the environmental state; combining the underwater robot state and the environmental state into a complete state vector, and multiple groups of state vectors constitute the state space; the design process of the reward function includes: movement reward, collision penalty, energy efficiency reward and end point reward; based on the state space and the reward function, training a reinforcement learning model to complete a path planning strategy; and applying the trained underwater path planning strategy to an actual underwater robot cluster.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of underwater robots, and more specifically, to an underwater robot cluster path planning and control method based on artificial intelligence. Background Art

[0002] An underwater robot swarm refers to a group of automated robots that perform specific tasks in the water. These robots can work alone or in collaboration to complete complex tasks. They are often used in applications such as ocean exploration, seabed resource surveys, pollution monitoring, and scientific research.

[0003] The Chinese patent with authorization announcement number CN109917817A discloses a collaborative path planning method for multiple underwater robots, which is used to plan the navigation paths of multiple underwater robots. According to the optimal path of each underwater robot, the optimal indicator function under the collaborative constraint conditions of the multiple underwater robots is determined to obtain the optimal path of the multiple underwater robots.

[0004] The Chinese patent application publication number CN114721408A discloses a path tracking method for underwater robots based on reinforcement learning. Using the Q learning method, the control accuracy and training time of underwater robots have been greatly improved, and the control performance can be autonomously adjusted according to its own performance and external environment.

[0005] However, the above patents fail to reduce the high cost of laying out optimized paths in actual waters, and fail to save energy while planning paths.

[0006] In view of this, the present invention proposes an underwater robot cluster path planning and control method based on artificial intelligence to solve the above problems. Summary of the invention

[0007] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides an underwater robot cluster path planning and control method based on artificial intelligence.

[0008] To achieve the above object, the present invention provides the following technical solution: an underwater robot cluster path planning and control method based on artificial intelligence, the method comprising:

[0009] Step 1: Environmental modeling based on the physics engine;

[0010] Step 2: Define the physical model of the underwater robot based on the physical engine; including: setting the shape, size and mass distribution of the underwater robot;

[0011] Step 3: Define the underwater robot state and environment state based on the physical engine; the underwater robot state includes three-dimensional position, orientation, speed and battery power; the environment state includes obstacle state and water state;

[0012] Step 4: Define the state space and design the reward function based on the underwater robot state and the environment state; combine the underwater robot state and the environment state into a complete state vector, and multiple groups of state vectors constitute the state space; the design process of the reward function includes: movement reward, collision penalty, energy efficiency reward and end point reward;

[0013] The reward function design process includes:

[0014] Movement reward: +1 point for every meter the underwater robot moves;

[0015] Distance reward: Use Euclidean distance to calculate the distance between the underwater robot and the target, mark it as the remaining distance, and for every 1 meter reduction in the remaining distance, an additional reward of +2 points will be given;

[0016] Collision penalty: -5 points for a minor collision with an obstacle; -20 points for a severe collision with an obstacle; a minor collision means that the underwater robot's speed is less than 0.2m / s but greater than 0.1m / s after the underwater robot encounters a collision; a severe collision means that the underwater robot's speed is less than or equal to 0.1m / s after the underwater robot collides with an obstacle;

[0017] Energy efficiency reward; set energy efficiency assessment value E= ; is the difference between the remaining distance in the previous step and the remaining distance in this step. is the difference between the power in the previous step and the power in this step. is the step time;

[0018] If E> , reward +10 points; if <E<= , reward +5 points;

[0019] End point reward: When the underwater robot successfully reaches the target location, the reward is +50 points;

[0020] The time discount factor γ is set to 0.95, and the time step t represents the number of consecutive steps from the initial state is t;

[0021] Reward function r_t = movement reward + distance reward + collision penalty + energy efficiency reward + end point reward; r_t is the instantaneous reward value at time step t;

[0022] Cumulative reward R_t = r_t + γ r_{t+1}+γ^2 r_{t+2}+…+γ^(Tt) r_T; where: R_t is the cumulative sum of all instant rewards from the current time step t to the end time step T, r_{t+1} is the instant reward value at time step t+1;

[0023] Step 5: Based on the state space and reward function, the reinforcement learning model is trained through the Actor-Critic algorithm to complete the path planning strategy;

[0024] Step six: Apply the trained underwater path planning strategy to the actual underwater robot cluster.

[0025] Preferably, the process of environmental modeling includes:

[0026] Configure physical engine parameters; the physical engine parameters include gravity acceleration, fluid density and drag coefficient;

[0027] Set gravity acceleration based on PhysX's PxScene::setGravity() function;

[0028] Set the fluid density through the PxFluid class in PhysX; set the viscosity and drag coefficient; when the underwater robot is serving in river or lake water: the viscosity is set to 1.005 mPa·s, and the drag coefficient is set to 1.1;

[0029] When the underwater robot serves in seawater, the viscosity is set to 1.08 mPa·s; the drag coefficient is set to 1.4.

[0030] Preferably, the shape and size include geometric shape and size parameters;

[0031] Mass distribution involves setting the corresponding mass and inertia tensor for each component of the underwater robot.

[0032] Inertia tensor T = ; The mass of the rectangular component is m, and its half-sizes are a, b and c. ; ; ;

[0033] 0 to find T;

[0034] The three-dimensional coordinate acquisition process includes: establishing a three-dimensional coordinate system with the entry position of the underwater robot as the origin, making a ray parallel to the sea level as the x-axis with the origin as the starting point, making a ray parallel to the sea level and perpendicular to the x-axis with the origin as the starting point, and making a ray perpendicular to the sea level as the z-axis with the origin as the starting point, and using the three-dimensional coordinates (x, y, z) to represent the three-dimensional position of the underwater robot;

[0035] The underwater robot's orientation is represented using quaternions;

[0036] The obstacle state includes obstacle size and obstacle position, and the water state includes water flow speed and water flow direction;

[0037] The obstacle size is the radius of the obstacle, and the obstacle position is the three-dimensional coordinates of the obstacle in the three-dimensional coordinate system; the water flow velocity and water flow direction are obtained by randomly selecting a flow field from multiple preset flow fields.

[0038] Preferably, the process of step five includes:

[0039] Step a1, initialize the network parameters of the Actor network and the Critic network;

[0040] Step a2: at the beginning of each training cycle, reset the underwater robot to an initial state;

[0041] Step a3: Mark the direction and speed of the underwater robot as actions, so that the Actor network outputs the underwater robot action according to the current state;

[0042] Step a4: The underwater robot performs actions, obtains instant rewards, and updates the environment state;

[0043] Step a5: Use the Critic network to estimate the state value function of the current state and calculate the time difference error; Step a6: Use the time difference error to update the Critic network to minimize the estimation error of the state value function;

[0044] Step a7: Update the Actor network using the policy gradient theorem.

[0045] Step a8: Repeat steps a3-a7 until the maximum cumulative reward is reached and the path planning strategy is completed.

[0046] An electronic device comprises: a processor and a memory, wherein the memory stores a computer program that can be called by the processor; the processor executes the above-mentioned artificial intelligence-based underwater robot cluster path planning and control method by calling the computer program stored in the memory.

[0047] A computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned artificial intelligence-based underwater robot cluster path planning and control method.

[0048] The technical effects and advantages of the underwater robot cluster path planning and control method based on artificial intelligence of the present invention are as follows: through physical modeling and simulation of the training environment, the cost of prior actual experiments is reduced, and the factors of obstacle avoidance and energy saving are comprehensively considered, so that the learned path planning strategy is more efficient and energy-saving in practice, and the strategy obtained through training is applied to the actual underwater robot cluster, which provides a basis for its autonomous decision-making and improves the overall cluster operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of an underwater robot cluster path planning and control method based on artificial intelligence of the present invention;

[0050] Figure 2 A logical diagram of reinforcement learning provided for one embodiment of the present application;

[0051] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application;

[0052] Figure 4 It is a schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] Example 1

[0055] See also Figure 1 As shown, the underwater robot cluster path planning and control method based on artificial intelligence described in this embodiment includes:

[0056] Step 1: Environmental modeling based on the physics engine;

[0057] The physics engine includes but is not limited to one of PhysX and Bullet Physics;

[0058] The purpose of environmental modeling is to create an accurate computational model to simulate the key features of the underwater dynamic environment, while providing a realistic and efficient simulated training environment for subsequent reinforcement learning algorithms so that the trained strategies can be effectively applied to actual scenarios.

[0059] Exemplarily, taking PhysX as an example, the process of environment modeling includes:

[0060] Configure physical engine parameters; the physical engine parameters include gravity acceleration, fluid density and drag coefficient;

[0061] Set the gravity acceleration; set the PhysX PxScene::setGravity() function to (0, -9.81, 0);

[0062] In PhysX, the PxScene::setGravity() function is used to set the gravity acceleration in the simulated scene. The typical value of gravity acceleration on the surface of the earth is 9.81 m / s², so the PxScene::setGravity() function is set to (0, -9.81, 0).

[0063] Preferably, a more accurate gravity acceleration is obtained based on the earth's gravity model. Exemplarily, the earth's gravity model is obtained through Google Earth or NASA data platform, and the gravity acceleration G of the water area where the underwater robot is in service is queried based on the earth's gravity model, and the PxScene::setGravity() function is set to (0, -G, 0).

[0064] The Earth Gravity Model (EGM) is a mathematical model that models the Earth's gravity field and provides data on the gravitational acceleration on the Earth's surface and in the space around it.

[0065] Set the fluid density; simulate the fluid through the PxFluid class in PhysX and set the fluid density of the simulated fluid; the fluid density is calculated and obtained in real time by the ultrasonic density sensor installed on the underwater robot.

[0066] The ultrasonic sensor measures the speed of sound by sending ultrasonic pulses through the liquid and measuring the propagation time of the pulses, and indirectly calculates the density using the sound speed-density empirical formula. The higher the density of the liquid, the slower the propagation speed of the ultrasonic wave.

[0067] Set the viscosity and drag coefficient; when the underwater robot is serving in fresh water (such as river or lake water):

[0068] The viscosity was set to 1.005 mPa·s, and the drag coefficient was set to 1.1;

[0069] When the underwater robot is in service in seawater, the viscosity is set to 1.08 mPa·s and the drag coefficient is set to 1.4. Due to the influence of salinity and plankton, the drag coefficient of seawater is usually slightly higher than that of freshwater. By setting the viscosity and drag coefficient in this way, the characteristics of the actual underwater environment can be better matched and the accuracy of the simulation can be improved.

[0070] Step 2: Define the physical model of the underwater robot;

[0071] In the physics engine, set the shape, size and mass distribution of the underwater robot;

[0072] Shape size includes geometric shape and size parameters; it is constructed by combining shapes provided by PhysX (including but not limited to PxBoxGeometry, PxSphereGeometry, and PxCapsuleGeometry).

[0073] The specific values ​​of the shape and size are obtained by actually measuring the underwater robot using measuring tools or provided by the underwater robot manufacturer.

[0074] Mass distribution involves setting the corresponding mass and inertia tensor for each component of the underwater robot.

[0075] The mass is provided by the underwater robot manufacturer. The inertia tensor T is a physical quantity that describes the inertia of a rigid body rotating around an axis; T= ; Take the component as a cuboid as an example, let the mass of the cuboid be m, and its half-sizes be a, b and c. ; ; ;

[0076] 0 to obtain T; the inertia tensor can be used to estimate and control the dynamic behavior of underwater robots, especially to ensure the stability and dynamic performance of underwater robot structures when performing complex underwater manipulation tasks. The half-size of a cuboid refers to the size obtained by dividing the three dimensions (length, width and height) of the cuboid by 2. When the half-size of the cuboid is a, b and c, it means that the length of the cuboid is 2a, the width is 2b, and the height is 2c. This is conducive to saving calculations, improving calculation efficiency, and processing data more timely.

[0077] Step 3: Define the underwater robot state and environment state;

[0078] The underwater robot status includes three-dimensional position, orientation, speed and battery power;

[0079] A three-dimensional coordinate system is established with the entry point of the underwater robot as the origin. A ray parallel to the sea level is drawn from the origin as the x-axis, a ray parallel to the sea level and perpendicular to the x-axis is drawn from the origin as the y-axis, and a ray perpendicular to the sea level is drawn from the origin as the z-axis. The three-dimensional coordinates (x, y, z) are used to represent the three-dimensional position of the underwater robot in the environment.

[0080] Compared with traditional GPS positioning, expressing the position of the underwater robot in this way can reduce the complexity of data processing, improve the data processing capability of the underwater robot cluster, and speed up the response efficiency of the underwater robot.

[0081] Quaternions are used to represent the orientation of the underwater robot to describe its direction in three-dimensional space.

[0082] Quaternion is a hypercomplex number consisting of a real number and a three-dimensional vector. Quaternion can handle complex rotations more smoothly in computer graphics and robotics, making it easier to remotely control the orientation of underwater robots. Quaternion is based on gyroscope data installed on underwater robots and is obtained in real time through the quaternion integration method.

[0083] The speed is acquired in real time by a speed sensor installed in the underwater robot, such as a Doppler speed sensor.

[0084] The battery power is obtained in real time by the power sensor equipped with the underwater robot.

[0085] The environmental state includes obstacle state and water state; obstacle state includes obstacle size and obstacle position, and water state includes water flow speed and water flow direction;

[0086] The obstacle size is the radius of the obstacle, and the obstacle position is the three-dimensional coordinates of the obstacle in the three-dimensional coordinate system. The obstacle status is collected by the sonar installed on the underwater robot and obtained in real time after mathematical processing in the cloud. The water flow speed and direction are obtained by randomly selecting a flow field from multiple preset flow fields.

[0087] Flow field is a concept in fluid mechanics that describes the motion of a fluid in space and is represented as a two-dimensional or three-dimensional grid, where each grid cell contains a vector representing the velocity and direction of the fluid at that point. The length of this vector represents the magnitude of the water flow velocity, while the direction of the vector arrow indicates the direction of the water flow.

[0088] By presetting multiple flow fields and randomly selecting one, different water flow conditions can be simulated, thus providing a diverse training and testing environment for underwater robots, which is conducive to more accurate path planning in practical applications of underwater robots. Different flow fields also affect the speed and energy consumption of underwater robots, so multiple flow fields are necessary.

[0089] At each time step, the robot state and the environment state are updated synchronously. A time step refers to the time interval from one time point to the next time point in the simulation of the physics engine.

[0090] Through the above steps, an underwater environment model that is as realistic and efficient as possible is constructed, providing a reliable training platform for subsequent reinforcement learning algorithms.

[0091] Step 4: Define the state space and reward function.

[0092] The underwater robot state and the environment state are combined into a complete state vector as the input of the reinforcement learning algorithm.

[0093] It should be noted that the orientation of the robot state needs to be converted into a rotation matrix as an element of the state vector. Because the rotation matrix as an element of the state vector can help the reinforcement learning algorithm better capture and learn the posture information of the underwater robot.

[0094] In reinforcement learning, state space refers to the set of all possible states, that is, multiple groups of state vectors constitute the state space. The logical diagram of reinforcement learning is as follows Figure 2 .

[0095] Exemplarily, the reward function design process includes:

[0096] Movement reward: +1 point for every meter the underwater robot moves. Encourage the underwater robot to move toward the target.

[0097] Distance reward: Use Euclidean distance to calculate the distance between the underwater robot and the target, mark it as the remaining distance, and add +2 points for every 1 meter reduction in the remaining distance; this will further motivate the underwater robot to shorten the distance to the target.

[0098] Collision penalty: A minor collision with an obstacle (the underwater robot speed is less than 0.2m / s but greater than 0.1m / s) will result in a -5 point penalty. A serious collision with an obstacle (the underwater robot speed is less than or equal to 0.1m / s) will result in a -20 point penalty. This penalty will force the robot to learn to avoid obstacles.

[0099] Energy efficiency reward; set energy efficiency assessment value E= ; is the difference between the remaining distance in the previous step and the remaining distance in this step. is the difference between the power in the previous step and the power in this step. is the step time; when The larger the absolute value, the greater the underwater robot's activity distance in this step length update. The smaller it is, the smaller the power loss is, the larger the energy efficiency evaluation value is, the better the energy efficiency level is, and the more power is saved; If it is a negative value, it means that the underwater robot is moving away from the target in this step update, so E will also be a negative value, indicating that the energy efficiency evaluation is very poor.

[0100] If E> , reward +10 points; if <E<= , reward +5 points. This setting is conducive to motivating underwater robots to help learn more energy-efficient path planning. and is the preset energy efficiency evaluation index, among which < , and they are all positive. Setting energy efficiency rewards in this way can greatly promote underwater robots to give priority to energy-saving paths to reach their destinations.

[0101] End point reward: When the underwater robot successfully reaches the target location, it will be rewarded with +50 points. This motivates the underwater robot to complete the final goal and reach the final target.

[0102] The time discount factor γ is set to 0.95 to balance the importance of the current immediate reward and the long-term reward. The reward function is a function that calculates the immediate reward value, mapping the environment state and the agent action to a scalar reward value. The time step t refers to the number of consecutive steps from the initial state in reinforcement learning.

[0103] Reward function r_t = movement reward + distance reward + collision penalty + energy efficiency reward + end point reward; r_t is the instantaneous reward value at time step t.

[0104] Cumulative reward R_t = r_t + γ r_{t+1}+γ^2 r_{t+2}+…+γ^(Tt) r_T; where: R_t is the discounted sum of all immediate rewards from the current time step t to the end time step T, r_{t+1} is the immediate reward value at time step t+1; r_{t+2} and so on.

[0105] By setting a reasonable state space and reward function design, we can provide clear learning goals and evaluation criteria for the reinforcement learning algorithm, and guide the underwater robot to learn more energy-saving and better path planning strategies.

[0106] Step 5: Train the reinforcement learning model through the Actor-Critic algorithm to complete the path planning strategy.

[0107] Use the Actor network in the Actor-Critic network model to output the recommended direction and speed of the underwater robot, and train the Actor-Critic network model through cumulative rewards. The process includes:

[0108] Step a1, initialize the network parameters of the Actor network and the Critic network; the parameters include but are not limited to the dimension of the state input layer of the Actor network, the number and size of hidden layers, the dimension of the action output layer, the dimension of the state input layer of the Critic network, the number and size of hidden layers and the dimension of the reward value function output layer, the learning rate, the activation function and the network optimization algorithm (gradient descent method or Adam optimization algorithm, etc.);

[0109] Step a2: At the beginning of each training cycle, reset the underwater robot to the initial state.

[0110] Step a3: Make the Actor network output the action (direction and speed) of the underwater robot according to the current state;

[0111] Step a4: Execute the action, obtain the immediate reward, and update the environment state;

[0112] Step a5: Use the Critic network to estimate the state value function of the current state and calculate the time difference error; the time difference error reflects the accuracy of the current state value function estimation.

[0113] Step a6: Use the temporal difference error to update the Critic network to minimize the estimation error of the state value function.

[0114] Step a7. Use the policy gradient theorem to update the Actor network to maximize the expected cumulative reward.

[0115] Step a8: Repeat steps a3-a7 until the termination condition is met and the path planning strategy is completed (the maximum cumulative reward is reached).

[0116] Step six: Apply the trained underwater path planning strategy to the actual underwater robot cluster.

[0117] Example 1 uses a physical engine to build an underwater environment model and configure reasonable physical parameters. Define the physical model of the underwater robot, the underwater robot state and the environmental state as the basis of the reinforcement learning algorithm. Design a reasonable reward function, comprehensively consider factors such as moving distance, obstacle avoidance, and energy saving, and guide the algorithm to learn a better path planning strategy. The Actor-Critic algorithm is used to train the reinforcement learning model. The Actor network is responsible for outputting actions, and the Critic network estimates the state value and guides the strategy improvement. Finally, a path planning strategy for energy saving and obstacle avoidance is obtained, and the trained strategy is applied to the actual underwater robot cluster.

[0118] Through physical modeling and simulation of the training environment, the cost of prior actual experiments is reduced. The factors of obstacle avoidance and energy saving are comprehensively considered, making the learned path planning strategy more efficient and energy-saving in practice. The trained strategy is applied to the actual underwater robot cluster, providing a basis for its autonomous decision-making and improving the overall cluster operation efficiency.

[0119] Example 2

[0120] See also Figure 3As shown, according to another aspect of the present application, an electronic device 500 for underwater robot cluster path planning and control method based on artificial intelligence is also provided. The electronic device 500 may include one or more processors and one or more memories. Among them, the memory stores a computer readable code, and when the computer readable code is executed by one or more processors, the underwater robot cluster path planning and control method based on artificial intelligence as described above can be executed.

[0121] The method or system according to the embodiment of the present application can also be Figure 3 The electronic device architecture shown in FIG. Figure 3 As shown, the electronic device 500 may include a bus 501, one or more CPUs 502, a read-only memory (ROM) 503, a random access memory (RAM) 504, a communication port 505 connected to a network, an input / output component 506, a hard disk 507, etc. The storage device in the electronic device 500, such as the ROM 503 or the hard disk 507, may store the underwater robot cluster path planning and control method based on artificial intelligence provided in the present application. The path planning and control method for underwater robot clusters based on artificial intelligence may, for example, include: Step 1: Environmental modeling based on a physical engine; Step 2: Define the physical model of the underwater robot based on the physical engine; including: setting the shape, size and mass distribution of the underwater robot; Step 3: Define the underwater robot state and environmental state based on the physical engine; the underwater robot state includes three-dimensional position, orientation, speed and battery power; the environmental state includes obstacle state and water state; Step 4: Define the state space based on the underwater robot state and the environmental state and design a reward function; combine the underwater robot state and the environmental state into a complete state vector, and multiple groups of state vectors constitute the state space; the design process of the reward function includes: movement reward, collision penalty, energy efficiency reward and end point reward; Step 5: Train the reinforcement learning model through the Actor-Critic algorithm to complete the path planning strategy; Step 6, apply the trained underwater path planning strategy to the actual underwater robot cluster.

[0122] Furthermore, the electronic device 500 may also include a user interface 508. Figure 3 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 3 One or more components of an electronic device are shown.

[0123] Example 3

[0124] See also Figure 4As shown, it is a computer-readable storage medium 600 according to an embodiment of the present application. Computer-readable instructions are stored on the computer-readable storage medium 600. When the computer-readable instructions are executed by the processor, the underwater robot cluster path planning and control method based on artificial intelligence according to the embodiment of the present application described with reference to the above figures can be executed. The storage medium 600 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache). Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.

[0125] In addition, according to the implementation mode of the present application, the process described in the above reference flowchart can be implemented as a computer software program. For example, the present application provides a non-temporary machine-readable storage medium, which stores machine-readable instructions, and the machine-readable instructions can be executed by a processor to execute instructions corresponding to the method steps provided in the present application, for example: Step 1: Environmental modeling based on a physical engine; Step 2: Define the physical model of the underwater robot based on the physical engine; including: setting the shape, size and mass distribution of the underwater robot; Step 3: Define the state of the underwater robot and the state of the environment based on the physical engine; The state of the underwater robot includes three-dimensional position, orientation, speed and battery power; The environmental state includes obstacle state and water state; Step 4: Define the state space based on the state of the underwater robot and the state of the environment and design a reward function; Combine the state of the underwater robot and the state of the environment into a complete state vector, and multiple groups of state vectors constitute the state space; The design process of the reward function includes: movement reward, collision penalty, energy efficiency reward and end point reward; Step 5: Train the reinforcement learning model through the Actor-Critic algorithm to complete the path planning strategy; Step 6, apply the trained underwater path planning strategy to the actual underwater robot cluster.

[0126] When the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are performed.

[0127] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired network or a wireless network. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0128] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0130] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a path planning and control method for underwater robot clusters based on artificial intelligence. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0133] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0134] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An underwater robot cluster path planning and control method based on artificial intelligence, characterized in that: include: Step 1: Environmental modeling based on the physical engine; Step 2: Define the physical model of the underwater robot based on the physical engine; including: setting the shape, size and mass distribution of the underwater robot; Step 3: Define the underwater robot state and environment state based on the physical engine; the underwater robot state includes three-dimensional position, orientation, speed and battery power; the environment state includes obstacle state and water state; Step 4: Define the state space and design the reward function based on the underwater robot state and the environment state; combine the underwater robot state and the environment state into a complete state vector, and multiple groups of state vectors constitute the state space; the design process of the reward function includes: movement reward, collision penalty, energy efficiency reward and end point reward; The reward function design process includes: Movement reward: +1 point for every meter the underwater robot moves; Distance reward: Use Euclidean distance to calculate the distance between the underwater robot and the target, mark it as the remaining distance, and for every 1 meter reduction in the remaining distance, an additional reward of +2 points will be given; Collision penalty: -5 points for a minor collision with an obstacle; -20 points for a severe collision with an obstacle; a minor collision means that the underwater robot's speed is less than 0.2m / s but greater than 0.1m / s after the underwater robot encounters a collision; a severe collision means that the underwater robot's speed is less than or equal to 0.1m / s after the underwater robot collides with an obstacle; Energy efficiency reward; set energy efficiency assessment value E= ; is the difference between the remaining distance in the previous step and the remaining distance in this step. is the difference between the power in the previous step and the power in this step. is the step time; If E > , reward +10 points; if < E <= , reward +5 points; End point reward: When the underwater robot successfully reaches the target location, the reward is +50 points; The time discount factor γ is set to 0.95, and the time step t represents the number of consecutive steps from the initial state is t; Reward function r_t = movement reward + distance reward + collision penalty + energy efficiency reward + end point reward; r_t is the instantaneous reward value at time step t; Cumulative reward R_t = r_t + γ r_{t+1}+γ^2 r_{t+2}+…+γ^(Tt) r_T; where: R_t is the cumulative sum of all instant rewards from the current time step t to the end time step T, r_{t+1} is the instant reward value at time step t+1; Step 5: Based on the state space and reward function, the reinforcement learning model is trained through the Actor-Critic algorithm to complete the path planning strategy; Step six: Apply the trained underwater path planning strategy to the actual underwater robot cluster.

2. According to the artificial intelligence-based underwater robot cluster path planning and control method of claim 1; the process of environment modeling includes: Configure physical engine parameters; the physical engine parameters include gravity acceleration, fluid density and drag coefficient; Set gravity acceleration based on PhysX's PxScene::setGravity() function; Set the fluid density through the PxFluid class in PhysX; set the viscosity and drag coefficient; when the underwater robot is serving in river or lake water: the viscosity is set to 1.005 mPa·s, and the drag coefficient is set to 1.1; When the underwater robot serves in seawater, the viscosity is set to 1.08 mPa·s; the drag coefficient is set to 1.

4.

3. The artificial intelligence-based underwater robot cluster path planning and control method according to claim 2; Shape and size include geometric shape and size parameters; Mass distribution includes setting the corresponding mass and inertia tensor for each component of the underwater robot; Inertia tensor T = ; The mass of the rectangular component is m, and its half-sizes are a, b and c. ; ; ; 0 to find T; The three-dimensional coordinate acquisition process includes: establishing a three-dimensional coordinate system with the entry position of the underwater robot as the origin, making a ray parallel to the sea level as the x-axis with the origin as the starting point, making a ray parallel to the sea level and perpendicular to the x-axis with the origin as the starting point, and making a ray perpendicular to the sea level as the z-axis with the origin as the starting point, and using the three-dimensional coordinates (x, y, z) to represent the three-dimensional position of the underwater robot; The underwater robot's orientation is represented using quaternions; The obstacle state includes obstacle size and obstacle position, and the water state includes water flow speed and water flow direction; The obstacle size is the radius of the obstacle, and the obstacle position is the three-dimensional coordinates of the obstacle in the three-dimensional coordinate system; the water flow velocity and water flow direction are obtained by randomly selecting a flow field from multiple preset flow fields.

4. According to the artificial intelligence-based underwater robot cluster path planning and control method of claim 3; the process of step five comprises: Step a1, initialize the network parameters of the Actor network and the Critic network; Step a2: at the beginning of each training cycle, reset the underwater robot to an initial state; Step a3: Mark the direction and speed of the underwater robot as actions, so that the Actor network outputs the underwater robot action according to the current state; Step a4: The underwater robot performs actions, obtains instant rewards, and updates the environment state; Step a5: Use the Critic network to estimate the state value function of the current state and calculate the time difference error; Step a6: Use the time difference error to update the Critic network to minimize the estimation error of the state value function; Step a7: Update the Actor network using the policy gradient theorem. Step a8: Repeat steps a3-a7 until the maximum cumulative reward is reached and the path planning strategy is completed.

5. An electronic device, characterized in that include: A processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes the artificial intelligence-based underwater robot cluster path planning and control method described in any one of claims 1 to 4 by calling the computer program stored in the memory.

6. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer executes the artificial intelligence-based underwater robot cluster path planning and control method as described in any one of claims 1 to 4.