A robot path planning method and device based on reinforcement learning
By reducing the dimensionality of a three-dimensional surface to a two-dimensional plane and constructing a reward function model, combined with the Actor-Critic reinforcement learning framework, the flexibility and convergence problems of path planning on complex porous surfaces are solved, achieving automatic obstacle avoidance and full-coverage path planning.
Patent Information
- Application Number
- CN202410322517.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-03-20
AI Technical Summary
Existing technologies suffer from insufficient flexibility and difficulty in convergence when performing full-coverage path planning on complex porous surfaces, especially on large-scale maps where effective path planning is difficult to achieve.
By employing a reinforcement learning-based approach, a reward function model is constructed by reducing the dimensionality of a three-dimensional surface to a two-dimensional plane. Combined with the Actor-Critic reinforcement learning framework, path planning is optimized to generate automatic obstacle avoidance, fully covered, and continuous paths.
It achieves efficient and automatic path full coverage on complex porous surfaces, improving planning efficiency and convergence speed, and the generated paths have good continuity and coverage.
Smart Images

Figure CN118163101B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of grinding and polishing control technology, and more specifically, relates to a robot path planning method and device based on reinforcement learning. Background Technology
[0002] Industrial robots, with their significant advantages of high flexibility, high efficiency, and high versatility, are widely used in modern manufacturing, such as grinding, milling, and painting. When using robots for these surface processing operations, it is often necessary to cover every target point on the surface; this is known as full-coverage path planning. In recent years, with the increasing prevalence of robots in industry, processing environments have become more complex and larger. Performing full-coverage path planning in various environments with complex geometries is a typical NP-hard problem, presenting significant challenges. To improve the consistency of processed surfaces, an effective path planning strategy is needed.
[0003] To address the aforementioned issues, Chinese patent CN117011471A discloses a real-time full-coverage grinding path planning method based on point clouds. This method projects the point cloud to be ground onto the XOY plane, divides the XOY plane into projection meshes, and finally reorders the grinding path points using a shortest path algorithm. Chinese patent CN115933522A discloses a robot grinding surface path planning method based on an STL model. This method uses a tangent plane algorithm to generate paths for complex free-form surfaces and then performs robot trajectory planning based on this. Chinese patent CN116841246A discloses an automatic robot grinding path planning method based on 3D point cloud data. This method applies the tangent plane method to the point cloud model and then interpolates and controls the residual height and curvature based on the path to optimize the robot grinding path planning. While these solutions propose methods for full-coverage path planning on 3D surfaces, they employ traditional tangent plane or scanning path methods and are only applicable to regular, unobstructed, and hole-free surfaces, lacking flexibility in solving complex and variable environmental problems.
[0004] Furthermore, Chinese patent CN115857516A discloses a method and apparatus for full-coverage path planning that combines ox-plowing-style movement with a genetic algorithm. It uses an ox-plowing-style movement approach to set the initial chromosome population for the path, and then uses a genetic algorithm to iteratively optimize the population, ultimately obtaining an optimized planned path. This heuristic algorithm can achieve path coverage and obstacle avoidance to a certain extent, but it may encounter convergence problems for larger-scale maps. Summary of the Invention
[0005] To address the aforementioned deficiencies or improvement needs of existing technologies, this invention provides a robot path planning method and device based on reinforcement learning. Specifically, considering the characteristics of robot grinding and its path planning process, a reinforcement learning-based robot path planning method is designed. This method pre-defines the three-dimensional surface to be processed into a two-dimensional plane. Simultaneously, by adjusting the weight factor of the reward function, the priority coverage mode of the path is controlled. Furthermore, this invention introduces a reinforcement learning framework and optimization algorithm to further improve the convergence speed, thus achieving automatic full path coverage of complex porous surfaces. The generated path has advantages such as automatic obstacle avoidance, full coverage, and strong continuity, and has promising applications in robot painting, robot grinding, and mobile robots.
[0006] To achieve the above objectives, according to one aspect of the present invention, a robot path planning method based on reinforcement learning is proposed, comprising the following steps:
[0007] After S1 converts the point cloud data of the workpiece model into a BOJ model, it generates a conformal plane through conformal mapping, performs obstacle expansion processing on the conformal plane to generate a raster map, and marks the task target area based on the raster map to generate the current path.
[0008] S2 constructs a reward function model for full-coverage path planning to evaluate the current path;
[0009] S3 establishes an Actor Critic reinforcement learning framework based on the grid map and reward function model, updates the Actor Critic reinforcement learning framework according to the evaluation gradient function until convergence, and obtains an optimized adaptive path.
[0010] S4 remaps the optimized adaptive path back to the 3D surface.
[0011] As a further preferred embodiment, in step S1, generating the conformal plane through conformal mapping includes:
[0012] S111 Let the two-dimensional coordinate system of the conformal plane be (u,v). In the triangular mesh, establish a locally orthogonal two-dimensional coordinate system on each triangle. Let the local coordinate system coordinates on each triangle be (x,y), and the local coordinates of the three vertices be (x1,y1), (x2,y2), and (x3,y3).
[0013] The S112 mapping U:(x,y)→(u,v) is a projection from three dimensions to two dimensions, using complex numbers. Represents the coordinate system, that is Use S j Let E represent the area of the j-th triangle. The conformal energy E of each triangle can be expressed as:
[0014]
[0015] S113 minimizes the conformal energy of all triangles using the least squares method to obtain a two-dimensional parametric plane, i.e., generates a conformal plane.
[0016] As a further preferred option, in step S2, the reward function model for the robot at time t is:
[0017] R(p t ) = R l (p t )+λ s R s (p t )+λ m R m (s t )+λ c R c (s t )
[0018] Where, p t The path at the current time t; s t Let s be the state matrix at the current time. t =p t +s0, where s0 is the initial state, i.e., the moment when the robot is not active, and is the initial map; R l For coverage return; R S For smoothness reward; R m For connectivity rewards; R c For concave-convex returns, λ s , λ c , λ m These are the weighting factors associated with coverage return, smoothness return, and multi-connectivity return, respectively.
[0019] As a further preferred embodiment, step S2 specifically includes the following steps:
[0020] S211 calculates coverage return R l :
[0021]
[0022] Among them, "not completely covered" means not completely covered, and "completely covered" means completely covered;
[0023] S212 calculates the smoothness reward R. S :
[0024]
[0025] S213 calculates connectivity reward Rm At each time t, the contour extraction algorithm is used to extract N contours from the map. bd When N is detected bd When the value decreases, a positive reward R is provided. m =10; when N is detected bd When increased, it provides a negative return R. m = -10, and terminate the current training path;
[0026] S214 uses a convex hull detection function to extract the maximum convex hull H(s) of the raster map. t ), to determine the convexity C of the raster map t Quantified as the difference between the maximum convex hull area and the current map area:
[0027] C t =A(H(s) t ))-A(s t )
[0028] Calculate the convexity return based on the change in convexity.
[0029] As a further preferred embodiment, the unevenness feedback includes:
[0030]
[0031] Where ψ represents the threshold for concavity / convexity reward.
[0032] As a further preferred embodiment, step S3 specifically includes the following steps:
[0033] S311 obtains the state matrix S through robot interaction with the environment. t and reward R t ;
[0034] S312 extracts features from the grid map using a three-layer convolutional neural network, and its output serves as the state input s of the Actor network and Critic network at time t. t The Actor network and Critic network are fully connected.
[0035] S313 calculates the reward R at the current moment. t , will state S t and reward R t The input to the Critic network is the value function V. ω According to the value function V ω Calculate the advantage function
[0036] S314 is based on the aforementioned advantage function The Actor network outputs a 1*4 vector, representing the weights for movement in four directions. The action with the highest weight is selected as the next action, and the gradient is calculated and evaluated.
[0037] S315 updates the entire network based on the calculated evaluation gradient. The robot continuously interacts with the environment, constantly updating the policy network and value function network until convergence, resulting in an optimized adaptive path.
[0038] As a further preferred embodiment, in step S313, the dominant function for:
[0039]
[0040] Where, r t Let γ be the reward at time t, and γ be the learning rate;
[0041] In step S314, the evaluation gradient includes:
[0042]
[0043] in, For the dominant function, logπ θ (s, a) is the logarithm of the strategy.
[0044] According to another aspect of the present invention, a robot path planning system based on reinforcement learning is also provided, comprising:
[0045] The first main module is used to convert the point cloud data of the workpiece model into a BOJ model, generate a conformal plane through conformal mapping, perform obstacle expansion processing on the conformal plane to generate a raster map, and mark the task target area based on the raster map to generate the current path.
[0046] The second main module is used to construct a reward function model for full-coverage path planning in order to evaluate the current path;
[0047] The third main module is used to establish an Actor Critic reinforcement learning framework based on the grid map and reward function model, update the Actor Critic reinforcement learning framework according to the evaluation gradient function until convergence, and obtain an optimized adaptive path.
[0048] The fourth main module is used to remap the optimized adaptive path back to the 3D surface.
[0049] According to another aspect of the invention, an electronic device is also provided, comprising:
[0050] At least one processor, at least one memory, and a communication interface; wherein,
[0051] The processor, memory, and communication interface communicate with each other;
[0052] The memory stores program instructions that can be executed by the processor, which calls the program instructions to execute a robot path planning method based on reinforcement learning involved in any of the above embodiments.
[0053] According to another aspect of the present invention, a non-transitory computer-readable storage medium is also provided, the non-transitory computer-readable storage medium storing computer instructions that cause the computer to execute a robot path planning method based on reinforcement learning according to any of the above embodiments.
[0054] In summary, compared with the prior art, the above-described technical solutions conceived by this invention mainly possess the following technical advantages:
[0055] 1. The method of the present invention pre-deforms the three-dimensional curved surface to be processed into a two-dimensional plane, which simplifies the planning problem and improves the planning efficiency.
[0056] 2. The method of this invention can control the priority coverage of paths by adjusting the weight factors of the reward function, thus exhibiting high controllability and flexibility. Specifically, the reward function of this invention comprehensively evaluates the current path from multiple perspectives to avoid the problem of slow convergence due to excessively sparse rewards during reinforcement learning. Furthermore, the weight factors determine the importance the agent places on each reward when deciding on the next action, thereby determining the agent's behavioral priority to a certain extent. By adjusting the weight factors of the reward function, the priority coverage of paths can be controlled.
[0057] 3. The method of this invention, by introducing a reinforcement learning framework and optimization algorithm, further improves the convergence speed and performs well on large porous unstructured surfaces. In other words, this invention effectively achieves full-coverage path planning for porous unstructured maps, satisfying the requirement of only one path for full coverage, thus improving path continuity. Attached Figure Description
[0058] Figure 1 This is a flowchart of a robot path planning method based on reinforcement learning, which is an embodiment of the present invention.
[0059] Figure 2 This is a schematic diagram of the three-dimensional model and triangulation involved in the robot path planning method based on reinforcement learning of the present invention;
[0060] Figure 3 This is a schematic diagram of conformal mapping involved in the robot path planning method based on reinforcement learning of the present invention;
[0061] Figure 4This is a schematic diagram of a marked grid map involved in a robot path planning method based on reinforcement learning according to the present invention, wherein the increasing direction of the numerical values can indicate the robot's movement direction;
[0062] Figure 5 This is a schematic diagram of the Actor Critic framework involved in the reinforcement learning-based robot path planning method of this invention;
[0063] Figure 6 This is a schematic diagram of an adaptive path generated using a reinforcement learning-based robot path planning method of the present invention;
[0064] Figure 7 The surface adaptive path is generated using a reinforcement learning-based robot path planning method of this invention. Detailed Implementation
[0065] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.
[0066] like Figure 1 As shown in the figure, an embodiment of the present invention provides a robot path planning method based on reinforcement learning, which includes the following steps:
[0067] The point cloud data of the vehicle body to be polished is processed to generate an OBJ model. A conformal plane is generated through conformal mapping. Obstacles are then expanded on the conformal plane to generate a raster map.
[0068] To address the full-coverage path planning problem, a reward function model is constructed to avoid convergence difficulties caused by reward sparsity.
[0069] We construct a deep reinforcement learning framework and combine it with optimization algorithms to further optimize the convergence speed and achieve efficient generation of adaptive paths.
[0070] In a specific embodiment of the present invention, the above steps are as follows:
[0071] Step 1: After converting the point cloud data of the workpiece model into a BOJ model, a conformal plane is generated through conformal mapping. Obstacles are then expanded on the conformal plane to generate a raster map. Based on this raster map, the target area of the task is marked, and the current path is generated.
[0072] Specifically, path planning algorithms designed for two-dimensional models are often unsuitable for direct extension to three-dimensional models. Therefore, preprocessing of the three-dimensional surface is necessary. This embodiment employs conformal mapping to reduce the dimensionality of the model data, minimizing geometric deformation during the mapping process.
[0073] like Figure 2 As shown, starting with the workpiece model, a triangulation algorithm is used to uniformly sample and transform it into OBJ triangular facets. Conformal mapping is then performed on this basis, with the following steps:
[0074] (a) Let the two-dimensional coordinate system of the conformal plane be (u,v). Establish a locally orthogonal two-dimensional coordinate system on each triangle in the triangular mesh. Let the local coordinate system coordinates on each triangle be (x,y), and the local coordinates of the three vertices be (x1,y1), (x2,y2), and (x3,y3).
[0075] (b) The mapping U:(x,y)→(u,v) is a projection from three dimensions to two dimensions. This can be represented using complex numbers. Represents the coordinate system, that is Use S j Let E represent the area of the j-th triangle. The conformal energy E of each triangle can be expressed as:
[0076]
[0077] (c) By minimizing the conformal energy of all triangles using the least squares method, a two-dimensional parametric plane can be obtained. For example... Figure 3 As shown.
[0078] (d) To intuitively reflect the interaction information between the agent and the environment, a two-dimensional grayscale image of the global map is used as the input to the state space of reinforcement learning. The model is rasterized based on the conformal mapping plane, and obstacle inflation processing is performed on the environment map. If there is an obstacle of any size in a grid, the grid is called an obstacle grid.
[0079] (e) Further, starting from the top left corner of the grid map, traverse each grid in a left-to-right, top-to-bottom order. If the current grid belongs to the robot's task target area and is not covered, it is numbered 0; if it is an obstacle or boundary, it is numbered 255. If the current grid is a covered task target area, it is marked as an integer between 0 and 175, with the closer to 0 indicating closer to the starting point, and 175 representing the robot's latest position. The grid map marking method is as follows: Figure 4 As shown.
[0080] Step 2: Construct a reward function model for full-coverage path planning to evaluate the current path.
[0081] Specifically, in one embodiment of the present invention, a reward function R(t) is established for the path planning problem. This function comprehensively evaluates the current path from multiple perspectives to avoid the problem of slow convergence due to sparse rewards during reinforcement learning. The robot's reward function R(t) at time t is:
[0082] R(p t ) = R l (p t )+λ s R s (p t )+λ m R m (s t )+λ c R c (s t (2)
[0083] Where, p t The path at the current time t; s t This is the state matrix at the current moment, containing the raster map output in step 1, including the path and the initial map, s t =p t +s0;R l For coverage return; R S For smoothness reward; R m For connectivity rewards; R c This represents a concave-convex return. Where λ... s , λ c , λ m Here, are weighting factors related to coverage reward, smoothness reward, and multi-connectivity reward, respectively. These weighting factors determine the importance the agent places on each reward when deciding its next action, and to some extent, determine the agent's behavioral priority. The reward function is calculated following these steps:
[0084] (a) Calculate the coverage return R l The rewards are proportional to the area covered; a small reward is given for each part of the area covered, and a large positive reward is given when the full coverage requirement is met.
[0085]
[0086] (b) Smoothness return R S A penalty is imposed when the robot turns.
[0087]
[0088] (c) Connectivity reward R mWhen a new path divides an uncovered area into two or more sub-regions, we appropriately impose negative feedback on the agent as a penalty for disrupting overall connectivity. At each time t, the contour extraction algorithm extracts N contours from the map. bd When N is detected bd When the value decreases, it indicates that the complexity of the map decreases, which is beneficial for path planning and provides a positive reward R. m =10; when N is detected bd An increase indicates the creation of disconnected regions, providing a negative reward R. m = -10, and terminate the current training path.
[0089] (d) Convexity / convexity return R c When the remaining map is a concave polygon (i.e., with interior angles greater than 180°), full coverage of it can easily create dead zones, leading to disconnected local areas. Furthermore, the acute interior angles caused by the concave polygon are also difficult to cover completely. Therefore, negative feedback is given when it is detected that subsequent paths will increase the concave area of the map, making full coverage more difficult. The maximum convex hull H(s) of the map is extracted using a convex hull detection function. t ), to determine the convexity C of the map t Quantified as the difference between the maximum convex hull area and the current map area:
[0090] C t =A(H(s) t ))-A(s t (5)
[0091] Define the convexity reward based on the change in convexity:
[0092]
[0093] Where ψ represents the threshold for concavity / convexity reward.
[0094] Step 3: Based on the grid map and reward function model, establish an Actor Critic reinforcement learning framework. Update the Actor Critic reinforcement learning framework according to the evaluation gradient function until convergence, and obtain an optimized adaptive path.
[0095] In this embodiment, an Actor Critic-based reinforcement learning framework is established, such as... Figure 5 As shown, the specific steps are as follows:
[0096] (a) The robot interacts with the environment and obtains state S. t and reward R t ;
[0097] (b) The input to the model is the grid map output in step one. The grid map is first processed by a three-layer convolutional neural network for feature extraction, and its output serves as the state input S of the Actor network and Critic network at time t. t The Actor network and Critic network are fully connected.
[0098] (c) The environment calculates the reward R at the current moment according to the reward function defined in step 2. t , will state S t and reward R t The input to the Critic network is the value function V. ω Calculate the advantage function.
[0099]
[0100] (d) The Actor network outputs a 1*4 vector, representing the weights for movement in four directions. The action with the highest weight is selected as the next action, and the gradient is calculated and evaluated.
[0101]
[0102] (e) Update the entire network based on the gradient. The robot continuously interacts with the environment, constantly updating the policy network and value function network until convergence, resulting in an optimized adaptive path. Figure 6 As shown in the figure. This embodiment effectively achieves full-coverage path planning for multi-hole unstructured maps, and satisfies the requirement of only one path for full coverage, thus improving path continuity.
[0103] (f) By finding the vertices of the surface triangular mesh corresponding to the two-dimensional path points and arranging them in the path order, the two-dimensional path points are remapped back to the three-dimensional surface.
[0104] The result of mapping planar path points back to a surface is as follows: Figure 7 As shown in the figure. This embodiment achieves automatic path full coverage of complex porous curved surfaces. The generated path has advantages such as automatic obstacle avoidance, full coverage, and strong continuity, and has application prospects in fields such as robotic spraying, robotic grinding, and mobile robots.
[0105] According to another aspect of the present invention, a robot path planning system based on reinforcement learning is also provided for implementing the methods involved in any of the above embodiments. Specifically, the system includes:
[0106] The first main module is used to convert the point cloud data of the workpiece model into a BOJ model, generate a conformal plane through conformal mapping, perform obstacle expansion processing on the conformal plane to generate a raster map, and mark the task target area based on the raster map to generate the current path.
[0107] The second main module is used to construct a reward function model for full-coverage path planning in order to evaluate the current path;
[0108] The third main module is used to establish an Actor Critic reinforcement learning framework based on the grid map and reward function model, update the Actor Critic reinforcement learning framework according to the evaluation gradient function until convergence, and obtain an optimized adaptive path.
[0109] The fourth main module is used to remap the optimized adaptive path back to the 3D surface.
[0110] Furthermore, the methods in the embodiments of the present invention are implemented using electronic devices, therefore it is necessary to describe the relevant electronic devices. For this purpose, embodiments of the present invention provide an electronic device comprising: at least one processor, a communication interface, at least one memory, and a communication bus, wherein the at least one processor, the communication interface, and the at least one memory communicate with each other via the communication bus. The at least one processor can invoke logical instructions in the at least one memory to execute all or part of the steps of the methods provided in the foregoing method embodiments.
[0111] Furthermore, when the logical instructions in at least one of the aforementioned memories can be implemented as 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, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various method embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0112] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0113] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0114] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Based on this understanding, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0115] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A robot path planning method based on reinforcement learning, characterized in that, Includes the following steps: After S1 converts the point cloud data of the workpiece model into an OBJ model, it generates a conformal plane through conformal mapping, performs obstacle expansion processing on the conformal plane to generate a raster map, and marks the task target area based on the raster map to generate the current path. S2 constructs a reward function model for full-coverage path planning to evaluate the current path; In step S2, the robot's reward function model at time t is: ; Where, p t The path at the current time t; s t Let s be the state matrix at the current time. t =p t +s0, where s0 is the initial map; R l For coverage return; R S For smoothness reward; R m For connectivity rewards; R c For concave-convex returns, , , These are the weighting factors associated with coverage return, smoothness return, and multi-connectivity return, respectively. Step S2 specifically includes the following steps: S211 calculates coverage return R l : ; in, Incomplete coverage For complete coverage; S212 calculates the smoothness reward R. S : ; S213 calculates connectivity reward R m At each time t, the contour extraction algorithm is used to extract N contours from the map. bd When N is detected bd Provide a positive reward when the value decreases. When N is detected bd When increased, it provides a negative return. And terminate the current training path; S214 uses a convex hull detection function to extract the maximum convex hull H(s) of the raster map. t ), to determine the convexity C of the raster map t Quantified as the difference between the maximum convex hull area and the current map area: ; S215 calculates the concavity / convexity return based on the change in concavity / convexity. S3 establishes an Actor Critic reinforcement learning framework based on the grid map and reward function model, updates the Actor Critic reinforcement learning framework according to the evaluation gradient function until convergence, and obtains an optimized adaptive path. S4 remaps the optimized adaptive path back to the 3D surface.
2. The robot path planning method based on reinforcement learning according to claim 1, characterized in that, In step S1, generating a conformal plane through conformal mapping includes: S111 Let the two-dimensional coordinate system of the conformal plane be (u,v). In the triangular mesh, establish a locally orthogonal two-dimensional coordinate system on each triangle. Let the local coordinate system coordinates on each triangle be (x,y), and the local coordinates of the three vertices be (x1,y1), (x2,y2), and (x3,y3). The S112 mapping U:(x,y)→(u,v) is a projection from three dimensions to two dimensions, using complex numbers. Represents the coordinate system, that is , using S j Let E represent the area of the j-th triangle, and let E be the conformal energy of each triangle. ; S113 minimizes the conformal energy of all triangles using the least squares method to obtain a two-dimensional parametric plane, i.e., generates a conformal plane.
3. The robot path planning method based on reinforcement learning according to claim 1, characterized in that, The unevenness reward includes: ; Where ψ represents the threshold for concavity / convexity reward.
4. A robot path planning method based on reinforcement learning according to any one of claims 1 to 3, characterized in that, Step S3 specifically includes the following steps: S311 obtains the state matrix S through robot interaction with the environment. t and reward R t ; S312 extracts features from the grid map using a three-layer convolutional neural network, and its output serves as the state input s of the Actor network and Critic network at time t. t The Actor network and Critic network are fully connected. S313 calculates the reward R at the current moment. t , will state S t and reward R t The input to the Critic network is a value function. According to this value function Calculate the advantage function ; S314 is based on the aforementioned advantage function The Actor network outputs a 1*4 vector, representing the weights for movement in four directions. The action with the highest weight is selected as the next action, and the gradient is calculated and evaluated. S315 updates the entire network based on the calculated evaluation gradient. The robot continuously interacts with the environment, constantly updating the policy network and value function network until convergence, resulting in an optimized adaptive path.
5. The robot path planning method based on reinforcement learning according to claim 4, characterized in that, In step S313, the advantage function for: ; in, The reward at time t, The learning rate; In step S314, the evaluation gradient includes: ; in, For the dominant function, Let be the logarithm of the strategy.
6. A robot path planning system based on reinforcement learning, used to implement the robot path planning method based on reinforcement learning as described in any one of claims 1-5, characterized in that, include: The first main module is used to convert the point cloud data of the workpiece model into an OBJ model, generate a conformal plane through conformal mapping, perform obstacle expansion processing on the conformal plane to generate a raster map, and mark the task target area based on the raster map to generate the current path. The second main module is used to construct a reward function model for full-coverage path planning in order to evaluate the current path; The third main module is used to establish an Actor Critic reinforcement learning framework based on the grid map and reward function model, update the Actor Critic reinforcement learning framework according to the evaluation gradient function until convergence, and obtain an optimized adaptive path. The fourth main module is used to remap the optimized adaptive path back to the 3D surface.
7. An electronic device, characterized in that, include: At least one processor, at least one memory, and a communication interface; wherein, The processor, memory, and communication interface communicate with each other; The memory stores program instructions that can be executed by the processor, which invokes the program instructions to execute a robot path planning method based on reinforcement learning as described in any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium stores computer instructions that cause the computer to execute a robot path planning method based on reinforcement learning according to any one of claims 1 to 5.
Citation Information
Patent Citations
Robot curved surface polishing path planning method based on STL model
CN115933522A
Robot polishing path automatic planning method based on three-dimensional point cloud data
CN116841246A
Real-time full-coverage polishing path planning method based on point cloud
CN117011471A
Raster map region division method and device based on reinforcement learning thought
CN115049688A
Robot reinforcement learning path planning method based on improved A* algorithm
CN117492439A
