Autonomous mooring method and system for unmanned ships

By acquiring environmental data in real time and using visual recognition and laser radar technology to identify the location of the dock, combined with genetic algorithms to optimize the berthing path, the problem of flexibility and accuracy of unmanned ship berthing technology in complex environments is solved, and safe and efficient autonomous berthing is achieved. .

CN118502453BActive Publication Date: 2024-09-20TIMES TIANHAI (XIAMEN) INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410969809.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-09-20
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

Existing unmanned ship berthing technology lacks flexibility and adaptability, making it difficult to cope with complex and changeable marine environments. There is also a delay in processing real-time environmental data, which affects the accuracy and safety of berthing.

Method used

By installing sensors, cameras and lidar, real-time environmental data is obtained, visual recognition technology and lidar technology are used to identify the location and direction of the dock, the parking path is encoded as chromosomes, and the path is optimized using genetic algorithms to achieve autonomous navigation of unmanned ships and obstacles. avoid.

Benefits of technology

It improves the accuracy and safety of autonomous berthing of unmanned ships, can better adapt to complex environments, reduces manual operation requirements, reduces collision risks, and saves labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118502453B
    Figure CN118502453B
Patent Text Reader

Abstract

The present invention provides an autonomous mooring method and system for unmanned ships, and relates to the technical field of data processing. The method comprises: obtaining the surrounding environment data of the unmanned ship in real time; using visual recognition technology and laser radar technology to scan and analyze the situation of the dock to identify the location and direction of the dock; preliminarily setting path points according to the surrounding environment data of the unmanned ship, the location and direction of the dock, and the path points constitute a preliminary plan of the mooring path; encoding the mooring path of the preliminary plan into a chromosome, wherein each path point corresponds to a gene on the chromosome, and a population is initialized, including a plurality of different mooring path plans; determining an evaluation function for evaluating the pros and cons of each mooring path plan; and determining the corresponding individual from the population as the parent according to the evaluation function, wherein the individual is the corresponding mooring path plan. The present invention improves the autonomy and accuracy of mooring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to an autonomous mooring method and system for unmanned ships. Background Art

[0002] Existing unmanned ship berthing technologies mostly rely on preset paths and rules, lack flexibility and adaptability, and are difficult to cope with emergencies and complex and changing marine environments. In addition, these technologies also have certain defects in data processing.

[0003] For example, when traditional unmanned ship mooring systems process real-time environmental data, there may be delays, resulting in the unmanned ship being unable to respond in time, affecting the accuracy and safety of mooring. When fusing multi-sensor data, traditional technical methods may find it difficult to effectively integrate information from different sources, resulting in redundancy and conflict between data, reducing the reliability of mooring decisions. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an autonomous mooring method and system for unmanned ships, which improves the autonomy and accuracy of mooring.

[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0006] In a first aspect, an autonomous mooring method for an unmanned ship is provided, the method comprising:

[0007] The sensors, cameras and lidar installed on the unmanned ship can be used to obtain real-time data on the environment around the unmanned ship.

[0008] Use visual recognition technology and LiDAR technology to scan and analyze dock conditions to identify dock locations and directions;

[0009] Based on the data of the surrounding environment of the unmanned ship, the location and direction of the dock, the waypoints are initially set, and the waypoints constitute the preliminary plan of the berthing path;

[0010] Encode the parking path of the preliminary plan into a chromosome, where each path point corresponds to a gene on the chromosome, and initialize a population containing multiple different parking path plans;

[0011] Determine an evaluation function for evaluating the quality of each parking path plan;

[0012] According to the evaluation function, the corresponding individual is determined from the population as the parent, where the individual is the corresponding parking path plan;

[0013] Randomly determine two parent individuals, exchange some genes, generate new offspring individuals, randomly change the genes in the individuals, and continuously iterate and optimize the parking path plan in the population until the preset number of iterations is reached to obtain the final parking path;

[0014] The unmanned ship automatically navigates according to the final berthing path to identify and avoid obstacles in real time and adjust the heading, speed and position of the unmanned ship; the calculation formula of the evaluation function is:

[0015] ;

[0016] Among them, F is the comprehensive evaluation score, which is used to evaluate the pros and cons of each parking path plan; , , and is the weight coefficient; ( , ) is the coordinate of the i-th path point on the path; is the path point i to the path point The speed between and The waypoints to path point i and path point i to path point The direction angle between is the distance from path point i to the nearest obstacle; i represents the index of the path point, n represents the total number of path points on the path, and the summation symbol It means to sum each adjacent path point on the path. Indicates that the intermediate path points on the path are summed.

[0017] Furthermore, the sensors, cameras and lidar installed on the unmanned ship can obtain surrounding environment data in real time, including:

[0018] Configure and activate sensors, cameras and lidar on unmanned vessels;

[0019] Generate an initial set of particles, each particle represents a state of the ship in the environment, including the position, speed and attitude of the ship itself;

[0020] Obtain real-time data about the environment around the unmanned ship through sensors, cameras and lidar;

[0021] Preprocess the acquired raw environmental data and extract key information to obtain preprocessed data;

[0022] According to the state transition model and the current control instructions, predict the state of each particle at the next moment;

[0023] When new preprocessed data arrives, the observation model is used to calculate the degree of match between each particle and the new preprocessed data;

[0024] Update the weight of each particle according to the matching degree, resample according to the particle weight, and after resampling, reset the weights of all particles to equal values;

[0025] According to the updated particle set and its weight, the final current environment state is determined by weighted averaging method.

[0026] Furthermore, the weight of each particle is updated according to the matching degree, including:

