A modular unmanned boat motion planning method and system for self-reconfiguration tasks
Through sliding search and Minkowski and equivalent obstacle models, combined with the minimum consistency algorithm and whale optimization, the problem of inefficient path planning of unmanned vehicles is solved and the efficient movement of multi-modular unmanned vehicles in complex environments is achieved. planning.
Patent Information
- Application Number
- CN202411131730.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-19
AI Technical Summary
Existing unmanned vehicle path planning algorithms are inefficient in multi-modular unmanned vehicle reconstruction tasks and difficult to adapt to complex environments, and the generated trajectories have limited application in multi-unmanned vehicle collaborative operations.
Multiple sliding searches are used to obtain the minimum solution docking scheduling scheme for unmanned boats. Based on the Minkowski sum generation equivalent obstacle model, the feasible area is segmented and the weighted minimum consistency algorithm is used to search for the optimal path. Combined with whale optimization, the optimal path is obtained. Optimal reconstructed trajectory of man and boat.
It effectively reduces the motion cost of the reconstruction task, improves the efficiency and quality of path planning, and ensures that the optimal movement trajectory of each unmanned ship is obtained in complex environments.
Smart Images

Figure CN118642500B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of marine energy technology, and in particular relates to a modular unmanned boat motion planning method and system for self-reconfiguration tasks. Background Art
[0002] With the continuous deepening of marine resource exploration and development, the scale and intelligence level of offshore platforms, as key facilities for offshore operations, are increasing. Offshore platforms based on multi-module parallel connection can be used as a single platform and can be quickly reconfigured according to mission requirements to adapt to different operating scenarios. They have significant advantages. However, existing offshore platforms are still limited in flexibility and adaptability. By building a reconfigurable offshore platform based on the splicing of multiple modular unmanned boats, and taking advantage of the flexibility and rapid clustering of unmanned boats, the defects of poor flexibility of large offshore platforms can be compensated to a certain extent.
[0003] However, since unmanned boats require highly strict coordination, as the number of unmanned boats increases, their collaborative operation process becomes more and more complicated, and the complexity of reconstructing multiple unmanned boats will increase exponentially.
[0004] The traditional unmanned boat path planning problem is usually based on known environmental information or environmental information detected by sensors in real time. Under the premise of safely avoiding obstacles, an optimal path is planned from the starting point to the target point to meet performance constraints, shortest navigation time or shortest length, and minimum energy consumption. Although traditional path planning algorithms, such as the Dijkstra algorithm and the A* algorithm, have good results in calculating the single-source shortest path problem, their applicability and efficiency in the reconstruction task of multi-module unmanned boats still need to be improved. In addition, although the existing path optimization methods can provide trajectory optimization solutions, the generated trajectories can usually only be applied to barrier-free environments, and their application is limited in the complex environment of multi-module unmanned boat reconstruction tasks.
[0005] Therefore, how to quickly perform task scheduling and motion planning for multi-modular unmanned boats in reconstruction tasks is one of the important issues that urgently need to be solved in the flexible and intelligent development of reconfigurable marine platforms. Summary of the invention
[0006] The purpose of the present invention is to solve one of the above technical problems and to provide a modular unmanned boat motion planning method and system for self-reconfiguration tasks.
[0007] To achieve the above object, the technical solution adopted by the present invention is:
[0008] A modular unmanned boat motion planning method for self-reconfiguration tasks includes the following steps:
[0009] S1: Obtain the initial configuration and target configuration of the modular unmanned boat, and obtain multiple maximum common substructures of the initial configuration and the target configuration through multiple sliding searches to determine the minimum undocking scheduling scheme of the unmanned boat;
[0010] Based on the scheduling scheme, an equivalent obstacle model is generated using the Minkowski sum to obtain a feasible area;
[0011] S2: Divide the feasible region into several convex spaces, sample at the region boundary, and use the weighted minimum consistency algorithm to search for the optimal path;
[0012] S3: Use the optimal path as the path point of the minimum control trajectory class, set the initial time vector, and obtain the unconstrained minimum control trajectory; establish constraints, and use whale optimization to optimize the minimum control trajectory based on the constraints to obtain the optimal reconstruction trajectory of the unmanned boat.
[0013] In some embodiments of the present invention, the following steps are further included:
[0014] S4: Establish an unmanned boat simulation model and a reconstruction task simulation environment, and verify the optimal reconstruction trajectory of the unmanned boat in this simulation environment.
[0015] In some embodiments of the present invention, step S1 specifically includes the following steps:
[0016] S11: Based on the arrangement of the unmanned boats, the multi-unmanned boat modules are modeled as a grid matrix to describe the two-dimensional configuration of the multi-unmanned boat modules;
[0017] S12: Obtain the maximum common substructure of the initial configuration and the target configuration through sliding matching. The specific implementation steps are as follows:
[0018] Set the initial configuration matrix to , the target configuration matrix is ;
[0019] in, m 0 × n 0 is the size of the circumscribed rectangular matrix of the initial configuration, m t × n t The size of the bounding rectangle matrix of the target configuration;
[0020] Construct the matching matrix M:
[0021] ,and,
[0022] ;
[0023] Calculate the matching degree based on the matching degree matrix M :
[0024] ;
[0025] in, Defined as:
[0026] ;
[0027] in, is a matrix element;
[0028] Select the matching degree during the sliding matching process The largest subconfiguration is taken as the largest common substructure;
[0029] S13: performing multiple sliding matches to obtain multiple maximum common substructures, and then obtaining a minimum docking scheduling plan for the modular unmanned boat; in the multiple maximum common substructures, the first subconfiguration is a static unmanned boat, and the second and above subconfigurations are dynamic unmanned boats; the minimum docking scheduling plan at least includes the static and dynamic states of each unmanned boat and the moving target point;
[0030] S14: Taking the stationary unmanned boat as an obstacle, generating a configuration space for reconstructing the unmanned boat;
[0031] S15: Solve the Minkowski sum of the dynamic unmanned boat and the obstacle to obtain an equivalent obstacle model of the dynamic unmanned boat and the obstacle;
[0032] S16: Determine the feasible area of the unmanned boat motion planning in the configuration space based on the equivalent obstacle model.
[0033] In some embodiments of the present invention, in step S15, when the initial posture and the final posture of the unmanned boat are the same, the method for solving the Minkowski sum of the dynamic unmanned boat and the obstacle specifically includes the following steps:
[0034] Connect the convex vertices of the dynamic unmanned boat in sequence to obtain the convex hull of the dynamic unmanned boat;
[0035] The convex hull of the dynamic unmanned boat is represented as a point cloud in a two-dimensional real coordinate space, and the convex vertices in the point cloud are retained;
[0036] The obstacle is represented as a point cloud in a two-dimensional real coordinate space, and the vertices in the point cloud are retained;
[0037] Connect each convex vertex of the dynamic unmanned boat with the center of mass of the dynamic unmanned boat to form a set of vectors;
[0038] The vectors in the vector set are moved to make all the vector starting points consistent, and the end point of the moved vector is used as the Minkowski distance constructed based on the center of mass of the unmanned boat;
[0039] Move the starting point of the vector set and make the starting point of the vector set coincide with the point cloud of the obstacle in sequence to obtain the end point of the vector set left after each movement, and represent the obtained end point as a point set;
[0040] The convex vertices of the point set are connected in sequence to obtain the convex hull, which is the Minkowski sum result of the dynamic unmanned boat and the obstacle.
[0041] In some embodiments of the present invention, in step S14, when the initial posture and the final posture of the unmanned boat are different, the method for solving the Minkowski sum of the obstacle and the dynamic unmanned boat further includes the following steps:
[0042] With the center of mass of the dynamic unmanned boat as the center of the circle and the distance from the convex vertex of the dynamic unmanned boat to the center of mass as the radius, a circular area is obtained by rotating one circle; the circumscribed square of the circular area is taken as the equivalent model of the dynamic unmanned boat.
[0043] In some embodiments of the present invention, step S2 specifically includes the following steps:
[0044] S21: Add virtual boundaries to the configuration space;
[0045] S22: setting the equivalent obstacle model at the center of the configuration space, and taking the area within the virtual boundary and outside the equivalent obstacle model as a feasible area;
[0046] S23: Based on the convex vertex point set of the equivalent obstacle model, the convex vertices of the equivalent obstacle model are connected with their nearest boundary vertices and boundary midpoints, and the non-convex feasible area is divided into a series of convex areas;
[0047] S24: dividing the boundary line of each convex area into n equal parts to obtain a series of equally divided points on the boundary line of the convex area; based on the initial position of each dynamic unmanned boat and the position of the moving target point, determining the convex area to which the initial position and the position of the moving target point belong;
[0048] Calculate the number of convex areas that the dynamic unmanned boat needs to pass through from the initial position to the position of the moving target point in the clockwise direction and the counterclockwise direction respectively;
[0049] The direction that crosses the least number of convex areas is selected as the direction for subsequent dynamic unmanned boat path planning;
[0050] The equally divided points on the boundary line of the convex area in this direction are used as feasible path points for subsequent path planning;
[0051] S25: Use the weighted minimum consistency algorithm to search for the optimal path for each dynamic unmanned boat to move.
[0052] In some embodiments of the present invention, step S25 specifically includes the following steps:
[0053] Define a path consisting of N path points, where the state of each path point satisfies:
[0054] ;
[0055] in, is the length of the planned path from the current path point i to the end point, is the control input;
[0056] Randomly assign the initial state value of each path point ;
[0057] Set the control input for each path point for:
[0058] ;
[0059] in, is the set of neighbor path points, is the Euclidean distance between adjacent path points, that is, the weight between adjacent path points, is the length of the planned path from the current path point i to the end point;
[0060] Stable minimum consistency state of each path point for:
[0061] ;
[0062] in, is the Leader node, which is the starting point and end point of the path. The initial state value of the end point is 0. Follower nodes, i.e. other path points in the path;
[0063] Keep the status value of the Leader node in the path unchanged, and iteratively update the status value of the Follower node in the path based on the control input until all path points in the path reach a stable minimum consistency state. ; During the update process, the state change value of the Follower node is determined by the state value and weight of its neighbor path point;
[0064] Starting from the starting point, select from the neighbor nodes of the current path point in turn The smallest point is taken as the next path point until the end point, and the optimal path is obtained.
[0065] In some embodiments of the present invention, step S3 specifically includes the following steps:
[0066] S31: Define an m-dimensional, M-segment, N-order polynomial curve trajectory :
[0067] ;
[0068] in, N=2s-1 , s is the order of the minimized control quantity; represents the i-th segment of the trajectory, and,
[0069] ;
[0070] in, is the coefficient matrix of the polynomial trajectory, and , is a basis of polynomials, and , is the time vector of the trajectory, and ;
[0071] Polynomial Curve Trajectory The coefficient matrix and time vector are:
[0072] ;
[0073] Define boundary constraints for the start and end of the trajectory and , ;
[0074] Defining time Intermediate constraints at path points , ; Intermediate constraints Each column of corresponds to a dimension of the intermediate constraint; is the constraint order of the intermediate path points;
[0075] Using the Polynomial Curve Coefficient Matrix Indicates time Constraints at the path points:
[0076] ;
[0077] in, and The expressions are:
[0078] ;
[0079] in, ;
[0080] The boundary conditions of the entire trajectory It is expressed as:
[0081] ;
[0082] Based on the necessary and sufficient conditions for optimality and the coefficient matrix, the linear equation system of the polynomial curve coefficient matrix, path points and time vector is obtained:
[0083] ;
[0084] in, , , and The expressions are:
[0085] ;
[0086] Based on the optimal path point in the optimal path, the initial time vector is determined through the necessary and sufficient conditions for optimality and the linear equation system. , set boundary constraints and intermediate constraints , to obtain the s-order minimum control trajectory;
[0087] S32: Use whale optimization to optimize the s-order minimum control trajectory, which specifically includes the following steps:
[0088] The path point in the s-order minimum control trajectory is taken as the whale's position vector, and the cost function is written as:
[0089] ;
[0090] in, For obstacles, is the safe distance from obstacles, They are The trajectory polynomial of the axis, is the maximum speed of the unmanned boat;
[0091] The cost function is used as the fitness function of whale optimization to optimize the path points in the s-order minimum control trajectory to obtain the optimal reconstruction trajectory of the unmanned boat.
[0092] In some embodiments of the present invention, step S4 specifically includes the following steps:
[0093] Build a modular unmanned boat reconstruction task experimental platform in the robot operating system ROS and its physical simulation environment Gazebo;
[0094] The simulated unmanned boat model built in Gazebo is equipped with an odometer, IMU, and D435i depth camera, and uses a cascade PID controller to complete attitude, speed, position, and trajectory tracking control;
[0095] The input of the propeller simulation model of the unmanned boat model is the angular velocity , angular velocity With thruster thrust The relationship is:
[0096] ;
[0097] in, is the thrust coefficient of the propeller.
[0098] Some embodiments of the present invention further provide a modular unmanned boat motion planning system for self-reconfiguration tasks, comprising:
[0099] at least one processor;
[0100] at least one memory for storing at least one program;
[0101] When at least one program is executed by at least one processor, the at least one processor implements a modular unmanned boat motion planning method for self-reconfiguration tasks.
[0102] The beneficial effects of the present invention are:
[0103] 1. The present invention models the target configuration and original configuration of the multi-modular unmanned boat as an element matrix of the multi-unmanned boat, obtains multiple maximum common substructures through multiple sliding searches, and then determines the task allocation scheme, which effectively reduces the motion cost of the reconstruction task and reduces the time and resource consumption in the reconstruction process;
[0104] 2. The present invention uses Minkowski sum to generate equivalent obstacles to obtain a feasible area, then samples at the boundary of the convex area and uses a weighted minimum consistency algorithm to obtain the optimal path, and obtains the s-order minimum control trajectory based on the shortest path. Finally, the whale optimization is used to optimize the s-order minimum control trajectory according to the task constraints, thereby improving the efficiency and quality of path planning and ensuring that the optimal movement trajectory of each unmanned boat can be obtained in a complex environment with multiple unmanned boats.
[0105] 3. The present invention ensures the reliability and practicability of the method by verifying the obtained optimal reconstruction trajectory in a simulation environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0106] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0107] Figure 1 is a flow chart of a modular unmanned vehicle motion planning method for self-reconfiguration tasks;
[0108] Figure 2 This is a schematic diagram of the grid matrix modeling method for multiple unmanned boat modules;
[0109] Figure 3 Schematic diagram of the sliding matching process;
[0110] Among them, (a) is a schematic diagram of the first sliding matching process, and (b) is a schematic diagram of the second sliding matching process;
[0111] Figure 4 Schematic diagram of the process of solving the Minkowski problem and generating equivalent obstacles;
[0112] Figure 5 A schematic diagram of the process of constructing an equivalent unmanned boat;
[0113] Figure 6 This is a schematic diagram of the structure of the simulated unmanned boat model in Gazebo;
[0114] Figure 7 Schematic diagram of simulation results of reconstructed trajectory;
[0115] Figure 8 It is a schematic diagram of the simulation results of the speed curve;
[0116] Fig. 9 Schematic diagram of the simulation results of the acceleration curve. DETAILED DESCRIPTION
[0117] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0118] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0119] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0120] The technical solution of the present invention is described in detail below in conjunction with specific embodiments and the accompanying drawings.
[0121] As attached Figure 1 -Attached Fig. 9 As shown, in an illustrative embodiment of a modular unmanned boat motion planning method for a self-reconstruction task of the present invention, the motion planning method includes the following steps.
[0122] S1: Obtain the initial configuration and target configuration of the modular unmanned boat, obtain multiple maximum common substructures of the initial configuration and the target configuration through multiple sliding searches, and determine the minimum undocking scheduling scheme of the unmanned boat. Based on the scheduling scheme, use Minkowski sum to generate an equivalent obstacle model to obtain a feasible area.
[0123] For a self-reconfiguration task of a multi-modular unmanned boat, the initial configuration and the target configuration are known, and the reconstruction scheduling plan requires: the number of unmanned boats that need to be moved is the minimum, and the number of decomposition and docking times between the unmanned boats is the minimum.
[0124] In some embodiments of the present invention, step S1 specifically includes the following steps.
[0125] S11: Based on the arrangement of unmanned boats, the multi-unmanned boat modules are modeled as a grid matrix to describe the two-dimensional configuration of the multi-unmanned boat modules, as shown in the attached figure. Figure 2 As shown, the grid matrix size is the size of the envelope rectangle of the two-dimensional configuration.
[0126] S12: Obtain the maximum common substructure (MCS) of the initial configuration and the target configuration through sliding matching. S12 specifically includes the following steps.
[0127] Set the initial configuration matrix to , the target configuration matrix is .
[0128] in, m 0 × n 0 is the size of the circumscribed rectangular matrix of the initial configuration, m t × n t The size of the bounding rectangle matrix of the target configuration.
[0129] Construct the matching matrix M:
[0130] ,and,
[0131] ;
[0132] Calculate the matching degree based on the matching degree matrix M :
[0133] ;
[0134] in, Defined as:
[0135] ;
[0136] in, is a matrix element.
[0137] Select the matching degree during the sliding matching process The largest subconfiguration is taken as the largest common substructure.
[0138] S13: Perform multiple sliding matches to obtain multiple maximum common substructures, and then obtain the minimum undocking scheduling scheme for the modular unmanned boat. In this embodiment, two sliding matches are performed in total. The process of the two sliding matches is as shown in the attached figure. Figure 3 As shown in the figure. Among the multiple maximum common substructures obtained after two sliding matches, the first sub-configuration is a stationary unmanned boat, and the second sub-configuration is a dynamic unmanned boat, that is, the collaborative moving part in the reconstruction task. The minimum solution docking scheduling scheme includes the task state and task target of each unmanned boat, that is, the dynamic and static state of each unmanned boat and the moving target point. Among them, the individual unmanned boats are assigned reconstruction targets based on the Euclidean distance.
[0139] S14: In order to generate a collision-free trajectory for each modular unmanned boat, the stationary unmanned boat is used as an obstacle to generate the configuration space of the unmanned boat reconstruction.
[0140] S15: The obstacle is represented by the Minkowski sum of the configuration space, that is, the Minkowski sum of the dynamic unmanned boat and the obstacle is solved to obtain an equivalent obstacle model of the dynamic unmanned boat and the obstacle.
[0141] It should be noted that the shape of the unmanned boat is added to the equivalent obstacle, and it itself is modeled as a point in free space. The reconstructed trajectory planning task for the unmanned boat can be regarded as planning a collision-free trajectory from the starting point to the end point in free space.
[0142] S16: Determine the feasible area of the unmanned boat motion planning in the configuration space based on the equivalent obstacle model.
[0143] In some embodiments of the present invention, in step S15, when the initial posture and the final posture of the unmanned boat are the same, the method for solving the Minkowski sum of the dynamic unmanned boat and the obstacle specifically includes the following steps.
[0144] Step 1: Connect the convex vertices of the dynamic unmanned boat in sequence to obtain the convex hull of the dynamic unmanned boat.
[0145] The convex hull of the dynamic unmanned boat is represented as a point cloud in a two-dimensional real coordinate space, and the convex vertices in the point cloud are retained.
[0146] Step 2: Represent the obstacle as a point cloud in a two-dimensional real coordinate space and retain the vertices in the point cloud.
[0147] Step 3: Connect each convex vertex of the dynamic unmanned boat with the center of mass of the dynamic unmanned boat to form a set of vectors.
[0148] The vectors in the vector set are moved to make all the vector starting points consistent, and the end point of the moved vector is used as the Minkowski distance constructed based on the center of mass of the unmanned boat.
[0149] Step 4: Move the starting point of the vector set obtained in step 3, and make the starting point of the vector set coincide with the point cloud of the obstacle in sequence to obtain the end point of the vector set left after each move, and represent the obtained end point as a point set.
[0150] Step 5: Based on the point set obtained in step 4, the convex vertices of the point set are connected in sequence to obtain the convex hull, which is the Minkowski sum result of the dynamic unmanned boat and the obstacle, that is, the equivalent obstacle model of the dynamic unmanned boat and the obstacle.
[0151] Through steps 1 to 5, the unmanned boat can be particleized. The process of calculating the Minkowski sum and generating equivalent obstacles is shown in the attached figure. Figure 4 As shown in the figure. The equivalent obstacle model indicates the extent to which the unmanned boat can approach an obstacle without colliding with the obstacle. When the starting and final postures of the unmanned boat are the same, the reconstruction task can be achieved by translation.
[0152] In some embodiments of the present invention, in step S14, when the starting posture and final posture of the unmanned boat are different, the unmanned boat needs to be translated and rotated from the starting point to the end point in the process of realizing the reconstruction task to be the same as the final posture. At this time, the method for solving the Minkowski sum of the obstacle and the dynamic unmanned boat also includes the following steps.
[0153] Based on the convex vertex of the dynamic unmanned boat determined in step 1, the center of mass of the dynamic unmanned boat is taken as the center of the circle, and the distance from the convex vertex of the dynamic unmanned boat to the center of mass is taken as the radius, and a circle area is obtained by rotating one circle. The area within the circle is the maximum range determined by the rotation of the unmanned boat according to the center of mass.
[0154] Since the circumference is smooth and has no convex vertices, it is not conducive to the subsequent reconstruction of the path planning. Therefore, the circumscribed square of the circumference area is taken as the equivalent model of the dynamic unmanned boat to ignore the influence of the rotation of the mobile floating body. The process of constructing the equivalent model of the dynamic unmanned boat is shown in the attached figure. Figure 5 shown.
[0155] After generating the equivalent obstacle model, the feasible area of the unmanned boat motion planning in the configuration space can be obtained, laying the foundation for subsequent motion planning.
[0156] S2: Divide the feasible region into several convex spaces, sample at the region boundary, and use the weighted minimum consistency algorithm to search for the optimal path.
[0157] Since the shape of equivalent obstacles may be irregular, the configuration space may be non-convex, which will bring many difficulties to motion planning. Therefore, it is necessary to divide the configuration space into a set of convex spaces so that motion planning can be carried out in a convex space with better properties.
[0158] In some embodiments of the present invention, step S2 specifically includes the following steps:
[0159] S21: Add virtual boundaries to the configuration space. On the one hand, the virtual boundaries can compress the configuration space to avoid generating too long reconstruction trajectories. On the other hand, the virtual boundaries are conducive to the division of feasible areas and the calculation.
[0160] S22: The equivalent obstacle model is set at the center of the configuration space, and the area within the virtual boundary and outside the equivalent obstacle model is taken as a feasible area.
[0161] S23: Based on the convex vertex point set of the equivalent obstacle model, the convex vertices of the equivalent obstacle model are connected with their nearest boundary vertices and boundary midpoints, and the non-convex feasible area is divided into a series of convex areas.
[0162] S24: Divide the boundary line of each convex area into n equal parts to obtain a series of equally divided points on the boundary line of the convex area; based on the initial position and the position of the moving target point of each dynamic unmanned boat, that is, the starting point and the end point of the moving trajectory of the dynamic unmanned boat, determine the convex area to which the initial position and the position of the moving target point belong.
[0163] The number of convex areas that the dynamic unmanned boat needs to pass through from the initial position to the position of the moving target point is calculated in clockwise and counterclockwise directions respectively.
[0164] The direction with the least number of convex areas is selected as the direction for subsequent dynamic unmanned boat path planning.
[0165] The equally divided points on the boundary line of the convex area in this direction are used as feasible path points for subsequent path planning.
[0166] S25: Use the weighted minimum consistency algorithm to search for the optimal path for each dynamic unmanned boat to move.
[0167] In some embodiments of the present invention, step S25 specifically includes the following steps.
[0168] Define a path consisting of N path points, where the state of each path point satisfies:
[0169] ;
[0170] in, is the state value of path point i, that is, the length of the planned path from the current path point i to the end point, is the control input;
[0171] Randomly assign the initial state value of each path point ;
[0172] The minimum weighted consistency means that all path points eventually reach the following stable state:
[0173] ;
[0174] in, is the Leader node, which is the starting point and end point of the path. The initial state value of the end point is 0. Follower nodes are other path points in the path.
[0175] To achieve a minimal consistent state , set the control input of each path point for:
[0176] ;
[0177] in, is the set of neighbor path points, is the Euclidean distance between adjacent path points, that is, the weight between adjacent path points, is the length of the planned path from the current path point i to the end point.
[0178] Keep the status value of the Leader node in the path unchanged, and iteratively update the status value of the Follower node in the path in real time based on the control input until all path points in the path reach a stable minimum consistency state During the iterative update process, the state change value of the Follower node is determined by the state value and weight of its neighbor path point.
[0179] Finally, starting from the starting point, select the neighbor nodes of the current path point in turn. The smallest point is taken as the next path point until the end point, and the optimal path can be obtained.
[0180] S3: Use the optimal path as the path point of the minimum control trajectory class, set the initial time vector, and obtain the unconstrained minimum control trajectory.
[0181] Establish constraint conditions, and use whale optimization to optimize the minimum control trajectory based on the constraint conditions to obtain the optimal reconstruction trajectory of the unmanned boat.
[0182] It should be noted that the minimum control trajectory can generate a unique s-order minimum control trajectory according to each set of path points and the time vector corresponding to the path points. By modifying the path points and the time vector, the minimum control trajectory can be deformed and optimized.
[0183] In some embodiments of the present invention, step S3 specifically includes the following steps:
[0184] S31: For an m-dimensional, M-segment, N-order polynomial curve; where, N=2s-1 , s is the order of the minimized control quantity; the i-th segment of its trajectory can be expressed as:
[0185] ;
[0186] in, ,and is the coefficient matrix of the polynomial trajectory, is the basis of the polynomial, the starting time of the trajectory , the i-th timestamp of the trajectory corresponds to the sum of the time of the previous i trajectories, is the time vector of the trajectory, and .
[0187] Define an M-segment polynomial curve trajectory for:
[0188] ;
[0189] in, N=2s-1 , s is the order of the minimized control quantity; represents the i-th segment of the trajectory, and,
[0190] ;
[0191] in, is the coefficient matrix of the polynomial trajectory, and , is a basis of polynomials, and , is the time vector of the trajectory, and .
[0192] The polynomial curve trajectory The coefficient matrix and time vector are:
[0193] .
[0194] Define boundary constraints for the start and end of the trajectory and , .
[0195] Defining time Intermediate constraints at path points , ; Intermediate constraints Each column of corresponds to a dimension of the intermediate constraint; Constrain the degree for intermediate path points.
[0196] Based on the requirement that the polynomial curve is continuously differentiable, the polynomial curve coefficient matrix is used. Indicates time Constraints at the path points:
[0197] .
[0198] in, and The expressions are:
[0199] ;
[0200] in, .
[0201] The boundary conditions of the entire trajectory It is expressed as:
[0202] .
[0203] Based on the necessary and sufficient conditions for optimality and the coefficient matrix, a system of linear equations about the polynomial curve coefficient matrix, path points, and time vector is obtained:
[0204] ;
[0205] in, , , and The expressions are:
[0206] ;
[0207] Based on the optimal path point in the optimal path, the initial time vector is determined by the necessary and sufficient conditions for optimality and the linear equation system. , set boundary constraints and intermediate constraints , in order to directly obtain the multi-segment polynomial curve trajectory that minimizes the s-order control quantity, that is, the s-order minimum control quantity trajectory.
[0208] S32: Using whale optimization to optimize the s-order minimum control trajectory, specifically including the following steps.
[0209] The path point in the s-order minimum control trajectory is taken as the whale's position vector, and the cost function is written as:
[0210] ;
[0211] in, For obstacles, is the safe distance from obstacles, They are The trajectory polynomial of the axis, The maximum speed of the unmanned boat.
[0212] The cost function is used as the fitness function of whale optimization to optimize the path points in the s-order minimum control trajectory to obtain the optimal reconstruction trajectory of the unmanned boat.
[0213] It should be noted that for a reconstruction task, its constraints are mainly reflected in the speed of the unmanned boat and the distance from the obstacle. The modular unmanned boat used in this embodiment has full-state constraints, so there is no need to consider the maximum turning angle of the unmanned boat. The artificially defined task constraint function and cost function are denoted as , the constraints on the speed and position of the unmanned boat can be directly reflected in the polynomial curve coefficient matrix and the time vector according to the properties of the polynomial curve, and the linear equation system based on the polynomial curve coefficient matrix, path points and time vector can realize the conversion between path points and the polynomial curve coefficient matrix.
[0214] In some embodiments of the present invention, the following steps are further included:
[0215] S4: Establish an unmanned boat simulation model and a reconstruction task simulation environment, and verify the optimal reconstruction trajectory of the unmanned boat in this simulation environment.
[0216] In some embodiments of the present invention, step S4 specifically includes the following steps:
[0217] In order to verify the effectiveness of the modular unmanned boat motion planning method provided by the present invention, a modular unmanned boat reconstruction task experimental platform was built in the robot operating system ROS and its physical simulation environment Gazebo, and the modular unmanned boat motion planning method of steps S1-S3 was deployed for verification.
[0218] The simulated unmanned boat model built in Gazebo is shown in the attached figure. Figure 6As shown in the figure, its size ratio is completely based on the modeling of real modular unmanned boats. The kinematic and dynamic models are the same as those of real unmanned boats, and its movement process can be simulated with high fidelity. The modular unmanned boats operate in a simulated marine environment and are affected by the buoyancy of seawater, wave force and other forces, and physical realism is also considered. In addition, it is assumed that the stationary unmanned boat has dynamic positioning capability and can remain motionless in place, and it is regarded as an obstacle.
[0219] The unmanned boat model is equipped with an odometer, IMU, and D435i depth camera, and uses a cascade PID controller to complete attitude, speed, position, and trajectory tracking control;
[0220] The input of the propeller simulation model of the unmanned boat model is the angular velocity , angular velocity With thruster thrust The relationship is:
[0221] ;
[0222] in, is the thrust coefficient of the propeller.
[0223] After building the simulation system and completing the basic functional tests, the trajectory planning method was deployed on the unmanned boat to conduct simulation experiments on the reconstruction task.
[0224] As attached Figure 7 -Attached Fig. 9 As shown, in a reconstruction task of a specific embodiment of the present invention, the attached Figure 7 In the figure, the unmanned boat in the upper left corner needs to move to the lower right corner, and the trajectory is optimized using the third-order minimum control trajectory. Figure 8 -Attached Fig. 9 It can be seen from the simulation results shown that the trajectory obtained by the motion planning method provided by the present invention is smooth, consumes less time and energy, and meets safety constraints and various motion constraints.
[0225] Some embodiments of the present invention further provide a modular unmanned boat motion planning system for self-reconfiguration tasks, comprising:
[0226] at least one processor;
[0227] at least one memory for storing at least one program;
[0228] When at least one program is executed by at least one processor, the at least one processor implements a modular unmanned boat motion planning method for self-reconfiguration tasks.
[0229] Finally, it should be noted that: the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0230] The above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.
Claims
1. A modular unmanned boat motion planning method for self-reconfiguration tasks, characterized in that: The following steps are involved: S1: Obtain the initial configuration and target configuration of the modular unmanned boat, perform sliding matching on the initial configuration and the target configuration, and select the sub-configuration with the largest matching degree as the maximum common substructure of the initial configuration and the target configuration during the sliding matching process; perform multiple sliding matching on the initial configuration and the target configuration to obtain multiple maximum common substructures to determine the minimum undocking scheduling plan for the unmanned boat; Based on the scheduling scheme, an equivalent obstacle model is generated using the Minkowski sum to obtain a feasible area; S2: Divide the feasible region into several convex spaces, sample at the region boundary, and use a weighted minimum consistency algorithm to search for the optimal path; S3: Use the optimal path as the path point of the minimum control amount trajectory class, set the initial time vector, and obtain an unconstrained minimum control amount trajectory; establish constraint conditions, and use whale optimization to optimize the minimum control amount trajectory based on the constraint conditions to obtain the optimal reconstructed trajectory of the unmanned boat.
2. The modular unmanned boat motion planning method for self-reconfiguration tasks according to claim 1, characterized in that: Further comprising the steps of: S4: Establish an unmanned boat simulation model and a reconstruction task simulation environment, and verify the optimal reconstruction trajectory of the unmanned boat in this simulation environment.
3. The modular unmanned boat motion planning method for self-reconfiguration tasks according to claim 1, characterized in that: The step S1 specifically includes the following steps: S11: Based on the arrangement of the unmanned boats, the multi-unmanned boat modules are modeled as a grid matrix to describe the two-dimensional configuration of the multi-unmanned boat modules; S12: Obtain the maximum common substructure of the initial configuration and the target configuration through sliding matching. The specific implementation steps are as follows: Set the initial configuration matrix to , the target configuration matrix is ; in, m 0× n 0 is the size of the circumscribed rectangular matrix of the initial configuration, m t × n t The size of the bounding rectangle matrix of the target configuration; Construct the matching matrix M: ,and, ; Calculate the matching degree based on the matching degree matrix M : ; in, Defined as: ; in, is a matrix element; Select the matching degree during the sliding matching process The largest subconfiguration is taken as the largest common substructure; S13: performing multiple sliding matches to obtain multiple maximum common substructures, and then obtaining a minimum docking scheduling scheme for modular unmanned boats; in the multiple maximum common substructures, a single subconfiguration is a static unmanned boat, and a second or more subconfiguration is a dynamic unmanned boat; the minimum docking scheduling scheme includes at least the static and dynamic states of each unmanned boat and a moving target point; S14: Taking the stationary unmanned boat as an obstacle, generating a configuration space for reconstructing the unmanned boat; S15: Solve the Minkowski sum of the dynamic unmanned boat and the obstacle to obtain an equivalent obstacle model of the dynamic unmanned boat and the obstacle; S16: Determine a feasible area for motion planning of the unmanned boat in the configuration space based on the equivalent obstacle model.
4. The modular unmanned boat motion planning method for self-reconfiguration tasks according to claim 3, characterized in that: In step S15, when the initial posture and the final posture of the unmanned boat are the same, the method for solving the Minkowski sum of the dynamic unmanned boat and the obstacle specifically includes the following steps: Connect the convex vertices of the dynamic unmanned boat in sequence to obtain the convex hull of the dynamic unmanned boat; The convex hull of the dynamic unmanned boat is represented as a point cloud in a two-dimensional real coordinate space, and the convex vertices in the point cloud are retained; The obstacle is represented as a point cloud in a two-dimensional real coordinate space, and the vertices in the point cloud are retained; Connect each convex vertex of the dynamic unmanned boat with the center of mass of the dynamic unmanned boat to form a set of vectors; The vectors in the vector set are moved to make all the vector starting points consistent, and the end point of the moved vector is used as the Minkowski distance constructed based on the center of mass of the unmanned boat; Move the starting point of the vector set and make the starting point of the vector set coincide with the point cloud of the obstacle in sequence to obtain the end point of the vector set left after each movement, and represent the obtained end point as a point set; The convex vertices of the point set are connected in sequence to obtain the convex hull, which is the Minkowski sum result of the dynamic unmanned boat and the obstacle.
5. The modular unmanned boat motion planning method for self-reconfiguration tasks according to claim 4, characterized in that: In step S14, when the initial posture and the final posture of the unmanned boat are different, the method for solving the Minkowski sum of the obstacle and the dynamic unmanned boat further includes the following steps: With the center of mass of the dynamic unmanned boat as the center of the circle and the distance from the convex vertex of the dynamic unmanned boat to the center of mass as the radius, a circular area is obtained by rotating one circle; the circumscribed square of the circular area is taken as the equivalent model of the dynamic unmanned boat.
6. The modular unmanned boat motion planning method for self-reconfiguration tasks according to any one of claims 3 to 5, characterized in that: The step S2 specifically includes the following steps: S21: adding a virtual boundary to the configuration space; S22: setting the equivalent obstacle model at the center of the configuration space, and taking the area within the virtual boundary and outside the equivalent obstacle model as a feasible area; S23: Based on the convex vertex point set of the equivalent obstacle model, connect the convex vertex of the equivalent obstacle model with its nearest boundary vertex and boundary midpoint, and divide the non-convex feasible area into a series of convex areas; S24: dividing the boundary line of each convex area into n equal parts to obtain a series of equally divided points on the boundary line of the convex area; based on the initial position of each dynamic unmanned boat and the position of the moving target point, determining the convex area to which the initial position and the position of the moving target point belong; Calculate the number of convex areas that the dynamic unmanned boat needs to pass through from the initial position to the position of the moving target point in the clockwise direction and the counterclockwise direction respectively; The direction that crosses the least number of convex areas is selected as the direction for subsequent dynamic unmanned boat path planning; The equally divided points on the boundary line of the convex area in this direction are used as feasible path points for subsequent path planning; S25: Use the weighted minimum consistency algorithm to search for the optimal path for each dynamic unmanned boat to move.
7. The modular unmanned boat motion planning method for self-reconfiguration tasks according to claim 6, characterized in that: The step S25 specifically includes the following steps: Define a path consisting of N path points, where the state of each path point satisfies: ; in, is the length of the planned path from the current path point i to the end point, is the control input; Randomly assign the initial state value of each path point ; Set the control input for each path point for: ; in, is the set of neighbor path points, is the Euclidean distance between adjacent path points, that is, the weight between adjacent path points, is the length of the planned path from the current path point i to the end point; Stable minimum consistency state of each path point for: ; in, is the Leader node, which is the starting point and end point of the path. The initial state value of the end point is 0. Follower nodes, i.e. other path points in the path; Keep the state value of the Leader node in the path unchanged, and iteratively update the state value of the Follower node in the path based on the control input until all path points reach a stable minimum consistency state ; During the update process, the state change value of the Follower node is determined by the state value and weight of its neighbor path point; Starting from the starting point, select from the neighbor nodes of the current path point in turn The smallest point is taken as the next path point until the end point, and the optimal path is obtained.
8. The modular unmanned boat motion planning method for self-reconfiguration tasks according to claim 7, characterized in that: The step S3 specifically comprises the following steps: S31: Define an m-dimensional, M-segment, N-order polynomial curve trajectory : ; in, N=2s-1 , s is the order of the minimized control quantity; represents the i-th segment of the trajectory, and, ; in, is the coefficient matrix of the polynomial trajectory, and , is a basis of polynomials, and , is the time vector of the trajectory, and ; The polynomial curve trajectory The coefficient matrix and time vector are: ; Define the boundary constraints for the start of the trajectory and the boundary constraints for termination , ; Defining time Intermediate constraints at path points , ; The intermediate constraints Each column of corresponds to a dimension of the intermediate constraint; is the constraint order of the intermediate path points; Using the Polynomial Curve Coefficient Matrix Indicates time Constraints at the path points: ; in, and The expressions are: ; in, ; The boundary conditions of the entire trajectory It is expressed as: ; Based on the necessary and sufficient conditions for optimality and the coefficient matrix, the linear equation system of the polynomial curve coefficient matrix, path points and time vector is obtained: ; in, , , and The expressions are: ; Based on the optimal path point in the optimal path, the initial time vector is determined by the necessary and sufficient conditions for optimality and the linear equation system. , set boundary constraints and intermediate constraints , to obtain the s-order minimum control trajectory; S32: Use whale optimization to optimize the s-order minimum control trajectory, which specifically includes the following steps: The path point in the s-order minimum control trajectory is taken as the whale's position vector, and the cost function is written as: ; in, For obstacles, is the safe distance from obstacles, They are The trajectory polynomial of the axis, is the maximum speed of the unmanned boat; The cost function is used as the fitness function of whale optimization to optimize the path points in the s-order minimum control trajectory to obtain the optimal reconstruction trajectory of the unmanned boat.
9. The modular unmanned boat motion planning method for self-reconfiguration tasks according to claim 2, characterized in that: The step S4 specifically comprises the following steps: Build a modular unmanned boat reconstruction task experimental platform in the robot operating system ROS and its physical simulation environment Gazebo; A simulated unmanned boat model built in Gazebo, which is equipped with an odometer, IMU, and D435i depth camera, and uses a cascade PID controller to complete attitude, speed, position, and trajectory tracking control; The input of the propeller simulation model of the unmanned boat model is the angular velocity , angular velocity With thruster thrust The relationship is: ; in, is the thrust coefficient of the propeller.
10. A modular unmanned boat motion planning system for self-reconfiguration tasks, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the modular unmanned boat motion planning method for self-reconstruction tasks as described in any one of claims 1-9.
Citation Information
Patent Citations
Unmanned ship optimal path planning method based on reachable set
CN114839966A
Method for planning mooring trajectory of surface ship based on safe navigation channel
CN116382260A
