Path planning method for unmanned surface vehicle

By using reinforcement learning models and annealing algorithms in surface unmanned vehicle path planning, combined with electronic charts and the Dyna framework, the problems of slow convergence speed and local optimal solutions in path planning are solved, and more efficient and safer path planning is achieved.

CN118569462APending Publication Date: 2024-08-30HARBIN ENG UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410609454.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing path planning methods for surface unmanned vehicles have slow convergence speeds and are prone to falling into local optimal solutions.

Method used

The reinforcement learning model is combined with the annealing algorithm and the Dyna framework to perform path planning through electronic charts, design the reward value calculation method around the target point, and use the annealing algorithm for action selection to improve the convergence speed of path planning and avoid local optimal solutions.

Benefits of technology

It improves the convergence speed and safety of path planning, can more effectively cope with complex ocean environments, and provides a feasible autonomous path planning solution for unmanned boats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569462A
    Figure CN118569462A
Patent Text Reader

Abstract

The invention discloses a path planning method for an unmanned surface vehicle, and belongs to the technical field of path planning of unmanned surface vehicles. According to the method, the problems that the convergence speed is low and a local optimal solution is easily caused when an existing unmanned surface vehicle performs path planning by using a reinforcement learning method are solved. According to the method, the operation area of the unmanned surface vehicle is selected according to the starting point and the target point, and the spatial position information of the navigation obstructing area in the operation area is obtained by analyzing the marine environment characteristic data; and converting the navigation obstructing area into a geometric convex hull structure, and carrying out expansion processing to obtain a binary grid map after expansion processing. And selecting the action at the current moment based on the reinforcement learning model and the binary grid map to realize the path planning of the unmanned surface vehicle. The method can be applied to unmanned ship path planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of unmanned boat path planning, and in particular relates to a method for surface unmanned boat path planning. Background Art

[0002] As an autonomous navigation water vehicle, unmanned boats have the characteristics of low cost, maneuverability and flexibility, and can be widely used in ocean exploration, water patrol, freight and other fields. With its increasing application in various fields, the autonomous path planning of unmanned boats has become one of the key research issues.

[0003] Autonomous decision-making is an important criterion for the intelligence level of unmanned boats. It requires unmanned boats to travel from the starting point to the end point according to the optimal plan in a static water surface environment, and quickly avoid obstacles when encountering unknown dangers. Path planning involves two aspects: global path planning and local obstacle avoidance. In terms of global path planning, there are mature classic algorithms such as A* algorithm, ant colony algorithm and genetic algorithm. These algorithms require a lot of prior knowledge for path planning, so in actual complex scenarios, these algorithms gradually show limitations. The unknown complex terrain and uncertainty in the marine environment often lead to unsatisfactory planning results.

[0004] In contrast, reinforcement learning, as a machine learning method, learns how to take actions to achieve the optimal goal through interaction with the environment. Compared with traditional methods, reinforcement learning methods (such as SARSA, Q-learning, and RRT) do not rely on prior knowledge, learn and optimize through real-time trial and error, and can better adapt to unknown, dynamic, and complex water environments. In the path planning of unmanned boats, the advantage of reinforcement learning methods is that they can more flexibly and adaptively respond to the challenges of different water environments, providing new possibilities for the intelligence of unmanned boats. Although the use of reinforcement learning methods for path planning of surface unmanned boats does not require prior knowledge, this method has the problems of slow convergence and easy to fall into local optimal solutions. Summary of the invention

[0005] The purpose of the present invention is to solve the problems of slow convergence speed and easy falling into local optimal solution of existing path planning methods for surface unmanned boats, and to propose a path planning method for surface unmanned boats.

[0006] The technical solution adopted by the present invention to solve the above technical problems is:

[0007] A method for planning a path for an unmanned surface vehicle, the method specifically comprising the following steps:

