A motion control method for a sea lion-like underwater vehicle based on deep reinforcement learning

By training the deep reinforcement learning algorithm in the Webots simulation software, the problem of traditional underwater vehicle control methods relying on inaccurate models has been solved, and efficient motion control and stable attitude of the sea lion-like underwater vehicle have been achieved, adapting to complex marine environments.

CN115542928BActive Publication Date: 2024-10-18TIANJIN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211174725.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-26
Publication Date
2024-10-18
Estimated Expiration
2042-09-26

AI Technical Summary

Technical Problem

It is difficult for traditional underwater vehicles to achieve efficient and stable navigation attitude control under complex ocean mission requirements, and existing control methods rely on inaccurate kinematics and dynamics models and are difficult to cope with time-varying environments.

Method used

A sea lion-like underwater vehicle motion control method based on deep reinforcement learning is used to build a virtual simulation environment in Webots simulation software, train the neural network to learn the action set to achieve the task goal, and deploy it to the physical sea lion-like underwater vehicle , using deep reinforcement learning algorithms to optimize motion control.

Benefits of technology

It improves the movement and adaptability of the sea lion-like underwater vehicle, reduces the dependence on kinematics and dynamics models, reduces the difficulty of system controller design, reduces manufacturing and design errors, and achieves more efficient motion control and Stable posture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115542928B_ABST
    Figure CN115542928B_ABST
Patent Text Reader

Abstract

The present invention discloses a motion control method for a sea lion-like underwater vehicle based on deep reinforcement learning. By establishing a kinematic model and a dynamic model of an underwater vehicle with a complex mechanical structure and a flexible bionic appearance, a reinforcement learning method is adopted to enable the sea lion-like underwater vehicle to have a certain autonomous learning ability. Through continuous training and parameter modification, its motion ability can be continuously improved. The control method of the present invention is divided into an upper computer and a lower computer. The upper computer is responsible for calculating control parameters, and the lower computer is responsible for receiving and controlling the actions of an actuator, and real-time feedback of the state of the sea lion-like underwater vehicle is sent to the upper computer to recalculate new control parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of bionic underwater vehicle motion control, and in particular relates to a sea lion-like underwater vehicle motion control method based on deep reinforcement learning. Background Art

[0002] As an important tool for exploring the ocean, underwater vehicles have always been required to have high efficiency, high maneuverability and stable navigation posture. Traditional underwater vehicles, such as submarines, torpedoes, autonomous underwater vehicles (AUVs), modern ships, etc., mainly use propeller propulsion to obtain thrust, and change the heading and attitude control by changing the rudder angle. With the continuous development of the marine industry, the mission requirements of underwater vehicles have also become more diverse and complex. Traditional propulsion methods and control technologies can no longer meet the diverse and complex mission requirements. The swimming efficiency and attitude control capabilities of marine organisms are unmatched by any artificial underwater vehicle at present. Therefore, more and more scholars and researchers have begun to study bionic underwater vehicles.

[0003] Compared with traditional underwater vehicles, bionic underwater vehicles have complex mechanical structures and flexible bionic appearances. It is very difficult to establish accurate kinematic and dynamic models of bionic underwater vehicles. It is even more complex and difficult to establish accurate kinematic and dynamic models of pectoral fin-propelled underwater vehicles. At present, there is no accurate model of pectoral fin flapping to propel underwater mammals. Most traditional control methods are based on kinematic and dynamic models. Therefore, it is very difficult for traditional control methods to achieve more ideal motion control and stable navigation posture. At present, the commonly used dynamic modeling method for this type of vehicle is to calculate the dynamic parameters under different postures and different motion conditions by finite element method, which is time-consuming and laborious. At present, the commonly used control methods for this type of underwater vehicle include PID control algorithm, fuzzy PID control algorithm, CPG control algorithm, synovial control algorithm, etc., but these are too dependent on accurate models of bionic underwater vehicles and are difficult to cope with time-varying underwater environments. In the public literature, there is no control method using deep reinforcement learning to control the motion of a pectoral fin-propelled sea lion-like underwater vehicle with a pitch adjustment mechanism. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a sea lion-like underwater vehicle motion control method based on deep reinforcement learning.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] A motion control method for a sea lion-like underwater vehicle based on deep reinforcement learning, including training and deployment;

[0007] The training is carried out by building a virtual simulation environment in the Webots simulation software, and constructing a simulation dynamics model of a Sea Lion-like underwater vehicle with a pitch adjustment mechanism in the virtual simulation environment. The simulation dynamics model is consistent with the function of the physical Sea Lion-like underwater vehicle.

[0008] A control program for the Sea Lion-like underwater vehicle is written in Python in the Webots simulation software, and the API provided by the Webots simulation software is used to control the simulation dynamics model and obtain state parameters;

[0009] In the virtual simulation environment, different target reward functions are set according to different task objectives to achieve different task objectives;

[0010] Conduct training in a virtual simulation environment. Through iterative training, the Sea Lion-like underwater vehicle in the virtual simulation environment continuously learns how to move, with the achievement of mission objectives as the judgment standard until the training is completed;

[0011] Deployment refers to applying the trained deep reinforcement learning-based Sea Lion-like underwater vehicle control program to a real Sea Lion-like underwater vehicle. The control program applied to the physical Sea Lion-like underwater vehicle has the ability to further learn and improve movement.

[0012] Furthermore, the training part is based on a virtual simulation environment built with Webots, an open source dynamic simulation software based on ODE, which includes a rectangular pool with four closed sides and bottom and an open top, which can provide water flow in a certain direction. The virtual simulation environment also provides physical parameters such as friction, water resistance, viscous resistance coefficient, viscous resistance moment coefficient, buoyancy, gravity, and inertia force between objects. The origin coordinates of the simulation environment are established at the center of the bottom of the rectangular pool.

[0013] Furthermore, the simulation dynamics model is consistent with the functions of the physical sea lion-like underwater vehicle, including the following contents: the flapping propulsion function of the sea lion-like pectoral fins that are symmetrical and can move independently; the function of the sea lion-like head that can rotate left and right around the neck; the function of the sea lion-like tail that can swing left and right around the hip position; the function of the pitch adjustment mechanism in the pressure-resistant chamber at the front end of the bionic chest; the function of the motors used by each actuator and the feedback of their positions; the function of the depth sensor used to sense the depth; the function of the gyroscope used to sense the pitch and roll angles; the function of the electronic compass used to sense the heading; the GPS positioning function used to obtain the coordinate position; the function of the accelerometer used to sense the magnitude of the acceleration;

[0014] The structure of the simulation dynamics model is simplified compared to the physical Sea Lion underwater vehicle, as follows:

[0015] a. Use circular disks of equal thickness with gradually decreasing radius to be connected in series axially at a set spacing to replace the flexible movable head;

[0016] b. Use circular disks with gradually decreasing radius and equal thickness to be connected in series axially at a set spacing and connected to a tail fin model at the end to replace the movable tail with certain flexibility;