[0027] pass Update the weight of each particle, where is the weight of the i-th particle at time k; yes The weight of the i-th particle at the moment; is the observation function, which is used to transform the state of the i-th particle at time k Mapping to observation space; is the observed data at time k; is the covariance matrix of the observation noise at time k; is the covariance matrix The inverse matrix of It is the transpose of the difference between the particle state mapped by the observation function and the observed data; is the exponential part of the likelihood function, which is used to calculate how well a given particle state matches the observed data.

[0028] Furthermore, visual recognition technology and LiDAR technology are used to scan and analyze the docking situation to identify the dock location and direction, including:

[0029] Use LiDAR to scan the dock area. During the scanning process, the LiDAR emits laser pulses and measures the time from the emission to the return of each pulse. When the LiDAR receives the returned laser pulse, it uses the round-trip time of the pulse to calculate the distance between the object and the sensor.

[0030] Determine the specific position of the object in three-dimensional space based on the distance between the object and the sensor and the angle information at the time of emission;

[0031] According to the specific position of the object in three-dimensional space, the spatial structure and object distribution of the dock area can be obtained;

[0032] The camera captures the image data of the dock and processes the 3D point cloud data generated by the LiDAR to extract the geometric shape and structural features of the dock;

[0033] Processing the image data of the dock captured by the camera to identify and locate the specific position and direction of the dock in the image;

[0034] The actual position and orientation of the pier can be determined based on the pier's geometric shape, structural characteristics, and the pier's specific position and orientation in the image.

[0035] Furthermore, the 3D point cloud data generated by the LiDAR is processed to extract the geometric shape and structural features of the wharf, including:

[0036] Determine the number of clusters K, initialize K cluster centers, and randomly determine K points as initial centers;

[0037] Assign each point to the corresponding cluster center to form K clusters;

[0038] For each cluster, calculate the average value of all points and update the cluster center to the average value to obtain the final clustering result;

[0039] Based on the clustering results, the point cloud clusters belonging to the dock area are identified;

[0040] Feature extraction is performed on the point cloud clustering of the dock area, including calculating the geometric features of the point cloud and identifying the structural features of the dock.

[0041] Furthermore, the observation function The calculation formula is:

[0042] ;

[0043] in, and are the x and y position coordinates of the ith particle in the global coordinate system at time k; , , and is the coefficient; , , and is the coefficient; and are the observation noises in different observation dimensions at time k, representing the uncertainty and random error of the sensor.

[0044] In the second aspect, an unmanned ship autonomous mooring system includes:

[0045] The acquisition module is used to obtain the surrounding environment data of the unmanned ship in real time through the sensors, cameras and laser radar installed on the unmanned ship; use visual recognition technology and laser radar technology to scan and analyze the docking situation to identify the dock location and direction; preliminarily set path points based on the surrounding environment data of the unmanned ship, the dock location and direction, and the path points constitute a preliminary plan for the berthing path; encode the berthing path of the preliminary plan into a chromosome, wherein each path point corresponds to a gene on the chromosome, and initialize a population including multiple different berthing path plans; determine an evaluation function for evaluating the pros and cons of each berthing path plan; wherein the calculation formula of the evaluation function is:

[0046] ;

[0047] Among them, F is the comprehensive evaluation score, which is used to evaluate the pros and cons of each parking path plan; , , and is the weight coefficient; ( , ) is the coordinate of the i-th path point on the path; is the path point i to the path point The speed between and The waypoints to path point i and path point i to path point The direction angle between is the distance from path point i to the nearest obstacle; i represents the index of the path point, n represents the total number of path points on the path, and the summation symbol It means to sum each adjacent path point on the path. Indicates the sum of the intermediate path points on the path;

[0048] The processing module is used to determine the corresponding individual from the population as the parent according to the evaluation function, wherein the individual is the corresponding parking path plan; randomly determine two parent individuals, exchange some genes, generate new offspring individuals, randomly change the genes in the individuals, and continuously iterate and optimize the parking path plan in the population until a preset number of iterations is reached to obtain the final parking path; the unmanned ship automatically navigates according to the final parking path to identify and avoid obstacles in real time, and adjust the heading, speed and position of the unmanned ship.

[0049] According to a third aspect, a computing device includes:

[0050] one or more processors;

[0051] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method described.

[0052] In a fourth aspect, a computer-readable storage medium stores a program, and when the program is executed by a processor, the method described is implemented.

[0053] The above scheme of the present invention includes at least the following beneficial effects.

[0054] By acquiring real-time data on the surrounding environment of the unmanned ship and using visual recognition technology and lidar technology to accurately identify the location and direction of the dock, it is possible to autonomously set the berthing path, greatly improving the autonomy and accuracy of berthing.

[0055] By preliminarily setting the path points, forming a preliminary plan for the mooring path, and combining the genetic algorithm to continuously optimize the mooring path, the unmanned ship can better adapt to the complex and changeable marine environment and achieve safe and effective mooring. This method can quickly find the optimal solution among many possible mooring paths by encoding the mooring path as chromosomes and using genetic algorithms for path optimization, thereby improving the efficiency of mooring. During the mooring process, the unmanned ship can identify and avoid obstacles in real time, and adjust the heading, speed and position, effectively reducing the risk of collision and ensuring the safety of the mooring process. This method realizes the autonomous mooring of unmanned ships, reduces the need for manual operation and monitoring, thereby saving labor costs and reducing errors caused by human factors. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a flow chart of an autonomous mooring method for an unmanned ship provided by an embodiment of the present invention.

[0057] Figure 2 It is a schematic diagram of an autonomous mooring system for an unmanned ship provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0059] like Figure 1 As shown, an embodiment of the present invention provides an autonomous berthing method for an unmanned ship, the method comprising the following steps:

[0060] Step 11, obtaining real-time environmental data of the unmanned ship through sensors, cameras and laser radars installed on the unmanned ship;

[0061] Step 12, using visual recognition technology and laser radar technology to scan and analyze the docking situation to identify the dock location and direction;