[0008] Step 1: Select the surface unmanned boat operation area according to the starting point and the target point, extract the marine environment characteristic data of the operation area, and obtain the spatial position information of the obstruction area in the operation area by analyzing the marine environment characteristic data;

[0009] The obstruction area is converted into a geometric convex hull structure, the operation area containing the convex hull structure is converted into a binary grid map, and then the convex hull structure in the binary grid map is expanded to obtain a binary grid map after the expansion process;

[0010] Step 2: record the grid position of the current unmanned surface boat in the binary grid map as (i, j), and record the coordinates of the grid position (i, j) as (X i ,Y j ), where i represents the i-th row grid in the binary grid map, and j represents the j-th column grid in the binary grid map;

[0011] The grid position of the unmanned surface boat in the binary grid map at the current moment is used as the search point at the current moment, and then the reinforcement learning model is used to select the action at the current moment to realize the path planning of the unmanned surface boat.

[0012] Furthermore, the navigation obstruction area spatial position information is the position information of the navigation obstruction area in a Cartesian rectangular coordinate system; the method for obtaining the navigation obstruction area spatial position information is:

[0013] The plane where the surface unmanned boat operation area is located is the OXY plane of the Cartesian rectangular coordinate system, and the origin O of the Cartesian rectangular coordinate system is the lower left corner vertex of the operation area, the latitude direction of the origin is the X-axis direction, and the longitude direction of the origin is the Y-axis direction;

[0014] The obstruction area is projected onto the OXY plane of the Cartesian rectangular coordinate system using the Mercator projection transformation to obtain the location information of the obstruction area in the Cartesian rectangular coordinate system.

[0015] Furthermore, the convex hull structure in the binary grid map is dilated to obtain the binary grid map after dilation, specifically:

[0016] For any grid in the binary grid map, if the grid contains some obstacles, the grid will also be regarded as an obstruction area, otherwise the grid is a permitted navigation area.

[0017] Furthermore, the action space of the search point at the current moment is:

[0018]

[0019] That is, the action space of the search point at the current moment is: the eight-neighborhood grid of the search point at the current moment; where (Xi ,Y j+1 ) represents the coordinates of the grid at position (i, j+1), (X i ,Y j-1 ) represents the coordinates of the grid at position (i, j-1), (X i+1 ,Y j ) represents the coordinates of the grid at position (i+1,j), (X i-1 ,Y j ) represents the coordinates of the grid at position (i-1, j), (X i+1 ,Y j+1 ) represents the coordinates of the grid at position (i+1,j+1), (X i-1 ,Y j-1 ) represents the coordinates of the grid at position (i-1, j-1), (X i-1 ,Y j+1 ) represents the coordinates of the grid at position (i-1, j+1), (X i+1 ,Y j-1 ) represents the coordinates of the grid at position (i+1,j-1).

[0020] Furthermore, the action selection method of the reinforcement learning model is:

[0021]

[0022] Among them, next action represents the action selected at the current moment, rand(actions) represents randomly selecting an action from the action space at the current moment, Q(next state, next action) represents selecting the action with the largest action value function value from the action space at the current moment, next state represents the state reached after executing the action selected at the current moment, ε represents the set threshold, and δ represents the intermediate variable.

[0023] Furthermore, the calculation method of the intermediate variable is:

[0024] δ=e (-(Q(next state,next action)-Q(state,action)) / T)

[0025] Among them, e represents the base of the natural logarithm, action represents the action at the previous moment selected according to the trained reinforcement learning model, state represents the state reached after executing the action selected at the previous moment, Q(state,action) represents the action value function value calculated according to action and state, and T represents temperature.

[0026] Furthermore, the temperature T is calculated as follows:

[0027]

[0028] Among them, T′ represents the temperature at the previous moment, T min represents the critical temperature, and q represents the attenuation factor.

[0029] Furthermore, the training process of the reinforcement learning model is:

[0030] Step 1, set the maximum number of steps t0 and the step threshold t';

