Robot terrain perception and movement control method and system under rough terrain

Through 2.5D map and improved A* algorithm and MPC control, the complex problem of robot terrain perception and autonomous movement in rugged terrain is solved, and intelligent and practical path planning and trajectory tracking in complex environments are realized, which is suitable for Large-scale application.

CN115639823BActive Publication Date: 2024-09-13SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211329125.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2024-09-13
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

Existing technology is difficult to realize robot terrain perception and autonomous movement in rugged and undulating terrain. In particular, it cannot effectively distinguish passable and impassable areas in complex environments. Moreover, the data processing of existing methods is complex and costly, and cannot be applied to large-scale applications. application.

Method used

Using a 2.5D map, we obtain image feature points, build a point cloud map, extract traversability information, generate a 2.5D cost map, and use the improved A* algorithm and MPC control algorithm for path planning and trajectory tracking, combined with elevation constraint information. and terrain cost information to generate optimal paths to achieve autonomous movement of the robot in rough terrain.

Benefits of technology

It realizes autonomous path planning and trajectory tracking of robots in rugged and undulating terrain. It is suitable for large-scale complex environments and meets the requirements of intelligence and practicality. It can effectively judge the traversability of terrain and reduce the speed of robots on highly changing roads. Improve movement smoothness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115639823B
    Figure CN115639823B
Patent Text Reader

Abstract

The present invention discloses a method and system for robot terrain perception and mobile control under rugged terrain, which relates to the field of robot technology, including obtaining image feature points, solving and optimizing, and establishing a point cloud map based on the optimization results; extracting the traversability information of the point cloud map to obtain a 2.5D cost map; based on an improved A* algorithm, generating a path with the lowest cost with obstacle traversability information in the 2.5D cost map, and performing global path planning and local path planning; using an MPC control algorithm with elevation constraint information, following the local path for trajectory tracking to form a robot movement control scheme. The present invention realizes autonomous movement of the robot's path planning and trajectory tracking control based on a 2.5D map; is suitable for large-scale complex environments, and can meet the requirements of intelligence and practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robotics technology, and in particular to a method and system for robot terrain perception and movement control under rugged terrain. Background Art

[0002] In most indoor scenarios, mobile robots are equipped with a map of the structured environment, which is divided into traversable and non-traversable cells. Cells containing obstacles or walls are marked as non-traversable, while cells without obstacles are marked as traversable. The robot does not need to consider the terrain properties, only needs to accurately identify obstacles. However, in outdoor scenarios, mobile robots must traverse harsh natural terrain that is uneven, rough, and rugged. The geometric and physical properties of the terrain increase the complexity of the robot navigation problem. In order to reach the desired destination, the robot must have the ability to evaluate the terrain and determine the cost associated with traversing each terrain segment. A major challenge is to develop a perception framework to quickly and accurately distinguish between traversable and non-traversable areas.

[0003] As an important component of the robot's sensing system, visual sensors can provide a large amount of information about the scene. At present, the mainstream perception processing is mainly to build maps through laser radar. The data obtained by laser radar is sparse and disordered, and it is impossible to obtain color and texture information. The cost is too high to be used alone. Among the types of visual sensors, binocular vision has the advantages of non-contact and passive. It is a key technology for robots to obtain obstacle information and reconstruct global scenes.

[0004] The autonomous movement of robots mainly includes path planning and trajectory tracking control after establishing a map. The existing autonomous movement maps of ground robots mainly focus on 2D and 3D. The 2D system does not fully express environmental information and only distinguishes between passable and non-passable areas. It is not suitable for expressing multiple terrains in complex environments. Although the 3D system expresses the surrounding environment in detail, the amount of data is too large, the data processing process is too complicated, and the cost is too high, making it unsuitable for large-scale applications.

