A household robot path planning system and planning method based on Internet of Things technology

Through the Internet of Things technology combined with the ant colony algorithm and social force model, the problem of dynamic obstacle avoidance of home robots in complex environments is solved, automatic map establishment and path optimization are realized, ensuring safe and efficient operation of robots in complex environments.

CN114740870BActive Publication Date: 2024-09-20HOHAI UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210560577.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2024-09-20
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

Existing home robot path planning technology cannot effectively adapt to complex and changeable home environments, especially the problem of dynamic obstacle avoidance, and cannot achieve collision-free path planning and map updates that meet customer needs.

Method used

A home robot path planning system based on Internet of Things technology is used, combined with lidar, camera module, sensor module and RFID sensor. Static path planning is carried out through the ant colony algorithm and extended tree stochastic optimization method, and the fused social force model and Kalman are used. Filtered trajectory prediction scheme for dynamic obstacle avoidance.

Benefits of technology

It realizes the automatic establishment of maps, optimized global path planning and dynamic obstacle avoidance in complex home environments, ensuring that the robot completes tasks safely and efficiently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114740870B
    Figure CN114740870B
Patent Text Reader

Abstract

The present invention discloses a household robot path planning system and planning method based on the Internet of Things technology. The device includes: a main control system, a power module, a laser radar, a camera module, a sensor module, an RFID sensor module, a handle control module, a display module, a photoelectric encoder, a drive motor module and a power module; the method includes the following steps: constructing a household environment map; for the complex environment of indoor homes, the model of the indoor environment is frequently updated, and the map is adjusted in real time; for static path planning, the household robot adopts a grid modeling strategy to divide the environment into several grid areas, and uses an extended tree random optimization method to optimize the ant colony algorithm, thereby realizing the global static path planning of the household robot; for dynamic obstacle avoidance, the mobile household robot adopts a trajectory prediction scheme that integrates a social force model and a Kalman filter to predict the trajectory of mobile obstacles. The present invention can realize reasonable path planning and dynamic obstacle avoidance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of path planning, and in particular to a household robot path planning system and a planning method based on Internet of Things technology. Background Art

[0002] With the development of social economy, the aging of population is gradually aggravated. In this context, the research of home robots based on Internet of Things technology has broad social market prospects. As a daily assistant, home robots are mainly committed to meeting the needs of this special group of people, helping the elderly living alone and the disabled to better complete their daily home life work. Home robots can complete a series of simple daily household tasks such as sweeping, mopping, opening doors, and taking medicines at home, which will fully reduce the difficulty of daily life for such people and effectively improve the life happiness index of the elderly and the disabled.

[0003] Chinese Patent No.: CN202111269704.5 discloses a mobile robot path planning method based on bidirectional crawler path planning. This method determines the key points through a crawler-based path planning method, selects appropriate key points based on angle comparison with the starting point as the corner point, and connects the end points in sequence to obtain moving path one and moving path two respectively. Combining the advantages and disadvantages of the crawler algorithm, the dual crawler mode is adopted to obtain a better moving path on the basis of reducing a certain computing advantage.

[0004] Chinese Patent No.: CN201911304728.2, discloses a method for planning a full coverage path of a robot. The method obtains a map of the area, rasterizes it, and presets the starting point and end point of the path; assigns a preset weight to each grid in the map according to a preset weight assignment strategy; takes the starting point of the path in the rasterized map as the current point, takes the current point as the center point, uses the eight-neighborhood traversal algorithm to obtain the next point, takes the next point as the current point, and returns to execute the step of taking the current point as the center point and using the eight-neighborhood traversal algorithm to obtain the next point until the current point reaches the end point; takes the path composed of all current points between the starting point and the end point as the full coverage path.

[0005] The above patents have a low degree of automation and a relatively simple behavior pattern, which cannot meet the various complex and changeable practical needs of the elderly and disabled in life. In addition, the working environment of the above robots is simple and cannot be effectively adapted to the special and complex home environment, which cannot meet the current urgent practical needs.

[0006] The home environment is complex and changeable. Frequent movement of furniture and appliances will cause changes in the position of static obstacles. Factors such as pets moving around the home will cause robots to face dynamic obstacle avoidance problems. Therefore, it is necessary to design a reasonable environment modeling update strategy for the changing environment and a flexible obstacle avoidance strategy for complex dynamic obstacles. Therefore, how to reasonably update maps, plan paths, and avoid dynamic obstacles without collisions and meet customer needs are unresolved problems. Summary of the invention

[0007] The technical problem to be solved by the present invention is to provide a household robot path planning system and planning method based on Internet of Things technology, which can realize reasonable path planning and dynamic obstacle avoidance.