[0017] c. Using virtual force to replace the bionic pectoral fins that are bilaterally symmetrical and capable of independent movement, the virtual force is obtained from the experimental data of the physical sea lion underwater vehicle;

[0018] d. Replace the pitch adjustment mechanism battery pack with a movable eccentric cylindrical mass driven by a linear motor;

[0019] e. Replace the torso of the sea lion with a spindle-shaped geometric object of the same cross-section.

[0020] Furthermore, the training process is as follows:

[0021] (101) After running the control program, select a control mode, which includes a learning mode and an automatic mode;

[0022] (102) Setting task objectives and determining whether task objectives have been met;

[0023] (103) If the learning mode is selected, steps (104) to (113) are performed; if the automatic mode is selected, steps (104) to (106) are repeated;

[0024] (104) Obtain the state set S of the simulation dynamics model in the virtual simulation environment through the API provided by Webots;

[0025] (105) Input S into the latest neural network N, and obtain an action set A through the latest neural network N, whose content is the control parameter;

[0026] (106) Through the API provided by Webots, the actuator is controlled according to the action set A;

[0027] (107) obtaining a new state set SN of the simulation dynamics model in the current virtual simulation environment according to the set step size, wherein the new state set SN is consistent with the content of the above S;

[0028] (108) The new state set SN is input into the target reward function to calculate the reward value W generated by the current action set A, and the reward value W is used as the weight to update the neural network N to obtain the updated neural network NN;

[0029] (109) Input the current state set SN and the current action set A into the updated neural network NN to obtain a new action set AN, whose content is the control parameters;

[0030] (110) At this time, the latest neural network N in step (105) is replaced by the updated neural network NN, and the action set A is replaced by the new action set AN;

[0031] (111) Jump to step (102) and continue to execute the program to determine whether the task goal has been achieved;

[0032] (112) When the control program determines that the task target has been completed, the updated neural network NN is saved as a file of a specified type and the operation of the control program is stopped. If the task target has not been completed, the program will repeat the above steps (102) to (112);

[0033] (113) The Webots simulation software sends a task completion prompt to the operator.

[0034] Furthermore, the deployment process is as follows:

[0035] (201) After running the control program, select a control mode, the control mode including a learning mode and an automatic mode;

[0036] (202) Setting task objectives and determining whether task objectives have been met;

[0037] (203) If the learning mode is selected, steps (204) to (214) are performed; if the automatic mode is selected, steps (204) to (208) are repeated;

[0038] (204) The lower computer performs a status detection on the Sea Lion-like underwater vehicle to detect whether the protection conditions are met;

[0039] (205) The upper computer obtains the data sent by the lower computer to obtain the current state set S of the Sea Lion-like underwater vehicle;

[0040] (206) Input S into the latest neural network N, and obtain an action set A through the latest neural network N, whose content is the control parameter;

[0041] (207) The upper computer generates a hexadecimal control instruction DA from the action set A obtained by the latest neural network N and sends it to the lower computer;

[0042] (208) After receiving the control instruction D sent by the upper computer, the lower computer controls the actuator to complete the action;

[0043] (209) The lower computer converts the current new state set SN of the Sea Lion-like underwater vehicle into hexadecimal data DC according to the established communication protocol at the set frequency and sends it to the upper computer;

[0044] (210) The upper computer receives the hexadecimal data DC sent by the lower computer, and parses it to obtain the current state set SN of the Sea Lion underwater vehicle, inputs the target reward function to calculate the reward value W generated by the current action set A, and uses the reward value W as the weight to update the neural network N, thereby obtaining the updated neural network NN;

[0045] (211) Input the current state set SN and the current action set A into the updated neural network NN to obtain a new action set AN, whose content is consistent with the content of the action set A;

[0046] (212) At this time, the latest neural network N in step (206) is replaced by the updated neural network NN, and the action set A is replaced by the new action set AN;

[0047] (213) Jump to step (202) and continue to execute the program to determine whether the task goal has been achieved;

[0048] (214) When the upper computer determines that the task target has been completed, the upper computer sends a stop command to the lower computer and saves the updated neural network NN into a specified type of file; if the task target has not been completed, the program will repeat the above steps (202) to (214);

[0049] (215) The host computer sends a task completion notification to the operator.

[0050] Furthermore, the upper computer is integrated with a control program of the Sea Lion-like underwater vehicle. The upper computer is connected to the lower computer. After the upper computer obtains the parameters of the lower computer, it performs calculations and sends the obtained control parameters to the lower computer. The lower computer is a single-chip microcomputer. After receiving the control parameters sent by the upper computer, the lower computer controls the actuator to complete the corresponding action.

[0051] Furthermore, the control parameters include:

[0052] (1) The target angle of the sea lion head servo that can rotate left and right around the neck position;

[0053] (2) The target angle of the sea lion tail servo that can swing left and right around the hip position;

[0054] (3) Target position of the battery pack of the pitch adjustment mechanism in the pressure-resistant compartment at the front end of the Sea Lion underwater vehicle;

[0055] (4) Target rotation speed of the left sea lion pectoral fin propulsion mechanism servo;

[0056] (5) Target rotation speed of the right sea lion pectoral fin propulsion mechanism servo.

[0057] Furthermore, the execution mechanism includes:

[0058] (1) A sea lion head servo that can rotate left and right around the neck;

[0059] (2) A sea lion-like tail servo that can swing left and right around the hip position;

[0060] (3) The motor of the pitch adjustment mechanism in the pressure-resistant chamber at the front end of the Sea Lion underwater vehicle;

[0061] (4) Left sea lion-like pectoral fin propulsion mechanism servo;

[0062] (5) Right sea lion-like pectoral fin propulsion mechanism servo;

[0063] The head servo and the tail servo are directly controlled to rotate to corresponding angles according to the head servo target angle and the tail servo target angle sent by the host computer;

[0064] The left sea lion imitation pectoral fin propulsion mechanism steering gear and the right sea lion imitation pectoral fin propulsion mechanism steering gear rotate according to the target rotation speed of the left sea lion imitation pectoral fin propulsion mechanism steering gear and the target rotation speed of the right sea lion imitation pectoral fin propulsion mechanism steering gear sent by the host computer;

[0065] Among them, when the difference between the target rotation speed of the left sea lion pectoral fin propulsion mechanism servo and the target rotation speed of the right sea lion pectoral fin propulsion mechanism servo is less than C, taking the rotation speed of the left sea lion pectoral fin propulsion mechanism servo as a reference, the rotation speed of the right sea lion pectoral fin propulsion mechanism servo is:

[0066] n 右 =n 左 +(δ 左 -δ 右 )*P 直航