[0031] Step 2, initialization step number t=1;

[0032] Step 3: Calculate the reward value of each action selected from the action space at step t. For any action in the action space, form a tuple with the action at step t, the state at step t, the action in the action space, and the reward value of the action;

[0033] Similarly, the tuples corresponding to each action in the action space are obtained respectively, and the obtained tuples are used as the real experience data at the current moment; and the real experience data at the current moment is put into the experience pool;

[0034] Step 4: Determine whether the number of steps t is less than t';

[0035] If t is less than t', use the real experience data obtained in step 3 to train the reinforcement learning model, then set t = t + 1, and then return to step 3;

[0036] If t is greater than or equal to t', a fixed number of tuples are randomly extracted from the experience pool, and the reinforcement learning model is trained using the extracted tuples and the real experience data at the current moment, and then step 5 is executed;

[0037] Step 5, determine whether the number of steps t is less than the maximum number of steps t0;

[0038] If the number of steps t is less than the maximum number of steps t0, set t=t+1 and return to step 3;

[0039] If the number of steps t is equal to the maximum number of steps t0, the entire training process ends and a trained reinforcement learning model is obtained.

[0040] Furthermore, the calculation method of the reward value in step 3 is:

[0041] R=R cost +R extra

[0042] Among them, R represents the reward value, R extra Represents the additional reward value, R cost Indicates the basic reward value;

[0043] Rcost The calculation method is:

[0044]

[0045] Among them, s∈obs means that the grid corresponding to the currently selected action is in the obstruction area, R1 means the reward value when the grid corresponding to the currently selected action is in the obstruction area, and R2 means the reward value when the grid corresponding to the currently selected action is not in the obstruction area;

[0046] Additional reward value R extra for:

[0047]

[0048] Among them, (X, Y) represents the coordinates of the grid corresponding to the currently selected action, (X end ,Y end ) represents the coordinates of the target point, k is the gravitational constant, |·| represents the absolute value, d max is the gravitational influence radius, and d represents the distance between the grid coordinates corresponding to the currently selected action and the target point coordinates.

[0049] Furthermore, the grid position of the unmanned surface boat at the tth step is used as the current search point (X i ,Y j ), if the grid position corresponding to the action a1 selected at the current search point is the same as the current search point (X i ,Y j ) is 1, and the grid position corresponding to the selected action a1 is in the non-obstructive area. If the grid position corresponding to the action a2 selected at the current search point is the same as the current search point (X i ,Y j ) is 0, and the grid position corresponding to the selected action a2 is in the non-obstructive zone, then the basic reward value obtained by selecting action a1 is the basic reward value obtained by selecting action a2. times.

[0050] The beneficial effects of the present invention are:

[0051] The present invention improves the traditional reinforcement learning algorithm Sarsa. To meet the authenticity of the path planning of the unmanned boat, the electronic chart is used as the path planning space, the Dyna framework is adopted, the reward value calculation method around the target point is designed, and the annealing algorithm is used as the action selection method in reinforcement learning, which improves the convergence speed of path planning and solves the problem of easily falling into the local optimal solution. It can also take into account the safety and energy consumption of the unmanned boat, and provide the necessary conditions for the unmanned boat to use the reinforcement learning method for autonomous path planning and achieve effective response to complex marine environments.

[0052] Since the present invention not only improves the safety of the planned path, but also improves the convergence speed of using reinforcement learning, it provides a more feasible path planning solution for unmanned boats to navigate in the actual ocean. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A flow chart of a method for planning a path for an unmanned surface boat according to the present invention;

[0054] Figure 2 This is a schematic diagram of the raster image expansion process;

[0055] In the figure, rasterization means rasterization, and dilatation means the expansion of the obstacle area;

[0056] Figure 3 It is a schematic diagram of the three basic elements of reinforcement learning in the present invention;