[0008] In order to solve the above technical problems, the present invention provides a household robot path planning system based on Internet of Things technology, including: a main control system, a power module, a laser radar, a camera module, a sensor module, an RFID sensor module, a handle control module, a display module, a photoelectric encoder, a drive motor module and a power module; the power module is used to supply power to each module, the laser radar is used for the household robot to establish an environmental map and determine the obstacle location information, the camera module is used for object identification and path planning, the sensor module includes a three-axis sensor, a three-axis accelerometer and a three-axis magnetometer for obstacle avoidance and positioning, the drive motor module is used to control the action of the household robot, the photoelectric encoder converts mechanical quantity into digital quantity, the display module is used to manually add instructions on the robot side, the handle control module uses the handle to remotely control the household robot via Bluetooth, the RFID sensor module is used for wired or wireless communication of the household robot, and the main control system controls each module.

[0009] Preferably, the household robot path planning system based on Internet of Things technology also includes a safety protection module, which is used to cut off the power supply in time in case of an accident during work to prevent the driving motor module from being burned.

[0010] Accordingly, a household robot path planning method based on Internet of Things technology includes the following steps:

[0011] Step 1: Build a home environment map. For the complex environment of indoor homes, the overall apartment type is fixed, that is, the outline of the entire environment is relatively fixed. However, for indoor homes that often change their locations, the model of the indoor environment needs to be updated frequently and the map needs to be adjusted in real time.

[0012] Step 2, static path planning: the home robot uses a grid modeling strategy to divide the environment into several grid areas, uses an ant colony algorithm for global path planning, and uses an extended tree random optimization method to optimize the ant colony algorithm, thereby realizing the global static path planning of the home robot;

[0013] Step 3: Dynamic obstacle avoidance: The mobile home robot adopts a trajectory prediction scheme that integrates the social force model and Kalman filter to predict the trajectory of moving obstacles, thereby achieving obstacle avoidance and path planning for dynamic obstacles in local path planning.

[0014] Preferably, in step 1, constructing the home environment map specifically includes the following steps:

[0015] Step 11: The robot follows the boundary of the home environment and uses laser radar and camera to build a boundary model of the home environment;

[0016] Step 12: Perform geometric processing on the indoor obstacles to approximate them into geometric polygonal shapes;

[0017] Step 13: Create an environmental grid map, and divide and represent all obstacles in the grid map according to the attributes of different obstacles: fixed obstacles, mobile obstacles, initial points, and target points.

[0018] Preferably, in step 2, the household robot divides the environment into several grid areas using a grid modeling strategy, specifically: the household robot divides the environment into several grid areas using a grid modeling strategy, including regularizing irregular obstacles in the entire working area, setting a grid occupancy parameter according to the size of the obstacle, converting partially occupied grids into free grids and fully occupied grids to complete the above regularization operation:

[0019]

[0020] Where occupancy represents the current grid occupancy, that is, the ratio of obstacles to the grid area; Ratio is a custom grid occupancy ratio parameter.

[0021] The grid method is used for modeling, and the robot's workspace is decomposed into a series of grid units with binary information. The established grids are divided into free grids and obstacle grids. The grids without obstacles are called free grids, and the grids containing obstacles are called obstacle grids. These grids indicate whether there are obstacles, which makes the problem simple and easy. The main problem of the grid method is to determine the size of the grid. If it is too large, the resolution is low, indicating that the obstacles are not accurate, but it can reduce the planning time; if it is too small, the resolution becomes higher, indicating that the obstacles are accurate, but it increases the time of path planning. Therefore, when using the grid method to establish an environmental model, it is necessary to determine a more appropriate grid size.

[0022] Preferably, in step 2, the specific steps of using the ant colony algorithm for global path planning are as follows: Assume that the total number of ants is M, the pheromone between nodes is represented by the matrix Pheromone, the optimal path length is BestLength, and the optimal path is BestTour. Each ant has its own memory to store the nodes that the ant has visited, so as to avoid the ant searching for this node for the second time; in addition, a table of accessible nodes is established to represent the nodes that the ant can still visit; in addition, a matrix is used to store the pheromone information released by the path passed by the ant in one iteration; there are also some other data, such as some control parameters used to assist in calculating pheromone evaporation, the probability of selecting the next node, etc., and the total cost or distance (TourLength) of the ant walking the entire journey, etc. Assume that the algorithm runs a total of Maxgen times, and the current iteration number is t;

[0023] The steps are as follows:

[0024] (a) Parameter initialization settings

[0025] The number of ants is k, the pheromone heuristic factor is α, the expected heuristic factor is β, the pheromone evaporation factor is ρ, and the strength of the pheromone is Q;

[0026] (b) The number of loops t = t + 1;

[0027] (c) The index number k of the ant's taboo list = 1;

[0028] (d) The number of ants k = k + 1;