[0067] Where n 左 is the speed of the left sea lion pectoral fin propulsion mechanism servo, n 右 is the target speed of the right sea lion pectoral fin propulsion mechanism servo, δ 左 is the position of the left sea lion pectoral fin propulsion mechanism servo, δ 右 is the position of the right sea lion pectoral fin propulsion mechanism servo, P 直航 is the proportionality coefficient;

[0068] The pitch adjustment mechanism motor moves the battery pack to the specified position by feedback control according to the pitch adjustment mechanism battery pack target position sent by the host computer. The pitch adjustment mechanism battery pack target position is:

[0069] L=L0+(L target -L0)*P L

[0070] Where, L is the target position of the battery pack of the pitch adjustment mechanism, L0 is the initial position of the battery pack of the pitch adjustment mechanism, and L target P is the target position of the battery pack of the pitch adjustment mechanism sent by the upper computer to the lower computer. L is the proportionality coefficient.

[0071] Furthermore, the mission objectives include constant speed straight navigation, fixed point navigation, constant depth straight navigation and turning navigation; the control method also includes the following functions: wireless communication function; ultra-deep, single operation timeout, low voltage, current, water leakage, motor, sensor protection function; slow diving and slow ascent protection function; load dumping protection system.

[0072] Furthermore, the state set S includes the following state parameters:

[0073] (1) Pitch angle of the Sea Lion underwater vehicle;

[0074] (2) Roll angle of the Sea Lion-like underwater vehicle;

[0075] (3) The location of the battery pack for the pitch adjustment mechanism in the pressure-resistant compartment at the front end of the Sea Lion underwater vehicle;

[0076] (4) The depth of the Sea Lion underwater vehicle;

[0077] (5) Speed ​​of the left sea lion pectoral fin propulsion mechanism servo;

[0078] (6) Position of the left sea lion pectoral fin propulsion mechanism servo;

[0079] (7) Speed ​​of the right sea lion pectoral fin propulsion mechanism servo;

[0080] (8) Position of the right sea lion pectoral fin propulsion mechanism servo;

[0081] (9) Deviation angle of actual heading and target heading of the Sea Lion underwater vehicle;

[0082] (10) The difference between the depth of the Sea Lion underwater vehicle and the target depth.

[0083] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0084] 1. Compared with most traditional control methods, the present invention adds reinforcement learning method to the control method of the pectoral fin-propelled sea lion-like underwater vehicle with a pitch adjustment mechanism to improve the problem of large gap between control effect and simulation effect caused by inaccurate modeling of kinematic model and dynamic model;

[0085] 2. Most traditional control methods have a single control effect. After setting the control program, they can only follow the rules. It is difficult to deal with unexpected situations that have not been set. The present invention introduces reinforcement learning into the control method of the pectoral fin-propelled sea lion-like underwater vehicle with a pitch adjustment mechanism. By finding suitable reinforcement learning algorithm parameters, the sea lion-like underwater vehicle can have a certain learning ability and make some random judgments and actions in response to unexpected situations, so as to continuously improve its own movement ability and adaptability;

[0086] 3. Most traditional control methods are based on kinematic models and dynamic models. Due to the inaccuracy of the model and manufacturing and design defects, the control method cannot bring out the real ability of the controlled object. It is very difficult for a bionic underwater vehicle to completely imitate the propulsion mechanism and physiological structure of the object being imitated, so it is difficult for traditional control methods to bring out the performance of a sea lion-like underwater vehicle. The present invention introduces reinforcement learning into the control method of a pectoral fin-propelled sea lion-like underwater vehicle with a pitch adjustment mechanism, and the movement ability of the sea lion-like underwater vehicle can be continuously improved through continuous training.

[0087] 4. Use the robot dynamics simulation environment to build a model and establish its control program to make the simulation model more consistent with the physical Sea Lion underwater vehicle, and the training process reduces the wear and tear of the physical robot and increases safety;

[0088] 5. Compared with the existing control method of the Sea Lion-like underwater vehicle, the control parameters are output by the neural network. This end-to-end approach can reduce the difficulty of designing the controller of the nonlinear Sea Lion-like underwater vehicle system;

[0089] 6. It can reduce the performance gap between the manufactured sea lion-like underwater vehicle and the theoretically designed sea lion-like underwater vehicle due to simplification in the design process and various errors in production and manufacturing;

[0090] 7. For new mission objectives, there is no need to redesign the controller. You only need to modify the target reward function and retrain it before deploying it to the physical Sea Lion underwater vehicle for execution;

[0091] 8. After entering the learning mode, as the movement time increases, the present invention can self-learn better control parameters of the sea lion-like underwater vehicle in the current environment;

[0092] 9. Compared with the existing control method of the sea lion-like underwater vehicle, the present invention does not require high accuracy in dynamic and kinematic modeling, thus greatly reducing the workload of modeling. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] Figure 1It is a simplified diagram of a sea lion-like underwater vehicle with a pitch adjustment mechanism, and the flapping structures of the pectoral fins on both sides are symmetrical about the main body of the vehicle.

[0094] Figure 2 This is a schematic diagram of the principle of the sea lion-like underwater vehicle motion control method based on deep reinforcement learning in the present invention.

[0095] Figure 3 This is a flow chart of the motion control method during training of the present invention.

[0096] Figure 4 This is a flow chart of the post-deployment motion control method of the present invention. DETAILED DESCRIPTION

[0097] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0098] See Figure 1 The sea lion-like underwater vehicle with a pitch adjustment mechanism specifically includes the following structures: a sea lion-like head mechanism 1 that can rotate left and right around the neck position, a sea lion-like underwater vehicle pressure-resistant chamber 2, in which the pitch adjustment mechanism, the electronic chamber, the battery, etc. are covered; a right sea lion-like pectoral fin propulsion mechanism 3, a sea lion-like tail mechanism 4 that can swing left and right around the hip position, and a pitch adjustment mechanism that can move along the body axis; a left sea lion-like pectoral fin propulsion mechanism 6; a communication cable 5 is arranged at the tail of the sea lion-like underwater vehicle;

[0099] A left sea lion imitation pectoral fin propulsion mechanism servo and a right sea lion imitation pectoral fin propulsion mechanism servo are respectively provided in the left sea lion imitation pectoral fin propulsion mechanism 6 and the right sea lion imitation pectoral fin propulsion mechanism 3 .

[0100] Example 1.

[0101] The present invention provides a motion control method for a sea lion-like underwater vehicle based on deep reinforcement learning. Figure 2 , which is divided into two parts: training and deployment; wherein training refers to building a virtual simulation environment on a computer to achieve a physical environment close to reality. This embodiment adopts a virtual simulation environment built by Webots, an open source dynamics simulation software based on ODE, which includes a rectangular pool with four closed sides and bottom and an open top, and can provide water flow in a certain direction. The simulation environment also provides physical parameters such as friction between objects, water resistance, viscous resistance coefficient, viscous resistance moment coefficient, buoyancy, gravity, inertia force, etc. The origin coordinates of the simulation environment are established at the center of the bottom of the pool;