[0057] In the figure, Feasible area represents the feasible area, Obstacle area represents the obstacle area, and Achievementreward represents the additional reward value when the target point is searched;

[0058] Figure 4 This is a schematic diagram of how the reward value is calculated;

[0059] Figure 5 A schematic diagram of the reinforcement learning model training process;

[0060] Figure 6 A schematic diagram of a path obtained by global planning using the method of the present invention;

[0061] Figure 7 A schematic diagram showing the relationship between the number of iterations and the cumulative reward value required to find the target point in the method of the present invention;

[0062] Figure 8 It is a schematic diagram of the relationship between the number of iterations and the number of moving steps in the method of the present invention;

[0063] Fig. 9 The figure is a schematic diagram of a search trajectory generated when the method of the present invention is used to search for a path. DETAILED DESCRIPTION

[0064] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0065] Specific implementation method 1: Combination Figure 1 The present embodiment describes a method for planning a path for an unmanned surface vehicle, the method specifically comprising the following steps:

[0066] Step 1: Select the surface unmanned boat operation area according to the starting point and the target point, then extract the marine environment characteristic data of the operation area from the S-57 standard electronic chart data, and obtain the spatial location information of the obstruction area (such as land, shoals, islands, reefs, lighthouses and other obstacles within the safe waterline of the unmanned boat) in the operation area by analyzing the marine environment characteristic data;

[0067] The obstruction area is converted into a geometric convex hull structure, and the operation area containing the convex hull structure is converted into a binary grid map (the grid area occupied by the convex hull structure is the obstruction area, and 0 in the grid map represents the obstruction area), and then the convex hull structure in the binary grid map is expanded to obtain the binary grid map after the expansion process;

[0068] Step 2: Simplify the surface unmanned boat into a unit grid, record the grid position of the surface unmanned boat in the binary grid map at the current moment as (i, j), and record the coordinates of the grid position (i, j) as (X i ,Y j ), where i represents the i-th row grid in the binary grid map, and j represents the j-th column grid in the binary grid map;

[0069] The grid position of the unmanned surface boat in the binary grid map at the current moment is used as the search point at the current moment, and then the reinforcement learning model is used to select the action at the current moment to realize the path planning of the unmanned surface boat.

[0070] Specific implementation method 2: This implementation method is different from the specific implementation method 1 in that the spatial position information of the obstruction area is the position information of the obstruction area in the Cartesian rectangular coordinate system; the method for obtaining the spatial position information of the obstruction area is:

[0071] The plane where the surface unmanned boat operation area is located is the OXY plane of the Cartesian rectangular coordinate system, and the origin O of the Cartesian rectangular coordinate system is the lower left corner vertex of the operation area, the latitude direction of the origin is the X-axis direction (the direction from the lower left corner vertex to the lower right corner vertex is the positive direction of the X-axis), and the longitude direction of the origin is the Y-axis direction (the direction from the lower left corner vertex to the upper right corner vertex is the positive direction of the Y-axis);

[0072] The obstruction area is projected onto the OXY plane of the Cartesian rectangular coordinate system using the Mercator projection transformation to obtain the location information of the obstruction area in the Cartesian rectangular coordinate system.

[0073] The other steps and parameters are the same as those in the first embodiment.

[0074] Specific implementation method three: Combination Figure 2The present embodiment is different from the first or second embodiment in that the convex hull structure in the binary grid map is dilated to obtain the binary grid map after dilation, specifically:

[0075] For any grid in the binary grid map, if the grid contains some obstacles, the grid will also be regarded as an obstruction area, otherwise the grid is a permitted navigation area.

[0076] The other steps and parameters are the same as those in the first or second embodiment.

[0077] The obstacle information in the obstruction area derived from the S-57 electronic chart is not a regular graphic. After the derived topology map is rasterized, some unit grids still contain some obstacles. In order to improve the safety and efficiency of the planned path, it is necessary to expand the obstacles in the rasterized mission area. Each grid will be treated as an infeasible area regardless of whether it is fully filled. By expanding the obstruction area, it can ensure that the unmanned boat maintains a safe distance from the obstruction area.