[0029] (e) The ant individual selects an element and moves forward according to the probability calculated by the state transition probability formula. The probability distribution of the starting point is calculated according to the following formula:

[0030]

[0031] where t ij is the pheromone evaporation amount between node i and node j, and η ij is the heuristic function;

[0032] (f) Modify the taboo list pointer, that is, after selection, move the ant to a new node and move this node to the taboo list of this ant individual;

[0033] (g) If the nodes in the set have not been traversed, that is, k < m, then jump to step (d), otherwise execute step (h);

[0034] (h) Update the pheromone. The pheromone update formula is as follows:

[0035]

[0036] Where Δt ij represents the sum of pheromones released by all ants on the path;

[0037] (i) If the maximum number of iterations Maxgen is reached, the algorithm terminates and outputs the optimal path BestTour and the optimal path length BestLength; otherwise, go to step (b).

[0038] Preferably, in step 2, the ant colony algorithm is optimized by using an extended tree random optimization method, and the steps are as follows:

[0039] (2a) Input the path to be optimized, and set the input sequence number of the meta-expansion node to 1;

[0040] (2b) The position of the meta-expansion node expands outward; if the expansion node touches the boundary or obstacle, the expansion in that direction stops and the value of that direction is set to INF, and the expansion stops; if the expansion node belongs to the path to be optimized and the meta-expansion node and the expansion node are directly reachable, the straight line path between the meta-expansion node and the expansion node replaces the path between the meta-expansion node and the expansion node in the path to be optimized, generates a path to be selected, sets the value to the path length, and stops expanding;

[0041] (2c) When all directions of the meta-nodes reach the stopping condition, the path to be selected with the smallest value is selected to update the path to be optimized;

[0042] (2d) The meta-expansion node number is incremented, and (2b) and (2c) are repeated until the meta-expansion node number reaches the maximum, and the optimized path is output.

[0043] Preferably, in step 3, dynamic obstacle avoidance specifically includes the following steps:

[0044] Step 31: Establish a Kalman filter prediction model, whose mathematical model is mainly composed of state equations and observation equations.

[0045] X k =TX k-1 +W k-1

[0046] Z k =HX k +V k

[0047] Among them, X k is the system state at time k; T is the n×n dimensional state transfer matrix; H is the m×n dimensional observation matrix; W k-1 represents process noise, which satisfies the Gaussian distribution with a mean of zero and a covariance matrix of Q; V k To measure noise, it satisfies a Gaussian distribution with a mean of zero and a covariance matrix of R.

[0048] The time update of the Kalman filter model uses the state equation of the system to obtain the prior estimate of the state system at the next moment:

[0049] X (k|k-1) =TX (k-1|k-1)

[0050] P (k|k-1) =TP (k-1|k-1) T H +Q

[0051] The measurement update of the Kalman filter model uses the observed value to correct the estimated value of the previous step:

[0052] K k =P (k|k-1) H T (HP (k|k-1) H T +R) -1

[0053] X (k|k) =X (k|k-1) +K k (Z k -HX (k|k-1) )

[0054] P (k|k) =(IK k H)P (k|k-1)

[0055] Among them, K k represents the Kalman gain;

[0056] Step 32: Since the sampling time of the prediction process endpoint is very short, the target movement within the sampling time can be regarded as uniform motion. The states in the X and Y directions are estimated respectively, and the motion state equation is obtained as follows:

[0057]

[0058] in, and They represent the states of the target in the X direction and Y direction at time k respectively. The formula is written in matrix form to obtain the state transfer matrix of the Kalman filter: State variables The position at time k is used when measuring and updating, that is, the observed value Observation Matrix

[0059] Step 33: Establish a motion model based on the social force model. Its mathematical model is mainly composed of state equations and observation equations. SFM is a classic microscopic model, and its kinematic equation is:

[0060]

[0061] Among them, m i represents the mass of the i-th moving obstacle; v i Indicates speed; f i represents the resultant force on the ith obstacle in time dt, f i is the self-driving force f of the moving obstacle. i 0 and the interaction force f between the moving obstacle and other obstacles i e composition:

[0062] f i =f i 0 +f i e

[0063]

[0064] in, and They represent the expected speed and direction of the ith moving obstacle respectively; v i (t) is the velocity at time t; τ i is the reaction time. i e Represents the repulsive force on the moving obstacle:

[0065] f i e =f i p +f i w

[0066] Among them, f i w Represents the repulsive force of obstacles on moving objects; f i p Indicates the repulsive force of other moving obstacles on it except the i-th moving obstacle:

[0067]

[0068] in, Represents the force exerted by the j-th obstacle on the i-th obstacle:

[0069]