[0005] At present, the performance of outdoor mobile robots is no longer limited to passable and impassable areas. They can climb over or cross some irregular and complex obstacles. Unlike a single structured environment, the cost of passing through different areas in complex and rugged terrain is also different. Autonomous movement methods on relatively flat surfaces, including path planning algorithms and trajectory tracking methods, cannot be applied to autonomous movement of robots under undulating terrain. The paths calculated by previous path planning algorithms are no longer the optimal paths, and previous navigation and trajectory tracking control methods can no longer meet the development of obstacle-crossing mobile robots. Summary of the invention

[0006] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a method and system for robot terrain perception and movement control under rugged terrain, which can realize the robot's autonomous movement of path planning and trajectory tracking control based on a 2.5D map; it is suitable for large-scale complex environments and can meet the requirements of intelligence and practicality.

[0007] In order to achieve the above object, the present invention is implemented through the following technical solutions:

[0008] In a first aspect, an embodiment of the present invention provides a method for robot terrain perception and movement control under rough terrain, comprising:

[0009] Obtain image feature points, perform optimization and solve them, and build a point cloud map based on the optimization results;

[0010] Extract the traversability information of the point cloud map to obtain a 2.5D cost map;

[0011] Based on the improved A* algorithm, a path with the lowest cost and obstacle passability information is generated in the 2.5D cost map, and global and local path planning is performed;

[0012] Through the MPC control algorithm with elevation constraint information, the trajectory is tracked following the local path to form a robot movement control plan.

[0013] As a further implementation method, feature points are extracted and matched on the image, and the translation matrix and rotation matrix are optimized using pure motion to locate each frame of the image by minimizing the reprojection error;

[0014] The local map is managed and optimized by solving the observation error.

[0015] As a further implementation, loop closure detection calculates the similarity between images, extracts feature points of each image for similarity scoring, and eliminates the accumulated drift error through pose graph optimization;

[0016] After the pose graph is optimized to eliminate errors, the optimal structure and motion results of the entire system are calculated based on the global BA algorithm, and the pose of the robot in the camera coordinate system and the sparse point cloud information of the global system are output.

[0017] As a further implementation method, the point cloud is transformed into a map coordinate system, filtered and downsampled; and the corresponding point cloud global information is obtained according to the relative relationship between the camera coordinate system and the map coordinate system.

[0018] As a further implementation method, the terrain that is sunken below the horizontal plane is regarded as a negative obstacle, and the depth and slope of the terrain depression are used to determine whether the terrain is passable, so as to control the movement of the robot in complex terrain;

[0019] The three-dimensional dynamic point cloud map is converted into a three-dimensional octree map by voxel filtering, and uniform sampling is performed at the voxel size to discretize the point cloud set to generate a sampling point cloud set; local terrain features are extracted from the sampling point set, and the result is projected onto the corresponding xy grid map at the cost of setting weights.

[0020] As a further implementation method, the A* path planning algorithm under the 2.5D map with terrain cost information is:

[0021] In the 2.5D cost map, the mobile robot's own performance is combined to generate a path with the lowest cost and obstacle passability information, and global path planning and local path planning are performed to generate a trajectory for the robot to bypass or climb over obstacles. The terrain cost information is added to the path planning, and the robot is controlled to judge according to the cost whether to directly pass through the rugged road or bypass the rugged road and choose a relatively long path but with relatively flat ground information to move.

[0022] As a further implementation, the MPC control algorithm with elevation constraint information includes:

[0023] Get the current robot state and the reference path generated by path planning, convert the map coordinate system to the robot coordinate system, take the robot's initial position as the origin, and the direction of the moving robot as the x-axis direction; establish a matrix equation, use QR decomposition to solve the position parameters, and use polynomial fitting to plan the tracked path;

[0024] According to the current state and path prediction trajectory, the trajectory is divided into N control points with an interval of dt; the output y at time t+1 after processing t+1 The control amount u generated at the previous stage t t Combine them and input them as new state variables to form a prediction equation to obtain the predicted output y t+2 ;