[0062] Step 13, preliminarily setting path points based on the surrounding environment data of the unmanned ship, the location and direction of the dock, and the path points constitute a preliminary plan for the berthing path;

[0063] Step 14, encoding the parking path of the preliminary plan into a chromosome, wherein each path point corresponds to a gene on the chromosome, and initializing a population including multiple different parking path plans;

[0064] Step 15, determining an evaluation function for evaluating the quality of each parking path solution;

[0065] Step 16, according to the evaluation function, determine the corresponding individual from the population as the parent, wherein the individual is the corresponding parking path solution;

[0066] Step 17, randomly determine two parent individuals, exchange some genes, generate new offspring individuals, randomly change the genes in the individuals, and continuously iterate and optimize the parking path plan in the population until the preset number of iterations is reached to obtain the final parking path;

[0067] Step 18, the unmanned ship automatically navigates according to the final berthing path to identify and avoid obstacles in real time, and adjust the heading, speed and position of the unmanned ship.

[0068] In the embodiment of the present invention, step 11 can ensure that the unmanned ship has real-time environmental perception capabilities, which helps to improve the safety and accuracy of the berthing process. Step 12, by accurately identifying the location and direction of the dock, it can ensure that the unmanned ship can accurately berth at the predetermined location, reducing berthing failures or safety accidents caused by misjudgment or inaccurate information. Step 13, the preliminary setting of the path points provides a basic navigation route for the unmanned ship, which helps the ship to approach and finally dock at the dock efficiently and safely, reducing unnecessary navigation and adjustment time. Step 14, through the encoding method of the genetic algorithm, the berthing path problem is converted into a mathematical problem, which is convenient for solving using the optimization algorithm, thereby improving the flexibility and optimization efficiency of path planning. Step 15, the evaluation function can help the algorithm quickly converge to the optimal solution, thereby improving the speed and quality of berthing path planning. Step 16, by selecting excellent parent individuals, it can ensure that the genetic algorithm continuously approaches a better solution during the iteration process, accelerating the search for the best berthing path. Step 17, new offspring individuals are generated through crossover and mutation operations, which increases the diversity of the population and helps the algorithm jump out of the local optimum and find the global optimal solution. Step 18: The unmanned ship automatically navigates according to the optimized berthing path, which can significantly improve the accuracy and efficiency of berthing, while reducing the risk of human error and improving the overall safety of shipping.

[0069] In a preferred embodiment of the present invention, step 11 may include:

[0070] Step 111, configuring and starting the sensors, cameras and laser radars on the unmanned ship, specifically including: installing the required sensors, cameras and laser radars on the unmanned ship, configuring the parameters of these devices, such as sampling frequency, resolution, detection range, etc., starting these devices, and ensuring that they can work normally and output data;

[0071] Step 112, generating an initial particle set, each particle represents a state of the ship in the environment, including the position, speed and attitude of the ship itself, specifically including: defining a particle structure, including information such as the position, speed and attitude of the ship, generating a certain number of particles according to the initial state of the ship or prior knowledge, forming an initial particle set, and the initial state of each particle can have a certain degree of randomness to reflect the uncertainty of the initial state;

[0072] Step 113, obtaining the surrounding environment data of the unmanned ship in real time through sensors, cameras and laser radars, specifically including: continuously collecting the surrounding environment data through sensors, cameras and laser radars, the data including distance measurement, image data, obstacle locations, etc., to ensure the real-time and accuracy of the data;

[0073] Step 114, preprocessing the acquired raw environmental data, extracting key information to obtain preprocessed data, specifically including: parsing the received raw data into a usable data structure, such as point cloud data; each point cloud data point should contain its three-dimensional coordinates (x, y, z) in space and reflection intensity. The spatial position of the obstacle can be determined by using the three-dimensional coordinates of each point in the point cloud data. The distance between the obstacle and the laser radar can be determined by calculating the Euclidean distance between the laser radar and each point cloud data point. For dynamic obstacles, their speed can be calculated by tracking the changes in point cloud data in consecutive frames; using the nearest neighbor matching algorithm to match the obstacle point clouds between different frames, and calculating the displacement of the obstacle between consecutive frames according to the matching results, and then estimating its speed, specifically including:

[0074] Get two consecutive frames of point cloud data, recorded as Frame1 and Frame2, and ensure that each point cloud data point contains three-dimensional coordinates (x, y, z); for each point P1 in Frame1, find the nearest point P2 in Frame2, which can be achieved by calculating the Euclidean distance between P1 and all points in Frame2; the selection criterion of the nearest point is based on minimizing the distance, that is, the point closest to P1 is selected as the matching point P2. A distance threshold can be set. If the distance of the nearest point exceeds this threshold, it is considered that no valid matching point is found, which helps to eliminate false matches; after obtaining all matching pairs (P1, P2), screen them to remove false matches. For example, matching pairs with too large distance changes can be excluded because they may be caused by noise or false matches. For the screened valid matching pairs (P1, P2), calculate the displacement vector between each pair of points. The displacement vector can be obtained by subtracting: Di = P2-P1; the time interval Δt between the two frames is known (which can be obtained from the sampling frequency or timestamp of the lidar); use the displacement vector divided by the time interval to calculate the velocity vector. The velocity vector obtained in this way represents the average velocity of the obstacle between two consecutive frames, and outputs the estimated obstacle velocity vector; through the above steps, the obstacle point clouds between different frames can be matched, and the speed of the obstacle can be estimated based on the matching results. This method is particularly useful in dynamic environments and can help unmanned ships perceive and respond to the motion state of surrounding obstacles in real time.