[0070] Among them, r i is the radius of the ith obstacle; g(x) = max{0,x}, A α , B α, k1 and k2 are both positive constants; Indicates repulsion; k1g(r ij -d ij )]n ij and represent compression force and friction force respectively, and only in d ij ≤r ij The action takes place when the ith moving obstacle comes into contact with the jth moving obstacle. The variables are defined as follows:

[0071] r ij =r i +r j

[0072] d ij =||d i -d j ||

[0073]

[0074] t ij =[-n ij (2),n ij (1)] T

[0075]

[0076] Step 34: Integrate the trajectory prediction method based on Kalman filtering and the motion model based on the social force model:

[0077] It means the motion state from time k-1 to k is obtained by the social force model. and represents the predicted position at time k-1 and time k. Function f(θ del ) is defined as:

[0078]

[0079] Among them, ε1 and ε2 represent the angle change thresholds; ρ represents the proportional coefficient; θ del Indicates the change in the direction of pedestrian movement:

[0080]

[0081] Update mechanism triggering condition social force prediction value and overall optimal estimate value The error between them is greater than the threshold, and the threshold calculation formula is:

[0082]

[0083] in, is the optimal estimate of the moving obstacle at time k, is the position predicted by the social force model. When the error between the two estimates is greater than Ψ, the trajectory is updated with the optimal estimate at that time.

[0084] The beneficial effects of the present invention are as follows: in the present invention, after the home robot finishes scanning the home environment map, it will automatically establish an overall environment map of the home environment, and send operations such as going to a certain location in the home environment to pick up medicine through the PC or directly manually on the home robot. The robot will automatically find a global path from the current position to the destination through the algorithm that optimizes the ant colony algorithm using the extended tree random optimization method, and then start the robot's path planning process. When the moving home robot scans a moving obstacle (such as pets such as cats and dogs), the robot avoids the moving obstacle by adopting a trajectory prediction scheme that integrates the social force model and Kalman filtering, and finally reaches the destination. During this process, the robot will continuously scan the home environment and timely update the position information of obstacles such as furniture in the home environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] Figure 1 It is a schematic diagram of the robot structural module of the present invention.

[0086] Figure 2 It is an overall schematic diagram of the household robot of the present invention.

[0087] Figure 3 It is a schematic diagram of a home environment of the present invention.

[0088] Figure 4 It is a schematic diagram of the home environment grid modeling of the present invention.

[0089] Figure 5 It is a schematic diagram of the improved ant colony algorithm path planning process of the present invention.

[0090] Figure 6 It is a schematic diagram of the process of the random optimization ant colony algorithm for the expansion tree of the present invention.

[0091] Figure 7 It is a flow chart of the dynamic programming algorithm for fusion prediction of Kalman filter and social force model of the present invention.

[0092] Figure 8 It is a diagram of the algorithm operation results of the present invention. DETAILED DESCRIPTION

[0093] Figure 1 The figure is a structural module diagram of a household robot, wherein the robot module includes a laser radar, a power module, a camera module, a three-axis sensor, a three-axis accelerometer, a three-axis magnetometer, a drive motor module, a photoelectric encoder, a display module, a handle control module and an RFID sensing module.

[0094] The power module is used to supply power to each module. The lidar is used for the home robot to establish an environmental map and determine the location information of obstacles. The depth camera is used for object recognition and path planning. The sensor module includes a three-axis sensor, a three-axis accelerometer and a three-axis magnetometer for obstacle avoidance and positioning. The drive motor module is used to control the action of the home robot. The photoelectric encoder converts mechanical quantity into digital quantity. The display module is used to manually add instructions on the robot side. The handle control module uses the handle to remotely control the home robot via Bluetooth. The RFID sensor module is used for wired or wireless communication of the home robot. The main control system controls each module.

[0095] Figure 2 This is the overall schematic diagram of the home robot. The robot system can be controlled by a handle and by a mobile phone or PC via WiFi:

[0096] Figure 3 It is a modeling of the specific environment of the robot in the home environment, which includes static and dynamic obstacles such as home appliances, furniture, pets, medicine cabinets and people. The robot can control various home appliances in the home environment through instructions, and can complete simple commands such as taking medicine and water through path planning.

[0097] Figure 4 This is a schematic diagram of home environment grid modeling, where the steps for modeling a home indoor environment with obstacles are as follows:

[0098] (1) Geometrically process the indoor obstacles and approximate them into geometric polygonal shapes;

[0099] (2) Establish an environmental grid map and divide all obstacles into different categories according to their attributes: fixed obstacles, mobile obstacles, initial points, and target points.

[0100] (3) The steps of using the grid modeling strategy to divide the environment into several grid areas are as follows:

[0101] The home robot uses a grid modeling strategy to divide the environment into several grid areas, including regularizing irregular obstacles in the entire working area. According to the size of the obstacle, a grid occupancy parameter is set to convert partially occupied grids into free grids and fully occupied grids to complete the above regularization operation:

[0102]

[0103] Where occupancy represents the current grid occupancy, that is, the ratio of obstacles to the grid area; Ratio is a custom grid occupancy ratio parameter.

[0104] (4) The grid method is used for modeling. The robot's workspace is decomposed into a series of grid cells with binary information. The established grids are divided into free grids and obstacle grids. The grids without obstacles are called free grids, while the grids containing obstacles are called obstacle grids. These grids are used to indicate whether there are obstacles, which makes the problem simple and straightforward. The main problem with the grid method is to determine the size of the grid. If it is too large, the resolution is low, indicating that the obstacles are not accurate, but it can reduce the planning time; if it is too small, the resolution becomes higher, indicating that the obstacles are accurate, but it increases the path planning time. Therefore, when using the grid method to establish an environmental model, it is necessary to determine a more appropriate grid size.

[0105] Figure 5 This is a flow chart of improved ant colony algorithm path planning, in which the steps of using ant colony algorithm to achieve global static path planning are as follows: Assume that the total number of ants is M, the pheromone between nodes is represented by the matrix Pheromone, the optimal path length is BestLength, and the optimal path is BestTour. Each ant has its own memory to store the nodes that the ant has visited, thereby avoiding the ant from searching the node for the second time; in addition, a table of nodes allowed to be visited is established to indicate the nodes that the ant can still visit; in addition, a matrix is ​​used to store the pheromone information released by the path that the ant passes through in one iteration; there are also other data, such as some control parameters used to assist in calculating pheromone volatilization, the probability of selecting the next node, etc., the total cost or distance (TourLength) of the ant's complete walk, etc. Assume that the algorithm runs Maxgen times in total, and the current number of iterations is t.

[0106] The steps are as follows:

[0107] (6a) Parameter initialization settings

[0108] The number of ants is k, the pheromone inspiration factor is α, the expected inspiration factor is β, the pheromone volatility factor is ρ, and the pheromone intensity is Q;

[0109] (6b) Cycle number t = t + 1;

[0110] (6c) The ant’s taboo table index number k = 1;

[0111] (6d) Number of ants k = k + 1;

[0112] (6e) The ant individual selects an element and moves forward according to the probability calculated by the state transition probability formula. The probability distribution of the starting point is calculated according to the following formula:

[0113]

[0114] where t ijis the pheromone evaporation rate between node i and node j, η ij is the heuristic function;

[0115] (6f) Modify the taboo list pointer, that is, after selection, move the ant to a new node and move this node to the taboo list of this ant individual;

[0116] (6g) If the nodes in the set have not been traversed, that is, k < m, then jump to step (6d), otherwise execute step (6h);

[0117] (6h) Update the pheromone, and the pheromone update formula is as follows:

[0118]

[0119] where Δt ij represents the total pheromone released by all ants on the path;

[0120] (6i) If the maximum number of iterations Maxgen is reached, the algorithm terminates, and the optimal path BestTour and the optimal path length BestLength are output; otherwise, go to step (6b).

[0121] Figure 6 is the flowchart of the extended tree random optimization ant colony algorithm. The steps of optimizing the ant colony algorithm using the extended tree random optimization method are as follows:

[0122] (7a) Input the path to be optimized, and set the input serial number of the meta-expansion node to 1;

[0123] (7b) Expand outward from the position of the meta-expansion node. If the expansion node touches the boundary or obstacle, stop expanding in this direction and set the value of this direction to INF, and stop expanding; if the expansion node belongs to the path to be optimized and the straight line between the meta-expansion node and the expansion node is reachable, replace the path between the meta-expansion node and the expansion node in the path to be optimized with the straight-line path between the meta-expansion node and the expansion node, generate a path to be selected, set the value to the path length, and stop expanding;

[0124] (7c) When all directions of the meta-node reach the stop condition, select the path to be selected with the smallest value to update the path to be optimized;

[0125] (7d) Increment the serial number of the meta-expansion node, and repeat (7b) and (7c) until the serial number of the meta-expansion node reaches the maximum, and output the optimized path.

[0126] Figure 7 is the flowchart of the Kalman filter and social force model fusion prediction dynamic programming algorithm. Among them, a trajectory prediction scheme that fuses the social force model and the Kalman filter is adopted to predict the trajectory of moving obstacles, and the specific steps to achieve obstacle avoidance for dynamic obstacles are as follows:

[0127] (8a) A Kalman filter prediction model is established, and its mathematical model is mainly composed of state equations and observation equations.

[0128] X k =TX k-1 +W k-1

[0129] Z k =HX k +V k