[0078] Specific implementation method 4: This implementation method is different from any one of the specific implementation methods 1 to 3 in that the action space of the search point at the current moment is:

[0079]

[0080] That is, the action space of the search point at the current moment is: the eight-neighborhood grid of the search point at the current moment; where (X i ,Y j+1 ) represents the coordinates of the grid at position (i, j+1), (X i ,Y j-1 ) represents the coordinates of the grid at position (i, j-1), (X i+1 ,Y j ) represents the coordinates of the grid at position (i+1,j), (X i-1 ,Y j ) represents the coordinates of the grid at position (i-1, j), (X i+1 ,Y j+1 ) represents the coordinates of the grid at position (i+1,j+1), (X i-1 ,Y j-1 ) represents the coordinates of the grid at position (i-1, j-1), (X i-1 ,Y j+1 ) represents the coordinates of the grid at position (i-1, j+1), (X i+1 ,Y j-1 ) represents the coordinates of the grid at position (i+1,j-1).

[0081] The other steps and parameters are the same as those in Specific Embodiments 1 to 3.

[0082] Specific implementation method 5: This implementation method is different from the specific implementation methods 1 to 4 in that the action selection method of the reinforcement learning model is:

[0083]

[0084] Among them, next action represents the action selected at the current moment, rand(actions) represents randomly selecting an action from the action space at the current moment, Q(next state, next action) represents selecting the action with the largest action value function value from the action space at the current moment, next state represents the state reached after executing the action selected at the current moment, ε represents the set threshold (which can be selected according to actual conditions), and δ represents the intermediate variable.

[0085] The other steps and parameters are the same as those in Specific Embodiments 1 to 4.

[0086] Specific implementation method 6: This implementation method is different from the specific implementation methods 1 to 5 in that the calculation method of the intermediate variable is:

[0087] δ=e (-(Q(next state,next action)-Q(state,action)) / T)

[0088] Among them, e represents the base of the natural logarithm, action represents the action at the previous moment selected according to the trained reinforcement learning model, state represents the state reached after executing the action selected at the previous moment, Q(state,action) represents the action value function value calculated according to action and state, and T represents temperature.

[0089] The other steps and parameters are the same as those in Specific Implementation Methods 1 to 5.

[0090] Specific implementation method 7: This implementation method is different from the specific implementation methods 1 to 6 in that the temperature T is calculated as follows:

[0091]

[0092] Among them, T′ represents the temperature at the previous moment, T min represents the critical temperature, and q represents the attenuation factor.

[0093] The other steps and parameters are the same as those in Specific Embodiments 1 to 6.

[0094] The simulated annealing algorithm (SA) allows a certain probability of accepting inferior solutions during the search process, which helps to avoid falling into the local optimal solution. By gradually lowering the "temperature", the algorithm gradually converges to a better solution during the search process, and finally finds a relatively excellent solution. Therefore, the present invention adopts the annealing algorithm for action selection strategy, which can avoid the problem of the path planning method falling into the local optimal solution.

[0095] Specific implementation method eight: Combination Figure 5 This embodiment is different from the first to seventh embodiments in that the training process of the reinforcement learning model is:

[0096] Step 1, set the maximum number of steps t0 and the step threshold t';

[0097] Step 2, initialization step number t=1;

[0098] Step 3: Calculate the reward value of each action selected from the action space at step t. For any action in the action space, form a tuple with the action at step t, the state at step t, the action in the action space, and the reward value of the action;

[0099] The three basic elements of reinforcement learning, action space, state space and reward value, are shown in the schematic diagram of the present invention as follows: Figure 3 As shown;

[0100] Similarly, the tuples corresponding to each action in the action space are obtained respectively, and the obtained tuples are used as the real experience data at the current moment; and the real experience data at the current moment is put into the experience pool;