[0075] Receive raw image data from the camera, perform preprocessing operations on the image, such as grayscale, noise reduction, contrast enhancement, etc., to improve image quality, and apply Canny edge detection to identify edge information in the image, including: converting the input color image into a grayscale image, applying a Gaussian filter to the grayscale image to reduce image noise and detail levels, using the Sobel operator to calculate the gradient strength and direction of each pixel in the image, comparing the gradient strength of the current pixel with the gradient strength of its adjacent pixels along the gradient direction, and only retaining the points with the largest local gradient, setting two thresholds (high threshold and low threshold), comparing the gradient strength with the two thresholds to determine which edges are certain, which are possible, and which should be suppressed, and using the edges detected by the high threshold to "track" the low threshold edges, thereby connecting the broken edges to form a complete edge contour;

[0076] The Gaussian pyramid is constructed by applying different degrees of Gaussian blur to the original image. This involves convolving the image with Gaussian kernels of different scales (i.e. different σ values) to simulate the performance of the image at different scales; in each layer of the Gaussian pyramid, the values ​​of each pixel point are compared with those of its adjacent scales and adjacent pixels to find local extreme points, which will be used as candidate key points; the contrast of each candidate key point is calculated (usually the eigenvalue of the Hessian matrix at the key point), and a threshold is set. Key points below this threshold will be considered to have low contrast and removed; unstable points caused by edge effects are excluded by calculating the principal curvature ratio of the key point (i.e. the ratio of the maximum eigenvalue to the minimum eigenvalue of the Hessian matrix). Based on the local gradient direction of the image, one or more main directions are assigned to each key point using the gradient direction distribution of pixels in the neighborhood of the key point; the gradient direction and magnitude of the pixels are sampled in the neighborhood around the key point, and the gradient information is converted into a histogram. Usually, an 8-directional histogram is used to represent the gradient distribution of pixels in the neighborhood. A 128-dimensional SIFT descriptor is generated based on the histogram (usually 4×4 sub-regions, each sub-region has gradient information in 8 directions), and the descriptor is normalized to reduce the impact of illumination changes on features.

[0077] If the original image is a color image, first convert it to a grayscale image. The Otsu method can be used to automatically calculate the optimal threshold. This method determines a threshold based on the grayscale histogram of the image so that the inter-class variance between the segmented foreground and background is maximized. Iterate through each pixel of the image and compare the pixel value with the threshold. If the pixel value is greater than or equal to the threshold, the pixel is set to the foreground (for example, white), indicating that it may be an obstacle. If the pixel value is less than the threshold, the pixel is set to the background (for example, black). Use a connected region marking algorithm (such as DFS) to mark continuous foreground pixel regions. Each marked region may represent a potential obstacle.

[0078] For each marked region, extract features such as area, perimeter, average grayscale value, boundary complexity, etc.; use a labeled data set (including obstacles and background areas) to train a SVM classifier. The data set should contain various obstacle and background samples to ensure the generalization ability of the classifier; input the feature vector of each region into the trained classifier, and the classifier will output the probability or label of whether the region is an obstacle or background; for the region identified as an obstacle, calculate its center of mass or bounding box to determine its specific position in the image. The center of mass can be obtained by calculating the average value of all pixel coordinates in the region, and the bounding box can be determined by finding the minimum and maximum x, y coordinates of the region.

[0079] The area of ​​the obstacle is estimated by counting the number of pixels in the area identified as an obstacle. The area can be used as a measure of the size of the obstacle. The convex hull algorithm is used to simplify the boundary shape of the obstacle. The shape of the obstacle can be approximated by fitting an ellipse (using the least squares method).

[0080] Step 115, based on the state transition model and the current control instructions, predict the state of each particle at the next moment, specifically including: obtaining the current control instructions from the control system or user input, these instructions include speed, acceleration, steering angle, etc. For each particle in the particle set, define a state vector to represent the state of the particle. In the scenario of an unmanned ship, the state vector includes the position of the ship ( , ) and direction . Select a particle from the particle collection and get its current state, including the position of the ship ( , ) and heading ( represents the current moment); obtain control instructions, including the ship's linear speed and heading change rate (which can be regarded as angular velocity), which are recorded as and ; Use the ship's kinematic model to predict the state at the next moment. For example, for an unmanned ship, its kinematic model can be expressed as:

[0081]

[0082]

[0083] ;

[0084] ;

[0085] in, is the time step, is the linear speed of the ship, is the angular velocity, is the acceleration. These equations are used to predict the state at the next moment based on the current state and control instructions; the calculated state at the next moment ( , , ) is assigned to the particle, replacing its previous state. Repeat the above steps until the states of all particles are updated.

[0086] Step 116, when new pre-processed data arrives, the observation model is used to calculate the matching degree between each particle and the new pre-processed data, which specifically includes:

[0087] Using the observation function Map the state of the particle to the observation space using the formula Calculate the difference between the predicted observation and the actual observation, is the observed data at time k; the exponential part of the likelihood function is used to calculate the matching degree Q:

[0088] ;

[0089] in, is the covariance matrix of the observation noise at time k; is the covariance matrix The inverse matrix of is used to assign the calculated matching degree Q to each particle. This value represents the degree of consistency between the particle state and the observed data.

[0090] Step 117, updating the weight of each particle according to the matching degree, resampling according to the weight of the particle, and after resampling, resetting the weights of all particles to equal values;

[0091] Step 118, based on the updated particle set and its weights, the final current environmental state is determined by weighted averaging, specifically including: multiplying the state value of each particle in this dimension by its weight, then adding the weighted state values ​​of all particles, and finally dividing by the sum of the particle weights. In this way, the environmental state estimate obtained will be a weighted average value that integrates the information of all particles, in which particles with higher weights have a greater impact on the final result.