[0102] Deployment refers to applying the trained deep reinforcement learning-based sea lion-like underwater vehicle control program to a real sea lion-like underwater vehicle. The control program applied to the physical sea lion-like underwater vehicle still has the ability to learn better motion patterns.

[0103] Specifically, different target reward functions are set according to different task objectives in a virtual simulation environment to achieve different task objectives; then training is performed in the virtual simulation environment, and the sea lion-like underwater vehicle in the virtual simulation environment continuously learns how to move through continuous iterative training, and whether the training is completed is judged by whether the task objectives are achieved; the steps are as follows:

[0104] Step 1:

[0105] A simulation dynamics model of a Sea Lion-like underwater vehicle is constructed in a virtual simulation environment. The constructed simulation dynamics model is consistent with the function of the physical Sea Lion-like underwater vehicle, wherein:

[0106] Features include:

[0107] (1) The function of flapping propulsion of the pectoral fins of a sea lion that are symmetrical and can move independently; (2) The function of the head of a sea lion that can rotate left and right around the neck; (3) The function of the tail of a sea lion that can swing left and right around the hip; (4) The function of the pitch adjustment mechanism in the pressure-resistant chamber at the front end of the bionic chest; (5) The function of the motors used by each actuator and their position feedback; (6) The function of the depth sensor used to sense depth; (7) The function of the gyroscope used to sense pitch and roll angles; (8) The function of the electronic compass used to sense heading; (9) The function of the accelerometer used to sense the acceleration of the x, y, and x axes; (10) The function of data interaction with the host computer; (11) The function of GPS positioning used to obtain coordinates.

[0108] The structure of the model constructed in this embodiment is simplified compared with the physical sea lion-like underwater vehicle. The simplified parts are: a. The movable head with a certain flexibility is replaced by circular disks of equal thickness with gradually decreasing radius connected in series axially at a certain interval; b. The movable tail with a certain flexibility is replaced by a tail fin model connected in series axially at a certain interval and connected at the end; c. The bionic pectoral fins that are symmetrical and can move independently are replaced by virtual forces, and the thrust data is obtained from experiments; d. The battery pack of the pitch adjustment mechanism is replaced by a movable eccentric cylindrical mass driven by a linear motor; e. The torso of the sea lion is replaced by a spindle-shaped geometric object with the same cross-section.

[0109] Step 2:

[0110] According to the constructed virtual simulation environment, a control program of the Sea Lion-like underwater vehicle based on deep reinforcement learning is established. The control program is written in Python, and the API provided by Webots is used to control the simulation dynamics model of the Sea Lion-like underwater vehicle constructed in the virtual simulation environment and obtain its key parameters;

[0111] Step 3:

[0112] Simulation training; see Figure 3 , the steps are as follows:

[0113] (301) After running the control program, select the control mode, which includes learning mode and automatic mode:

[0114] (302) Set the task objectives. There are four types of task objectives:

[0115] 1) For constant speed straight line navigation, the input mission parameters include target heading and target speed;

[0116] 2) Select fixed-point navigation, and input parameters include target latitude and longitude position and target depth;

[0117] 3) Select fixed depth straight line navigation, and input parameters include target direction, target depth and target speed;

[0118] 4) Select turning navigation, and the input parameters include target turning radius and target speed.

[0119] (303) If you choose to enter the learning mode, then proceed to the following steps (304) to (313); if you choose not to enter the learning mode, then repeat steps (304) to (306);

[0120] (304) The state set S of the simulation dynamics model of the sea lion underwater vehicle in the virtual simulation environment is obtained through the API provided by Webots, where the state set S mainly includes:

[0121] a. The pitch angle of the Sea Lion underwater vehicle;

[0122] b. Roll angle of the Sea Lion underwater vehicle;

[0123] c. The location of the battery pack for the pitch adjustment mechanism in the pressure-resistant compartment at the front end of the Sea Lion underwater vehicle;

[0124] d. The depth of the Sea Lion underwater vehicle;

[0125] e. Speed ​​of the left sea lion pectoral fin propulsion mechanism servo;

[0126] f. Position of the left sea lion pectoral fin propulsion mechanism servo;

[0127] g. Speed ​​of the right sea lion pectoral fin propulsion mechanism servo;

[0128] h. Position of the servo for the right sea lion-like pectoral fin propulsion mechanism;

[0129] i. Deviation angle of actual heading and target heading of the Sea Lion underwater vehicle;

[0130] j. The difference between the depth of the Sea Lion underwater vehicle and the target depth;

[0131] (305) Input S into the latest neural network N, and output an action set A through the latest neural network N, where the action set A includes five control parameters:

[0132] The target angle of the sea lion head servo that can be rotated left and right around the neck position;

[0133] The target angle of the sea lion-like tail servo that can swing left and right around the hip position;

[0134] The target position of the battery pack of the pitch adjustment mechanism in the pressure-resistant compartment at the front end of the Sea Lion-like underwater vehicle;

[0135] The target rotation speed of the left sea lion pectoral fin propulsion mechanism servo;

[0136] The target rotation speed of the right sea lion pectoral fin propulsion mechanism servo;

[0137] (306) Through the API provided by Webots, five actuators are controlled according to the action set A. The five actuators are:

[0138] A sea lion head servo that can rotate left and right around the neck;

[0139] A sea lion-like tail servo that can swing left and right around the hip position;

[0140] The motor of the pitch adjustment mechanism in the pressure-resistant chamber at the front end of the Sea Lion-like underwater vehicle;

[0141] The left sea lion-like pectoral fin propulsion mechanism servo;

[0142] Right sea lion-like pectoral fin propulsion mechanism servo;

[0143] Among them, the head servo and the tail servo of the sea lion are directly controlled to rotate the corresponding angles according to the head servo target angle and the tail servo target angle sent by the host computer;

[0144] The left pectoral fin and the right pectoral fin parts rotate according to the target rotation speed of the left sea lion-like pectoral fin propulsion mechanism servo and the target rotation speed of the right sea lion-like pectoral fin propulsion mechanism servo sent by the host computer;

[0145] Among them, when the difference between the target rotation speed of the left sea lion pectoral fin propulsion mechanism servo and the target rotation speed of the right sea lion pectoral fin propulsion mechanism servo is less than C, taking the left pectoral fin rotation speed as a reference, the right pectoral fin rotation speed is:

[0146] n 右 =n 左 +(δ 左 -δ 右 )*P 直航

[0147] Where n 左 is the speed of the left pectoral fin servo, n 右 is the target speed of the right pectoral fin servo, δ 左 is the position of the left pectoral fin servo, δ 右 is the position of the right pectoral fin servo, P 直航 is the proportionality coefficient;

[0148] The pitch adjustment mechanism motor rotates the motor to move the battery pack to the specified position through feedback control according to the pitch adjustment mechanism battery pack target position sent by the host computer. The pitch adjustment mechanism battery pack target position is:

[0149] L=L0+(L target -L0)*P L

[0150] Where, L is the target position of the battery pack of the pitch adjustment mechanism, L0 is the initial position of the battery pack of the pitch adjustment mechanism, and L target P is the target position of the battery pack of the pitch adjustment mechanism sent by the upper computer to the lower computer. L is the proportionality coefficient.

[0151] (307) obtaining a new state set SN of the simulation model of the sea lion underwater vehicle in the current virtual simulation environment according to a set frequency, wherein the new state set SN is consistent with the content of the above S;

[0152] (308) The new state set SN is input into the target reward function to calculate the reward value W generated by the current action A, and the reward value W is used as the weight to update the neural network N to obtain the updated neural network NN;

[0153] (309) Input the current state set SN and the current action A into the updated neural network NN to obtain a new action set AN, whose content is consistent with the content of the action set A mentioned above;

[0154] (310) At this time, the latest neural network N in step (305) is replaced by the updated neural network NN, and the action set A is replaced by the new action set AN;

[0155] (311) Jump to step (302) and re-execute the program to determine whether the task goal has been achieved and whether to proceed to the following steps, where the criteria for determining whether the goal has been achieved are:

[0156] 1) Constant speed straight line navigation: when the Sea Lion underwater vehicle sails a certain distance Lm along the target course at the target speed, the training is completed;

[0157] 2) Select fixed-point navigation. When the Sea Lion-like underwater vehicle remains at the target point for a certain time Tm, the training is completed;

[0158] 3) Select the fixed depth straight line navigation. When the Sea Lion underwater vehicle sails a certain distance Lm along the target course and target depth at the target speed, the training is completed;

[0159] 4) Select turning navigation. When the Sea Lion-like underwater vehicle completes Nm circles along the circle of the target radius at the target speed, the training is completed.

[0160] (312) When the program determines that the task goal has been completed, the updated neural network NN is saved as a file of a specified type and the program is stopped; if the task goal has not been completed, the program will repeat the above steps (302) to (312);

[0161] (313) The Webots simulation software sends a task completion prompt to the operator.

[0162] Step 4:

[0163] Deployed to a physical Sea Lion-like underwater vehicle:

[0164] The deployed control system is divided into a host computer and a slave computer;

[0165] The host computer is a PC, which is the algorithm part of the control method. The host computer is connected to the slave computer through a data cable. After obtaining the parameters of the slave computer, the host computer performs calculations and sends the obtained control parameters to the slave computer. The control parameters include the following five:

[0166] The target angle of the sea lion head servo that can be rotated left and right around the neck position;

[0167] The target angle of the sea lion-like tail servo that can swing left and right around the hip position;

[0168] The target position of the battery pack of the pitch adjustment mechanism in the pressure-resistant compartment at the front end of the Sea Lion-like underwater vehicle;

[0169] The target rotation speed of the left sea lion pectoral fin propulsion mechanism servo;

[0170] The target rotation speed of the right sea lion pectoral fin propulsion mechanism servo;

[0171] The lower computer is a single-chip microcomputer, which is the bottom-level action control part of the method. After receiving the control parameters sent by the upper computer, the lower computer will control the following five actuators to complete the corresponding actions:

[0172] A sea lion head servo that can rotate left and right around the neck;

[0173] A sea lion-like tail servo that can swing left and right around the hip position;

[0174] The motor of the pitch adjustment mechanism in the pressure-resistant chamber at the front end of the Sea Lion-like underwater vehicle;

[0175] The left sea lion-like pectoral fin propulsion mechanism servo;

[0176] Right sea lion-like pectoral fin propulsion mechanism servo;

[0177] The control method of the present invention is applied to a physical sea lion-like underwater vehicle. Figure 4 , the steps are as follows:

[0178] (401) After running the program, select the control mode, which includes learning mode and automatic mode:

[0179] (402) Set the task objectives. There are four types of task objectives:

[0180] 1) For constant speed straight line navigation, the input mission parameters include target heading and target speed;

[0181] 2) Select fixed-point navigation, and input parameters include target latitude and longitude position and target depth;

[0182] 3) Select fixed depth straight line navigation, and input parameters include target direction, target depth and target speed;

[0183] 4) Select turning navigation, and the input parameters include target turning radius and target speed.

[0184] (403) If you choose to enter the learning mode, then proceed to the following steps (404) to (414); if you choose not to enter the learning mode, then repeat steps (404) to (408);

[0185] (404) The lower computer performs a status check on the Sea Lion-like vehicle to check whether the protection conditions are met. The protection functions mainly include:

[0186] 4041) Sea Lion-like ultra-deep protection, when the control system of the aircraft detects that the navigation depth exceeds SD meters, the aircraft stops working and starts to float up by its own buoyancy;

[0187] 4042) The single operation of the Sea Lion-like aircraft has timed out. When the aircraft control system detects that the execution of a certain mission target exceeds ST minutes, the aircraft stops running and floats up by its own buoyancy or remains floating on the water surface;

[0188] 4043) Sea Lion-like low voltage protection, when the aircraft control system detects that the battery voltage is lower than the threshold SV volts, the aircraft stops running and floats up or keeps floating on the water surface by its own buoyancy;

[0189] 4044) Sea Lion-like high current protection, when the control system of the aircraft detects that the battery current is higher than the threshold value SA ampere, the aircraft stops running and floats up or keeps floating on the water surface by its own buoyancy;

[0190] 4045) Sea Lion-like aircraft water leakage protection, when the aircraft control system detects water leakage, the aircraft stops running and floats up or keeps floating on the water surface by its own buoyancy;

[0191] 4046) Sea Lion-like aircraft motor protection, when the aircraft control system detects a motor failure, the aircraft stops running and floats up or remains floating on the water surface by its own buoyancy;

[0192] 4047) Sea Lion-like aircraft sensor protection, when the aircraft control system detects a sensor failure, the aircraft stops running and floats up or remains floating on the water surface by its own buoyancy;

[0193] 4048) Slow diving protection function, when the aircraft control system detects that the diving depth is lower than SH within one hour, the aircraft stops running and floats up by its own buoyancy or keeps floating on the water surface;

[0194] 4049) Slow ascent protection function: when the vehicle control system detects that the diving depth is lower than SH within one hour, the vehicle stops running and performs a load dumping action, and then floats up by its own buoyancy or maintains a floating state on the water surface;

[0195] (405) The upper computer part obtains the data sent by the lower computer to obtain the current state set S of the Sea Lion-like underwater vehicle, wherein the state set S mainly includes:

[0196] a. The pitch angle of the Sea Lion underwater vehicle;

[0197] b. Roll angle of the Sea Lion underwater vehicle;

[0198] c. The location of the battery pack for the pitch adjustment mechanism in the pressure-resistant compartment at the front end of the Sea Lion underwater vehicle;

[0199] d. The depth of the Sea Lion underwater vehicle;