[0101] Step 4: Determine whether the number of steps t is less than t';

[0102] If t is less than t', use the real experience data obtained in step 3 to train the reinforcement learning model (it should be noted that each training is continued on the basis of the model obtained in the previous training), then set t = t + 1, and return to step 3;

[0103] If t is greater than or equal to t', a fixed number of tuples are randomly extracted from the experience pool, and the reinforcement learning model is trained using the extracted tuples and the real experience data at the current moment, and then step 5 is executed;

[0104] Step 5, determine whether the number of steps t is less than the maximum number of steps t0;

[0105] If the number of steps t is less than the maximum number of steps t0, set t=t+1 and return to step 3;

[0106] If the number of steps t is equal to the maximum number of steps t0, the entire training process ends and a trained reinforcement learning model is obtained.

[0107] The other steps and parameters are the same as those in Specific Embodiments 1 to 7.

[0108] The reinforcement learning model training process of the present invention not only includes the learning process, but also incorporates the planning process. The simulated experience data (i.e., the data in the experience pool) generated by the environmental model and the real experience data are used to update the value function and the strategy function. In this way, in the actual navigation of the unmanned boat, not only the actual experience is taken into account, but also the planning is carried out through the simulated environment, which can adapt to complex sea conditions more flexibly.

[0109] Specific implementation method nine: Combination Figure 4 The present embodiment is different from the first to eighth embodiments in that the reward value is calculated as follows:

[0110] R=R cost +R extra

[0111] Among them, R represents the reward value, R extra Represents the additional reward value, R cost Indicates the basic reward value;

[0112] R cost The calculation method is:

[0113]

[0114] Where s∈obs indicates that the grid corresponding to the currently selected action is in the obstruction area, R1 indicates the reward value (i.e., collision cost) when the grid corresponding to the currently selected action is in the obstruction area, and R2 indicates the reward value (moving cost) when the grid corresponding to the currently selected action is not in the obstruction area;

[0115] Since the present invention uses the reinforcement learning method for global path planning, the obstruction area can be searched when searching the path, but the unmanned boat cannot pass through the obstruction area during actual navigation, so the reward value R1 set for the obstruction area is much smaller than the reward value R2 for the non-obstruction area.

[0116] like Figure 3 As shown, Extra reward represents the extra reward value R when searching near the target point extra , additional reward value R extra for:

[0117]

[0118] Among them, (X, Y) represents the coordinates of the grid corresponding to the currently selected action, (X end ,Y end ) represents the coordinates of the target point, k is the gravitational constant, |·| represents the absolute value, d max is the gravitational influence radius, and d represents the distance between the grid coordinates corresponding to the currently selected action and the target point coordinates.

[0119] The other steps and parameters are the same as those in Specific Embodiments 1 to 8.

[0120] Specific implementation method 10: This implementation method is different from any one of the specific implementation methods 1 to 9 in that the grid position where the surface unmanned boat is located at the t-th step is used as the current search point (X i ,Y j ), if the grid position corresponding to the action a1 selected at the current search point is the same as the current search point (X i ,Y j ) is 1, and the grid position corresponding to the selected action a1 is in the non-obstructive area. If the grid position corresponding to the action a2 selected at the current search point is the same as the current search point (X i ,Y j ) is 0, and the grid position corresponding to the selected action a2 is in the non-obstructive zone, then the basic reward value obtained by selecting action a1 is the basic reward value obtained by selecting action a2. times.

[0121] The other steps and parameters are the same as those in Specific Embodiments 1 to 9.

[0122] Since the reinforcement learning method used in the present invention uses eight-direction search when searching for the next position, when the point at the next moment of the search point search is in the non-obstructive zone and the line connecting the next moment position and the previous moment position intersects the Cartesian coordinate axis at 45°, the reward value should be when the line connecting the next moment position and the previous moment position is perpendicular to the Cartesian coordinate axis. times.