[0092] In the embodiment of the present invention, step 111 can ensure that the unmanned ship has the ability to fully and accurately perceive the surrounding environment. Step 112, by initializing the particle set, a basis is provided for the subsequent particle filter algorithm, so that the algorithm can quickly converge to the real state of the unmanned ship, and the accuracy and response speed of positioning are improved. Step 113, real-time acquisition of environmental data provides the unmanned ship with instant environmental perception capabilities, which helps the ship to make quick and accurate decisions and improves the safety and efficiency of navigation. Step 114, the preprocessing step can remove noise and redundant information in the original data, and extract key information that is crucial to the navigation and positioning of the unmanned ship, thereby improving the efficiency and accuracy of data processing. Step 115, by predicting the state of the particles at the next moment, the unmanned ship can understand its possible position and movement trend in advance. Step 116, by calculating the matching degree between the particles and the new data, the degree of reflection of the current particle set on the real state of the unmanned ship can be accurately evaluated. Step 117, by updating the particle weight and resampling, it can be ensured that the particle set is always focused near the real state of the unmanned ship, thereby improving the accuracy and stability of positioning. Step 118, using the weighted average method to integrate the information of all particles to determine the current environmental state, can make full use of the diversity of the particle set, reduce the impact of the error of individual particles on the final result, and thus obtain a more accurate and robust state estimation.

[0093] In a preferred embodiment of the present invention, the weight of each particle is updated according to the matching degree, including:

[0094] pass Update the weight of each particle, where is the weight of the i-th particle at time k; yes The weight of the i-th particle at the moment; is the observation function, which is used to transform the state of the i-th particle at time k Mapping to observation space; is the observed data at time k; is the covariance matrix of the observation noise at time k; is the covariance matrix The inverse matrix of It is the transpose of the difference between the particle state mapped by the observation function and the observed data; is the exponential part of the likelihood function, which is used to calculate how well a given particle state matches the observed data.

[0095] In the embodiment of the present invention, by updating the particle weights according to the degree of matching and then resampling, the algorithm can pay more attention to particles that are more consistent with the observed data, thereby improving the accuracy of state estimation. By continuously updating the particle weights and resampling, the algorithm can adapt to these changes more quickly and provide more accurate state estimation.

[0096] In a preferred embodiment of the present invention, the observation function The calculation formula is:

[0097] ;

[0098] in, and are the x and y position coordinates of the ith particle in the global coordinate system at time k; , , and is the coefficient; , , and is the coefficient; and are the observation noises in different observation dimensions at time k, representing the uncertainty and random error of the sensor.

[0099] In the embodiment of the present invention, the observation function has high flexibility because it allows to adapt to different application scenarios and sensor characteristics by adjusting different coefficients. The function includes the observation noise term and , which reflects the uncertainty and random errors of the sensor in actual measurement. By incorporating these noise factors into the model, the algorithm can more accurately simulate the observation conditions of the real world, thereby improving the robustness of state estimation. This function can process two dimensions of observation data at the same time. Multi-dimensional observation can provide richer information and help to estimate the state of the particle more accurately.

[0100] In a preferred embodiment of the present invention, step 12 may include:

[0101] Step 121, use a laser radar to scan the dock area. During the scanning process, the laser radar emits laser pulses and measures the time from emission to return of each pulse. When the laser radar receives the returned laser pulse, the round-trip time of the pulse is used to calculate the distance between the object and the sensor. Specifically, the laser radar emits laser pulses according to the set frequency and angle range. The laser pulses are reflected back after encountering the object and are received by the laser radar. The internal timer of the laser radar records the round-trip time from emission to reception of each laser pulse. The distance between the object and the laser radar is calculated by the formula "distance = (speed of light × round-trip time) / 2" using the known laser pulse speed (speed of light) and the measured round-trip time.

[0102] Step 122, according to the distance between the object and the sensor, and the angle information at the time of emission, determine the specific position of the object in the three-dimensional space, specifically including: obtaining the distance data between the object and the sensor measured by each laser pulse from the laser radar, and recording the horizontal angle and vertical angle (if the laser radar supports vertical scanning) when each laser pulse is emitted; taking the position of the laser radar as the origin, setting the X-axis, Y-axis and Z-axis, the X-axis and Y-axis forming a horizontal plane, and the Z-axis being perpendicular to the horizontal plane, using the distance data and the horizontal angle, and calculating the coordinates of the object on the XY plane through the conversion formula from polar coordinates to rectangular coordinates, the formula is:

[0103] X = distance × cos (horizontal angle);

[0104] Y = distance × sin (horizontal angle);

[0105] If the LiDAR supports vertical scanning, the vertical angle is used to calculate the height of the object on the Z axis. The formula is:

[0106] Z = distance x sin (vertical angle).

[0107] All calculated 3D coordinate points are combined to form a 3D point cloud dataset, where each point represents the position of a surface point of an object scanned by the LiDAR.

[0108] Step 123, according to the specific position of the object in the three-dimensional space, to obtain the spatial structure and object distribution of the wharf area, specifically including: opening the selected point cloud processing software (such as CloudCompare, MeshLab, etc.), importing the three-dimensional coordinate data file obtained by the laser radar scanning, usually in .ply, .pcd or .las format; adjusting the color mapping of the point cloud to distinguish points of different heights or densities; setting a suitable viewing angle and zoom ratio so that the entire wharf area can be clearly viewed, rendering the point cloud data in the software, and generating a three-dimensional point cloud map; in the three-dimensional point cloud map, observing the distribution and density changes of the point cloud as a whole, identifying the approximate range of the wharf area, and obvious spatial structures such as shorelines, yards and roads, zooming in on specific areas to understand the spatial structure in more detail, using the slicing function to view the point cloud distribution at different height levels, and further confirming the structural features, using the annotation tool in the software to annotate the identified spatial structure on the point cloud map, and using the measurement tool to obtain information such as the size, position and relative relationship of the structure;