[0025] After completing the first control point, recursively proceed from the first step until y is reached. t+N The prediction step is completed when N output results constitute the prediction step, and N control quantities constitute the control step.

[0026] In a second aspect, an embodiment of the present invention further provides a robot terrain perception and movement control system under rough terrain, comprising:

[0027] Point cloud map building module, used to obtain image feature points, perform solution optimization, and build a point cloud map based on the optimization results;

[0028] 2.5D cost map generation module, used to extract the traversability information of the point cloud map and generate a 2.5D cost map;

[0029] The path planning module is used to generate the path with the lowest cost with obstacle passability information in the 2.5D cost map based on the improved A* algorithm, and perform global path planning and local path planning;

[0030] The robot movement control scheme generation module is used to form a robot movement control scheme by following the local path for trajectory tracking through the MPC control algorithm with elevation constraint information.

[0031] In a third aspect, an embodiment of the present invention further provides a robot terrain perception and movement control device under rough and undulating terrain, including a memory and a processor;

[0032] The memory is used to store relevant program codes;

[0033] The processor is used to call the program code to execute the robot terrain perception and movement control method.

[0034] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the robot terrain perception and movement control method.

[0035] The beneficial effects of the present invention are as follows:

[0036] (1) The present invention realizes the path planning and trajectory tracking control of the robot based on a 2.5D cost map and is suitable for large-scale complex environments and can meet the requirements of intelligence and practicality.

[0037] (2) The mapping method of the present invention also adds negative obstacles, that is, terrain that is sunken below the horizontal plane as negative obstacles. The depth and slope of the terrain depression are used to determine whether the terrain is passable, thereby controlling the movement of the robot in complex terrain.

[0038] (3) Based on the traditional MPC, the present invention increases the cost of integrating the change in map information with the speed. When the robot moves through terrain with varying heights, the change in map information will increase. In the constraint conditions, the fusion information of the change in map information and speed remains unchanged, so the speed will be reduced to buffer the change in map information. When the robot passes through a road with varying heights, the speed of passing is reduced, thereby making the robot move more smoothly. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0040] Figure 1 is a navigation stack architecture diagram according to one or more embodiments of the present invention;

[0041] Figure 2 is a schematic diagram of coordinate system changes according to one or more embodiments of the present invention;

[0042] Figure 3 is a schematic diagram of improved A-star algorithm path planning according to one or more embodiments of the present invention;

[0043] Figure 4 is a schematic diagram of a coordinate system of a differential robot according to one or more embodiments of the present invention;

[0044] Figure 5 is a flow chart of a navigation process according to one or more embodiments of the present invention. DETAILED DESCRIPTION

[0045] Embodiment 1:

[0046] This embodiment provides a method for robot terrain perception and movement control in rough terrain, including:

[0047] Obtain image feature points, perform optimization and solve them, and build a point cloud map based on the optimization results;

[0048] Extract the traversability information of the point cloud map to obtain a 2.5D cost map;

[0049] Based on the improved A* algorithm, a path with the lowest cost and obstacle passability information is generated in the 2.5D cost map, and global and local path planning is performed;

[0050] Through the MPC control algorithm with elevation constraint information, the trajectory is tracked following the local path to form a robot movement control plan.

[0051] In this embodiment, a binocular RGB camera is first used in ROS (Robot Operating System) to collect image information, calculate feature point transformation and camera pose information, establish a sparse point cloud map, and transform the point cloud information to the map coordinate system in real time. The cost of the point cloud data features in the global coordinate system is calculated and projected onto a two-dimensional plane to obtain a global 2.5D cost map. The Navigation stack provided by ROS is used to build it, and the improved A-star algorithm is used as a global planner to generate a global path in a 2.5D map with cost information.

[0052] In order to achieve path tracking on rough terrain using nonlinear MPC, the local planner is implemented as an MPC path tracker to generate a local path around the robot for tracking control, such as Figure 1 As shown; Through such implementation, the positioning (localization), map service and global planning provided by the existing Navigation stack can be used directly.