[0130] Among them, X k is the system state at time k; T is the n×n dimensional state transfer matrix; H is the m×n dimensional observation matrix; W k-1 represents process noise, which satisfies the Gaussian distribution with a mean of zero and a covariance matrix of Q; V k To measure noise, it satisfies a Gaussian distribution with a mean of zero and a covariance matrix of R.

[0131] The time update of the Kalman filter model uses the state equation of the system to obtain the prior estimate of the state system at the next moment:

[0132] X (k|k-1) =TX (k-1|k-1)

[0133] P (k|k-1) =TP (k-1|k-1) T H +Q

[0134] The measurement update of the Kalman filter model uses the observed value to correct the estimated value of the previous step:

[0135] K k =P (k|k-1) H T (HP (k|k-1) H T +R) -1

[0136] X (k|k) =X (k|k-1) +K k (Z k -HX (k|k-1) )

[0137] P (k|k) =(IK k H)P (k|k-1)

[0138] Among them, K k represents the Kalman gain.

[0139] (8b) Since the sampling time of the prediction process endpoint is very short, the target movement within the resampling time can be regarded as uniform motion. The states in the X and Y directions are estimated respectively, and the motion state equation is obtained as:

[0140]

[0141] in, and They represent the states of the target in the X direction and Y direction at time k respectively. The formula is written in matrix form to obtain the state transfer matrix of the Kalman filter: State variables The position at time k is used when measuring and updating, that is, the observed value Observation Matrix

[0142] (8c) A motion model based on the social force model is established. Its mathematical model is mainly composed of state equations and observation equations. SFM is a classic microscopic model, and its kinematic equation is:

[0143]

[0144] Among them, m i represents the mass of the i-th moving obstacle; v i Indicates speed; f i represents the resultant force on the ith obstacle in time dt, f i is the self-driving force f of the moving obstacle. i 0 and the interaction force f between the moving obstacle and other obstacles i e composition:

[0145] f i =f i 0 +f i e

[0146]

[0147] Among them, v i 0 (t) and v i 0 (t) represents the expected speed and direction of the i-th moving obstacle; v i (t) is the velocity at time t; τ i is the reaction time. i e Represents the repulsive force on the moving obstacle:

[0148] f ie =f i p +f i w

[0149] Among them, f i w Represents the repulsive force of obstacles on moving objects; f i p Indicates the repulsive force of other moving obstacles on it except the i-th moving obstacle:

[0150]

[0151] in, Represents the force exerted by the j-th obstacle on the i-th obstacle:

[0152]

[0153] Among them, r i is the radius of the ith obstacle; g(x) = max{0,x}, A α , B α , k1 and k2 are both positive constants; Indicates repulsion; k1g(r ij -d ij )]n ij and represent compression force and friction force respectively, and only in d ij ≤r ij The action takes place when the ith moving obstacle comes into contact with the jth moving obstacle. The variables are defined as follows:

[0154] r ij =r i +r j

[0155] d ij =||d i -d j ||

[0156]

[0157] t ij =[-n ij (2),n ij (1)] T

[0158]

[0159] (8d) The trajectory prediction method based on Kalman filtering and the motion model based on the social force model are integrated:

[0160] It means the motion state from time k-1 to k is obtained by the social force model. and represents the predicted position at time k-1 and time k. Function f(θ del ) is defined as:

[0161]

[0162] Among them, ε1 and ε2 represent the angle change thresholds; ρ represents the proportional coefficient; θ del Indicates the change in the direction of pedestrian movement:

[0163]

[0164] Update mechanism triggering condition social force prediction value and overall optimal estimate value The error between them is greater than the threshold, and the threshold calculation formula is:

[0165]

[0166] in, is the optimal estimate of the moving obstacle at time k, is the position predicted by the social force model. When the error between the two estimates is greater than Ψ, the trajectory is updated with the optimal estimate at that time.

[0167] like Figure 8 The figure shows the results of the method. The home robot is used to scan the entire home environment, and an environmental map is established for the entire home environment, and the overall environmental map is rasterized. Then, the starting point and destination are set on the modeled environmental map, and the global path planning of the entire environment is performed by using the extension tree randomization algorithm, and the car starts motion planning. When the car encounters a moving obstacle during its movement, a trajectory prediction scheme that integrates the social force model and Kalman filter is used to avoid dynamic obstacles.

Claims