[0109] Step 124, capturing the image data of the wharf by a camera, processing the three-dimensional point cloud data generated by the laser radar to extract the geometric shape and structural features of the wharf, may include: step 1241, determining the number of clusters K, initializing K cluster centers, and randomly determining K points as initial centers; step 1242, assigning each point to a corresponding cluster center to form K clusters; step 1243, for each cluster, calculating the average value of all points, updating the cluster center to the average value, to obtain a final clustering result; step 1244, identifying the point cloud clusters belonging to the wharf area according to the clustering results; step 1245, extracting features from the point cloud clusters in the wharf area, including calculating the geometric features of the point cloud and identifying the structural features of the wharf;

[0110] Step 125, processing the image data of the dock captured by the camera to identify and locate the specific position and direction of the dock in the image;

[0111] Step 126 , determining the actual position and direction of the pier based on the geometric shape and structural features of the pier and the specific position and direction of the pier in the image.

[0112] In an embodiment of the present invention, by scanning the dock area with a laser radar, the distance between the object and the sensor can be accurately measured, and the specific position of the object in three-dimensional space can be determined in combination with the angle information. This method provides centimeter-level positioning accuracy, which helps to ensure accurate judgment of the dock's position and direction. Using the three-dimensional point cloud data generated by the laser radar, detailed information on the spatial structure and object distribution of the dock area can be obtained, which helps to understand the overall layout of the dock. By capturing the image data of the dock with a camera and combining it with the three-dimensional point cloud data generated by the laser radar, more accurate dock geometry and structural features can be extracted, improving the accuracy and robustness of dock identification. This method can realize automatic identification and positioning of the dock, reduce dependence on manual operations, and improve the automation and intelligence level of dock operations.

[0113] Among them, step 1241, obtains the generated three-dimensional point cloud data file from the lidar device, imports the data using PCL software for processing point cloud data, cleans the data, removes possible noise points or outliers, and uses histograms or scatter plots to visualize the distribution of point cloud data on each coordinate axis (X, Y, Z). By observing these charts, dense areas and sparse areas in the data are identified, which represent different objects or scene parts. Set a range of K values, usually starting from 2 and gradually increasing. Randomly select K points as the initial clustering centers, cluster the point cloud data according to these centers (the K-means algorithm can be used), calculate the centroid of each cluster, and calculate the sum of the squares of the distances from all points to the centroid of the cluster to which they belong (i.e., SSE, sum of squared errors), record the SSE corresponding to each K value, plot the K value and the corresponding SSE into a curve, observe the changing trend of the SSE curve, and find the position where the SSE reduction rate slows down significantly. This point is usually called the "elbow". The K value corresponding to the "elbow" is considered to be a better number of clusters because it no longer significantly reduces the error when adding more clusters; after determining the optimal K value, randomly select K points from the point cloud data as the initial clustering centers to ensure that these points are relatively evenly distributed in three-dimensional space to avoid the clustering algorithm falling into a local optimum during initialization.

[0114] Step 1242, for each point in the point cloud, calculate its Euclidean distance with the K initial cluster centers respectively, assign each point to the cluster center closest to it, and form K initial clusters. A data structure such as a KD tree can be used to accelerate the nearest neighbor search process, which specifically includes: constructing a KD tree based on the point cloud data. The KD tree is a tree data structure that stores instance points in a k-dimensional space for fast retrieval; selecting the axis with the largest variance, using the point corresponding to the median on the axis as the split point, dividing the data set into two subsets, and then recursively The two subsets are divided until only one data point remains in the subset; for each point P in the point cloud, the Euclidean distance between it and the K initial cluster centers is calculated respectively; for each point P, its distance with the K cluster centers is compared, and the nearest cluster center Ci is found, and the point P is assigned to the cluster center Ci, that is, the point P belongs to the cluster centered on Ci. After the above steps, each point is assigned to a cluster center. According to the assignment results, the point cloud data is divided into K initial clusters, and each cluster contains all the points assigned to the cluster.

[0115] Step 1243, for each cluster, calculate the average values ​​of the x, y, and z coordinates of all the points therein respectively. These average values ​​will be used as new cluster centers. The center of each cluster is updated to the average value calculated in the previous step. Repeat steps 1242 and 1243 until the position change of the cluster center is less than the preset threshold or the maximum number of iterations is reached. After each iteration, record and observe the changes in the cluster to ensure the convergence of the algorithm.

[0116] Step 1244, import the dock image data captured by the camera, pre-process the image (such as denoising, enhancement, etc.) to extract useful feature information, align the point cloud data with the image data to ensure the spatial correspondence between the two, use the color, texture and other information in the image data to assist in determining which clusters belong to the dock area, and perform a comprehensive analysis based on the location, shape and size of the clusters. Based on the above analysis, screen out the point cloud clusters belonging to the dock area.

[0117] Step 1245, for the identified dock area clusters, calculate their area and other geometric features, and use the convex hull method to estimate the cluster boundaries and areas, and further analyze the internal structure of the point cloud clusters, such as identifying key structures such as shorelines, yards, and roads through the density distribution of point clouds. The DBSCAN algorithm can be used to assist in identifying specific structures, and the calculated geometric features and identified structural features are integrated to generate a comprehensive description report of the dock area, including information such as the location, size, shape, and key structural features of the clusters.

[0118] In a preferred embodiment of the present invention, the calculation formula of the evaluation function is:

[0119] ;

[0120] Among them, F is the comprehensive evaluation score, which is used to evaluate the pros and cons of each parking path plan; , , and is the weight coefficient; ( , ) is the coordinate of the i-th path point on the path; is the path point i to the path point The speed between and The waypoints to path point i and path point i to path point The direction angle between is the distance from path point i to the nearest obstacle; i represents the index of the path point, n represents the total number of path points on the path, and the summation symbol It means to sum each adjacent path point on the path. Indicates that the intermediate path points on the path are summed.