[0200] e. Speed ​​of the left sea lion pectoral fin propulsion mechanism servo;

[0201] f. Position of the left sea lion pectoral fin propulsion mechanism servo;

[0202] g. Speed ​​of the right sea lion pectoral fin propulsion mechanism servo;

[0203] h. Position of the servo for the right sea lion-like pectoral fin propulsion mechanism;

[0204] i. Deviation angle of actual heading and target heading of the Sea Lion underwater vehicle;

[0205] j. The difference between the depth of the Sea Lion underwater vehicle and the target depth;

[0206] (406) Input S into the latest neural network N, and obtain an action set A through the latest neural network N, whose content is the five control parameters mentioned above;

[0207] (407) The upper computer generates a hexadecimal control instruction DA from the action set A obtained by the latest neural network N and sends it to the lower computer;

[0208] (408) After receiving the control instruction D sent by the upper computer, the lower computer controls the five actuators mentioned above to complete the action:

[0209] Among them, the head and tail directly control the servos to rotate to the corresponding angles according to the head servo target angle and the tail servo target angle sent by the host computer;

[0210] The left pectoral fin and the right pectoral fin parts rotate according to the target rotation speed of the left sea lion-like pectoral fin propulsion mechanism servo and the target rotation speed of the right sea lion-like pectoral fin propulsion mechanism servo sent by the host computer;

[0211] Among them, when the difference between the target rotation speed of the left sea lion pectoral fin propulsion mechanism servo and the target rotation speed of the right sea lion pectoral fin propulsion mechanism servo is less than C, taking the left pectoral fin rotation speed as a reference, the right pectoral fin rotation speed is:

[0212] n 右 =n 左 +(δ 左 -δ 右 )*P 直航

[0213] Where n 左 is the speed of the left pectoral fin servo, n 右 is the target speed of the right pectoral fin servo, δ 左 is the position of the left pectoral fin servo, δ 右 is the position of the right pectoral fin servo, P 直航 is the proportionality coefficient;

[0214] The pitch adjustment mechanism motor rotates the motor to move the battery pack to the specified position through feedback control according to the pitch adjustment mechanism battery pack target position sent by the host computer. The pitch adjustment mechanism battery pack target position is:

[0215] L=L0+(L target -L0)*P L

[0216] Where, L is the target position of the battery pack of the pitch adjustment mechanism, L0 is the initial position of the battery pack of the pitch adjustment mechanism, and L target P is the target position of the battery pack of the pitch adjustment mechanism sent by the upper computer to the lower computer. L is the proportionality coefficient.

[0217] (409) The lower computer part converts the current new state set SN of the Sea Lion underwater vehicle into hexadecimal data DC according to the established communication protocol at a certain frequency and sends it to the upper computer, wherein the new state set SN is consistent with the above S;

[0218] (410) The upper computer receives the hexadecimal long frame data DC sent by the lower computer, parses it to obtain the current state set SN of the Sea Lion underwater vehicle, inputs the target reward function to calculate the reward value W generated by the current action A, and uses the reward value W as a weight to update the neural network N to obtain the updated neural network NN;

[0219] (411) Input the current state set SN and the current action A into the updated neural network NN to obtain a new action set AN, whose content is consistent with the content of the action set A mentioned above;

[0220] (412) At this time, the latest neural network N in step (406) is replaced by the updated neural network NN, and the action set A is replaced by the new action set AN;

[0221] (413) Jump to step (402) and re-execute the program to determine whether the task goal has been achieved and whether to proceed to the following steps, where the criteria for determining whether the goal has been achieved are:

[0222] 1) Constant speed straight line navigation, when the sea lion-like underwater vehicle sails a certain distance L along the target course at the target speed m When , the training is completed;

[0223] 2) Select fixed-point navigation. When the Sea Lion-like underwater vehicle remains at the target point for a certain period of time T m When , the training is completed;

[0224] 3) Select the fixed depth straight line navigation, when the sea lion underwater vehicle sails a certain distance L along the target course and target depth at the target speed mWhen , the training is completed;

[0225] 4) Select turning navigation. When the Sea Lion underwater vehicle sails along the circle of the target radius at the target speed, N m laps, the training is complete

[0226] (414) When the program determines that the task goal has been completed, the updated neural network NN is saved as a file of a specified type and the program is stopped; if the task goal has not been completed, the program will repeat the above steps (402) to (414);

[0227] (415) The host computer sends a task completion notification to the operator.

[0228] Example 2.

[0229] In this embodiment, the training and deployment parts are described separately according to the learning mode and the automatic mode; the details are as follows:

[0230] A motion control method for a sea lion-like underwater vehicle based on deep reinforcement learning:

[0231] Step 1:

[0232] A simulation dynamics model of a Sea Lion-like underwater vehicle with a pitch adjustment mechanism is constructed in a virtual simulation environment, wherein the constructed simulation dynamics model is consistent with the function of the physical Sea Lion-like underwater vehicle;

[0233] Try to simplify the model as much as possible when modeling, as follows:

[0234] (1) Using circular disks of equal thickness with gradually decreasing radius connected in series at a certain interval to replace the movable head with a certain flexibility;

[0235] (2) Using circular disks of equal thickness with gradually decreasing radius connected in series at a certain interval and connected to a tail fin model at the end to replace the movable tail with a certain flexibility;

[0236] (3) Virtual force is used to replace the bionic pectoral fins that are symmetrical and can move independently, and the thrust data is obtained from experiments;

[0237] (4) Replace the pitch adjustment mechanism battery pack with a movable eccentric cylindrical mass driven by a linear motor;

[0238] (5) Replace the trunk of the sea lion with a spindle-shaped geometric object of the same cross-section.

[0239] Step 2: Establish a control program for the Sea Lion-like underwater vehicle based on deep reinforcement learning according to the constructed virtual simulation environment. The control program is written in Python, and the API provided by Webots is used to control the simulation dynamics model of the Sea Lion-like underwater vehicle constructed in the virtual simulation environment and obtain its key parameters;

[0240] Step 3:

[0241] When training in a simulation environment using learning mode:

[0242] (3.1) Start running the control program;

[0243] (3.2) Select the control mode as learning mode;

[0244] (3.3) Set the task objectives and input the task objective parameters;

[0245] (3.4) Start training and start the virtual simulation environment;

[0246] (3.5) After the training is completed, the host computer sends a task completion prompt to the operator;

[0247] (3.6) Save the trained neural network into a file format that can be read again.

[0248] When training in a simulation environment using the automatic launch mode:

[0249] (301) Start running the program;

[0250] (302) Selecting the control mode as automatic mode;

[0251] (303) Setting the task target and inputting the task target parameters;

[0252] (304) Start executing the task and start the virtual simulation environment;

[0253] (305) The host computer sends a task completion notification to the operator.

[0254] Step 4:

[0255] The control method when deployed to the physical Sea Lion underwater vehicle and in learning mode is as follows:

