Public washroom bionic cleaning robot path planning method based on deep learning
Through the path planning method that combines deep learning models and sensors, the problem of the cleaning robot being unable to avoid obstacles is solved, safe and reliable path planning is achieved, the service life of the robot is extended and the cleaning effect is improved.
Patent Information
- Application Number
- CN202411013656.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-11
AI Technical Summary
Existing cleaning robots in public restrooms cannot effectively avoid obstacles, resulting in the inability to plan a safe and reliable path without collision, which reduces the service life of the cleaning robot.
A bionic cleaning robot path planning method based on deep learning is used to build a deep reinforcement learning model by establishing an environmental fence map and dynamic modeling. It combines lidar and ultrasonic sensors for dynamic obstacle monitoring and path planning, and uses the DWA algorithm and A3C algorithm. Achieve obstacle avoidance.
It realizes collision-free, safe and reliable path planning for cleaning robots in complex environments, extends the service life of cleaning robots, and improves the effectiveness of cleaning work.
Smart Images

Figure CN118760187A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cleaning robot path planning, and in particular to a public toilet bionic cleaning robot path planning method based on deep learning. Background Art
[0002] With the rapid development and popularization of the new generation of high-tech in various industries, artificial intelligence has also ushered in a deeper development. Artificial intelligence has become one of the important development directions of our country in the future. The scientific and technological community, manufacturing industry and national defense field have also conducted more in-depth research, and various industries are constantly exploring the future development of robotics technology.
[0003] With the advancement of science and technology and social development, cleaning robots are becoming more popular at an alarming rate, and the market is developing rapidly. In the early development stage, cleaning robots mainly focus on improving sweeping efficiency. At present and in the future, cleaning robots will start to develop intelligent core technologies such as multi-sensor fusion, navigation, and path planning after ensuring the provision of better cleaning results.
[0004] However, the existing public toilet cleaning robots are unable to avoid dynamic obstacles during their path actions, resulting in the inability to plan a collision-free, safe and reliable path for the cleaning robots; this reduces the service life of the cleaning robots. Therefore, we propose a public toilet bionic cleaning robot path planning method based on deep learning to solve the above-mentioned problems. Summary of the invention
[0005] The purpose of the present invention is to provide a path planning method for a public toilet bionic cleaning robot based on deep learning to solve the problems raised in the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] The path planning method of a public toilet bionic cleaning robot based on deep learning includes the following steps:
[0008] Step 1: Obtain the working area that the cleaning robot needs to clean, traverse all working areas, establish an environmental fence map based on the overall environment, and perform dynamic modeling on the cleaning robot to build a deep reinforcement learning model;
[0009] Step 2: Train the deep reinforcement learning model, input the state into the trained deep reinforcement learning model, and the trained deep reinforcement learning model outputs the action corresponding to the state, and the cleaning robot moves according to the action.
[0010] As a further solution of the present invention: the step 1 obtains the working area that the cleaning robot needs to clean, fully traverses all working areas, establishes an environmental fence map according to the overall environment, and at the same time performs dynamic modeling on the cleaning robot to construct a deep reinforcement learning model. The method of obtaining the working area that the cleaning robot needs to clean, fully traversing all working areas, and establishing an environmental fence map according to the overall environment includes: establishing an environmental fence map according to the environment; the area conversion algorithm calculates the overall working environment and generates a safe global path; the selection of the next area; after the sub-areas are divided and the predefined paths are generated, according to the different starting points of the paths of each sub-area, the nearest boundary line of the sub-area is set as the initial path line, and the first point Q0 in the target point set Q is set as the work starting point, then the next target point Q1 to be reached is used as the sub-target point that the cleaning robot needs to reach, and traverses until the last target point Q in the target point set Q is reached. n ; If all the target points in the target point set Q are traversed, it means that the cleaning robot has traversed all sub-areas, thus completing the task of fully covering the overall environment map, and the algorithm ends. If the final target point Q is not reached n , then continue to iterate until all are traversed.
[0011] As a further solution of the present invention: A method for establishing an environmental fence map based on the environment includes: the cleaning robot uses a lidar to scan the surrounding environment during movement, and continuously updates and improves the environmental information through ultrasonic and infrared sensors, and then establishes an obstacle map based on the grid map, determining the size of the grid to be less than or equal to the size of the cleaning robot, and treating the cleaning robot as a point in the map for preparation of path planning.
[0012] As a further solution of the present invention: the method of the region conversion algorithm calculating and generating a safe global path for the overall working environment includes: first obtaining the starting position S of the cleaning robot in the grid map, obtaining the map concave and convex angles according to the different obstacles in the map, decomposing the sub-regions, and then using the edge-based BFS algorithm to obtain the shortest distance between any two sub-regions. These distances are regarded as the shortest distances in order to safely traverse the global path L of the entire grid environment map.
[0013] As a further solution of the present invention: the method for selecting the next area includes, after dividing the sub-areas according to the convex and concave angle information of different obstacles, performing analysis and calculation between the sub-areas through the sub-area selection algorithm, as the first stage of path generation for each sub-area, calculating the direction invariant angle of each sub-area, and then rotating each sub-area at each angle so that the direction of the path is aligned along the boundary of the sub-area, and at the same time, when exploring other sub-areas, decomposing the exploration path L into multiple sub-paths p, and selecting one of the paths to other sub-areas.
[0014] As a further solution of the present invention: the region conversion algorithm calculates and generates a safe global path for the entire working environment; in the selection of the next region, according to the differences between the various regions of the environment, the sub-regions obtained by the region conversion algorithm, wherein the full traversal path L of the sub-region is decomposed according to the target point to obtain multiple sub-paths, L i The cleaning robot moves along the subpath at a speed of v0 to the next target point, and constructs a dynamic window based on the robot's current environment and obstacle model, the robot's motion posture, and speed limit.
[0015] As a further solution of the present invention: the dynamic window conducts joint real-time monitoring of dynamic obstacles through multiple sensors such as laser radar and ultrasonic sensors carried by the cleaning robot, predicts the collision risk on the path, calculates the driving distance to the obstacles, and updates the detailed information of the environmental map in real time; at the same time, the DWA algorithm continuously samples the environmental information in the dynamic window, and according to the obstacles that appear, after calculating the safe distance, the algorithm calculates and selects the safe speed v corresponding to the optimal obstacle avoidance motion route to drive the cleaning robot to plan a small range of paths to avoid them according to the situation of the obstacles.
[0016] As a further solution of the present invention: the deep reinforcement learning model is an A3C algorithm model.
[0017] As a further solution of the present invention: the step 2 trains the deep reinforcement learning model, inputs the state into the trained deep reinforcement learning model, the trained deep reinforcement learning model outputs the action corresponding to the state, and the cleaning robot moves according to the action. The deep reinforcement learning model includes a main model, a first sub-model, a second sub-model and a third sub-model with the same structure. The main model includes a main model Critic network, a main model Actor network, a main model target Critic network and a main model target Actor network.
[0018] As a further solution of the present invention: the step 2 trains the deep reinforcement learning model, inputs the state into the trained deep reinforcement learning model, the trained deep reinforcement learning model outputs the action corresponding to the state, the cleaning robot moves according to the action, and the deep reinforcement learning model is trained a preset number of times, including: during each training, the parameters of the main model Critic network and the main model Actor network are gradient updated, when the number of training times is 100i, the parameters of the main model Critic network and the main model Actor network are synchronized to the first sub-model, the second sub-model and the third sub-model, i is a positive integer and 100i is less than or equal to the preset number of times.
[0019] Compared with the prior art, the present invention has the following beneficial effects:
[0020] This deep learning-based path planning method for public toilet bionic cleaning robots builds an environmental fence map according to the overall environment, and at the same time performs dynamic modeling on the cleaning robot to construct a deep reinforcement learning model. It comprehensively considers the terrain of the cleaning work area and the dynamic information of the cleaning robot, and plans a collision-free, safe and reliable path for the cleaning robot. This extends the service life of the cleaning robot and improves the cleaning effect of the cleaning robot, and is worthy of widespread use. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a flow chart of the path planning method for a public toilet bionic cleaning robot based on deep learning of the present invention. DETAILED DESCRIPTION
[0022] In one embodiment, Figure 1 , a path planning method for a public toilet bionic cleaning robot based on deep learning, comprising the following steps:
[0023] Step 1: Obtain the working area that the cleaning robot needs to clean, traverse all working areas, establish an environmental fence map based on the overall environment, and perform dynamic modeling on the cleaning robot to build a deep reinforcement learning model;
[0024] Step 2: Train the deep reinforcement learning model, input the state into the trained deep reinforcement learning model, and the trained deep reinforcement learning model outputs the action corresponding to the state, and the cleaning robot moves according to the action; the cleaning robot uses a composite robot with a mechanical arm and a wheeled chassis.
[0025] Step 1: Obtain the working area that the cleaning robot needs to clean, fully traverse all working areas, establish an environmental fence map according to the overall environment, and perform dynamic modeling on the cleaning robot to construct a deep reinforcement learning model. The method of obtaining the working area that the cleaning robot needs to clean, fully traversing all working areas, and establishing an environmental fence map according to the overall environment includes: establishing an environmental fence map according to the environment; the area conversion algorithm calculates the overall working environment and generates a safe global path; the selection of the next area; after the sub-areas are divided and the predefined paths are generated, according to the different starting points of the paths of each sub-area, the nearest boundary line of the sub-area is set as the initial path line, and the first point Q0 in the target point set Q is set as the work starting point, then the next target point Q1 to be reached is used as the sub-target point that the cleaning robot needs to reach, and traverses until the last target point Q of the target point set Q is reached. n ; If all the target points in the target point set Q are traversed, it means that the cleaning robot has traversed all sub-areas, thus completing the task of fully covering the overall environment map, and the algorithm ends. If the final target point Q is not reached n , then continue to iterate until all are traversed;
[0026] The method of establishing an environmental fence map according to the environment includes: the cleaning robot uses a laser radar to scan the surrounding environment during movement, and continuously updates and improves the environmental information through ultrasonic and infrared sensors, and then establishes an obstacle map according to the grid map, determines the size of the grid to be less than or equal to the size of the cleaning robot, and regards the cleaning robot as a point in the map for preparation of path planning;
[0027] The method of calculating and generating a safe global path for the overall working environment by the region conversion algorithm includes first obtaining the starting position S of the cleaning robot in the grid map, obtaining the map concave and convex angles according to the different obstacles in the map, decomposing the sub-regions, and then using the edge-based BFS algorithm to obtain the shortest distance between any two sub-regions. These distances are regarded as the shortest distances in order to obtain a global path L that safely traverses the overall grid environment map;
[0028] The method for selecting the next area includes: dividing the sub-areas according to the concave and convex angle information of different obstacles, analyzing and calculating the next sub-area to be traversed through the sub-area selection algorithm between the sub-areas, as the first stage of path generation for each sub-area, calculating the direction invariant angle of each sub-area, and then rotating each sub-area at each angle so that the direction of the path is aligned along the boundary of the sub-area. At the same time, when exploring other sub-areas, the exploration path L is decomposed into multiple sub-paths p, and one of the paths to other sub-areas is selected;
[0029] The region conversion algorithm calculates and generates a safe global path for the entire working environment; in the selection of the next region, according to the differences in the various regions of the environment, the sub-regions obtained by the region conversion algorithm, where the full traversal path L of the sub-region is decomposed according to the target point to obtain multiple sub-paths, L i The cleaning robot moves along the subpath to the next target point at a speed of v0, and constructs a dynamic window based on the robot's current environment and obstacle model, the robot's motion posture, and speed limit.
[0030] The dynamic window uses the laser radar, ultrasonic sensor and other sensors carried by the cleaning robot to jointly monitor the dynamic obstacles in real time, predict the collision risk on the path, calculate the driving distance to the obstacles, and update the detailed information of the environmental map in real time. At the same time, the DWA algorithm continuously samples the environmental information in the dynamic window. According to the obstacles that appear, after calculating the safe distance, the algorithm calculates and selects the safe speed v corresponding to the optimal obstacle avoidance movement route to drive the cleaning robot to plan a small range of paths to avoid them according to the situation of the obstacles.
[0031] Firstly, rectangular conversion sub-regions are performed according to the distribution of actual obstacles in the environment; then, in the face of dead zone text in the environment, a re-decomposition method is introduced to solve it, and the region conversion algorithm is used to plan the path of the dead zone; finally, for the dynamic obstacles in the environment, the generated coverage path is decomposed into sub-target paths and then fused with the environmental information obtained by the sensors carried by the robot to form a dynamic window, and the dynamic obstacles appearing in the DWA algorithm map are integrated for obstacle avoidance. It has the advantages of providing short paths, avoiding small path collision risks and consuming less path planning time. The algorithm improves the path planning speed and reduces the traversal time of the cleaning robot. In the face of complex environments, it is a very effective and efficient full traversal obstacle avoidance path planning strategy.
[0032] The deep reinforcement learning model is the A3C algorithm model;
[0033] Step 2: train the deep reinforcement learning model, input the state to the trained deep reinforcement learning model, the trained deep reinforcement learning model outputs the action corresponding to the state, and the cleaning robot moves according to the action. The deep reinforcement learning model includes a main model, a first sub-model, a second sub-model and a third sub-model with the same structure. The main model includes a main model Critic network, a main model Actor network, a main model target Critic network and a main model target Actor network; Step 2: train the deep reinforcement learning model, input the state to the trained deep reinforcement learning model, and the trained deep reinforcement learning model outputs the action corresponding to the state, and the cleaning robot moves according to the action. The deep reinforcement learning model is trained for a preset number of times, including: each time the training is performed, the parameters of the main model Critic network and the main model Actor network are gradient updated, and when the number of training times is 100i, the parameters of the main model Critic network and the main model Actor network are synchronized to the first sub-model, the second sub-model and the third sub-model, i is a positive integer and 100i is less than or equal to the preset number of times;
[0034] The present invention establishes an environmental fence map according to the overall environment, performs dynamic modeling on the cleaning robot, and constructs a deep reinforcement learning model. It comprehensively considers the terrain of the cleaning work area and the dynamic information of the cleaning robot, and plans a collision-free, safe and reliable path for the cleaning robot. This prolongs the service life of the cleaning robot and improves the cleaning effect of the cleaning robot, and is worthy of wide use.
[0035] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A path planning method for a public toilet bionic cleaning robot based on deep learning, characterized in that: The following steps are involved: Step 1: Obtain the working area that the cleaning robot needs to clean, traverse all working areas, establish an environmental fence map based on the overall environment, and perform dynamic modeling on the cleaning robot to build a deep reinforcement learning model; Step 2: Train the deep reinforcement learning model, input the state into the trained deep reinforcement learning model, and the trained deep reinforcement learning model outputs the action corresponding to the state, and the cleaning robot moves according to the action.
2. The path planning method for a public toilet bionic cleaning robot based on deep learning according to claim 1 is characterized in that: The step 1 obtains the working area that the cleaning robot needs to clean, fully traverses all working areas, establishes an environmental fence map according to the overall environment, and performs dynamic modeling on the cleaning robot to construct a deep reinforcement learning model. The method of obtaining the working area that the cleaning robot needs to clean, fully traversing all working areas, and establishing an environmental fence map according to the overall environment includes: establishing an environmental fence map according to the environment; the area conversion algorithm calculates the overall working environment and generates a safe global path; the selection of the next area; after the sub-areas are divided and the predefined paths are generated, according to the different starting points of the paths of each sub-area, the nearest boundary line of the sub-area is set as the initial path line, and the first point Q0 in the target point set Q is set as the work starting point, and the next target point Q1 to be reached is used as the sub-target point that the cleaning robot needs to reach, and traverses until the last target point Q of the target point set Q is reached. n ; If all the target points in the target point set Q are traversed, it means that the cleaning robot has traversed all sub-areas, thus completing the task of fully covering the overall environment map, and the algorithm ends. If the final target point Q is not reached n , then continue to iterate until all are traversed.
3. The path planning method for a public toilet bionic cleaning robot based on deep learning according to claim 2 is characterized in that: The method of establishing an environmental fence map according to the environment includes: the cleaning robot uses a lidar to scan the surrounding environment during movement, and continuously updates and improves the environmental information through ultrasonic and infrared sensors, and then establishes an obstacle map based on the grid map, determines the size of the grid to be less than or equal to the size of the cleaning robot, and regards the cleaning robot as a point in the map for preparation of path planning.
4. The path planning method for a public toilet bionic cleaning robot based on deep learning according to claim 2 is characterized in that: The method of the region conversion algorithm for calculating and generating a safe global path for the overall working environment includes first obtaining the starting position S of the cleaning robot in the grid map, obtaining the map concave and convex angles according to the different obstacles in the map, decomposing the sub-regions, and then using the edge-based BFS algorithm to obtain the shortest distance between any two sub-regions. These distances are regarded as the shortest distances in order to safely traverse the global path L of the entire grid environment map.
5. The path planning method for a public toilet bionic cleaning robot based on deep learning according to claim 4 is characterized in that: The method for selecting the next area includes dividing the sub-areas according to the concave and convex angle information of different obstacles, analyzing and calculating the next sub-area to be traversed through the sub-area selection algorithm between the sub-areas, as the first stage of path generation for each sub-area, calculating the direction invariant angle of each sub-area, and then rotating each sub-area at each angle so that the direction of the path is aligned along the boundary of the sub-area. At the same time, when exploring other sub-areas, the exploration path L is decomposed into multiple sub-paths p, and one of the paths to other sub-areas is selected.
6. The path planning method for a public toilet bionic cleaning robot based on deep learning according to claim 5 is characterized in that: The region conversion algorithm calculates and generates a safe global path for the entire working environment; in the selection of the next region, according to the differences in the various regions of the environment, the sub-regions obtained by the region conversion algorithm, where the full traversal path L of the sub-region is decomposed according to the target point to obtain multiple sub-paths, L i The cleaning robot moves along the subpath at a speed of v0 to the next target point, and constructs a dynamic window based on the robot's current environment and obstacle model, the robot's motion posture, and speed limit.
7. The path planning method for a public toilet bionic cleaning robot based on deep learning according to claim 6 is characterized in that: The dynamic window uses the laser radar, ultrasonic sensor and other sensors carried by the cleaning robot to jointly monitor the dynamic obstacles in real time, predict the collision risk on the path, calculate the driving distance to the obstacles, and update the detailed information of the environmental map in real time; at the same time, the DWA algorithm continuously samples the environmental information in the dynamic window, and after calculating the safe distance according to the obstacles that appear, the algorithm calculates and selects the safe speed v corresponding to the optimal obstacle avoidance motion route to drive the cleaning robot to plan a small range of paths to avoid them according to the situation of the obstacles.
8. The path planning method for a public toilet bionic cleaning robot based on deep learning according to claim 1, characterized in that: The deep reinforcement learning model is an A3C algorithm model.
9. The path planning method for a public toilet bionic cleaning robot based on deep learning according to claim 1, characterized in that: The step 2 trains the deep reinforcement learning model, inputs the state into the trained deep reinforcement learning model, and the trained deep reinforcement learning model outputs the action corresponding to the state. The cleaning robot moves according to the action. The deep reinforcement learning model includes a main model, a first sub-model, a second sub-model and a third sub-model with the same structure. The main model includes a main model Critic network, a main model Actor network, a main model target Critic network and a main model target Actor network.
10. The path planning method for a public toilet bionic cleaning robot based on deep learning according to claim 9, characterized in that: The step 2 trains the deep reinforcement learning model, inputs a state into the trained deep reinforcement learning model, and the trained deep reinforcement learning model outputs an action corresponding to the state. The cleaning robot moves according to the action, and the deep reinforcement learning model is trained a preset number of times, including: during each training, the parameters of the main model Critic network and the main model Actor network are gradient updated. When the number of training times is 100i, the parameters of the main model Critic network and the main model Actor network are synchronized to the first sub-model, the second sub-model and the third sub-model, where i is a positive integer and 100i is less than or equal to the preset number of times.
Citation Information
Cited By
Ship path planning method based on deep reinforcement learning
CN120406424A