1. A household robot path planning method based on Internet of Things technology, characterized in that: It includes the following steps: Step 1: Construct a home environment map; for the complex environment of indoor home, the model of the indoor environment is often updated, and the map is adjusted in real time; Step 2: Static path planning; the home robot uses the grid modeling strategy to divide the environment into several grid areas, uses the ant colony algorithm for global path planning, and uses the extended tree random optimization method to optimize the ant colony algorithm, so as to realize the global static path planning of the home robot; The specific steps of using the ant colony algorithm for global path planning are as follows: assume that the total number of ants is M, the pheromone between nodes is represented by the matrix Pheromone, the optimal path length is BestLength, the optimal path is BestTour, and each ant has its own memory to store the nodes that the ant has visited, so as to avoid the ant searching this node for the second time; in addition, establish a table of allowed nodes to represent the nodes visited by the ant, and use a matrix to store the pheromone information released by the path passed by the ant in one iteration; assume that the algorithm runs a total of Maxgen times, and the current iteration number is t; The steps are as follows: Step a: Parameter initialization settings; The number of ants is k, the pheromone heuristic factor is α, the expected heuristic factor is β, the pheromone evaporation factor is ρ, and the strength of the pheromone is Q; Step b: The loop number t = t + 1; Step c: The tabu list index number of the ant k = 1; Step d: The number of ants k = k + 1; Step e: The ant individual selects an element and moves forward according to the probability calculated by the state transition probability formula. The probability distribution of the starting point is calculated according to the following formula: where t ij is the pheromone volatilization between node i and node j, η ij is a heuristic function; Step f: Modify the tabu list pointer, that is, after selection, move the ant to a new node and move this node to the tabu list of the ant individual; Step g: If the nodes in the set have not been traversed, that is, k < m, jump to step d, otherwise execute step h; Step h: Update the pheromone. The pheromone update formula is as follows: Where Δt ij represents the sum of pheromones released by all ants on the path; Step i: If the maximum iteration number Maxgen is reached, the algorithm terminates, and the optimal path BestTour and the optimal path length BestLength are output; otherwise, go to step b; Use the extended tree random optimization method to optimize the ant colony algorithm. The steps for optimizing the global path planning of the ant colony algorithm are as follows: Step 2a: Input the path to be optimized, and set the input serial number of the meta-expansion node to 1; Step 2b: Expand the position of the meta-expansion node outward; if the expansion node touches the boundary or obstacle, stop expanding in this direction and set the value of this direction to INF, and stop expanding; if the expansion node belongs to the path to be optimized and the straight line between the meta-expansion node and the expansion node is reachable, replace the path between the meta-expansion node and the expansion node in the path to be optimized with the straight-line path between the meta-expansion node and the expansion node, generate a path to be selected, set the value to the path length, and stop expanding; Step 2c: When all directions of the meta-node reach the stop condition, select the path to be selected with the smallest value to update the path to be optimized; Step 2d: Increment the serial number of the meta-expansion node, and repeat steps 2b and 2c until the serial number of the meta-expansion node reaches the maximum, and output the optimized path; Step 3: Dynamic obstacle avoidance: The mobile home robot adopts a trajectory prediction scheme that integrates the social force model and Kalman filter to predict the trajectory of moving obstacles, thereby achieving obstacle avoidance and path planning for dynamic obstacles in local path planning.

2. The path planning method for a household robot based on the Internet of Things technology as claimed in claim 1, characterized in that: In step 1, building a home environment map specifically includes the following steps: Step 11: The robot follows the boundary of the home environment and uses laser radar and camera to build a boundary model of the home environment; Step 12: Perform geometric processing on the indoor obstacles to approximate them into geometric polygonal shapes; Step 13: Create an environmental grid map, and divide and represent all obstacles in the grid map according to the attributes of different obstacles: fixed obstacles, mobile obstacles, initial points, and target points.

3. The path planning method for a household robot based on the Internet of Things technology as claimed in claim 1, characterized in that: In step 2, the home robot uses a grid modeling strategy to divide the environment into several grid areas. The specific steps are as follows: the home robot divides the entire home environment into several grid areas and performs grid modeling on the environment map, including regularizing irregular obstacles in the entire working area. According to the size of the obstacle, a grid occupancy parameter is set to convert partially occupied grids into free grids and fully occupied grids to complete the above regularization operation: Where occupancy represents the current grid ratio, that is, the ratio of obstacles to the grid area; Ratio is a custom grid occupancy parameter; The grid method is used for modeling, and the robot's workspace is decomposed into a series of grid cells with binary information. The established grids are divided into free grids and obstacle grids. The grids without obstacles are called free grids, and the grids containing obstacles are called obstacle grids. These grids are used to indicate whether there are obstacles.