[0053] Specifically, Figure 5 As shown, the following steps are included:

[0054] Step A: Extract and match ORB feature points from the image transmitted by the Realsense D435i camera, and use pure motion BA (Bundle Adjustment) to optimize the camera's translation matrix T c and the rotation matrix R c , the camera of each frame is located by minimizing the reprojection error, and the camera pose and the position of the feature points extracted from the image are optimized together as optimization variables.

[0055] After calculating the pixel coordinates of the three-dimensional coordinate points, in order to reduce the cumulative error, local BA optimization is performed. By solving and optimizing the observation error, the posture and landmarks are adjusted at the same time, some major key frames and all points visible in the key frames are optimized, and the local map is managed and optimized.

[0056] Loop detection calculates the similarity between images, extracts the feature points of each image for similarity scoring, and takes a priori similarity s(v t ,v t-Δt ) represents the similarity between the key points in the image at a certain moment and the key points in the image at the previous moment, and the others are normalized according to this score.

[0057]

[0058] This step performs detection loop closure and eliminates the accumulated drift error through pose graph optimization.

[0059] After the loop detection pose graph is optimized and errors are eliminated, the fourth thread will be started to execute the global BA algorithm to calculate the optimal structure and motion results of the entire system, and finally output the pose and sparse point cloud information of the robot in the camera coordinate system.

[0060] like Figure 2 As shown, real-time TF (Transform Frame) coordinate transformation is performed to transform the point cloud into the map coordinate system, and filtering and downsampling are performed. According to the relative relationship between the camera coordinate system and the map coordinate system, the camera point cloud P C To the map coordinate system Pm The conversion can be expressed as:

[0061] P m =R×P C +T;

[0062] Where R is the rotation matrix and T is the translation vector (dynamic coordinate transformation). The point cloud information in the camera coordinate system is converted into the map coordinate system through the formula, and the corresponding point cloud global information is obtained.

[0063] Step B: Extract the traversability information of the established point cloud map, embed the information and elevation information into the state space to form a 2.5D cost map.

[0064] The traditional Octomap generates a three-dimensional octree map and a two-dimensional grid map. This embodiment combines the two, which not only retains the three-dimensional information but also takes into account the operability of the two-dimensional map.

[0065] This embodiment adds negative obstacles to the traditional mapping method, that is, terrain that is sunken below the horizontal plane as a negative obstacle, and determines whether the terrain is passable based on the depth and slope of the terrain depression, thereby controlling the robot to move on the rugged terrain.

[0066] The environment is represented by a point cloud consisting of n points, and this point cloud set is called the original point set Q O , the three-dimensional dynamic point cloud map is converted into a three-dimensional octree map (Octomap) by voxel filtering, with a voxel size of R S Perform uniform sampling to discretize the point cloud set and generate a sampled point cloud set Q S We start from the sampling point set Q S Local terrain features, such as roughness, slope, and geometric relationships with neighboring point sets, are extracted from the map, and these are used as costs with certain weights to obtain the results and projected onto the corresponding xy grid map. These features are used to derive the traversability metric of the map. For the sampling point set Q S For the i-th voxel unit in the graph, several evaluation factors are selected to determine the cost value of this voxel unit:

[0067] The Z-axis average μ of the point cloud within the voxel Z , used to indicate the height of the obstacle and determine the obstacle type (positive / negative obstacle).

[0068] The Z-axis variance D of all point clouds within a voxel Z , which is used to determine the roughness of the terrain.

[0069] Surface reconstruction is performed on the point cloud within the voxel to calculate the surface z-axis tangent normal vector N z , calculate the surface slope.

[0070] Taking the ith voxel unit as the center and five unit lengths as the radius, calculate the variance σ of the z-axis mean value μ of all voxel units in this area Z , determine the complexity of terrain undulation.