[0121] In the embodiment of the present invention, the advantages and disadvantages of the parking path are comprehensively evaluated by combining multiple factors (path length, driving time, direction change and safety), so as to more comprehensively reflect the actual feasibility of the path. By adjusting the weight coefficient, the importance of certain factors can be emphasized or weakened according to different scenarios and needs; based on factors such as path length, driving speed, direction change and distance from obstacles, the evaluation function can provide more accurate path evaluation results, which is helpful to select the optimal parking path. By introducing the distance to the nearest obstacle, the evaluation function not only considers the efficiency of the path, but also takes into account the safety of driving, which helps to avoid potential collision risks.

[0122] In another preferred embodiment of the present invention, the above step 13 may include:

[0123] The surrounding environment data, such as water depth, water flow speed, wind direction, etc., are collected through sensors or other data sources on the unmanned ship. At the same time, the precise location and direction of the dock are obtained. Based on the collected data and the location of the dock, a path planning algorithm (such as A*) is used to preliminarily plan a path from the current location of the unmanned ship to the dock. Key locations are selected as path points on the preliminarily planned path. These points are usually turning points, points that need to slow down or accelerate, etc.

[0124] Step 14, convert the position, speed and direction information of each path point into digital code. For example, the position can be represented by latitude and longitude or relative coordinates, and the speed and direction can be represented by specific numerical values. These encoded path point information are arranged in sequence to form a chromosome. The information of each path point is used as a gene on the chromosome to generate multiple different chromosomes, each chromosome representing a different parking path plan, thereby forming an initial population.

[0125] Step 15: Determine the factors used to evaluate the quality of the path plan, such as path length, safety (distance from obstacles), driving stability (frequency and amplitude of direction changes), etc., assign a weight to each evaluation factor to reflect its importance in the overall evaluation, and combine the evaluation factors and weights to construct an evaluation function , used to calculate the score of each path solution.

[0126] Step 16, use the evaluation function to score each individual (path plan) in the population, and select the individual with a higher score as the parent according to the scoring result, which can be achieved by the roulette wheel selection method.

[0127] Step 17, randomly select two parent individuals, exchange some genes through crossover operations (such as single-point crossover, multi-point crossover, etc.), generate new offspring individuals, and perform random mutation on the newly generated offspring individuals, that is, randomly change the values ​​of certain genes to increase the diversity of the population, repeat the above selection, crossover and mutation process, and continuously iterate and optimize the path plan in the population until the preset number of iterations is reached or other stopping conditions are met.

[0128] Step 18: Decode the optimized chromosome (berthing path plan) into actual path points, speed and direction information, and the unmanned ship will automatically navigate based on this information. During the voyage, the sensor will identify the surrounding environment in real time, avoid obstacles, and dynamically adjust the heading, speed and position based on real-time environmental data and ship status to ensure safe and accurate docking at the dock.

[0129] Figure 2 As shown, an embodiment of the present invention further provides an unmanned ship autonomous mooring system 20, comprising:

[0130] The acquisition module 21 is used to obtain the surrounding environment data of the unmanned ship in real time through the sensors, cameras and laser radar installed on the unmanned ship; use visual recognition technology and laser radar technology to scan and analyze the docking situation to identify the dock location and direction; preliminarily set path points based on the surrounding environment data of the unmanned ship, the dock location and direction, and the path points constitute a preliminary plan for the berthing path; encode the berthing path of the preliminary plan into a chromosome, wherein each path point corresponds to a gene on the chromosome, initialize a population, including multiple different berthing path plans; determine an evaluation function for evaluating the pros and cons of each berthing path plan;

[0131] The processing module 22 is used to determine the corresponding individual as the parent from the population according to the evaluation function, wherein the individual is the corresponding parking path plan; randomly determine two parent individuals, exchange some genes, generate new offspring individuals, randomly change the genes in the individuals, and continuously iterate and optimize the parking path plan in the population until a preset number of iterations is reached to obtain the final parking path; the unmanned ship automatically navigates according to the final parking path to identify and avoid obstacles in real time, and adjust the heading, speed and position of the unmanned ship.

[0132] It should be noted that the system is a system corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0133] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0134] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

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

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

[0137] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

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

[0140] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or optical disk, etc., various media that can store program codes.

[0141] In addition, it should be pointed out that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it can be understood that all or any steps or components of the method and apparatus of the present invention can be implemented in hardware, firmware, software or a combination thereof in any computing device (including processors, storage media, etc.) or a network of computing devices, which can be achieved by those of ordinary skill in the art using basic programming skills after reading the description of the present invention.

[0142] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0143] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An autonomous mooring method for an unmanned ship, It is characterized in that The method comprises: The sensors, cameras and lidar installed on the unmanned ship can be used to obtain real-time data on the environment around the unmanned ship. Use visual recognition technology and LiDAR technology to scan and analyze dock conditions to identify dock locations and directions; Based on the data of the surrounding environment of the unmanned ship, the location and direction of the dock, the waypoints are initially set, and the waypoints constitute the preliminary plan of the berthing path; Encode the parking path of the preliminary plan into a chromosome, where each path point corresponds to a gene on the chromosome, and initialize a population containing multiple different parking path plans; Determine an evaluation function for evaluating the quality of each parking path plan; According to the evaluation function, the corresponding individual is determined from the population as the parent, where the individual is the corresponding parking path solution; Randomly determine two parent individuals, exchange some genes, generate new offspring individuals, randomly change the genes in the individuals, and continuously iterate and optimize the parking path plan in the population until the preset number of iterations is reached to obtain the final parking path; The unmanned ship automatically navigates according to the final berthing path to identify and avoid obstacles in real time and adjust the heading, speed and position of the unmanned ship; the calculation formula of the evaluation function is: ; Among them, F is the comprehensive evaluation score, which is used to evaluate the pros and cons of each parking path plan; , , and is the weight coefficient; ( , ) is the coordinate of the i-th path point on the path; is the path point i to the path point The speed between and The waypoints to path point i and path point i to path point The direction angle between is the distance from path point i to the nearest obstacle; i represents the index of the path point, n represents the total number of path points on the path, and the summation symbol It means to sum each adjacent path point on the path. Indicates that the intermediate path points on the path are summed.