4. The path planning method for a household robot based on the Internet of Things technology as claimed in claim 1, characterized in that: In step 3, the implementation of dynamic obstacle avoidance in local path planning specifically includes the following steps: Step 31, establish a Kalman filter prediction model, whose mathematical model consists of a state equation and an observation equation; X k =TX k-1 +W k-1 Z k =HX k +V k Among them, X k is the system state at time k; T is the n×n dimensional state transfer matrix; H is the m×n dimensional observation matrix; W k-1 represents process noise, which satisfies the Gaussian distribution with a mean of zero and a covariance matrix of Q; V k The noise is measured with a Gaussian distribution with a mean of zero and a covariance matrix of R; The time update of the Kalman filter model uses the state equation of the system to obtain the prior estimate of the state system at the next moment: X (k|k-1) =TX (k-1|k-1) P (k|k-1) =TP (k-1|k-1) T H +Q The measurement update of the Kalman filter model uses the observed value to correct the estimated value of the previous step: K k =P (k|k-1) H T (HP (k|k-1) H T +R) -1 X (k|k) =X (k|k-1) +K k (Z k -HX (k|k-1) ) P (k|k) =(I-K k H)P (k|k-1) Among them, K k represents the Kalman gain; Step 32: Since the sampling time at the end of the prediction process is very short, the target movement within the sampling time is regarded as uniform motion, and the states in the X and Y directions are estimated respectively, and the motion state equation is obtained as follows: in, and They represent the states of the target in the X direction and Y direction at time k respectively. The formula is written in matrix form to obtain the state transfer matrix of the Kalman filter. State variables The position at time k is used when measuring and updating, that is, the observed value Observation Matrix Step 33: Establish a motion model based on the social force model. Its mathematical model is mainly composed of state equations and observation equations. SFM is a classic microscopic model, and its kinematic equation is: Among them, m i represents the mass of the i-th moving obstacle; v i Indicates speed; f i represents the resultant force on the ith obstacle in time dt, f i is the self-driving force f of the moving obstacle. i 0 and the interaction force f between the moving obstacle and other obstacles i e composition: f i =f i 0 +f i e in, and They represent the expected speed and direction of the ith moving obstacle respectively; v i (t) is the velocity at time t; τ i is the reaction time, f i e Represents the repulsive force on the moving obstacle: f i e =f i p +f i w Among them, f i w Represents the repulsive force of obstacles on moving objects; f i p Indicates the repulsive force of other moving obstacles on it except the i-th moving obstacle: in, Represents the force exerted by the j-th obstacle on the i-th obstacle: Among them, r i is the radius of the ith obstacle; g(x) = max{0,x}, A α , B α , k1 and k2 are both positive constants; Indicates repulsion; k1g(r ij -d ij )]n ij and represent compression force and friction force respectively, and only in d ij ≤r ij When , the i-th moving obstacle and the j-th moving obstacle come into contact, where the variables are defined as follows: r ij =r i +r j d ij =||d i -d j || t ij =[-n ij (2),n ij (1)] T Step 34: Integrate the trajectory prediction method based on Kalman filtering and the motion model based on the social force model: It means the motion state from time k-1 to k is obtained by the social force model. and represents the predicted position at time k-1 and time k, and the function f(θ del ) is defined as: Among them, ε1 and ε2 represent the angle change thresholds; ρ represents the proportional coefficient; θ del Indicates the change in the direction of pedestrian movement: Update mechanism triggering condition social force prediction value and overall optimal estimate value The error between them is greater than the threshold, and the threshold calculation formula is: in, is the optimal estimate of the moving obstacle at time k, is the position predicted by the social force model. When the estimation error between the two is greater than Ψ, the trajectory is updated with the optimal estimation value at this time.

5. A system using the household robot path planning method based on Internet of Things technology as claimed in claim 1, characterized in that: include: Main control system, power module, laser radar, camera module, sensor module, RFID sensor module, handle control module, display module, photoelectric encoder, drive motor module and power module; The power module is used to supply power to each module. The laser radar is used for the home robot to establish an environmental map and determine the location information of obstacles. The camera module is used for object recognition and path planning. The sensor module includes a three-axis sensor, a three-axis accelerometer and a three-axis magnetometer for obstacle avoidance and positioning. The drive motor module is used to control the action of the home robot. The photoelectric encoder converts mechanical quantity into digital quantity. The display module is used to manually add instructions on the robot side. The handle control module uses the handle to remotely control the home robot via Bluetooth. The RFID sensor module is used for wired or wireless communication of the home robot. The main control system controls each module.

6. The home robot path planning system based on Internet of Things technology as claimed in claim 5, characterized in that: The home robot path planning system based on Internet of Things technology also includes a safety protection module, which is used to cut off the power supply in time in case of accidents during work to prevent the drive motor module from being burned.

Citation Information

Patent Citations

  • Method and device for planning full-coverage path of cleaning robot

    CN111012251A

  • Mobile robot path planning method based on bidirectional crawler

    CN113985881A

  • Robot path planning method under home environment

    CN104808671A

  • Database machine room complex path planning system and planning method thereof

    CN112612275A

  • Systems and methods for adaptive path planning

    US20210103286A1