[0071] Then each evaluation factor is linearly weighted to obtain the cost function:

[0072] J c =w μ μ z +w D D Z +w N N Z +w σ σ Z ;

[0073] Among them, w μ ,w D ,w N ,w σ is an adjustable parameter that weighs each evaluation factor according to the desired behavior. In the default setting, the value of each weight is 0.25. In practical applications, the most influential of these factors is μ Z , if μ Z If the ground clearance of the mobile robot is greater than the ground clearance of the mobile robot, it is directly judged as an impassable area; Z It can also determine the properties of the obstacle, whether it is a convex obstacle or a concave obstacle. For obstacles with different properties, the other three evaluation factors have different effects on the robot's movement, thereby performing subsequent complex robot movement processing.

[0074] The cost of each voxel unit is projected into the grid map (Portable Gray Map) using grayscale values ​​(0-100) of different color depths to form a 2.5D cost map. The specific implementation formula mapped into the map is as follows:

[0075]

[0076] Among them J M Indicates the maximum cost threshold, fill in the map data i ∈[0,100].

[0077] Map update, new measurements from the distance sensor are processed as points in space and mapped to the elevation map. This will produce a new height measurement p at the cell (x, y) in the elevation map (assuming one cell is updated per measurement point). In the map coordinate system, the height measurement is approximated by a Gaussian probability distribution, Mean p and variance Given the position r in the sensor coordinate system SP can be converted to the corresponding height measurement p:

[0078] p=P(Φ -1 (r SP )-r SM );

[0079] The projection matrix P = [0 0 1] maps the three-dimensional measurements to a scalar height measurement p (in map coordinates).

[0080] Step C: The current position and posture of the mobile robot is obtained by fusing the camera and IMU. Then, through the improved A* algorithm in 2.5D, the performance of the mobile robot itself is combined in the 2.5D cost map to generate a path with the lowest cost and obstacle passability information. Global path planning and local path planning are performed to generate a trajectory for the robot to bypass or climb over obstacles.

[0081] Furthermore, the improved A* global path planning algorithm includes the following steps:

[0082] The calculation formula of the improved A* algorithm is:

[0083] f(n)=g(n)+h(n)+c(n);

[0084] Among them, f(n) is the evaluation function that evaluates the cost of each node to the target point; g(n) is the movement cost from the initial state to state n, which is the cost required to move n unit distances in the plane; h(n) is the estimated cost of the best path from state n to the target state, which is the heuristic function of the A-star algorithm.

[0085] For the heuristic function, if the grid map only allows movement in four directions: up, down, left, and right, the Manhattan distance can be used. If the grid-like map allows movement in eight directions, the diagonal distance can be used. If the grid-like map allows movement in any direction, the Euclidean distance can be used. This method uses Euclidean distance as the heuristic function distance, which represents the prior distance between two nodes.

[0086] c(n) is the terrain cost of moving from the initial state to state n in the 2.5D elevation map. Each grid in the map contains information representing the cost of passing through this terrain. The terrain cost information is added to the path planning. The robot is controlled to judge whether to go directly through the rugged road or bypass the rugged road and choose a relatively long path but relatively flat ground information according to the cost. c(n) depends on the size of the terrain passability information represented by each node.

[0087] According to the input 2.5D elevation map, given the global target and posture, the current posture information is obtained through the visual odometer and IMU. Figure 3 As shown, two empty tables Open_set and Close_set are initialized. The algorithm first adds all the passable nodes around the starting point to Open_set, sets the cost of the starting point to 0, and determines whether Open_set is empty. If so, the path planning fails and the operation ends. If not, select the point n with the minimum cost among all the passable nodes around the current node from Open_set, determine whether n is the end point, and if it is the end point, reverse search the previous node to generate the optimal path, and the path planning is successful. If it is not the end point, delete node n from Open_set and add it to Close_set, then traverse all the passable nodes around node n. If the passable node m around node n is not in Close_set, set the parent of m to n, calculate the cost of point m using the above formula, add point m to Open_set to perform the above judgment, and perform the loop operation until the end point is found. In each search, the algorithm always selects the point with the smallest total cost f(n) in the current Open_set for expansion, and repeats this process until the node sequence with the minimum cost is generated, that is, the optimal path planning.