2. The autonomous mooring method for an unmanned ship according to claim 1, It is characterized in that The sensors, cameras and lidar installed on the unmanned ship can obtain surrounding environment data in real time, including: Configure and activate sensors, cameras and lidar on unmanned vessels; Generate an initial set of particles, each particle represents a state of the ship in the environment, including the position, speed and attitude of the ship itself; Obtain real-time data about the environment around the unmanned ship through sensors, cameras and lidar; Preprocess the acquired raw environmental data and extract key information to obtain preprocessed data; According to the state transition model and the current control instructions, predict the state of each particle at the next moment; When new preprocessed data arrives, the observation model is used to calculate the degree of match between each particle and the new preprocessed data; Update the weight of each particle according to the matching degree, resample according to the particle weight, and after resampling, reset the weights of all particles to equal values; According to the updated particle set and its weight, the final current environment state is determined by weighted averaging method.

3. The autonomous mooring method for an unmanned ship according to claim 2, It is characterized in that Update the weight of each particle according to the degree of matching, including: pass Update the weight of each particle, where is the weight of the i-th particle at time k; yes The weight of the i-th particle at the moment; is the observation function, which is used to transform the state of the i-th particle at time k Mapping to observation space; is the observation data at time k; is the covariance matrix of the observation noise at time k; is the covariance matrix The inverse matrix of It is the transpose of the difference between the particle state mapped by the observation function and the observed data; is the exponential part of the likelihood function, which is used to calculate how well a given particle state matches the observed data.

4. The autonomous mooring method for an unmanned ship according to claim 3, It is characterized in that Using visual recognition technology and LiDAR technology, the system scans and analyzes the dock conditions to identify the dock location and direction, including: Use LiDAR to scan the dock area. During the scanning process, the LiDAR emits laser pulses and measures the time from the emission to the return of each pulse. When the LiDAR receives the returned laser pulse, it uses the round-trip time of the pulse to calculate the distance between the object and the sensor. Determine the specific position of the object in three-dimensional space based on the distance between the object and the sensor and the angle information at the time of emission; According to the specific position of the object in three-dimensional space, the spatial structure and object distribution of the dock area can be obtained; The camera captures the image data of the dock and processes the 3D point cloud data generated by the LiDAR to extract the geometric shape and structural features of the dock; Processing the image data of the dock captured by the camera to identify and locate the specific position and direction of the dock in the image; The actual position and orientation of the pier can be determined based on the pier's geometric shape, structural characteristics, and the pier's specific position and orientation in the image.

5. The autonomous mooring method for an unmanned ship according to claim 4, It is characterized in that The 3D point cloud data generated by the LiDAR is processed to extract the geometric shape and structural features of the pier, including: Determine the number of clusters K, initialize K cluster centers, and randomly determine K points as initial centers; Assign each point to the corresponding cluster center to form K clusters; For each cluster, calculate the average value of all points and update the cluster center to the average value to obtain the final clustering result; Based on the clustering results, the point cloud clusters belonging to the dock area are identified; Feature extraction is performed on the point cloud clustering of the dock area, including calculating the geometric features of the point cloud and identifying the structural features of the dock.

6. The autonomous mooring method for an unmanned ship according to claim 5, It is characterized in that Observation function The calculation formula is: ; in, and are the x and y position coordinates of the ith particle in the global coordinate system at time k; , , and is the coefficient; , , and is the coefficient; and are the observation noises in different observation dimensions at time k, representing the uncertainty and random error of the sensor.

7. An autonomous mooring system for unmanned ships, It is characterized in that include: The acquisition module is used to obtain the surrounding environment data of the unmanned ship in real time through the sensors, cameras and laser radar installed on the unmanned ship; use visual recognition technology and laser radar technology to scan and analyze the docking situation to identify the dock location and direction; preliminarily set path points based on the surrounding environment data of the unmanned ship, the dock location and direction, and the path points constitute a preliminary plan for the berthing path; encode the berthing path of the preliminary plan into a chromosome, wherein each path point corresponds to a gene on the chromosome, and initialize a population including multiple different berthing path plans; determine an evaluation function for evaluating the pros and cons of each berthing path plan; wherein the calculation formula of the evaluation function is: ; Among them, F is the comprehensive evaluation score, which is used to evaluate the pros and cons of each parking path plan; , , and is the weight coefficient; ( , ) is the coordinate of the i-th path point on the path; is the path point i to the path point The speed between and The waypoints to path point i and path point i to path point The direction angle between is the distance from path point i to the nearest obstacle; i represents the index of the path point, n represents the total number of path points on the path, and the summation symbol It means to sum each adjacent path point on the path. Indicates the sum of the intermediate path points on the path; The processing module is used to determine the corresponding individual from the population as the parent according to the evaluation function, wherein the individual is the corresponding parking path plan; randomly determine two parent individuals, exchange some genes, generate new offspring individuals, randomly change the genes in the individuals, and continuously iterate and optimize the parking path plan in the population until a preset number of iterations is reached to obtain the final parking path; the unmanned ship automatically navigates according to the final parking path to identify and avoid obstacles in real time, and adjust the heading, speed and position of the unmanned ship.

8. A computing device, It is characterized in that include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 6.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.