[0123] like Figures 6 to 9 As shown in the figure, the result of the unmanned boat reinforcement learning model trained by the method of the present invention performs global path planning on the surface unmanned boat. So far, based on the S-57 electronic chart data, the traditional reinforcement learning algorithm Sarsa algorithm is improved. At the same time, in order to meet the authenticity of the path planning of the unmanned boat, the electronic chart is used as the path planning space, the Dyna framework is adopted, the APF method is introduced to appropriately change the reward value, and the annealing algorithm is used for action selection. The convergence speed of the algorithm is improved, the problem of falling into the local minimum is solved, and the safety and energy consumption of the unmanned boat can be taken into account.

[0124] The above calculation examples of the present invention are only used to explain the calculation model and calculation process of the present invention in detail, and are not intended to limit the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.

Claims

1. A method for planning a path for an unmanned surface vehicle, characterized in that: The method specifically comprises the following steps: Step 1: Select the surface unmanned boat operation area according to the starting point and the target point, extract the marine environment characteristic data of the operation area, and obtain the spatial position information of the obstruction area in the operation area by analyzing the marine environment characteristic data; The obstruction area is converted into a geometric convex hull structure, the operation area containing the convex hull structure is converted into a binary grid map, and then the convex hull structure in the binary grid map is expanded to obtain a binary grid map after the expansion process; Step 2: record the grid position of the current unmanned surface boat in the binary grid map as (i, j), and record the coordinates of the grid position (i, j) as (X i ,Y j ), where i represents the i-th row grid in the binary grid map, and j represents the j-th column grid in the binary grid map; The grid position of the unmanned surface boat in the binary grid map at the current moment is used as the search point at the current moment, and then the reinforcement learning model is used to select the action at the current moment to realize the path planning of the unmanned surface boat.

2. A method for path planning of an unmanned surface vehicle according to claim 1, characterized in that: The spatial position information of the obstruction area is the position information of the obstruction area in the Cartesian rectangular coordinate system; the method for obtaining the spatial position information of the obstruction area is: The plane where the surface unmanned boat operation area is located is the OXY plane of the Cartesian rectangular coordinate system, and the origin O of the Cartesian rectangular coordinate system is the lower left corner vertex of the operation area, the latitude direction of the origin is the X-axis direction, and the longitude direction of the origin is the Y-axis direction; The obstruction area is projected onto the OXY plane of the Cartesian rectangular coordinate system using the Mercator projection transformation to obtain the location information of the obstruction area in the Cartesian rectangular coordinate system.

3. A method for path planning of an unmanned surface vehicle according to claim 1, characterized in that: The convex hull structure in the binary grid map is expanded to obtain the binary grid map after the expansion process, specifically: For any grid in the binary grid map, if the grid contains some obstacles, the grid will also be regarded as an obstruction area, otherwise the grid is a permitted navigation area.

4. A method for path planning of an unmanned surface vehicle according to claim 1, characterized in that: The action space of the search point at the current moment is: That is, the action space of the search point at the current moment is: the eight-neighborhood grid of the search point at the current moment; where (X i ,Y j+1 ) represents the coordinates of the grid at position (i, j+1), (X i ,Y j-1 ) represents the coordinates of the grid at position (i, j-1), (X i+1 ,Y j ) represents the coordinates of the grid at position (i+1,j), (X i-1 ,Y j ) represents the coordinates of the grid at position (i-1, j), (X i+1 ,Y j+1 ) represents the coordinates of the grid at position (i+1,j+1), (X i-1 ,Y j-1 ) represents the coordinates of the grid at position (i-1, j-1), (X i-1 ,Y j+1 ) represents the coordinates of the grid at position (i-1, j+1), (X i+1 ,Y j-1 ) represents the coordinates of the grid at position (i+1,j-1).