[0088] Step D: Since the local planner including MPC in this embodiment moves through obstacles without considering the problem of identifying and avoiding obstacles, the global planner uses the above-mentioned improved A* algorithm with elevation cost to reflect the map of obstacles, and updates the path to the target location at frequent time intervals (1 second). The local planner generates a local planning trajectory on the path 5 meters in front of the robot according to the position of the robot moving in the path generated by the global planner, and calculates the acceleration and turning speed of the robot. The input required for actual robot control - the forward speed v is obtained by integrating the acceleration a, and finally the speed of each drive wheel is adjusted by the motor controller using the speed formula.

[0089] First, we need to establish the kinematic model of the mobile robot, such as Figure 4 As shown, in the global coordinate system, the motion equation of the differential wheeled robot is expressed as:

[0090]

[0091] Yaw angle rotation speed ω=(v R -v L ) / W, W is the wheelbase, according to the formula, the required rotation speed of the robot drive motor is ω R and ω L, can be calculated according to the formula:

[0092]

[0093] Consistent with the previous A-star path planning, the lateral trajectory error represents the Euclidean distance between the robot position and the path in two-dimensional coordinates. To apply it to the path following problem, the lateral trajectory error and the direction error are added to the state variables, and the direction error measures the difference between the forward direction of the mobile robot and the tangent direction of the path.

[0094] To obtain the current state x of the robot and the reference path generated by path planning, we must first perform a coordinate system transformation, convert the map coordinate system into the robot coordinate system, use the robot's initial position as the origin, and the direction of the moving robot as the x-axis direction. Then, establish a matrix equation, use QR decomposition to solve the position parameters, and use cubic polynomial curve fitting to plan the robot's motion trajectory.

[0095] According to the robot state at the previous moment, the state at the next moment is predicted to establish a model. The discrete model is:

[0096] x t+1 =f(x t ,u t );

[0097] Using the state variable x = (xy θ vd η c) T The robot motion modeled as a discrete system x t+1 =f(x t ,u t ) is as follows:

[0098] x t+1 =x t +v t cos(θ)·dt;

[0099] y t+1 =y t +v t sin(θ)·dt;

[0100] θ t+1 =θ t +ω t ·dt;

[0101] v t+1 =v t +a t ·dt;

[0102] d t+1 =g(x t )-y t +vt sin(η)·dt;

[0103]

[0104] c t+1 =Δdata[m x × t+1 +y t+1 ]×v t+1 .

[0105] dt is the time interval used for discretization, g(x t ) is a t is the input and output is the polynomial curve fitting function of the y coordinate, Represents the curve fitting function g(x t ), d represents the lateral trajectory error, η represents the direction error, d and η represent the distance error between the robot position and the predicted path and the direction error between the robot direction and the tangent of the predicted path, Δdata[] is the absolute value of the difference between the current state and the previous state map information, and c is the fusion amount of map information and robot speed.

[0106] The steps of the MPC algorithm are: 1. Get the current robot state x and the reference path issued by the path planning algorithm. First, perform a coordinate system transformation, convert the map coordinate system to the robot coordinate system, take the robot's initial position as the origin, and the direction of the moving robot as the x-axis direction. 2. According to the current state and path, predict the trajectory and divide the trajectory into N control points with an interval of dt and a total time of T = N*dt. 3. Control the driver input, the data of the first control point 4. After completing the first control point, recursively proceed from the first step.

[0107] The optimization problem of MPC is expressed as the cost function of the formula and the constraints of the formula:

[0108]

[0109] in,

[0110] x t =x(t) (a)

[0111]

[0112]

[0113]