[0256] (4.1) Connect the upper computer and the lower computer Sea Lion underwater vehicle with cables;

[0257] (4.2) Turn on the power of the Sea Lion underwater vehicle;

[0258] (4.3) Open the Sea Lion underwater vehicle control program on the host computer;

[0259] (4.4) Read the status of the Sea Lion underwater vehicle;

[0260] (4.5) Start running the program;

[0261] (4.6) Select the control mode as learning mode;

[0262] (4.7) Set the task objectives and input the task objective parameters;

[0263] (4.8) The Sea Lion underwater vehicle training begins;

[0264] (4.9) If the mission is completed, the Sea Lion underwater vehicle stops moving, and the host computer sends a mission completion prompt to the operator;

[0265] (4.10) Save the trained neural network into a file format that can be read again.

[0266] (4.11) If the lower computer detects an abnormal state or a protection occurs, the Sea Lion underwater vehicle stops moving;

[0267] (4.12) The host computer sends a task abnormality prompt to the operator;

[0268] The control method when deployed to the physical Sea Lion underwater vehicle in automatic mode is as follows:

[0269] (401) connecting the upper computer and the lower computer Sea Lion underwater vehicle with a cable;

[0270] (402) Turn on the power of the Sea Lion-like underwater vehicle;

[0271] (403) Open the host computer control program;

[0272] (404) Reading the status of the Sea Lion underwater vehicle;

[0273] (405) Start running the program;

[0274] (406) Selecting the control mode as automatic mode;

[0275] (407) The Sea Lion-like underwater vehicle begins to carry out its mission;

[0276] (408) If the mission is completed, the Sea Lion-like underwater vehicle stops moving, and the host computer sends a mission completion prompt to the operator;

[0277] (409) If the lower computer detects an abnormal state or a protection occurs, the Sea Lion underwater vehicle stops moving;

[0278] (410) The host computer sends a task completion notification to the operator;

[0279] The present invention is not limited to the embodiments described above. The above description of the specific embodiments is intended to describe and illustrate the technical solution of the present invention. The above specific embodiments are merely illustrative and not restrictive. Without departing from the scope of the present invention and the scope of protection of the claims, a person of ordinary skill in the art can also make many forms of specific changes under the guidance of the present invention, which all fall within the scope of protection of the present invention.

Claims

1. A sea lion-like underwater vehicle motion control method based on deep reinforcement learning, characterized in that: It includes two parts: training and deployment; The training is carried out by building a virtual simulation environment in the Webots simulation software, and constructing a simulation dynamics model of a Sea Lion-like underwater vehicle with a pitch adjustment mechanism in the virtual simulation environment. The simulation dynamics model is consistent with the function of the physical Sea Lion-like underwater vehicle. The contents include: the flapping propulsion function of the pectoral fins of the imitation sea lion that are symmetrical and can move independently; the function of the imitation sea lion head that can rotate left and right around the neck; the function of the imitation sea lion tail that can swing left and right around the hip position; the function of the pitch adjustment mechanism in the pressure-resistant chamber at the front end of the bionic chest; the motors used by each actuator and the function of feedback on their positions; the function of the depth sensor used to sense the depth; the function of the gyroscope used to sense the pitch and roll angles; the function of the electronic compass used to sense the heading; the GPS positioning function used to obtain the coordinate position; the function of the accelerometer used to sense the magnitude of the acceleration; The structure of the simulation dynamics model is simplified compared to the physical Sea Lion underwater vehicle, as follows: a. Use circular disks of equal thickness with gradually decreasing radius to be connected in series axially at a set spacing to replace the flexible movable head; b. Use circular disks with gradually decreasing radius and equal thickness to be connected in series axially at a set spacing and connected to a tail fin model at the end to replace the movable tail with certain flexibility; c. Using virtual force to replace the bionic pectoral fins that are bilaterally symmetrical and capable of independent movement, the virtual force is obtained from the experimental data of the physical sea lion underwater vehicle; d. Replace the pitch adjustment mechanism battery pack with a movable eccentric cylindrical mass driven by a linear motor; e. Replace the trunk of the sea lion with a spindle-shaped geometric object of the same cross-section; A control program for the Sea Lion-like underwater vehicle is written in Python in the Webots simulation software, and the API provided by the Webots simulation software is used to control the simulation dynamics model and obtain state parameters; In the virtual simulation environment, different target reward functions are set according to different task objectives to achieve different task objectives; Conduct training in a virtual simulation environment. Through iterative training, the Sea Lion-like underwater vehicle in the virtual simulation environment continuously learns how to move, with the achievement of mission objectives as the judgment standard until the training is completed; Deployment refers to applying the trained Sea Lion-like underwater vehicle control program based on deep reinforcement learning to the real Sea Lion-like underwater vehicle. The control program applied to the physical Sea Lion-like underwater vehicle has the ability to further learn and improve movement. The process of the deployment part is as follows: (201) After running the control program, select a control mode, the control mode including a learning mode and an automatic mode; (202) Setting task objectives and determining whether task objectives have been met; (203) If the learning mode is selected, steps (204) to (214) are performed; if the automatic mode is selected, steps (204) to (208) are repeated; (204) The lower computer performs a status detection on the Sea Lion-like underwater vehicle to detect whether the protection conditions are met; (205) The upper computer obtains the data sent by the lower computer to obtain the current state set S of the Sea Lion-like underwater vehicle; (206) Input S into the latest neural network N, and obtain an action set A through the latest neural network N, whose content is the control parameter; (207) The upper computer generates a hexadecimal control instruction DA from the action set A obtained by the latest neural network N and sends it to the lower computer; (208) After receiving the control instruction D sent by the upper computer, the lower computer controls the actuator to complete the action; (209) The lower computer converts the current new state set SN of the Sea Lion-like underwater vehicle into hexadecimal data DC according to the established communication protocol at the set frequency and sends it to the upper computer; (210) The upper computer receives the hexadecimal data DC sent by the lower computer, and parses it to obtain the current state set SN of the Sea Lion underwater vehicle, inputs the target reward function to calculate the reward value W generated by the current action set A, and uses the reward value W as the weight to update the neural network N, thereby obtaining the updated neural network NN; (211) Input the current state set SN and the current action set A into the updated neural network NN to obtain a new action set AN, whose content is consistent with the content of the action set A; (212) At this time, the latest neural network N in step (206) is replaced by the updated neural network NN, and the action set A is replaced by the new action set AN; (213) Jump to step (202) and continue to execute the program to determine whether the task goal has been achieved; (214) When the upper computer determines that the task target has been completed, the upper computer sends a stop command to the lower computer and saves the updated neural network NN into a specified type of file; if the task target has not been completed, the program will repeat the above steps (202) to (214); (215) The host computer sends a task completion notification to the operator; The upper computer is integrated with a control program of the Sea Lion-like underwater vehicle. The upper computer is connected to the lower computer. After the upper computer obtains the parameters of the lower computer, it performs calculations and sends the obtained control parameters to the lower computer. The lower computer is a single-chip microcomputer. After receiving the control parameters sent by the upper computer, the lower computer controls the actuator to complete the corresponding action.