5. A method for path planning of an unmanned surface vehicle according to claim 4, characterized in that: The action selection method of the reinforcement learning model is: Among them, next action represents the action selected at the current moment, rand(actions) represents randomly selecting an action from the action space at the current moment, Q(next state, next action) represents selecting the action with the largest action value function value from the action space at the current moment, next state represents the state reached after executing the action selected at the current moment, ε represents the set threshold, and δ represents the intermediate variable.

6. A method for path planning of an unmanned surface vehicle according to claim 5, characterized in that: The calculation method of the intermediate variable is: δ=e (-(Q(next state,next action)-Q(state,action)) / T) Among them, e represents the base of the natural logarithm, action represents the action at the previous moment selected according to the trained reinforcement learning model, state represents the state reached after executing the action selected at the previous moment, Q(state,action) represents the action value function value calculated according to action and state, and T represents temperature.

7. A method for planning a path for an unmanned surface vehicle according to claim 6, characterized in that: The temperature T is calculated as follows: Among them, T′ represents the temperature at the previous moment, T min represents the critical temperature, and q represents the attenuation factor.

8. A method for planning a path for an unmanned surface vehicle according to claim 7, characterized in that: The training process of the reinforcement learning model is: Step 1, set the maximum number of steps t0 and the step threshold t'; Step 2, initialization step number t=1; Step 3: Calculate the reward value of each action selected from the action space at step t. For any action in the action space, form a tuple with the action at step t, the state at step t, the action in the action space, and the reward value of the action; Similarly, the tuples corresponding to each action in the action space are obtained respectively, and the obtained tuples are used as the real experience data at the current moment; And put the real experience data of the current moment into the experience pool; Step 4: Determine whether the number of steps t is less than t'; If t is less than t', use the real experience data obtained in step 3 to train the reinforcement learning model, then set t = t + 1, and then return to step 3; If t is greater than or equal to t', a fixed number of tuples are randomly extracted from the experience pool, and the reinforcement learning model is trained using the extracted tuples and the real experience data at the current moment, and then step 5 is executed; Step 5, determine whether the number of steps t is less than the maximum number of steps t0; If the number of steps t is less than the maximum number of steps t0, set t=t+1 and return to step 3; If the number of steps t is equal to the maximum number of steps t0, the entire training process ends and a trained reinforcement learning model is obtained.

9. A method for path planning of an unmanned surface vehicle according to claim 8, characterized in that: The calculation method of the reward value in step 3 is: R=R cost +R extra Among them, R represents the reward value, R extra Represents the additional reward value, R cost Indicates the basic reward value; R cost The calculation method is: Among them, s∈obs means that the grid corresponding to the currently selected action is in the obstruction area, R1 means the reward value when the grid corresponding to the currently selected action is in the obstruction area, and R2 means the reward value when the grid corresponding to the currently selected action is not in the obstruction area; Additional reward value R extra for: Among them, (X, Y) represents the coordinates of the grid corresponding to the currently selected action, (X end ,Y end ) represents the coordinates of the target point, k is the gravitational constant, |·| represents the absolute value, d max is the gravitational influence radius, and d represents the distance between the grid coordinates corresponding to the currently selected action and the target point coordinates.

10. A method for planning a path for an unmanned surface vehicle according to claim 9, characterized in that: The grid position of the unmanned surface boat at the tth step is taken as the current search point (X i ,Y j ), if the grid position corresponding to the action a1 selected at the current search point is the same as the current search point (X i ,Y j ) is 1, and the grid position corresponding to the selected action a1 is in the non-obstructive area. If the grid position corresponding to the action a2 selected at the current search point is the same as the current search point (X i ,Y j ) is 0, and the grid position corresponding to the selected action a2 is in the non-obstructive zone, then the basic reward value obtained by selecting action a1 is the basic reward value obtained by selecting action a2. times.

Citation Information

Cited By

  • A path planning method for unmanned surface boat

    CN119124174B