[0114] Formula (a) uses the current state variable x(t) as the initial value of the motion prediction interval in the optimization process. Expression (b) indicates that the robot follows the motion equation in the moving interval. Expression (c) indicates the state constraint condition. Expression (d) indicates the speed used to move the robot and the limit range of each speed input.

[0115] The first part of the constraints is to minimize the error between the vehicle trajectory and the reference path, and to make the vehicle speed as close to the reference speed as possible, while minimizing the difference between the speed and the reference speed, the lateral trajectory error, and the direction error. The second part is to make the vehicle run more smoothly by making the angular acceleration and acceleration as small as possible, and to minimize the input size of each driver. The third part is to make the robot move more smoothly and minimize the difference between the angular acceleration and linear acceleration of two adjacent driver inputs. The fourth part is to control the mobile robot to pass stably when passing through rugged terrain, so that the fusion amount of map information and robot speed information changes as little as possible. When the map information changes, the speed is reduced.

[0116] Table 1 MPC optimization weights

[0117]

[0118] The optimization weights of MPC are set as shown in Table 1. Prioritizing path following performance, the priority is placed on lateral trajectory error and direction error; for fast driving, the weight is reflected in the forward velocity error. In order to prevent sudden changes, the weighting of yaw acceleration and damping (jerk) is considered. Most importantly, the influence of the map on the mobile robot is reflected in the map velocity fusion error.

[0119] The traditional MPC algorithm controls the mobile robot to track the trajectory on the two-dimensional map plane, without considering the undulations of the ground and the need to cross obstacles, resulting in the inability to control the robot to smoothly and accurately follow the path in actual applications. Based on the traditional MPC, this embodiment increases the cost of integrating the change in map information with the speed. When the robot moves through terrain with highly variable heights, the change in map information will increase. In the constraint condition, the map information change and the speed fusion information are fixed, so the speed will be reduced to buffer the change in map information, so that when the robot passes through a highly variable road surface, the passing speed is reduced, thereby making the robot move more smoothly.

[0120] Embodiment 2:

[0121] This embodiment provides a robot terrain perception and movement control system under rough terrain, including:

[0122] Point cloud map building module, used to obtain image feature points, perform solution optimization, and build a point cloud map based on the optimization results;

[0123] 2.5D cost map generation module, used to extract the traversability information of the point cloud map and generate a 2.5D cost map;

[0124] The path planning module is used to generate the path with the lowest cost with obstacle passability information in the 2.5D cost map based on the improved A* algorithm, and perform global path planning and local path planning;

[0125] The robot movement control scheme generation module is used to form a robot movement control scheme by following the local path for trajectory tracking through the MPC control algorithm with elevation constraint information.

[0126] Embodiment three:

[0127] This embodiment provides a robot terrain perception and movement control device under rough and undulating terrain, including a memory and a processor;

[0128] The memory is used to store relevant program codes;

[0129] The processor is used to call the program code to execute the robot terrain perception and movement control method described in Example 1.

[0130] Embodiment 4:

[0131] This embodiment provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute the robot terrain perception and movement control method described in Embodiment 1.

[0132] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A robot terrain perception and movement control method under rough terrain, characterized in that: include: Obtain image feature points, perform optimization and solve them, and build a point cloud map based on the optimization results; Extract the traversability information of the point cloud map to obtain a 2.5D cost map; Based on the improved A* algorithm, a path with the lowest cost with obstacle passability information is generated in the 2.5D cost map, and global path planning and local path planning are performed; the A* path planning algorithm under the 2.5D map with terrain cost information is as follows: in the 2.5D cost map, a path with the lowest cost with obstacle passability information is generated in combination with the mobile robot's own performance, global path planning and local path planning are performed, and a trajectory is generated to enable the robot to bypass or climb over obstacles; Add terrain cost information to path planning, and control the robot to determine whether to go directly through the rugged road or bypass the rugged road and choose a relatively long path with relatively flat ground information to move according to the cost; Through the MPC control algorithm with elevation constraint information, the trajectory is tracked following the local path to form a robot movement control plan.

