Complex environment-oriented mobile robot switchable motion planning method
Obstacle information is obtained through lidar and SLAM, combined with discrete control obstacle functions and nonlinear model predictive control, to achieve safe bypass and accurate arrival of mobile robots in complex environments, solving the flexibility and problem of motion planning in the existing technology. Insufficient accuracy and security issues.
Patent Information
- Application Number
- CN202410597160.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-27
AI Technical Summary
It is difficult for existing mobile robots to achieve safe and accurate autonomous navigation and parking in complex industrial sites, especially in dense obstacles and narrow spaces, where the flexibility, accuracy and safety of motion planning algorithms are insufficient.
It uses an obstacle parameterization algorithm based on lidar and SLAM, combined with discrete control obstacle functions and nonlinear model predictive control, to automatically switch motion planning modes to ensure that the robot can safely bypass obstacles in complex environments and accurately reach the target pose.
It improves the robot's task adaptability in complex environments, achieves safe, flexible and high-precision motion planning, avoids collisions and deadlocks, and enhances its ability to pass in narrow spaces.
Smart Images

Figure CN118550291A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of autonomous perception and planning control of mobile robots, and in particular to a switchable motion planning method for mobile robots in complex environments. Background Art
[0002] With the continuous development of robot technology, industrial site inspection systems with mobile robots as the core are receiving more and more attention. Mobile inspection robots usually have large mass and size due to the large number of load devices and high endurance requirements, which makes it difficult for them to safely and accurately reach the target position and collect data through autonomous navigation in complex industrial site environments, especially in narrow spaces with complex obstacle distribution and restricted access, reducing the reach and task adaptability of inspection robots. Robot autonomous navigation systems usually consist of three major parts: perception, global path planning, and motion planning. Perception and positioning are used to establish an environmental map containing static obstacles, estimate the robot's position in the environmental map, and perceive and track unexpected obstacles in the environment in real time; global planning is used to plan a global reference path on the environmental map; motion planning is based on the global reference path, combined with perception and positioning information, to calculate and output real-time speed control. The three parts work together to drive the robot to reach the target position without collision and with high precision. In order to improve the adaptability of the inspection robot to complex structured industrial field environments, its autonomous navigation system, in addition to basic functions, must also have the following characteristics: 1. When encountering unexpected obstacles such as people and temporary obstacles, it can predict the movement trajectory of the obstacle and control the mobile robot to proactively bypass the obstacle; 2. In narrow spaces with dense obstacles or difficult passage, the mobile robot can still be controlled to pass safely without collision; 3. When approaching the target point, the robot can be controlled to accurately reach the target point and park in the vicinity under the premise of safety and collision, and the position error should be as small as possible.
[0003] In the prior art, laser radar (LiDAR) is usually used in combination with simultaneous localization and mapping (SLAM) algorithm for mapping and positioning, and obstacles are usually represented in the form of grid maps or point clouds; in terms of global planning, the A* algorithm and its variants are usually used to plan feasible global reference paths on the environmental grid map built by SLAM; in terms of motion planning, the time elastic band method (TEB) or dynamic window method (DWA) is usually used to combine the robot sensor data and perception positioning information to plan and calculate the speed control amount in real time. TEB completes motion control by solving the sparse model multi-objective optimization problem, and has a certain degree of foresight and strong obstacle avoidance effect, but its speed and angle fluctuations are large, the control stability is poor, and the control accuracy is not high enough, and it is easy to deadlock or collide in a narrow space; the DWA algorithm has the advantage of simple implementation when completing motion control, but it has limitations when predicting the future trajectory of the robot through forward simulation in the sampling stage. Specifically, DWA enumerates different speeds and assumes that the robot continues to run at these speeds within the preset forward simulation time. This method causes the speed on each predicted trajectory to be considered constant, thereby simplifying the motion model. Therefore, this enumeration and constant speed assumption makes the derived trajectory relatively rough, lacks effective prediction of future state changes, is prone to falling into local optimal solutions, has poor dynamic obstacle avoidance capabilities, and has limited passability in complex environments.
[0004] Therefore, in the related technology, there is an urgent need for a method that can improve the flexibility, accuracy and safety of robot motion planning. Summary of the invention
[0005] Based on this, it is necessary to provide a switchable motion planning method for mobile robots in complex environments that can improve the flexibility, accuracy and safety of robot motion planning in response to the above technical problems.
[0006] In a first aspect, the present application provides a switchable motion planning method for a mobile robot in a complex environment. The method comprises:
[0007] Obtain global environment maps, obstacle information and real-time robot position and posture;
[0008] Determine prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot;
[0009] A global reference path is obtained by planning using a global path planning algorithm based on the global environment map, prior obstacles and navigation target position;
[0010] Execute the global reference path, if the distance between the real-time posture of the robot and the navigation target posture is greater than a preset threshold, the robot speed is obtained by using a nonlinear model predictive control strategy combined with a discrete control obstacle function based on the prior obstacles, unexpected obstacles and the real-time posture of the robot, and the robot is driven to follow the global reference path without colliding with the prior obstacles and unexpected obstacles;
[0011] If the distance between the real-time posture of the robot and the navigation target posture is not greater than a preset threshold, the robot speed is obtained based on the real-time posture of the robot, the prior obstacles and the navigation target posture by adopting a sampling-based target posture approach control strategy combined with a discrete control obstacle function, and the robot is driven to approach the navigation target posture and stop accurately.
[0012] Optionally, in one embodiment of the present application, the obtaining of the global environment map, obstacle information and real-time position and posture of the robot includes:
[0013] Use laser radar scanning to obtain the global environment map and obstacle information in the global environment map;
[0014] The real-time position and posture of the robot is obtained based on the global environment map positioning.
[0015] Optionally, in one embodiment of the present application, the determining of prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot includes:
[0016] Performing geometric parameterization based on the obstacle information to obtain a convex polygonal geometric representation of the obstacle and determine a priori obstacles;
[0017] A local environment map is determined based on the real-time position and posture information of the robot, unexpected obstacle information is determined based on the overlapping relationship between the global environment map and the local environment map, geometric parameterization is performed based on the unexpected obstacle information, a minimum enclosing circle representation of the unexpected obstacle is obtained, and the unexpected obstacle is determined.
[0018] Optionally, in one embodiment of the present application, the determining of prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot further includes:
[0019] The unexpected obstacle is tracked and its future trajectory is predicted.
[0020] Optionally, in one embodiment of the present application, the planning of obtaining the robot speed based on the prior obstacles, unexpected obstacles and the real-time posture of the robot using a nonlinear model predictive control strategy combined with a discrete control obstacle function includes:
[0021] Establishing a robot kinematics model based on the real-time position and posture of the robot;
[0022] Determining a robot safety state set based on the prior obstacles, unexpected obstacles and the real-time position and posture of the robot;
[0023] A safety control obstacle function constraint is determined based on the robot kinematic model and the robot safety state set, and a robot speed is determined based on the safety control obstacle function constraint using a nonlinear model predictive control method.
[0024] Optionally, in one embodiment of the present application, determining the robot safety state set based on the prior obstacles, unexpected obstacles and the real-time position and posture of the robot includes:
[0025] Determining the distance between the prior obstacle and the robot based on the convex polygon set representation of the prior obstacle and the robot;
[0026] The distance between the unexpected obstacle and the robot is determined based on the minimum enclosing circle of the unexpected obstacle and the robot.
[0027] Optionally, in one embodiment of the present application, the robot speed is obtained by planning based on the real-time posture of the robot, the prior obstacles and the navigation target posture using a sampling-based target posture approach control strategy combined with a discrete control obstacle function, including:
[0028] A local control obstacle function constraint is determined based on the real-time position and posture of the robot, a priori obstacles and a navigation target position and posture, and a robot speed is determined based on the local control obstacle function constraint using a sampling-based method.
[0029] In a second aspect, the present application also provides a switchable motion planning device for a mobile robot facing a complex environment. The device comprises:
[0030] Information acquisition module, used to obtain global environment maps, obstacle information and real-time position and posture of the robot;
[0031] An obstacle determination module, used to determine prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot;
[0032] A global planning module, used to plan a global reference path using a global path planning algorithm based on the global environment map, prior obstacles and navigation target posture;
[0033] A safety-first motion planning module is used to execute the global reference path. If the distance between the real-time posture of the robot and the navigation target posture is greater than a preset threshold, the robot speed is obtained by using a nonlinear model predictive control strategy combined with a discrete control obstacle function based on the prior obstacles, unexpected obstacles and the real-time posture of the robot, and the robot is driven to follow the global reference path without colliding with the prior obstacles and unexpected obstacles.
[0034] The terminal target approach high-precision motion planning module is used to obtain the robot speed by adopting a sampling-based target posture approach control strategy combined with a discrete control obstacle function based on the real-time posture of the robot, prior obstacles and navigation target posture if the distance between the robot's real-time posture and the navigation target posture is not greater than a preset threshold, so as to drive the robot to approach the navigation target posture and stop accurately.
[0035] In a third aspect, the present application further provides a robot controller device, wherein the robot controller device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the method described in each of the above embodiments.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in each of the above embodiments are implemented.
[0037] The above-mentioned switchable motion planning method for a mobile robot facing a complex environment, first, obtains a global environment map, obstacle information and a real-time position and posture of the robot; then, determines a priori obstacles and unexpected obstacles based on the global environment map, obstacle information and the real-time position and posture of the robot; then, plans a global reference path based on the global environment map, the priori obstacles and the navigation target position using a global path planning algorithm; then, executes the global reference path, if the distance between the real-time position and the navigation target position is greater than a preset threshold, the robot speed is planned based on the priori obstacles, the unexpected obstacles and the real-time position of the robot using a nonlinear model predictive control strategy combined with a discrete control obstacle function, and the robot is driven to follow the global reference path without colliding with the priori obstacles and the unexpected obstacles; finally, if the distance between the real-time position and the navigation target position is not greater than a preset threshold, the robot speed is planned based on the real-time position, the priori obstacles and the navigation target position using a sampling-based target position approach control strategy combined with a discrete control obstacle function, and the robot is driven to approach the navigation target position and stop accurately. That is to say, in the application of robot autonomous navigation, different obstacle information is obtained through lidar, and the obstacle parameterization algorithm is used to represent the obstacles with geometric parameters to simplify the obstacle description. At the level of autonomous navigation motion planning, the safety control idea based on discrete control obstacle function (DCBF) and the motion planning technology based on nonlinear model predictive control (NMPC) and sampling are used as a safety-first-high-precision dual-mode strategy switchable motion planning method. The distance between the robot's real-time posture and the target posture is used as the switching condition to automatically switch the motion planning mode, so that the robot can safely bypass unexpected obstacles, pass through restricted environments and accurately reach the target posture to park. It takes into account the flexibility and accuracy of the robot's autonomous navigation motion planning, while ensuring safety, greatly improving the robot's task adaptability in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of a flow chart of a method for switchable motion planning of a mobile robot in a complex environment in one embodiment;
[0039] Figure 2 is a schematic diagram of a robot, a priori obstacles, and unexpected obstacles in one embodiment;
[0040] Figure 3 A schematic diagram of a sampling-based method in one embodiment for inferring a local trajectory generated by each speed within a deduction time according to a robot kinematic model;
[0041] Figure 4A flowchart of specific steps of a switchable motion planning method for a mobile robot in a complex environment in one embodiment;
[0042] Figure 5 The structure block diagram of a switchable motion planning device for a mobile robot facing complex environments in one embodiment. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0044] In one embodiment, Figure 1 As shown, a switchable motion planning method for a mobile robot in a complex environment is provided, and the method is applied to a mobile robot as an example for explanation, including the following steps:
[0045] S101: Obtain the global environment map, obstacle information and real-time position and posture of the robot.
[0046] In an embodiment of the present application, first, a global environment map, obstacle information and the real-time position and posture of the robot are obtained, wherein the global environment map refers to a global environment point cloud map or a raster map, which can be obtained by adopting graph-optimized SLAM to fuse information such as lidar scanning and motor odometer. The obstacle information refers to the information of static prior obstacles in the global environment, which is obtained during the lidar scanning. The real-time position and posture of the robot refers to the real-time positioning of the robot, which is obtained based on the global environment map and is its relative position in the global environment.
[0047] S103: Determine prior obstacles and unexpected obstacles based on the global environment map, obstacle information and the real-time position and posture of the robot.
[0048] In the present application embodiment, Figure 2 As shown in the figure, obstacles in complex environments include not only static prior obstacles, but also moving unexpected obstacles. Prior obstacles can be determined based on the obstacle information obtained by LiDAR scanning. As for unexpected obstacles, after obtaining basic information, the local environment map centered on the robot can be determined by LiDAR scanning based on the real-time posture of the robot. The global environment map and the local environment map are compared. Those that exist in the local environment map but not in the global environment map are unexpected obstacles, such as temporary obstacles such as people, and a parameterized algorithm is used to represent the prior obstacles and unexpected obstacles using geometric parameters.
[0049] S105: Based on the global environment map, the prior obstacles and the navigation target position, a global reference path is obtained by adopting a global path planning algorithm.
[0050] In an embodiment of the present application, when a navigation request is received, the navigation request includes the navigation target posture, that is, the target point. In combination with the current posture of the robot and the prior obstacles in the global environment map, a global path planning (Dijkstra) algorithm is adopted to plan a global reference path on the global environment map constructed by the SLAM algorithm. The path is a set of points, which ensures that at each point on the path, the robot will not interfere with obstacles in the global map.
[0051] S107: Execute the global reference path. If the distance between the real-time position of the robot and the navigation target position is greater than a preset threshold, the robot speed is obtained by adopting a nonlinear model predictive control strategy combined with a discrete control obstacle function based on the prior obstacles, unexpected obstacles and the real-time position of the robot, and the robot is driven to follow the global reference path without colliding with the prior obstacles and unexpected obstacles.
[0052] In the embodiment of the present application, after the global path planning is completed, the global reference path is executed to drive the robot to move. If the distance between the real-time posture of the robot and the target posture is greater than the preset threshold, the safety priority motion planning mode is used. During the robot movement, based on the prior obstacles, unexpected obstacles and the real-time posture of the robot, the nonlinear model predictive control (NMPC-DCBF-Hybrid) combining hybrid discrete control obstacle function that considers both unexpected obstacles and prior obstacles is adopted to safely control the robot to bypass unexpected obstacles and pass through narrow spaces. Among them, the preset threshold is obtained from a large amount of experimental experience.
[0053] S109: If the distance between the real-time posture of the robot and the navigation target posture is not greater than a preset threshold, the robot speed is obtained by adopting a sampling-based target posture approach control strategy planning combined with a discrete control obstacle function based on the real-time posture of the robot, the prior obstacles and the navigation target posture, and the robot is driven to approach the navigation target posture and stop accurately.
[0054] In the embodiment of the present application, during the robot movement, when it is detected that the distance between the robot's real-time posture and the target posture is less than or equal to a preset threshold, the high-precision motion planning mode is switched, such as Figure 3As shown in the figure, based on the real-time posture of the robot, prior obstacles and navigation target posture, sampling-based goal approaching control with DCBF (SGA-DCBF) combined with discrete control obstacle function is adopted to generate a velocity sampling space that follows the robot kinematics (maximum and minimum speeds, maximum and minimum accelerations) and a two-point robot-prior obstacle DCBF constraint set. The local trajectory generated by each velocity within the deduction time is inferred according to the robot kinematic model, and the trajectory with the highest score in the task of approaching the target posture is selected, so as to output the velocity corresponding to the trajectory and drive the robot to approach the navigation target posture until the preset navigation distance tolerance is reached.
[0055] In the above-mentioned switchable motion planning method for a mobile robot facing a complex environment, first, a global environment map, obstacle information and a real-time position and posture of the robot are obtained; then, a priori obstacles and unexpected obstacles are determined based on the global environment map, obstacle information and the real-time position and posture of the robot; then, a global reference path is obtained by adopting a global path planning algorithm based on the global environment map, the priori obstacles and the navigation target position and posture; then, the global reference path is executed, and if the distance between the real-time position and posture of the robot is greater than a preset threshold, a nonlinear model predictive control strategy combined with a discrete control obstacle function is used to plan the robot speed based on the priori obstacles, the unexpected obstacles and the real-time position and posture of the robot, and the robot is driven to follow the global reference path without colliding with the priori obstacles and the unexpected obstacles; finally, if the distance between the real-time position and posture of the robot is not greater than a preset threshold, a sampling-based target posture approach control strategy combined with a discrete control obstacle function is used to plan the robot speed based on the real-time position and posture of the robot, the priori obstacles and the navigation target position and the navigation target position is driven to approach the navigation target position and stop accurately. That is to say, in the application of robot autonomous navigation, different obstacle information is obtained through lidar, and the obstacle parameterization algorithm is used to represent the obstacles with geometric parameters to simplify the obstacle description. At the level of autonomous navigation motion planning, the safety control idea based on discrete control obstacle function (DCBF) and the motion planning technology based on nonlinear model predictive control (NMPC) and sampling are used as a safety-first-high-precision dual-mode strategy switchable motion planning method. The distance between the robot's real-time posture and the target posture is used as the switching condition to automatically switch the motion planning mode, so that the robot can safely bypass unexpected obstacles, pass through restricted environments and accurately reach the target posture to park. It takes into account the flexibility and accuracy of the robot's autonomous navigation motion planning, while ensuring safety, greatly improving the robot's task adaptability in complex environments.
[0056] In one embodiment of the present application, obtaining a global environment map, obstacle information, and real-time position and posture of the robot includes:
[0057] S201: Using laser radar scanning to obtain a global environment map and obstacle information in the global environment map;
[0058] S203: Acquire the real-time position and posture of the robot based on the global environment map positioning.
[0059] In one embodiment of the present application, first, the Cartographer SLAM algorithm is used to fuse the motor wheel odometer data based on the laser radar scan, and in the mapping state, a global environment map, that is, a global occupancy grid map, is constructed. At the same time, the global environment map contains an occupancy grid representation of static obstacles in the environment. In the positioning state, positioning is performed based on the match with the global environment map. This step can output the robot's pose estimation in the global environment map in real time, that is, the robot's real-time pose.
[0060] In this embodiment, by using laser radar scanning to obtain the global environment map and obstacle information in the global environment map, and obtaining the real-time position and posture of the robot based on the global environment map positioning, the global environment map can be accurately constructed and obstacle information and the real-time position information of the robot can be obtained.
[0061] In one embodiment of the present application, determining the prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot includes:
[0062] S301: performing geometric parameterization based on the obstacle information to obtain a convex polygonal geometric representation of the obstacle and determine a priori obstacles;
[0063] S303: Determine a local environment map based on the real-time position and posture information of the robot, determine unexpected obstacle information based on the global environment map and the local environment map, perform geometric parameterization based on the unexpected obstacle information, obtain a minimum enclosing circle representation of the unexpected obstacle, and determine the unexpected obstacle.
[0064] In one embodiment of the present application, Figure 2 As shown, the global environment map, robot pose estimation and lidar scanning are received in real time, the obstacles occupying the grid global map are clustered, the obstacle information is geometrically parameterized and converted into a convex polygonal geometric representation that can accurately describe the obstacle, which is called a priori obstacle. is the convex polygon geometric expression of the i-th prior obstacle, as shown below:
[0065]
[0066] Among them, point Linear coefficient matrix of edges With boundary value vector The i-th prior obstacle convex polygon is defined in the form of a linear inequality, is the number of sides of the convex polygon.
[0067] For the robot's real-time posture and LiDAR scan, the LiDAR scan is registered to the local environment map centered on the robot center according to the posture estimate at the corresponding moment. The local environment map is maintained in the form of a sliding window. According to the robot's real-time posture, the occupied grids with a distance greater than the distance of interest from the robot are eliminated in real time to accelerate the calculation. The corresponding parts in the local environment map and the global environment map are subtracted to obtain the occupied grid clusters in the local environment map that do not exist in the global map, which is the unexpected obstacle information, and geometric parameterization is performed to obtain the minimum enclosing circle representation of the unexpected obstacle.
[0068] In this embodiment, the obstacle description is simplified by determining a priori obstacles and unexpected obstacles and expressing the obstacles using geometric parameters.
[0069] In one embodiment of the present application, the determining of prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot further includes:
[0070] The unexpected obstacle is tracked and its future trajectory is predicted.
[0071] In one embodiment of the present application, for each unexpected obstacle, its future trajectory is tracked and predicted in real time for motion planning. Optionally, a method such as an extended Kalman filter (EKF) can be used for tracking and prediction. It represents the i-th unexpected obstacle being tracked, with t as the reference time, and is represented by the minimum enclosing circle predicted by the filter at time t+k, which is expressed as:
[0072]
[0073] in, C i and r i Represent the estimated center position and radius of the circle respectively.
[0074] In this embodiment, an extended Kalman filter is used to track the unexpected obstacle and predict its future track, so as to facilitate subsequent motion planning.
[0075] In one embodiment of the present application, the robot speed is obtained by planning based on the prior obstacles, unexpected obstacles and the real-time posture of the robot using a nonlinear model predictive control strategy combined with a discrete control obstacle function, including:
[0076] S401: Establishing a robot kinematics model based on the real-time position and posture of the robot;
[0077] S403: Determine a robot safety state set based on the prior obstacles, unexpected obstacles and the real-time position and posture of the robot;
[0078] S405: Determine a safety control obstacle function constraint based on the robot kinematic model and the robot safety state set, and determine the robot speed using a nonlinear model predictive control method based on the safety control obstacle function constraint.
[0079] In one embodiment of the present application, first, the robot state vector x at the kth step in the optimization is defined as k =[x k ,y k ,ψ k ] T and the robot control vector u k =[v k ,ω k ] T , x k With y k Defines the coordinates of the robot on the map plane, ψ k represents the yaw angle of the robot. k represents the linear velocity of the robot, ω k Represents the angular velocity of the robot. The robot kinematic model is established, which can be expressed as:
[0080]
[0081] Among them, d t represents the time increment. At the same time, the robot kinematic constraints are determined by the maximum and minimum linear velocities v max With v min 、Maximum and minimum angular velocity ω max With ω min , maximum linear acceleration a max With the maximum angular acceleration α max Definition, let Following these restrictions, After the variables and the robot kinematic model are defined, for safety-first control, the robot safety state set S is defined as a continuous differentiable function The super level set of can be expressed as:
[0082]
[0083] The function h(x) can be the shortest distance from the robot to the obstacle or its square form. The safety control barrier function constraint DCBF can be defined in the following form:
[0084] h(x k+1 )≥γ(x k )h(x k ),0≤γ(x k )<1
[0085] The lower limit of DCBF decreases with the decay rate γ(x k ) decreases exponentially. Considering the feasibility of nonlinear model predictive control NMPC optimization, a relaxation variable ω is introduced. And 0≤γ(x k )<1, the final feasible control quantity can be expressed as follows:
[0086]
[0087] Among them, h(x k+1 )-ω(x k )γ(x k )h(x k )≥0 is the safety control barrier function constraint DCBF.
[0088] The function h(x) in the robot-unexpected obstacle DCBF constraint is defined differently from the function h(x) in the robot-prior obstacle DCBF constraint. In one embodiment of the present application, determining the robot safety state set based on the prior obstacle, the unexpected obstacle and the real-time position and posture of the robot includes:
[0089] S501: Determine the distance between the prior obstacle and the robot based on the convex polygon set representation of the prior obstacle and the robot;
[0090] S503: Determine the distance between the unexpected obstacle and the robot based on the minimum enclosing circle of the unexpected obstacle and the robot.
[0091] In one embodiment of the present application, for the robot-prior obstacle DCBF, the robot and the obstacle are both defined by convex polygons. Theoretically defined as the square of the shortest distance between the robot's footprint convex polygon and the convex polygon of the i-th obstacle. In use, a safety margin can be considered and it can be subtracted As First, consider the convex polygon representation of the robot's embodied footprint as follows:
[0092]
[0093] The point Edge coefficient matrix Boundary value vector n R is the number of edges of the convex polygon of the robot's embodied footprint.
[0094] After that, the shortest distance between convex polygons is calculated, and the convex polygon DCBF construction algorithm is adopted. Using the dual problem, the shortest distance is expressed as follows:
[0095]
[0096]
[0097]
[0098] in, and is the Lagrange multiplier. Since it is recalculated at each step The computational overhead is too large. In each NMPC update process, only the initial state is updated. Calculate, and for the states at other time steps, use the exponential decrease of γ to approximate the process of the robot approaching the obstacle, so as to design the following DCBF constraint after the acceleration calculation of the robot to the i-th obstacle:
[0099]
[0100] Where k is the current time step of NMPC.
[0101] For the robot-unexpected obstacle DCBF, the robot and the obstacle are defined by the minimum enclosing circle. Theoretically, it is defined as the shortest distance between the minimum enclosing circle of the robot's footprint and the minimum enclosing circle of the ith obstacle. In use, a safety margin can be considered and it can be subtracted As As shown below:
[0102]
[0103] where r robot is the radius of the minimum enclosing circle of the robot's physical footprint.
[0104] In this embodiment, the distance between the prior obstacle and the robot is determined based on a convex polygon set representation of the prior obstacle and the robot; the distance between the unexpected obstacle and the robot is determined based on the minimum enclosing circle of the unexpected obstacle and the robot, thereby improving the accuracy of motion planning.
[0105] For the distance from the robot to each prior obstacle or unexpected obstacle, a DCBF constraint is constructed independently to form the final DCBF constraint set. Construct the optimization equation of NMPC-DCBF-Hybrid:
[0106]
[0107] stx t|t =x t
[0108] x t+k+1∣t =f(x t+k∣t ,u t+k∣t ,dt NMPC ),fork=0,…,N-1
[0109]
[0110]
[0111]
[0112] for k=0,…,N CBF -1
[0113]
[0114]
[0115]
[0116] Among them, dt NMPC is the time step length of NMPC, p and q are standard trajectory tracking error terms, and is the decay rate relaxation cost, which can be expressed as:
[0117]
[0118] Among them, p ω for its weight.
[0119] In this embodiment, a robot kinematic model is established based on the robot's real-time posture; a robot safety state set is determined based on prior obstacles, unexpected obstacles and the robot's real-time posture; a safety control obstacle function constraint is determined based on the robot kinematic model and the robot safety state set, and the robot speed is determined using a nonlinear model predictive control method based on the safety control obstacle function constraint, thereby implementing a nonlinear model predictive control (NMPC-DCBF-Hybrid) that considers both unexpected obstacles and prior obstacles in combination with a hybrid discrete control obstacle function to safely bypass unexpected obstacles and pass through narrow spaces.
[0120] In one embodiment of the present application, the robot speed is obtained by planning based on the real-time posture of the robot, the prior obstacles and the navigation target posture using a sampling-based target posture approach control strategy combined with a discrete control obstacle function, including:
[0121] A local control obstacle function constraint is determined based on the real-time position and posture of the robot, a priori obstacles and a navigation target position and posture, and a robot speed is determined based on the local control obstacle function constraint using a sampling-based method.
[0122] In one embodiment of the present application, the two-point robot-prior obstacle DCBF constraint is defined on the i-th obstacle as:
[0123]
[0124] in and is the shortest distance between the robot and the ith obstacle at the end and starting point of the local trajectory, 0≤γ s ≤1, the robot's footprint and the prior obstacles are considered convex polygons. Enumerate the velocity sampling space For each group of speeds in, the optimal speed control quantity u opti It can be expressed as:
[0125]
[0126] in is the target pose.
[0127] In this embodiment, the local control obstacle function constraint is determined based on the real-time position of the robot, the prior obstacles and the navigation target position, and the robot speed is determined based on the local control obstacle function constraint using a sampling-based method. In the high-precision motion planning mode, the distance to the target position is very close, and only the starting point and end point of the local trajectory are considered, which can take into account both computational efficiency and safety.
[0128] The following is a specific example to illustrate the specific implementation steps of the switchable motion planning method for a mobile robot in a complex environment of the present application. Figure 4 As shown, first, S601, obtain the global environment map, obstacle information and real-time position and posture of the robot; specifically, S603-S705, use laser radar scanning to obtain the global environment map and obstacle information in the global environment map; based on the global environment map positioning, obtain the real-time position and posture of the robot.
[0129] Afterwards, S607, determine the prior obstacles and unexpected obstacles based on the global environment map, obstacle information and the real-time position and posture of the robot. Specifically, S609-S611, perform geometric parameterization based on the obstacle information to obtain the convex polygonal geometric representation of the obstacle, and determine the prior obstacles; determine the local environment map based on the real-time position and posture information of the robot, determine the unexpected obstacle information based on the global environment map and the local environment map, perform geometric parameterization based on the unexpected obstacle information, obtain the minimum enclosing circle representation of the unexpected obstacle, and determine the unexpected obstacle. Afterwards, S613, track the unexpected obstacle and predict its future trajectory.
[0130] Then, S615, a global reference path is obtained by planning using a global path planning algorithm based on the global environment map, the prior obstacles and the navigation target position;
[0131] Afterwards, S617, the global reference path is executed. If the distance between the real-time posture of the robot and the navigation target posture is greater than a preset threshold, the robot speed is obtained by using a nonlinear model predictive control strategy combined with a discrete control obstacle function based on the prior obstacles, unexpected obstacles and the real-time posture of the robot, and the robot is driven to follow the global reference path without colliding with the prior obstacles and unexpected obstacles. Specifically, S619-S623, a robot kinematic model is established based on the real-time posture of the robot; a robot safety state set is determined based on the prior obstacles, unexpected obstacles and the real-time posture of the robot; a safety control obstacle function constraint is determined based on the robot kinematic model and the robot safety state set, and a nonlinear model predictive control method is used to determine the robot speed based on the safety control obstacle function constraint. Among them, S625-S627, the distance between the prior obstacle and the robot is determined based on the convex polygon set representation of the prior obstacle and the robot; the distance between the unexpected obstacle and the robot is determined based on the minimum enclosing circle of the unexpected obstacle and the robot.
[0132] Finally, S629, if the distance between the real-time posture of the robot and the navigation target posture is not greater than a preset threshold, the robot speed is obtained by planning the sampling-based target posture approach control strategy combined with the discrete control obstacle function based on the real-time posture of the robot, the prior obstacles and the navigation target posture, and the robot is driven to approach the navigation target posture and stop accurately. S631, based on the real-time posture of the robot, the prior obstacles and the navigation target posture, the local control obstacle function constraint is determined, and the robot speed is determined based on the local control obstacle function constraint using a sampling-based method.
[0133] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0134] Based on the same inventive concept, the embodiment of the present application also provides a mobile robot switchable motion planning device for complex environments for implementing the above-mentioned mobile robot switchable motion planning method for complex environments. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more mobile robot switchable motion planning devices for complex environments provided below can refer to the limitations of the mobile robot switchable motion planning method for complex environments above, and will not be repeated here.
[0135] In one embodiment, Figure 5 As shown, a switchable motion planning device 500 for a mobile robot facing a complex environment is provided, comprising: an information acquisition module 501, an obstacle determination module 503, a global planning module 505, a safety priority motion planning module 507 and a terminal target approaching high-precision motion planning module 509, wherein:
[0136] The information acquisition module 501 is used to obtain the global environment map, obstacle information and the real-time position and posture of the robot.
[0137] The obstacle determination module 503 is used to determine prior obstacles and unexpected obstacles based on the global environment map, obstacle information and the real-time position and posture of the robot.
[0138] The global planning module 505 is used to plan a global reference path using a global path planning algorithm based on the global environment map, prior obstacles and navigation target posture.
[0139] The safety priority motion planning module 507 is used to execute the global reference path. If the distance between the real-time posture of the robot and the navigation target posture is greater than a preset threshold, the robot speed is obtained based on the prior obstacles, unexpected obstacles and the real-time posture of the robot by adopting a nonlinear model predictive control strategy combined with a discrete control obstacle function, and the robot is driven to follow the global reference path without colliding with the prior obstacles and unexpected obstacles.
[0140] The terminal target approach high-precision motion planning module 509 is used to obtain the robot speed by adopting a sampling-based target posture approach control strategy combined with a discrete control obstacle function based on the real-time posture of the robot, prior obstacles and navigation target posture if the distance between the robot's real-time posture and the navigation target posture is not greater than a preset threshold, so as to drive the robot to approach the navigation target posture and stop accurately.
[0141] In one embodiment of the present application, the information acquisition module is further used to:
[0142] Use laser radar scanning to obtain the global environment map and obstacle information in the global environment map;
[0143] The real-time position and posture of the robot is obtained based on the global environment map positioning.
[0144] In one embodiment of the present application, the obstacle determination module is further used to:
[0145] Performing geometric parameterization based on the obstacle information to obtain a convex polygonal geometric representation of the obstacle and determine a priori obstacles;
[0146] A local environment map is determined based on the real-time position and posture information of the robot, unexpected obstacle information is determined based on the global environment map and the local environment map, geometric parameterization is performed based on the unexpected obstacle information, a minimum enclosing circle representation of the unexpected obstacle is obtained, and the unexpected obstacle is determined.
[0147] In one embodiment of the present application, the obstacle determination module is further used to:
[0148] The unexpected obstacle is tracked and its future trajectory is predicted.
[0149] In one embodiment of the present application, the safety priority motion planning module is further used to:
[0150] Establishing a robot kinematics model based on the real-time position and posture of the robot;
[0151] Determining a robot safety state set based on the prior obstacles, unexpected obstacles and the real-time position and posture of the robot;
[0152] A safety control obstacle function constraint is determined based on the robot kinematic model and the robot safety state set, and a robot speed is determined based on the safety control obstacle function constraint using a nonlinear model predictive control method.
[0153] In one embodiment of the present application, the safety priority motion planning module is further used to:
[0154] Determining the distance between the prior obstacle and the robot based on the convex polygon set representation of the prior obstacle and the robot;
[0155] The distance between the unexpected obstacle and the robot is determined based on the minimum enclosing circle of the unexpected obstacle and the robot.
[0156] In one embodiment of the present application, the terminal target approaching high-precision motion planning module is also used for:
[0157] A local control obstacle function constraint is determined based on the real-time position and posture of the robot, a priori obstacles and a navigation target position and posture, and a robot speed is determined based on the local control obstacle function constraint using a sampling-based method.
[0158] Each module in the above-mentioned switchable motion planning device for a mobile robot facing a complex environment can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0159] In one embodiment, a robot controller device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0160] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0161] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0162] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0163] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0164] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A switchable motion planning method for a mobile robot in a complex environment, characterized in that: The method comprises: Obtain global environment maps, obstacle information and real-time robot position and posture; Determine prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot; A global reference path is obtained by planning using a global path planning algorithm based on the global environment map, prior obstacles and navigation target position; Execute the global reference path, if the distance between the real-time posture of the robot and the navigation target posture is greater than a preset threshold, the robot speed is obtained by using a nonlinear model predictive control strategy combined with a discrete control obstacle function based on the prior obstacles, unexpected obstacles and the real-time posture of the robot, and the robot is driven to follow the global reference path without colliding with the prior obstacles and unexpected obstacles; If the distance between the real-time posture of the robot and the navigation target posture is not greater than a preset threshold, the robot speed is obtained based on the real-time posture of the robot, the prior obstacles and the navigation target posture by adopting a sampling-based target posture approach control strategy combined with a discrete control obstacle function, and the robot is driven to approach the navigation target posture and stop accurately.
2. The switchable motion planning method for a mobile robot in a complex environment according to claim 1 is characterized in that: The acquisition of the global environment map, obstacle information and real-time position and posture of the robot includes: Use laser radar scanning to obtain the global environment map and obstacle information in the global environment map; The real-time position and posture of the robot is obtained based on the global environment map positioning.
3. The switchable motion planning method for a mobile robot in a complex environment according to claim 1 is characterized in that: The determining of prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot includes: Performing geometric parameterization based on the obstacle information to obtain a convex polygonal geometric representation of the obstacle and determine a priori obstacles; A local environment map is determined based on the real-time position and posture information of the robot, unexpected obstacle information is determined based on the overlapping relationship between the global environment map and the local environment map, geometric parameterization is performed based on the unexpected obstacle information, a minimum enclosing circle representation of the unexpected obstacle is obtained, and the unexpected obstacle is determined.
4. The switchable motion planning method for a mobile robot in a complex environment according to claim 3 is characterized in that: The determining of prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot also includes: The unexpected obstacle is tracked and its future trajectory is predicted.
5. The switchable motion planning method for a mobile robot in a complex environment according to claim 1, characterized in that: The robot speed is obtained by using a nonlinear model predictive control strategy planning combined with a discrete control obstacle function based on the prior obstacles, unexpected obstacles and the real-time posture of the robot, including: Establishing a robot kinematics model based on the real-time position and posture of the robot; Determining a robot safety state set based on the prior obstacles, unexpected obstacles and the real-time position and posture of the robot; A safety control obstacle function constraint is determined based on the robot kinematic model and the robot safety state set, and a robot speed is determined based on the safety control obstacle function constraint using a nonlinear model predictive control method.
6. The switchable motion planning method for a mobile robot in a complex environment according to claim 5 is characterized in that: The determining of the robot safety state set based on the prior obstacles, unexpected obstacles and the real-time position and posture of the robot comprises: Determining the distance between the prior obstacle and the robot based on the convex polygon set representation of the prior obstacle and the robot; The distance between the unexpected obstacle and the robot is determined based on the minimum enclosing circle of the unexpected obstacle and the robot.
7. The switchable motion planning method for a mobile robot in a complex environment according to claim 1, characterized in that: The robot speed is obtained by planning based on the real-time posture of the robot, the prior obstacles and the navigation target posture using a sampling-based target posture approach control strategy combined with a discrete control obstacle function, including: A local control obstacle function constraint is determined based on the real-time position and posture of the robot, a priori obstacles and a navigation target position and posture, and a robot speed is determined based on the local control obstacle function constraint using a sampling-based method.
8. A switchable motion planning device for a mobile robot in a complex environment, characterized in that: The device comprises: Information acquisition module, used to obtain global environment maps, obstacle information and real-time position and posture of the robot; An obstacle determination module, used to determine prior obstacles and unexpected obstacles based on the global environment map, obstacle information and real-time position and posture of the robot; A global planning module, used to plan a global reference path using a global path planning algorithm based on the global environment map, prior obstacles and navigation target posture; A safety-first motion planning module is used to execute the global reference path. If the distance between the real-time posture of the robot and the navigation target posture is greater than a preset threshold, the robot speed is obtained by using a nonlinear model predictive control strategy combined with a discrete control obstacle function based on the prior obstacles, unexpected obstacles and the real-time posture of the robot, and the robot is driven to follow the global reference path without colliding with the prior obstacles and unexpected obstacles. The terminal target approach high-precision motion planning module is used to obtain the robot speed by adopting a sampling-based target posture approach control strategy combined with a discrete control obstacle function based on the real-time posture of the robot, prior obstacles and navigation target posture if the distance between the robot's real-time posture and the navigation target posture is not greater than a preset threshold, so as to drive the robot to approach the navigation target posture and stop accurately.
9. A robot controller device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Quadruped robot local path planning method based on improved DWA and TEB algorithms
CN119356336A
Robot obstacle avoidance method and related device, robot and storage medium
CN121523322A