2. According to claim 1, a motion control method for a sea lion-like underwater vehicle based on deep reinforcement learning is characterized in that: The training part is based on a virtual simulation environment built with Webots, an open source dynamic simulation software based on ODE. It includes a rectangular pool with four closed sides and a bottom and an open top, which can provide water flow in a certain direction. The virtual simulation environment also provides physical parameters such as friction, water resistance, viscous resistance coefficient, viscous resistance moment coefficient, buoyancy, gravity, and inertia force between objects. The origin coordinates of the simulation environment are established at the center of the bottom of the rectangular pool.

3. According to claim 1, a motion control method of a sea lion-like underwater vehicle based on deep reinforcement learning is characterized in that: The training process is as follows: (101) After running the control program, select a control mode, which includes a learning mode and an automatic mode; (102) Setting task objectives and determining whether task objectives have been met; (103) If the learning mode is selected, steps (104) to (113) are performed; if the automatic mode is selected, steps (104) to (106) are repeated; (104) Obtain the state set S of the simulation dynamics model in the virtual simulation environment through the API provided by Webots; (105) Input S into the latest neural network N, and obtain an action set A through the latest neural network N, whose content is the control parameter; (106) Through the API provided by Webots, the actuator is controlled according to the action set A; (107) obtaining a new state set SN of the simulation dynamics model in the current virtual simulation environment according to the set step size, wherein the new state set SN is consistent with the content of the above S; (108) The new state set SN is input into the target reward function to calculate the reward value W generated by the current action set A, and the reward value W is used as the weight to update the neural network N to obtain the updated neural network NN; (109) Input the current state set SN and the current action set A into the updated neural network NN to obtain a new action set AN, whose content is the control parameters; (110) At this time, the latest neural network N in step (105) is replaced by the updated neural network NN, and the action set A is replaced by the new action set AN; (111) Jump to step (102) and continue to execute the program to determine whether the task goal has been achieved; (112) When the control program determines that the task target has been completed, the updated neural network NN is saved as a file of a specified type and the operation of the control program is stopped. If the task target has not been completed, the program will repeat the above steps (102) to (112); (113) The Webots simulation software sends a task completion prompt to the operator.

4. According to claim 3, a motion control method for a sea lion-like underwater vehicle based on deep reinforcement learning is characterized in that: The control parameters include: (1) The target angle of the sea lion head servo that can rotate left and right around the neck position; (2) The target angle of the sea lion tail servo that can swing left and right around the hip position; (3) Target position of the battery pack of the pitch adjustment mechanism in the pressure-resistant compartment at the front end of the Sea Lion underwater vehicle; (4) Target rotation speed of the left sea lion pectoral fin propulsion mechanism servo; (5) Target rotation speed of the right sea lion pectoral fin propulsion mechanism servo.

5. According to claim 3, a motion control method for a sea lion-like underwater vehicle based on deep reinforcement learning is characterized in that: The executive mechanism comprises: (1) A sea lion head servo that can rotate left and right around the neck; (2) A sea lion-like tail servo that can swing left and right around the hip position; (3) The motor of the pitch adjustment mechanism in the pressure-resistant chamber at the front end of the Sea Lion underwater vehicle; (4) Left sea lion-like pectoral fin propulsion mechanism servo; (5) Right sea lion-like pectoral fin propulsion mechanism servo; The head servo and the tail servo are directly controlled to rotate to corresponding angles according to the head servo target angle and the tail servo target angle sent by the host computer; The left sea lion imitation pectoral fin propulsion mechanism steering gear and the right sea lion imitation pectoral fin propulsion mechanism steering gear rotate according to the target rotation speed of the left sea lion imitation pectoral fin propulsion mechanism steering gear and the target rotation speed of the right sea lion imitation pectoral fin propulsion mechanism steering gear sent by the host computer; Among them, when the difference between the target rotation speed of the left sea lion pectoral fin propulsion mechanism servo and the target rotation speed of the right sea lion pectoral fin propulsion mechanism servo is less than C, taking the rotation speed of the left sea lion pectoral fin propulsion mechanism servo as a reference, the rotation speed of the right sea lion pectoral fin propulsion mechanism servo is: n 右 =n 左 +(d 左 -d 右 )*P 直航 Where n 左 is the speed of the left sea lion pectoral fin propulsion mechanism servo, n 右 is the target speed of the right sea lion pectoral fin propulsion mechanism servo, δ 左 is the position of the left sea lion pectoral fin propulsion mechanism servo, δ 右 is the position of the right sea lion pectoral fin propulsion mechanism servo, P 直航 is the proportionality coefficient; The pitch adjustment mechanism motor moves the battery pack to the specified position by feedback control according to the pitch adjustment mechanism battery pack target position sent by the host computer. The pitch adjustment mechanism battery pack target position is: L=L0+(L target -L0)*P L Where, L is the target position of the battery pack of the pitch adjustment mechanism, L0 is the initial position of the battery pack of the pitch adjustment mechanism, and L target P is the target position of the battery pack of the pitch adjustment mechanism sent by the upper computer to the lower computer. L is the proportionality coefficient.

6. A sea lion-like underwater vehicle motion control method based on deep reinforcement learning according to claim 1 or 3, characterized in that: The mission objectives include constant speed straight navigation, fixed point navigation, constant depth straight navigation and turning navigation; the control method also includes the following functions: wireless communication function; ultra-deep, single operation timeout, low voltage, current, water leakage, motor, sensor protection function; slow diving and slow ascent protection function; load dumping protection system.

7. According to claim 3, a motion control method for a sea lion-like underwater vehicle based on deep reinforcement learning is characterized in that: The state set S includes the following state parameters: (1) Pitch angle of the Sea Lion underwater vehicle; (2) Roll angle of the Sea Lion-like underwater vehicle; (3) The location of the battery pack for the pitch adjustment mechanism in the pressure-resistant compartment at the front end of the Sea Lion underwater vehicle; (4) The depth of the Sea Lion underwater vehicle; (5) Speed ​​of the left sea lion pectoral fin propulsion mechanism servo; (6) Position of the left sea lion pectoral fin propulsion mechanism servo; (7) Speed ​​of the right sea lion pectoral fin propulsion mechanism servo; (8) Position of the right sea lion pectoral fin propulsion mechanism servo; (9) Deviation angle of actual heading and target heading of the Sea Lion underwater vehicle; (10) The difference between the depth of the Sea Lion underwater vehicle and the target depth.

Citation Information

Patent Citations

  • AUV (Autonomous Underwater Vehicle) three-dimensional path planning method based on reinforcement learning

    CN109540151A

  • Propelling device imitating front fins of sea lion

    CN111976938A