2. The method for robot terrain perception and movement control under rough terrain according to claim 1 is characterized in that: Extract and match feature points of the image, use pure motion to optimize the translation matrix and rotation matrix, and locate each frame of the image by minimizing the reprojection error; The local map is managed and optimized by solving the observation error.

3. The method for robot terrain perception and movement control under rough terrain according to claim 2 is characterized in that: Loop closure detection calculates the similarity between images, extracts feature points of each image for similarity scoring, and eliminates accumulated drift errors through pose graph optimization; After the pose graph is optimized to eliminate errors, the optimal structure and motion results of the entire system are calculated based on the global BA algorithm, and the pose of the robot in the camera coordinate system and the sparse point cloud information of the global system are output.

4. The method for robot terrain perception and movement control under rough terrain according to claim 3 is characterized in that: The point cloud is transformed into the map coordinate system, filtered and downsampled; according to the relative relationship between the camera coordinate system and the map coordinate system, the corresponding point cloud global information is obtained.

5. The method for robot terrain perception and movement control under rough terrain according to claim 1, characterized in that: The terrain that is sunken below the horizontal plane is regarded as a negative obstacle. The depth and slope of the terrain depression are used to determine whether the terrain is passable, so as to control the movement of the robot in complex terrain. The three-dimensional dynamic point cloud map is converted into a three-dimensional octree map by voxel filtering, and uniform sampling is performed at the voxel size to discretize the point cloud set to generate a sampled point cloud set; Local terrain features are extracted from the sampling point set, and the results are projected onto the corresponding xy grid map at the cost of setting weights.

6. The method for robot terrain perception and movement control under rough terrain according to claim 1, characterized in that: The MPC control algorithm with elevation constraint information includes: Get the current robot state and the reference path generated by path planning, convert the map coordinate system to the robot coordinate system, take the robot's initial position as the origin, and the direction of the moving robot as the x-axis direction; establish a matrix equation, use QR decomposition to solve the position parameters, and use polynomial fitting to plan the tracked path; According to the current state and path prediction trajectory, the trajectory is divided into N control points with an interval of dt; the output y at time t+1 after processing t+1 The control amount u generated at the previous stage t t Combine them and input them as new state quantities to form a prediction equation to obtain the predicted output y t+2 ; After completing the first control point, recursively proceed from the first step until y is reached. t+N The prediction step is completed when the N output results constitute the prediction step, and the N control quantities constitute the control step.

7. A robot terrain perception and mobility control system under rough terrain, characterized by: include: Point cloud map building module, used to obtain image feature points, perform solution optimization, and build a point cloud map based on the optimization results; 2.5D cost map generation module, used to extract the traversability information of the point cloud map and generate a 2.5D cost map; The path planning module is used to generate a path with the lowest cost with obstacle passability information in the 2.5D cost map based on the improved A* algorithm, and perform global path planning and local path planning. The A* path planning algorithm under the 2.5D map with terrain cost information is: in the 2.5D cost map, combined with the performance of the mobile robot itself, a path with the lowest cost with obstacle passability information is generated, global path planning and local path planning are performed, and a trajectory is generated for the robot to bypass or climb over obstacles; Add terrain cost information to path planning, and control the robot to determine whether to go directly through the rugged road or bypass the rugged road and choose a relatively long path with relatively flat ground information to move according to the cost; The robot movement control scheme generation module is used to form a robot movement control scheme by following the local path for trajectory tracking through the MPC control algorithm with elevation constraint information.

8. Robot terrain perception and mobile control equipment under rough terrain, characterized by: including a memory and a processor; The memory is used to store relevant program codes; The processor is used to call the program code to execute the robot terrain perception and movement control method described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the robot terrain perception and movement control method according to any one of claims 1 to 6.