Quadruped robot navigation system and method based on global path planning
By adding dynamic weight evaluation function, redundant node deletion strategy and cubic B-spline processing to the four-legged robot path planning, the problems of many turning points and obstacle processing difficulties in the existing technology are solved, and efficient and smooth global paths are achieved Planning improves the manipulation and computing efficiency of robot navigation.
Patent Information
- Application Number
- CN202410936509.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-05
AI Technical Summary
The existing four-legged robot path planning methods have many turning points and poor problems in handling obstacles, which are not easy to manipulate, increase calculation overhead and low efficiency.
By adding dynamic weight evaluation functions, redundant node deletion strategies and security thresholds to the A* algorithm, and introducing cubic B-splines for smoothing, a global path that conforms to the principles of robot kinematics is planned, reducing vertices, and improving computing efficiency and Path smoothness.
A smooth and short global path under real-time conditions is generated, which improves the manipulation and overall computing efficiency of robot navigation, and ensures the safety and high quality of the path.
Smart Images

Figure CN118896600A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile robots, and in particular to a quadruped robot navigation system and method based on global path planning. Background Art
[0002] Mobile robots can be roughly divided into wheeled robots, tracked robots and legged robots. The advantage of quadruped robots over other mobile robots is that they are more adaptable to complex terrain and environments, can move flexibly and cross obstacles, and have strong stability and adaptability. Quadruped robots can also carry relatively large loads, perform more complex tasks and assist in work, such as transporting goods, inspecting equipment, and parking navigation, while reducing dependence on external support and improving autonomy and independence.
[0003] Path planning is the basis of autonomous navigation of quadruped robots. Based on given partial environmental information, the robot needs to autonomously plan an optimal or suboptimal collision-free path between two specified locations that meets certain conditions (such as distance, smoothness, and safety).
[0004] Global path planning can also be called static path planning. It means that when the static global map is known, the robot plans the optimal or suboptimal path that meets the constraints based on the positions of the starting point and the target point.
[0005] Traditional methods include A*, Dijkstra, and Jump Point Search (JPS). The Dijkstra algorithm guarantees to find the shortest path, but it has no heuristics and is inefficient. JPS speeds up the search by skipping redundant nodes, but its implementation is complex. The A* algorithm combines path cost and heuristic estimation, is efficient and easy to implement, and can quickly find a better path. Compared with Dijkstra, A* significantly improves search efficiency by using heuristic functions; compared with JPS, A* is simpler to implement. However, the problem with the A* algorithm is that improper selection of heuristic functions may lead to suboptimal solutions or inefficient searches, and a large number of search nodes may be generated in complex maps, resulting in increased computational overhead.
[0006] In summary, the existing robot path planning has many turning points and is not good at handling obstacles, making it difficult to control the robot. Summary of the invention
[0007] In order to overcome the above technical problems, the purpose of the present invention is to provide a quadruped robot navigation system and method based on global path planning. By adding a dynamic weight evaluation function, a redundant node deletion strategy is proposed, a safety threshold is set, and cubic B-splines are added for smoothing, a global path that conforms to the kinematic principles of the robot is planned, the turning points in the path are greatly reduced, and a smooth and short global path is obtained while ensuring real-time performance. The overall computing efficiency is high and the robot is easy to control.
[0008] In order to achieve the above object, the technical solution adopted by the present invention is:
[0009] A quadruped robot navigation system based on global path planning, including map construction and environment perception, and global path planning;
[0010] The map building and environment perception is responsible for collecting information about the robot's surrounding environment and building a map of the environment based on this information, providing necessary environmental information for global path planning, ensuring that the robot can accurately understand its environment and plan a suitable path accordingly;
[0011] The global path planning plans a global optimal or suboptimal path from the starting point to the end point according to the environment map and the target position of the robot, providing the robot with a path from the current position to the target position, which should be as short, safe and feasible as possible.
[0012] A method for using a quadruped robot navigation system based on global path planning comprises the following steps:
[0013] Step (1): Based on the laser radar carried by the quadruped robot, the quadruped robot obtains the control information of the posture and odometer, determines the initial posture and locates;
[0014] Step (2): Create a two-dimensional grid map based on the initial posture of the quadruped robot and the observation data of the laser radar carried by the robot itself;
[0015] Step (3): Introduce the automatic adjustment parameter β and logarithmic adjustment into the evaluation function of the path estimation method in the traditional A* algorithm. Through the improved evaluation function, the path cost and heuristic estimation are combined, so that the algorithm can estimate the distance to the target more accurately.
[0016] Step (4): Add the safety threshold value (k) to avoid crossing obstacles diagonally, thus completing the first stage search of global path planning;
[0017] Step (5): Traverse the path node set generated in the search results of the first stage, calculate the vector angle between the current node and its child nodes (subsequent nodes), and obtain a final global path that conforms to the robot kinematics principle.
[0018] In step (1), the quadruped robot can accurately calculate its own posture information by using the environmental information observed by the laser radar and combining it with its own known state. The laser radar scans the surrounding environment and collects a series of point cloud data, which represents the position and shape of objects around the quadruped robot.
[0019] The construction of the two-dimensional grid map in step (2) comprises the following steps:
[0020] First, set the map resolution, size, and initial state of the grid (such as feasible area or infeasible area), determine the initial position of the robot, and calibrate the laser radar and robot coordinate system;
[0021] Start the robot and let it move along a preset trajectory or autonomously, while collecting lidar scanning data, including the angle and distance of each scanning point;
[0022] According to the scanning range of the laser radar and the movement of the robot, the status of the surrounding grid is updated to "feasible area" or "infeasible area".
[0023] In the step (3);
[0024] The logarithmic adjustment is (1+log(1+β*d / D))*h(n), where D is the distance from the starting point to the target point, d is the distance from the current node to the target node, and β is the automatic adjustment parameter;
[0025] The cost function of the improved A* algorithm is: f(n) = g(n) + (1 + log(1 + β*d / D)) * h(n), where n represents the current node of the robot state, f(n) is the cost function of the robot's global path planning, g(n) represents the actual cost of the robot from the starting point to the current node n, h(n) is the heuristic function, which represents the heuristic estimated cost of the robot from the current node n to the target point, and β is the adaptive adjustment parameter;
[0026] Where D is assumed to represent the scale of the problem, β max =e D +log(1+D),β min =log(1+D), when d / D<0.5, β=β min +(β max -β min )*log(1+2*d / D, when d / D>0.5, β=β min +(β max -β min )*(1-log(1+2*(1-d / D))).
[0027] In step (4), the safety domain value (k) is the safety distance between the moving path and the vertex of the static obstacle. Set k = 0.85. Assuming that the current node is N1 and connected to N1N2, the distance from the line segment N1N2 to the vertex of the static obstacle must be greater than or equal to the safety domain value (k). If the distance from the segment N1N2 to the vertex of the static obstacle is less than the safety domain value k, delete the node and select the next node until the distance from the line segment connecting the previous node and the current node to the vertex of the static obstacle is greater than or equal to the safety domain value; if the distance from the line segment N1N3 connecting the previous node N1 and the next node N3 to the vertex of the static obstacle is also greater than or equal to the safety domain value k, the current node is a redundant node, delete the current node, update the path, and start from node N3. This step completes the first stage search of the global path planning and solves the preliminary global path for the robot movement.
[0028] In step (5), if the angle is 0 (i.e., the nodes are on the same straight line), the parent node (the node before the current node) is updated; if the angle is not 0, the straight line equation between the current node and the child node is calculated, the connection equation is calculated, and obstacles are checked; if there are no obstacles, the parent node is updated, otherwise the original parent node is maintained and the current node is set as the new parent node;
[0029] Further optimize the path, starting from the first path node, calculate all nodes on the line between the current node and its child nodes and the child nodes of its child nodes, and check whether there are obstacles at these nodes;
[0030] If there are no obstacles on the path, the first connectable point is added to the new path and the next node is determined. If there are obstacles, the child nodes of the current node are stored in the new path, which can significantly simplify the path and reduce the complexity of calculation and actual movement.
[0031] After removing redundant nodes and optimizing broken lines, the cubic B-spline is introduced to smooth the path. The cubic B-spline curve is a continuous and smooth curve generated by interpolating a set of control points through a specific mathematical formula. Drawing the curve in a gentle way avoids sharp angles or edges in the path, which can significantly improve the smoothness and continuity of the path, making the path smoother and obtaining a final global path that conforms to the robot's kinematics principles.
[0032] Beneficial effects of the present invention:
[0033] The present invention completes the first stage search of global path planning by adding an automatic adjustment parameter β and logarithmic adjustment to the original A* algorithm cost function, and generates a smooth and short preliminary global path under the condition of ensuring real-time performance; then the search results of the first stage are subjected to a secondary search, and redundant turning points in the path are eliminated through broken line optimization and three-point collinearity, so as to obtain a final global path that conforms to the robot kinematics principle and greatly reduces the turning points; at the same time, a safety distance threshold is added to make the robot's path planning safer in complex environments;
[0034] The automatic adjustment parameter β described in the present invention is adjusted dynamically according to the ratio of the distance d from the current node to the target node and the total distance D by calculating the ratio. When the ratio is less than 0.5, the β value is adjusted according to the logarithmic function of the ratio; when the distance ratio is greater than or equal to 0.5, the β value is adjusted according to the logarithmic function of (1-d / D). β is dynamically adjusted by the change of the distance ratio to adapt to different search spaces and problem scales; after adding the safety domain value (k), the robot is also safer in path planning; the second stage described in the present invention, by traversing each node, calculates the vector angle between the current node and its child nodes and the child nodes of the child nodes. If the vector angle is 0, it means that the node is on a straight line, and the parent node is updated; if it is not on a straight line, the straight line equation between the two points is calculated to determine whether there are obstacles on the path. If there is no obstacle, update the parent node, otherwise do not change the parent node and set the current node as the new parent node; further optimize the path, starting from the first path node, calculate all nodes on the line between the current node and the child node and its child nodes, and check whether there are obstacles between these nodes and the current node. If there is no obstacle, store the first connectable point in the new path and continue to judge as the current point; otherwise, store the child node of the current node in the new path. After removing redundant nodes and optimizing the broken line, introduce cubic B-spline for path smoothing, which can greatly improve the smoothness and continuity of the path, thereby generating a high-quality path that is more in line with the robot kinematics. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 Schematic diagram of the eight-neighborhood search of the A* algorithm.
[0036] Figure 2 This is the safety threshold schematic.
[0037] Figure 3 This is the simulation effect diagram of the traditional A* algorithm on a 20*20 grid map.
[0038] Figure 4 Simulation effect diagram of improving A* algorithm for 20*20 grid map.
[0039] Figure 5 Simulation effect diagram of introducing cubic B-spline to improve A* algorithm for 20*20 grid map.
[0040] Figure 6 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0041] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0042] like Figure 6 As shown, the present invention provides a quadruped robot navigation system and method based on global path planning, which are specifically as follows:
[0043] Positioning: Based on the laser radar carried by the quadruped robot, the robot can obtain the control information of the position and odometer to determine its initial position. Through the environmental information observed by the laser radar and combined with its own known state, the robot can accurately calculate its own position information;
[0044] Create a priori map: Generate a two-dimensional grid map through the initial posture and the observation data of the sensors carried by the robot (such as lidar). There are two states in the two-dimensional grid map, namely black grid (infeasible area) and white grid (feasible area). The black grid indicates that there is an obstacle at this point, and the robot cannot pass through it during path planning; the white grid indicates that there is no obstacle at this point, and the quadruped robot can travel; the grid state is used to represent the robot's cognition of the external environment, which can accurately and efficiently prepare for the next step of path planning;
[0045] The A* algorithm of the present invention uses the Euclidean distance to define the heuristic function, which is:
[0046] Euclidean distance formula:
[0047] In the formula, n represents the current node of the robot, h(n) represents the distance from the current node to the target node, and n x Indicates the x-axis coordinate of the current node, n y represents the y-axis coordinate of the current node; g represents the robot's target node, g x Indicates the x-axis coordinate of the target node, g y Indicates the y-axis coordinate of the target node.
[0048] The automatic adjustment parameter β and the logarithmic adjustment coefficient are added to the original A* algorithm heuristic function. The first stage search of global path planning is completed by improving the A* algorithm evaluation function and adding a safety threshold. The preliminary global path planning of the quadruped robot is solved. n represents the current node of the robot state.
[0049] The logarithmic adjustment coefficient is: (1+log(1+β*d / D)
[0050] Among them, the parameter β is automatically adjusted by calculating the ratio of the distance d from the current node to the target node and the total distance D, and the value of β is dynamically adjusted according to the ratio. When the ratio is less than 0.5, the β value is adjusted according to the logarithmic function of the ratio; when the distance ratio is greater than or equal to 0.5, the logarithmic function of the β value (1-d / D) is adjusted. β is dynamically adjusted by changing the distance ratio to adapt to different search spaces and problem sizes. This design can effectively reduce turning points in global path planning;
[0051] Therefore, the improved * algorithm evaluation function is:
[0052] f(n)=g(n)+(1+log(1+β*d / D))*h(n)
[0053] Where n represents the current node of the robot state, f(n) is the cost function of the robot's global path planning, g(n) represents the actual cost of the robot from the starting point to the current node n, h(n) is the heuristic function, which represents the heuristic estimated cost of the robot from the current node n to the target point, and β is the adaptive adjustment parameter;
[0054] like Figure 1 As shown in the figure, the traditional A* algorithm uses an eight-neighborhood search method, expanding from the central node to the eight neighborhoods around it, and determining the path direction through an evaluation function. However, this method limits the direction of movement to eight directions, resulting in the planned path having more turning points. For mobile robots, too many turning points do not conform to the kinematic principles and are not conducive to the control and manipulation of the robot;
[0055] Embodiment 1:
[0056] In order to overcome the shortcomings of the existing technology of quadruped robot path planning, the present invention proposes a safety threshold k and a redundant node deletion strategy:
[0057] like Figure 2 As shown, when the robot is planning its path, the distance it always maintains from the obstacle is greater than or equal to k;
[0058] In this embodiment, k=0.85, which can effectively protect the robot from touching obstacles, making the generated path safer and more reliable;
[0059] By eliminating redundant nodes in the path, the turning points in the trajectory and the motion displacement can be further reduced, and a global path that conforms to the robot kinematics principle can be obtained;
[0060] Traverse the generated path node set and calculate the vector angle between the current node and its child nodes and the child nodes of the child nodes. If the angle is 0, it means that these nodes are on the same straight line, and then update the parent node of the current node;
[0061] If the vector angle is not 0, calculate the equation of the straight line between the current node and the child node, and check whether there are obstacles on the path. If there are no obstacles, update the parent node; otherwise, keep the original parent node and set the current node as the new parent node;
[0062] Further optimize the path, starting from the first path node, calculate all nodes on the line between the current node and its child nodes and the child nodes of its child nodes, and check whether there are obstacles at these nodes;
[0063] If there are no obstacles on the path, the first connectable point is added to the new path and the next node is determined. If there are obstacles, the child nodes of the current node are stored in the new path, which can significantly simplify the path and reduce the complexity of calculation and actual movement.
[0064] After removing redundant nodes and optimizing broken lines on the path, cubic B-spline is introduced to smooth the path. The cubic B-spline curve is a continuous and smooth curve generated by interpolating a set of control points through a specific mathematical formula. The curve is drawn in a gentle way to avoid sharp angles or edges in the path. It can significantly improve the smoothness and continuity of the path, making the path smoother and obtaining a final global path that conforms to the robot kinematics principle.
[0065] like Figure 3 and Figure 4 As shown in the figure, the effect comparison diagram of the traditional A* algorithm path planning diagram and the improved A* algorithm path planning diagram of the present invention shows that the evaluation effect of the improved algorithm evaluation function has been greatly improved compared with that before the improvement, the turning points are greatly reduced, the generated path is shorter, and there are no obstacles or obstacle vertices; Figure 5 After the improved A* algorithm of the present invention generates a path, a cubic B-spline curve is added to smooth the path. It can be seen that the path length is significantly optimized and smoother, making the planned path more suitable for practical applications and improving the overall performance of robot navigation.
[0066] Although the above improvements have improved the search efficiency, there are still many unnecessary redundant points on the path, which is not conducive to the robot path following. Therefore, a redundant node deletion strategy is proposed: by traversing each node, the vector angle between the current node and its child node and the child node of the child node is calculated. If the angle is 0, it means that the node is on a straight line, then the parent node is updated; otherwise, the equation of the straight line between the two points is calculated to determine whether there is an obstacle on the path. If there is no obstacle, the parent node is updated; otherwise, the current node is set as the new parent node. Then, starting from the first path node, all nodes on the line between the current node and the child node and its child nodes are calculated, and whether there are obstacles at these nodes. If there is no obstacle, the first connectable point is stored in the new path and continue to judge; otherwise, the child node of the current node is stored in the new path; after the redundant point deletion strategy operation, the path planned by the A* algorithm only contains the starting point, the end point and the necessary nodes, which effectively reduces the path length. Finally, the path smoothing is greatly improved by introducing cubic B-spline for path smoothing.
[0067] The present invention ensures the safe distance between the path and the obstacle vertex by redefining the evaluation function and introducing the safety domain value K. When traversing the nodes, the vector angle between the current node and its child nodes and the child nodes of the child nodes is calculated. If the angle is 0, the parent node is updated, otherwise the straight line equation is calculated to determine whether there is an obstacle on the path. If there is no obstacle, the parent node is updated, otherwise the current node is set as the new parent node. Then all nodes on the line are calculated from the first path node to check whether there is an obstacle. If there is no obstacle, the first connectable point is stored in the new path and the judgment continues. Otherwise, the child nodes of the current node are stored. The redundant point deletion strategy is used to make the planned path only contain the starting point, the end point and the necessary nodes, effectively reducing the path length. Finally, the path is smoothed by introducing cubic B-splines, which greatly improves the smoothness and continuity of the path. This method not only reduces the turning points in the path, improves the feasibility of the path and the stability of the robot control, but also optimizes the path length, making the planned path more suitable for practical applications and improving the overall performance of robot navigation.
Claims
1. A quadruped robot navigation system based on global path planning, It is characterized in that Including map construction and environmental perception, global path planning; The map building and environment perception is responsible for collecting information about the robot's surrounding environment and building a map of the environment based on this information, providing necessary environmental information for global path planning, ensuring that the robot can accurately understand its environment and plan a suitable path accordingly; The global path planning plans a global optimal or suboptimal path from the starting point to the end point according to the environment map and the target position of the robot, providing a path from the current position to the target position for the robot.
2. A method for using a quadruped robot navigation system based on global path planning according to claim 1, It is characterized in that The following steps are involved: Step (1): Based on the laser radar carried by the quadruped robot, the quadruped robot obtains the control information of the posture and odometer, determines the initial posture and locates; Step (2): Create a two-dimensional grid map based on the initial posture of the quadruped robot and the observation data of the laser radar carried by the robot itself; Step (3): Introduce the automatic adjustment parameter β and logarithmic adjustment into the evaluation function of the path estimation method in the A* algorithm. Through the improved evaluation function, the path cost and heuristic estimation are combined to estimate the distance to the target. Step (4): Add the safety threshold value (k) to complete the first phase search of global path planning; Step (5): Traverse the path node set generated in the search results of the first stage, calculate the vector angle between the current node and its child nodes (subsequent nodes), and obtain a final global path that conforms to the robot kinematics principle.
3. A method for using a quadruped robot navigation system based on global path planning according to claim 2, It is characterized in that In step (1), the robot can accurately calculate its own posture information by using the environmental information observed by the laser radar and combining it with its own known state. The laser radar scans the surrounding environment and collects a series of point cloud data. The point cloud data points represent the position and shape of objects around the quadruped robot.
4. A method for using a quadruped robot navigation system based on global path planning according to claim 2, It is characterized in that The construction of the two-dimensional grid map in step (2) comprises the following steps: First, set the resolution, size, and initial state of the grid of the map, determine the initial position of the robot, and calibrate the laser radar and the robot coordinate system; Start the robot and let it move along a preset trajectory or autonomously, while collecting lidar scanning data, including the angle and distance of each scanning point; According to the scanning range of the laser radar and the movement of the robot, the state of the surrounding grid is updated to "feasible area" or "infeasible area".
5. A method for using a quadruped robot navigation system based on global path planning according to claim 2, It is characterized in that In the step (3); The logarithmic adjustment is (1+log(1+β*d / D))*h(n), where D is the distance from the starting point to the target point, d is the distance from the current node to the target node, and β is the automatic adjustment parameter; The cost function of the improved A* algorithm is: f(n) = g(n) + (1 + log(1 + β*d / D)) * h(n), where n represents the current node of the robot state, f(n) is the cost function of the robot's global path planning, g(n) represents the actual cost of the robot from the starting point to the current node n, h(n) is the heuristic function, which represents the heuristic estimated cost of the robot from the current node n to the target point, and β is the adaptive adjustment parameter; Where D is assumed to represent the scale of the problem, β max =e D +log(1+D),β min =log(1+D), when d / D<0.5, β=β min +(β max -β min )*log(1+2*d / D, when d / D>0.5, β=β min +(β max -β min )*(1-log(1+2*(1-d / D))).
6. A method for using a quadruped robot navigation system based on global path planning according to claim 2, It is characterized in that In step (4), the safety threshold value (k) is the safe distance between the moving path and the vertex of the static obstacle. The current node is set to N 1 , connect N 1 N 2 , then line segment N 1 N 2 The distance to the vertex of the static obstacle must be greater than or equal to the safety threshold value (k). If segment N 1 N 2 If the distance to the vertex of the static obstacle is less than the safety domain value k, the node is deleted and the next node is selected until the distance from the line segment connecting the previous node and the current node to the vertex of the static obstacle is greater than or equal to the safety domain value; If the previous node N 1 With the next node N 3 The connecting line segment N 1 N 3 If the distance to the static obstacle vertex is also greater than or equal to the safety domain value k, then the current node is a redundant node, delete the current node, update the path, and start from node N 3 At the beginning, this step completes the first stage search of global path planning and solves the preliminary global path for the robot's motion.
7. A method for using a quadruped robot navigation system based on global path planning according to claim 2, It is characterized in that In the step (5), if the angle is 0, the parent node is updated; if the angle is not 0, the straight line equation between the current node and the child node is calculated, the connection equation is calculated and obstacles are checked; if there are no obstacles, the parent node is updated, otherwise the original parent node is maintained and the current node is set as the new parent node; Starting from the first path node, calculate all nodes on the line between the current node and its child nodes and the child nodes of its child nodes, and check whether there are obstacles at these nodes; If there is no obstacle on the path, add the first connectable point to the new path and continue to determine the next node; if there is an obstacle, store the child nodes of the current node in the new path; After deleting redundant nodes and optimizing broken lines on the path, cubic B-splines are introduced to smooth the path, making the path smoother and obtaining a final global path that conforms to the robot's kinematics principles.
Citation Information
Cited By
Building model reconstruction method and system based on quadruped robot and machine vision
CN120125755A
