Ackerman structure robot full-coverage path planning method and system and mowing robot

Through hierarchical planning and RS curve connection on the geometric map layer, combined with the hybrid A* algorithm's local path planning on the raster map layer, the problem of full coverage path planning for the Ackermann structure robot in complex terrain is solved, achieving efficient, Precise path planning and obstacle avoidance capabilities.

CN118623864APending Publication Date: 2024-09-10CHANGSHA HUILIAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410665106.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing technology cannot effectively realize efficient full-coverage path planning for Ackerman structure robots in complex terrain. Traditional methods have shortcomings in coverage and efficiency, and are difficult to adapt to the turning radius and non-holonomic constraint characteristics of Ackerman structure robots.

Method used

Using a hierarchical planning method, firstly generate full coverage path points on the geometric map layer, and connect them through RS curves to form a path that does not contain polyline segments; when encountering obstacles, generate a raster map and perform local obstacle avoidance path planning, combined with Hybrid A* trajectory search algorithm ensures path accuracy and coverage.

Benefits of technology

It achieves efficient, low-cost, full-coverage path planning for Ackerman structure robots, which can be applied to complex terrains and quickly and accurately avoid dynamic and static obstacles, reducing the amount of calculation and improving planning efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118623864A
    Figure CN118623864A
Patent Text Reader

Abstract

The invention discloses an Ackerman structure robot full-coverage path planning method and system and a mowing robot. The method comprises the steps that a geometric map is generated according to the boundary of a target working area; performing full-coverage path planning based on the geometric map to obtain position information of a plurality of path points; acquiring course angle information of each path point according to the position information of each path point, connecting the path points by adopting an RS curve according to the position information of each path point and the course angle information, and performing interpolation to form a full-coverage path which does not contain broken line segments; when an obstacle is encountered in the driving process, generating a grid map; and acquiring an obstacle avoidance end point position from the geometric map, transmitting the obstacle avoidance end point position to the grid map, performing path planning according to the grid map and the obstacle avoidance end point position, and generating a local path which bypasses the obstacle and has an end point on a full-coverage path. The method can be suitable for the Ackerman structure robot to achieve efficient and high-coverage-rate full-coverage path planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mobile robot control, and in particular to a full-coverage path planning method and system for an Ackerman structure robot and a lawn mowing robot. Background Art

[0002] In order to perform tasks, mobile robots (such as lawn mowing robots, vehicles, etc.) usually need to carry out full coverage path planning. Indoor mobile robots generally adopt a differential structure (using differential steering wheels for steering), but this type of structure robot is only suitable for relatively flat terrain and is not suitable for driving in complex outdoor terrains such as large undulations, muddy geology and potholes. Taking lawn mowing robots as an example, in order to facilitate path planning, household lawn mowers generally use differential steering wheels for steering, which can increase the steering flexibility of the vehicle. However, for outdoor grass, there are complex terrain conditions such as large undulations, muddy geology and potholes, which pose a great challenge to the movement of differential vehicles. Robots with Ackerman structures use Ackerman steering methods, which can be better applied to situations with the above-mentioned complex terrains.

[0003] Full coverage path planning is to traverse the target area and generate a coverage trajectory that can cover the entire area's traversable space. In the prior art, full coverage path planning methods are usually implemented based on geometric maps or grid maps, among which the method based on geometric maps is to construct a regional connectivity map by using polygons to represent obstacles in the environment, and to traverse the area using reciprocating and other covering methods to generate a coverage trajectory; while the method based on grid maps is to use binary information to represent the environment to generate a grid map, and then use a path planning algorithm based on the grid map to perform path planning. The median of the grid map can be used to distinguish whether it is an obstacle area, so that an obstacle avoidance path can be planned.

[0004] However, the method based on geometric maps has poor environmental adaptability. Since obstacles are represented in the form of polygonal bounding boxes, it is difficult to plan a suitable path for obstacle avoidance. Moreover, since the geometric map represented by polygons is used for planning, it is difficult to accurately estimate the coverage rate represented by the path traveled by the vehicle. In addition, the generated coverage trajectory will contain a large number of broken line paths that can only be completed by turning in situ. Therefore, it is usually aimed at robots with integrity constraints such as differential structures. Such differential structure robots can rotate in situ and thus can travel along broken line paths. The Ackerman structure robot is a non-holonomically constrained robot with a large turning radius and cannot turn in situ. The traditional full coverage path planning method based on geometric maps cannot be directly applied to such Ackerman structure robots with large turning radius. Although the grid map-based method can achieve obstacle avoidance function more accurately, the performance depends on the grid size. Smaller grids can obtain higher accuracy but have high computational complexity and large resource consumption. In summary, neither the traditional method based on geometric maps nor the grid map-based method can be directly applied to Ackerman structure robots to achieve high efficiency and high coverage of full coverage path planning. Summary of the invention

[0005] The technical problem to be solved by the present invention is: in view of the problems existing in the prior art, the present invention provides a full coverage path planning method, system and lawn mowing robot of an Ackerman structure robot which has a simple implementation method, low cost, small amount of calculation, high coverage and efficiency, and is safe and reliable, and can be applied to the Ackerman structure robot to realize efficient and high coverage full coverage path planning.

[0006] In order to solve the above technical problems, the technical solution proposed by the present invention is:

[0007] A full coverage path planning method for an Ackerman structure robot, comprising the following steps:

[0008] Generate a geometric map based on the boundaries of the target work area;

[0009] Perform full coverage path planning based on the generated geometric map to obtain location information of multiple path points;

[0010] Obtaining heading angle information of each path point according to the position information of each path point;

[0011] Connecting each path point in sequence using an RS curve according to the position information of each path point and the heading angle information, and interpolating the connected trajectory to form a full coverage path that does not contain a broken line segment;

[0012] When the robot encounters an obstacle while traveling along the full coverage path, a grid map is generated according to the generated geometric map, and an end point position of obstacle avoidance is obtained from the geometric map and transmitted to the grid map;

[0013] Path planning is performed according to the grid map and the terminal position of obstacle avoidance, so as to generate a local obstacle avoidance path that bypasses the obstacle and ends on the full coverage path.

[0014] Furthermore, in the process of connecting the path points using the RS curve, if the headings of the two target points to be connected are opposite, a CCC or CSC three-segment RS curve is selected, and the first segment of the curve is a reverse curve.

[0015] Furthermore, the full coverage path planning based on the generated geometric map includes:

[0016] Divide the geometric map into multiple sub-regions, each of which is a convex polygon;

[0017] Each sub-area is covered by reciprocating motion according to the size of the robot, the turning radius and the obstacle information, so as to obtain a globally based waypoint set, wherein the waypoint set includes the position information of a plurality of waypoints.

[0018] Furthermore, the step of acquiring the heading angle information of each path point according to the position information of each path point includes:

[0019] Construct a set of path points in order according to the path points;

[0020] Starting from the first path point in the path point set, traversing each path point in turn to assign a heading angle;

[0021] During each traversal, take the current path point as the starting point and search backward for 3 path points to form four path point combinations, and determine whether the currently formed path point combination can form two sets of parallel line segments. If so, use the arc tangent value of the difference between the coordinate values ​​of the two target path points in each set of parallel line segments as the heading angles of the two target path points, and take the fourth path point backward from the current path point as the new starting point; if not, remove the current starting point from the path point set and move one path point backward as the new starting point, and search backward for 3 path points again to determine whether two sets of parallel line segments can be formed, until all path points have completed the assignment of heading angles.

[0022] Furthermore, it also includes configuring the gear information of the robot at each path point according to the heading information of each path point in the generated full coverage path and the robot posture information, including:

[0023] Starting from the first path point of the fully covered path, traverse each path point in turn to assign gear positions;

[0024] Each time you traverse, take a path point as the current path point;

[0025] If the current path point is the first path point, obtain the direction vector v1 between the current path point and the next path point, determine the angle relationship between the current robot's orientation vector and the direction vector v1, and if the angle formed is less than 90°, assign the current path point to a forward gear, otherwise assign the current path point to a reverse gear, and take the next path point as the current path point to continue traversing;

[0026] If the current path point is not the first path point, respectively obtain the direction vector v1 between the current path point and the next path point and the direction vector v2 between the current path point and the previous path point, determine the angle relationship between the currently obtained direction vector v1 and the direction vector v2, and if the formed angle is less than 90°, assign the current path point the same gear as the previous path point, otherwise assign the current path point the opposite gear to the previous path point, and take the next path point as the current path point to continue traversing;

[0027] Determine whether the current path point is the last path point. If so, assign the current path point the same gear as the previous path point. Otherwise, take the next path point as the current path point to continue traversal.

[0028] Furthermore, when generating the grid map, it also includes projecting the boundary points of the geometric map into the grid map and configuring them as inaccessible, and using a hybrid A* trajectory search algorithm to plan the path according to the grid map and the end position of the obstacle avoidance, and selecting the point with the smallest distance from the obstacle avoidance starting position after crossing the obstacle and on the fully covered path as the end point of the obstacle avoidance path.

[0029] Furthermore, it also includes a path switching control step, including: in the initial state, the generated full coverage path is sent to the target robot to control the target robot to travel along the full coverage path; when it is determined that an obstacle is encountered, the local obstacle avoidance path is switched to be sent to the target robot to control the target robot to travel along the local obstacle avoidance path; when it is determined that the obstacle avoidance process is completed, the full coverage path is switched back to be sent to the target robot.

[0030] A full coverage path planning system for an Ackerman structure robot, comprising:

[0031] A geometric map building module is used to build a regional map of the target working area to generate a geometric map;

[0032] A global path planning module, used to perform full coverage path planning based on the generated geometric map to obtain location information of multiple path points;

[0033] A heading angle information acquisition module is used to acquire the heading angle information of each path point according to the position information of each path point;

[0034] A full coverage path generation unit, used to connect each path point in sequence using an RS curve according to the position information of each path point and the heading angle information, and interpolate the connected trajectory to form a full coverage path that does not contain broken line segments;

[0035] A grid map generation module, used to generate a grid map according to the generated geometric map, and obtain the end position of obstacle avoidance from the geometric map and transmit it to the grid map;

[0036] The local path generation module is used to perform path planning according to the grid map and the terminal position of the obstacle avoidance, and generate a local obstacle avoidance path that bypasses obstacles and ends on the full coverage path.

[0037] An automatic lawn mowing robot comprises a processor and a memory, wherein the memory is used to store a computer program. The lawn mowing robot is an Ackerman structure, and the processor is used to execute the computer program to perform the above method. The processor is connected to a controller of the lawn mowing robot.

[0038] A computer-readable storage medium storing a computer program, wherein the computer program implements the above method when executed.

[0039] Compared with the prior art, the advantages of the present invention are: the present invention performs full coverage path planning by adopting a hierarchical planning method, constructs a geometric map at the geometric map layer, performs full coverage path planning based on the geometric map to obtain multiple path points, then obtains the heading information of each path point according to the position information of each path point, connects each path point by using an RS curve in combination with the position information and heading information of each path point, and forms a full coverage path that can be applied to an Ackerman structure robot and does not require the robot to turn on the spot; at the grid map layer, generates a grid map according to the geometric map, obtains the end point position of obstacle avoidance from the geometric map and transmits it to the grid map, and then generates a local obstacle avoidance path with the end point on the full coverage path, so that the generated coverage trajectory can not only be applied to the Ackerman structure robot, but also can perform fast and accurate obstacle avoidance path planning for dynamic and static obstacles, taking into account both coverage rate and obstacle avoidance accuracy, and at the same time can reduce the amount of calculation and improve planning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1It is a schematic diagram of the implementation flow of the full coverage path planning method of the Ackerman structure robot in Example 1 of the present invention.

[0041] Figure 2 It is a schematic diagram of the effect of the full coverage path obtained by full coverage path planning in a specific application embodiment of the present invention.

[0042] Figure 3 It is a schematic diagram of a three-segment RS curve used to connect two path points with opposite headings in Example 1 of the present invention.

[0043] Figure 4 It is a schematic diagram of the geometric map established in Example 2 of the present invention.

[0044] Figure 5 It is a schematic diagram of demerit obtained by performing full coverage path planning based on a geometric map in Example 2 of the present invention.

[0045] Figure 6 It is a schematic diagram of the effect of a full coverage path formed by connecting three-segment RS curves in Example 2 of the present invention.

[0046] Figure 7 Schematic diagram of the speed curve obtained in Example 2 of the present invention.

[0047] Figure 8 It is a schematic diagram of the local obstacle avoidance path obtained in Example 2 of the present invention. DETAILED DESCRIPTION

[0048] The present invention is further described below in conjunction with the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.

[0049] Embodiment 1:

[0050] Ackerman structure robots can track straight lines, but they cannot directly turn to jump to the next straight line segment after completing the straight line segment. Traditional full coverage path generation algorithms based on geometric maps usually generate broken line paths, which are not suitable for Ackerman structure robots. For example, when a mowing robot completes a row of mowing tasks, it needs to turn at a right angle of 180 degrees between the starting point of the next row and the end point of the previous row to move toward the starting point of the next row, but the Ackerman structure robot cannot turn on the spot. In addition, the coverage path generated by the traditional full coverage path generation algorithm usually only contains two-dimensional position information (x, y), and the heading information of the path point cannot be determined. The RS curve is a curve that can calculate the shortest path for the robot / vehicle to move from one posture to another with a fixed turning radius. The RS curve can be used to connect the paths to solve the problem that the Ackerman structure robot cannot turn on the spot. However, the selection and connection of the RS curve need to rely on the heading information of the path point, and the RS curve cannot be directly connected based on the broken line path generated by the traditional full coverage path generation algorithm.

[0051] This embodiment aims at the full coverage path generation problem of the Ackerman structure robot. By adopting a hierarchical planning method, at the geometric map layer, a geometric map is constructed, and a full coverage path planning is performed based on the geometric map to obtain multiple path points, and then the heading information of each path point is obtained according to the position information of each path point. In combination with the position information and heading information of each path point, each path point is connected by using an RS curve to form a full coverage path that is suitable for the Ackerman structure robot and does not require the robot to turn on the spot; at the grid map layer, a grid map is generated according to the geometric map, and the terminal position information of obstacle avoidance is obtained from the geometric map. The grid map is sent to the grid map, and then a local obstacle avoidance path with the end point on the full coverage path is generated based on the grid map and the end point position of the obstacle avoidance. The advantages of global path planning based on the geometric map and local path planning based on the grid map can be fully utilized, so that the generated coverage trajectory can not only be suitable for the Ackerman structure robot, solving the problem that the traditional full coverage path planning algorithm using geometric maps can only be applied to differential vehicles but not to Ackerman vehicles, but also can perform fast and accurate obstacle avoidance path planning for dynamic and static obstacles, thereby taking into account both coverage rate and obstacle avoidance accuracy, while also reducing the amount of calculation and improving planning efficiency.

[0052] like Figure 1 As shown, the steps of the full coverage path planning method of the Ackerman structure robot in this embodiment include:

[0053] Step 1: Global planning based on geometric maps

[0054] Step 101: Generate a geometric map according to the boundary of the target working area.

[0055] In this embodiment, a polygonal area map is created for the target working area of ​​the robot, and a map boundary is set. The boundary of the map is configured to be impassable.

[0056] Specifically, the remote-controlled robot can travel along the edge of the mowing area to be measured, automatically generate a polygonal frame surrounding the mowing area according to the positioning information, and record a series of coordinate values ​​of the surrounding frame to form a polygonal map.

[0057] Step 102: Perform full coverage path planning based on the generated geometric map to obtain location information of multiple path points.

[0058] Step 121: Divide the geometric map into a plurality of sub-areas, each of which is a convex polygon;

[0059] Step 122. Cover each sub-area through reciprocating motion according to the size, turning radius and obstacle information of the robot to obtain a global path point set, which includes the location information of multiple path points.

[0060] Specifically, the geometric map generated in step 101 is first segmented, and the area in the entire space is segmented into multiple sub-areas without overlapping areas, so that each sub-area after segmentation is a convex polygon; then, a full coverage path planning based on the geometric map is performed for each convex polygon area, and a series of key points for traversing the area, that is, path points, are obtained to form a path point set. The set only provides the location information of the path point, that is, the coordinate information (x, y), and based on the location information of each path point, it can be judged whether the lines between the points can form parallel line segments.

[0061] The key to full coverage path planning is to enable the robot to avoid obstacles while passing through all points in the target area or space through the path planning algorithm. When this embodiment performs full coverage path planning for each sub-area based on a geometric map, the obstacles are modeled as geometric polygons, and the passable areas in the entire area except the obstacle area are traversed and covered by reciprocating motions in a bow-shaped pattern in each sub-area, so as to obtain a series of path point information.

[0062] by Figure 2 For example, in a specific application embodiment, a bow-shaped pattern is used to cover the target working area to form a series of two-dimensional points (x, y). The two-dimensional points are connected in sequence to form a fully covered path with broken line segments. This type of path can only support the path of differential vehicles, and the blank area on the right is the obstacle area. Figure 2 It can also be seen that, for most of the points divided into the same area, the line segments are parallel to each other after being connected.

[0063] Optionally, the solution to the traveling salesman problem may be used to traverse each sub-area in the entire map, thereby obtaining a global set of waypoints.

[0064] In this embodiment, after the path point sequence is obtained through full coverage path planning, the path points are also filtered to remove some individual points caused by the rapid bending of irregular polygons at the corners, that is, outliers. These outliers basically do not form parallel coverage paths. After removal, the remaining path points can be the endpoints of two parallel line segments, so as to facilitate the subsequent assignment of heading angles to each path point and the connection of RS curves.

[0065] Step 103: Obtain the heading angle information of each path point according to the position information of each path point.

[0066] If the path points generated by the full coverage path planning in step 102 are directly connected, a broken line segment turning in place will be formed. The RS curve can be used to connect two state points. By using the RS curve for connection, the formation of a broken line segment can be avoided. However, to realize the RS curve connection, the heading angle of the path point must be determined first, and only the location information of the path point can be obtained through the full coverage path planning based on the geometric map. This embodiment further obtains the heading angle information of each path point point by point based on the path points generated in step 102.

[0067] In this embodiment, the step of acquiring the heading angle information of each path point according to the position information of each path point includes:

[0068] Step 131. Construct a set of path points in order according to the path points;

[0069] Step 132. Starting from the first path point in the path point set, traverse each path point in turn to assign heading angles; during each traversal, take the current path point as the starting point and search backward for 3 path points to form four path point combinations, and determine whether the currently formed path point combination can form two groups of parallel line segments. If so, use the arc tangent value of the difference between the coordinate values ​​of the two target path points in each group of parallel line segments as the heading angles of the two target path points, and take the fourth path point backward from the current path point as the new starting point; if not, remove the current starting point from the path point set and move one path point backward as the new starting point, and search backward for 3 path points again to determine whether two groups of parallel line segments can be formed, until all path points have completed the heading angle assignment.

[0070] Specifically, starting from the first path point, search for the subsequent three path points to obtain a total of four path points. If the four path points can form two sets of parallel line segments, the heading angles of the first and second path points are set to the arctangent value of the difference between the coordinate values ​​of the second path point and the first path point; the heading angles of the third and fourth path points are set to the arctangent value of the difference between the coordinate values ​​of the fourth path point and the third path point. If the four points do not form two sets of parallel line segments, remove the first path point from the routing point set, move one path point backward, and continue to search for the subsequent second, third, fourth, and fifth path points to see if they form parallel line segments. If they do, assign values ​​to the heading angles of the four points in the same way. If they do not, remove the first path point among the four path points, continue to search for the subsequent four points and determine whether they form parallel line segments. Follow the above steps in sequence until all path points have been assigned values, and the heading angle information of each path point can be obtained.

[0071] It is understandable that, in addition to the above-mentioned methods, other methods may be used to obtain the heading angle information of the planned path points according to the position information of the path points according to actual needs.

[0072] Step 104: Connect each path point in sequence using the RS curve according to the position information and heading angle information of each path point, and interpolate the connected trajectory to form a full coverage path that does not contain broken line segments.

[0073] By using the position information of each path point obtained in step 102 and the heading angle information of each path point obtained in step 103, RS curves are used to connect each path point in sequence and interpolate to fill the original path points, so as to form a full coverage path that does not contain broken line segments, so that it can be suitable for the Ackerman structure robot to travel.

[0074] In this embodiment, during the process of using RS curves to connect in sequence, if the headings of the two target points to be connected are opposite, more than three RS curves are selected to connect the two target points, and the first RS curve is a reverse RS curve. That is, when the headings of the two path points to be connected are in opposite states, the first curve in the RS curve connecting the two path points must be a reverse curve. By using at least three RS curves, with the first section being a specific reverse curve to connect the path points with opposite headings, not only can the motion characteristics of the Ackerman structure robot be met without turning on the spot, but it can also ensure that the connected RS curves will not exceed the boundary range of the mowing along the direction of the straight path, while further improving the coverage rate of the generated full coverage path while ensuring the safety and reliability of the robot's driving.

[0075] When this embodiment uses the RS curve to connect two path points with opposite headings (including three-dimensional information of x, y, and heading angle), CCC (curve-curve-curve) or CSC (curve-straight line-curve) is used, which can well complete the posture connection between two parallel paths 1.2m apart, and under the CCC or CSC connection mode, the first curve needs to use a reverse curve, otherwise the path trajectory may break through the boundary. Specifically, when using the RS curve to connect the path points, only the mode containing 3 keywords is selected, that is, including CCC\CSC\SCS\SSS, etc., and the mode containing 4 or 5 fields is removed. Among the three curves generated by various modes such as CCC\CSC\SCS\SSS, the direction is judged for the first curve, and only the curve with a negative gear position in the first curve (reverse curve) is selected.

[0076] like Figure 3 As shown, path point 1 and path point 2 need to be connected. The positions and directions of the two path points are different. When selecting the RS curve to connect path point 1 and path point 2, first select the CCC or CSC curve based on path point 1, and it is the reverse RS curve to obtain curve segment 1, and then further select a CCC or CSC curve as curve segment 2 and curve segment 3 respectively. Curve segment 2 intersects with curve segment 1, and curve segment 3 intersects with path point 2 and curve segment 2 respectively. According to the above three-segment RS curve, the Ackerman structure robot can drive out safely without exceeding the boundary.

[0077] Since the RS curve contains a reverse curve, that is, the gear positions at different path points are different, this embodiment further includes configuring the gear position information of the robot at each path point according to the heading information of each path point in the generated full coverage path and the robot posture information, so as to combine the trajectory formed by the RS curve connection to finally form a complete trajectory. According to the gear position information of the path point, the tracking module can control the gear position according to the gear position information of the preview path point to complete the accurate tracking of the path.

[0078] In this embodiment, the step of configuring the gear information of the robot at each path point according to the heading information of each path point in the generated full coverage path and the robot posture information includes:

[0079] Starting from the first path point of the fully covered path, traverse each path point in turn to assign gear positions;

[0080] Each time you traverse, take a path point as the current path point;

[0081] If the current path point is the first path point, obtain the direction vector v1 between the current path point and the next path point, determine the angle relationship between the current robot's orientation vector and the direction vector v1, and if the formed angle is less than 90° (i.e., an acute angle), assign the current path point a forward gear (forward gear), otherwise assign the current path point a reverse gear, and take the next path point as the current path point to continue traversing;

[0082] If the current path point is not the first path point, respectively obtain the direction vector v1 between the current path point and the next path point and the direction vector v2 between the current path point and the previous path point, and determine the angle relationship between the currently obtained direction vector v1 and the direction vector v2. If the formed angle is less than 90° (i.e., an acute angle), assign the current path point the same gear as the previous path point, otherwise assign the current path point the opposite gear to the previous path point, and take the next path point as the current path point to continue traversing;

[0083] Determine whether the current path point is the last path point. If so, assign the current path point the same gear as the previous path point. Otherwise, take the next path point as the current path point to continue traversal.

[0084] Specifically, when determining the gear information of each path point, first obtain the current posture of the vehicle, calculate the direction vector v12 from the first point to the second point in the path, calculate the angle relationship between the vehicle's direction vector v and the direction vector v12, and if the angle between the two vectors is <90°, assign the first point a forward gear, otherwise assign it a reverse gear; then calculate the direction vector v23 of the second and third points. If the angle between the direction vectors v12 and v23 is <90°, set the gear of the second point to the same value as the gear of the first point, otherwise set it to the opposite value. According to the same logic as above, that is, if the angle between the direction vector of the current point and the previous point and the direction vector of the current point and the next point is <90°, the gear position of the current point is the same as that of the previous point, otherwise the gear position of the current point is opposite to that of the previous point, and the gear values ​​are assigned to the second point to the second to last point in sequence, and the gear position of the last point is equal to the gear position of the second to last point.

[0085] Preferably, the speed of each path point can be further obtained for assignment. Specifically, a fixed acceleration (deceleration) can be used and the maximum speed can be limited to perform point-by-point assignment. The specific steps are as follows:

[0086] Calculate the distance S traveled from 0 to the maximum speed Vmax;

[0087] If (2+S) is less than the total path length, it means that the vehicle has maintained the maximum speed for a period of time. Calculate the speed of the path point according to the kinematic formula;

[0088] If (2+S) is greater than the total path length, it means that the vehicle needs to maintain a speed less than the maximum speed for a period of time before accelerating to the maximum speed, and the speed of the path point is calculated accordingly according to the kinematic formula.

[0089] Through the above steps, this embodiment can expand the two-dimensional information path points obtained by full coverage planning based on the geometric map to five-dimensional path points. The two-dimensional information path points include x-coordinate values ​​and y-coordinate values. The five-dimensional information path points specifically include: x-coordinate value, y-coordinate value, heading angle, gear position and speed value, which can fully characterize the driving state of the robot and facilitate the generation of a full coverage path suitable for the Ackerman structure robot.

[0090] Step 2: Local path planning based on grid map.

[0091] Traditional full-coverage path planning algorithms based on geometric maps are unable to make real-time and accurate plans for dynamic obstacles that appear during the robot's driving process. Usually, when building the map, the obstacles are circled in the form of holes and directly sent to the planning system. The planned path is given at one time, which cannot take into account both coverage and obstacle avoidance accuracy. At the same time, it is also impossible to respond to sudden dynamic obstacles in real time.

[0092] This embodiment combines the advantages of geometric maps and grid maps and adopts a hierarchical planning approach. First, at the geometric map layer, a geometric map is established to obtain key nodes (i.e., path points) of a fully covered path based on the geometric map. Then, RS curves are connected and the path point dimensions are expanded according to the key nodes to obtain a drivable path for an Ackerman vehicle. Then, at the grid map layer, a grid map is established to obtain a local path that can avoid dynamic obstacles, a grid map about obstacles is established, and the grid map is used to further refine the description of the environmental map. When an obstacle is encountered, the end point calculated by the geometric map is projected onto the grid map, and then a local obstacle avoidance path with the obstacle avoidance end point on the fully covered path is planned based on the grid map, so that it meets the kinematic requirements of the Ackerman vehicle and can perform fast and accurate obstacle avoidance path planning for dynamic and static obstacles.

[0093] Step 201. When the robot encounters an obstacle while traveling along the full coverage path, a grid map is generated according to the generated geometric map, and the end position of the obstacle avoidance is obtained from the geometric map and transmitted to the grid map.

[0094] In traditional grid maps, there is no "boundary" restriction, that is, as long as there is no obstacle in the grid, it is considered to be passable, that is, the robot's movement trajectory cannot penetrate the boundary. When building a geometric map, it is necessary to configure the boundary to be impassable. In order to achieve the correspondence between the geometric map and the grid map, the ranges of the two maps need to be aligned. When building a grid map, this embodiment projects the boundary points of the geometric map into the grid map and sets all the points on the boundary to "impassable" so that the grid map and the geometric map are spatially aligned, and at the same time, it can be ensured that the local path obtained by subsequent path planning will not penetrate the boundary.

[0095] Since the geometric map may include multiple mowing areas, when determining the size of the grid map, preferably, the smallest bounding rectangle that can include all areas is selected.

[0096] Step 202: Perform path planning based on the grid map and the end point position of the obstacle avoidance, and generate a local obstacle avoidance path that bypasses the obstacle and ends on the full coverage path.

[0097] In the grid formation, a smooth trajectory that meets the Ackerman kinematic characteristics needs to be generated, and a curve is also needed to connect the starting point and the end point of the local plan. This embodiment specifically uses a hybrid A* trajectory search algorithm to plan the path according to the location information and the end point of the obstacle. According to the obstacle size and the kinematic characteristics of the vehicle, the closest point that can bypass the current obstacle is calculated, that is, the point with the smallest distance from the obstacle avoidance starting position after crossing the obstacle and on the full coverage path is selected as the end point of the obstacle avoidance path, and the starting point and end point of the local plan are determined, and finally a trajectory that can avoid obstacles and meets the vehicle kinematics is generated.

[0098] In path planning, obstacles can be modeled in a specific way according to actual needs. In order to reduce the complexity of the problem, this embodiment adopts the form of rectangular frame clustering when modeling obstacles. In point-to-point path planning methods such as traditional hybrid A* planning, the target point is determined at the beginning of planning. As long as the destination can be reached in the end, the position of the intermediate point is not concerned. In the obstacle avoidance process of full coverage path planning, the position of the end point must be located on the global path, and the path points that are ignored and not traversed due to obstacle avoidance should be minimized. In order to integrate the point-to-point planning method and the full coverage path planning method, this embodiment first obtains the end position of obstacle avoidance from the geometric map and transmits it to the grid map, and then performs hybrid A* planning. In the global path calculated by the geometric map, the point with the smallest distance from the starting position of obstacle avoidance after crossing the obstacle is selected as the target point of the obstacle avoidance path. In this way, the path calculated by the hybrid A* algorithm can not only meet the vehicle kinematic characteristics, but also return to the global path after the obstacle avoidance path ends, while minimizing the number of ignored points, and since the point selection is performed on the geometric map, the calculation efficiency can also be improved.

[0099] In a specific application embodiment, a grid map is generated according to a certain granularity (such as 0.1m*0.1m) for the geometric map generated in step 1. In the initial grid map, except for the grids at the map boundary which are set to be impassable, the remaining grid states are all set to be passable. When the vehicle travels along the global path, the robot's perception module transmits obstacles within a certain range to the system in the form of a rectangular frame in real time; at the same time, the perception module will also generate a cost_map based on the vehicle body coordinates in real time, and transmit the cost_map containing obstacle information to the planning system after the coordinate system is converted. The planning system then uses a hybrid A* algorithm to generate a local path for the robot to travel that bypasses obstacles and ends on the global path.

[0100] Preferably, in order to achieve switching between the local trajectory and the global trajectory after obstacle avoidance, it further includes a path switching control step, including: in the initial state, the generated full coverage path is sent to the target robot to control the target robot to travel along the full coverage path, when it is judged that an obstacle is encountered, the system generates a local path according to the above steps, and when the local path is generated, it automatically switches to sending the local obstacle avoidance path to the target robot to control the target robot to travel along the local obstacle avoidance path; when it is judged that the obstacle avoidance process is completed, it switches back to sending the full coverage path to the target robot.

[0101] This embodiment designs a state machine to achieve conversion between the global path and the local path. Specifically, by setting a state quantity, at the beginning of the obstacle avoidance, the value of the state quantity is set to: 1, indicating that the obstacle avoidance is in progress, and the planning system sends the local path at this time; and when the obstacle avoidance ends, the state quantity is: 0, indicating that the obstacle avoidance is completed, and the planning system sends the global path at this time. According to the mutual conversion of the state quantity, the planning system switches between the global path and the local path, and finally guides the robot to complete the entire path.

[0102] The full coverage path planning system of the Ackerman structure robot in this embodiment includes:

[0103] A geometric map building module, used to generate a geometric map according to the boundary of the target working area;

[0104] The global path planning module is used to perform full coverage path planning based on the generated geometric map and obtain the location information of multiple path points;

[0105] A heading angle information acquisition module is used to acquire the heading angle information of each path point according to the position information of each path point;

[0106] A full coverage path generation unit, used to connect each path point in sequence using an RS curve according to the position information of each path point and the heading angle information, and interpolate the connected trajectory to form a full coverage path that does not contain broken line segments;

[0107] A grid map generation module is used to generate a grid map according to the generated geometric map, and obtain the end position of the obstacle avoidance from the geometric map and transmit it to the grid map;

[0108] The local path generation module is used to perform path planning according to the grid map and the terminal position of the obstacle avoidance, and generate a local obstacle avoidance path that bypasses the obstacles and ends on the full coverage path.

[0109] In this embodiment, when the full coverage path generation unit connects each path point using an RS curve, if the headings of two target points to be connected are opposite, more than three RS curves are selected to connect the two target points and the first RS curve is a reverse RS curve.

[0110] In this embodiment, the local path generation module uses a hybrid A* algorithm to perform path planning.

[0111] In this embodiment, a path switching module is also included, including: in the initial state, the generated full coverage path is sent to the target robot to control the target robot to travel along the full coverage path; when it is determined that an obstacle is encountered, the local obstacle avoidance path is switched to be sent to the target robot to control the target robot to travel along the local obstacle avoidance path; when it is determined that the obstacle avoidance process is completed, the full coverage path is switched back to be sent to the target robot.

[0112] The obstacle avoidance path planning system of the Ackerman structure robot in this embodiment corresponds one to one with the above-mentioned obstacle avoidance path planning method of the Ackerman structure robot, and will not be described one by one here.

[0113] Embodiment 2:

[0114] The automatic lawn mowing robot of this embodiment includes a processor and a memory, the memory is used to store a computer program, the lawn mowing robot is an Ackerman structure, the processor is used to execute the computer program to execute the method in Example 1, and the processor is connected to the controller of the lawn mowing robot. The automatic lawn mowing robot performs full coverage path planning according to the method in Example 1. During the driving process of the lawn mowing robot, the generated full coverage path (global path) and local obstacle avoidance path are respectively sent to the lawn mowing robot to control the driving according to the full coverage path, and when encountering obstacles, the lawn mowing robot drives according to the local obstacle avoidance path.

[0115] In order to calculate the mowing coverage rate of the mowing robot, the real-time walking trajectory of the robot is further projected onto the grid map in this embodiment. The real-time mowing area can be calculated in combination with the robot's cutter disc ruler. At the same time, key indicators such as the remaining mowing time can also be calculated in combination with the current speed of the vehicle.

[0116] In a specific application embodiment, the ratio of the mowed area to the total area of ​​a single lawn can be calculated in the following two ways:

[0117] 1. Use the positioning information to obtain the current position of the robot, calculate the index of the point closest to it on the global path, and divide the index value by the total number of points on the global path to obtain the remaining area ratio;

[0118] 2. Calculate the number of grids occupied by the vehicle's position in the grid map in real time, add and remove the grids covered at the previous moment, and obtain the total number of grids covered at the current moment. Divide it by the total number of grids in the grid map to obtain the remaining area ratio.

[0119] This embodiment takes the full coverage path planning by the method of the present invention in an automatic lawn mowing robot as an example to further illustrate the present invention, and the detailed steps are as follows:

[0120] Step 1: Geometry map construction

[0121] The map module constructs the geometric map. Specifically, the remote control robot walks around the boundary of the lawn, enclosing the entire area to be mowed, and the map module automatically calculates the boundary and stores it. The geometric map obtained in the specific application embodiment is as follows: Figure 4 shown.

[0122] Step 2: Generate full coverage path points

[0123] The full coverage path planning algorithm is used to traverse and cover the entire area of ​​the geometric map to form a series of path points, which only have two-dimensional information (x, y). The results of full coverage path planning based on the geometric map in a specific application embodiment are as follows: Figure 5 shown.

[0124] Step 3: Calculate the heading angle of the waypoint

[0125] First, the path point sequence is filtered to remove outliers caused by the sharp bends of irregular polygons at the corners. After filtering the outliers, it can be ensured that the remaining points are the endpoints of two parallel line segments, and then the heading angle can be assigned to them. The heading angle of each path point is assigned in the same way as in Example 1.

[0126] Step 4: Use RS curve to connect the path points to generate a full coverage path

[0127] After obtaining the heading angle of each path point, the RS curve is used to connect and interpolate the path points. For two path points with opposite headings, the three-segment RS curve as described in Example 1 is used to connect them. In the specific application embodiment, the final full coverage path obtained by RS curve connection is as follows: Figure 6 To ensure that the vehicle tracking module can track smoothly, the gear information and speed information are added to each path point, and the gear assignment method is as shown in Example 1. In a specific application embodiment, the speed curve generated is as follows: Figure 7 shown.

[0128] After the above steps, the actual running trajectory information of the lawn mower robot that can provide the Ackerman structure is generated, and the generation of the global path point (trajectory) is completed. The trajectory contains information such as position, posture, gear, speed, etc., which can be represented by a five-dimensional vector, such as: (x, y, theta, gear, velocity).

[0129] Step 5: Construction of raster map

[0130] During the actual operation of the lawn mower, various dynamic and static obstacles will be encountered. If the obstacle happens to be located on the current mowing path, the lawn mower is required to bypass the current obstacle. In this embodiment, the perception module constructs a grid map, obtains obstacles within the current range (given in the form of a bounding box), and converts the grid map in the vehicle coordinate system to the map coordinate system to form a part of the overall grid map.

[0131] Step 6: Generation of local obstacle avoidance trajectory

[0132] According to the size of the obstacle and the geometric map, the position of the obstacle avoidance end point can be obtained based on geometric calculation (the starting point is the current vehicle position), and then the hybrid A* algorithm is used to generate a local trajectory. The algorithm input includes the coordinate position of the starting point, the coordinate position of the target point, and the cost map including the starting point and the target point in the current range, and outputs an obstacle avoidance path that can bypass the obstacle and end on the fully covered path. In a specific application embodiment, the effect of the generated local obstacle avoidance path is as follows: Figure 8 shown.

[0133] It is understandable that the above method of this embodiment can be executed by a single device, such as a computer or server, etc., and can also be applied to a distributed scenario and completed by multiple devices in cooperation with each other. In the case of a distributed scenario, one of the multiple devices can only execute one or more steps in the above method of this embodiment, and multiple devices interact to complete the above method. The processor can be implemented in the form of a general-purpose CPU, a microprocessor, an application-specific integrated circuit, or one or more integrated circuits, etc., for executing related programs to implement the above method of this embodiment. The memory can be implemented in the form of a read-only memory ROM, a random access memory RAM, a static storage device, and a dynamic storage device. The memory can store an operating system and other applications. When the above method of this embodiment is implemented by software or firmware, the relevant program code is stored in the memory and called and executed by the processor.

[0134] This embodiment also provides a computer-readable storage medium storing a computer program, and the computer program implements the above method when executed.

[0135] Those skilled in the art will appreciate that the above-mentioned embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0136] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Therefore, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the scope of protection of the technical solution of the present invention.

Claims

1. A full coverage path planning method for Ackerman structure robot, It is characterized in that the steps include: Generate a geometric map based on the boundaries of the target work area; Perform full coverage path planning based on the generated geometric map to obtain location information of multiple path points; Obtaining heading angle information of each path point according to the position information of each path point; Connecting each path point in sequence using an RS curve according to the position information of each path point and the heading angle information, and interpolating the connected trajectory to form a full coverage path that does not contain a broken line segment; When the robot encounters an obstacle while traveling along the full coverage path, a grid map is generated according to the generated geometric map, and an end point position of obstacle avoidance is obtained from the geometric map and transmitted to the grid map; Path planning is performed according to the grid map and the terminal position of obstacle avoidance, so as to generate a local obstacle avoidance path that bypasses the obstacle and ends on the full coverage path.

2. The full coverage path planning method of the Ackerman structure robot according to claim 1, It is characterized in that In the process of connecting the path points using the RS curve, if the headings of the two target points to be connected are opposite, a CCC or CSC three-segment RS curve is selected, and the first segment of the curve is a reverse curve.

3. The full coverage path planning method of the Ackerman structure robot according to claim 1, It is characterized in that The full coverage path planning based on the generated geometric map includes: Divide the geometric map into multiple sub-regions, each of which is a convex polygon; Each sub-area is covered by reciprocating motion according to the size of the robot, the turning radius and the obstacle information, so as to obtain a globally based waypoint set, wherein the waypoint set includes the position information of a plurality of waypoints.

4. The full coverage path planning method of the Ackerman structure robot according to claim 1, It is characterized in that The step of acquiring the heading angle information of each path point according to the position information of each path point comprises: Construct a set of path points in order according to the path points; Starting from the first path point in the path point set, traversing each path point in turn to assign a heading angle; During each traversal, take the current path point as the starting point and search backward for 3 path points to form four path point combinations, and determine whether the currently formed path point combination can form two sets of parallel line segments. If so, use the arc tangent value of the difference between the coordinate values ​​of the two target path points in each set of parallel line segments as the heading angles of the two target path points, and take the fourth path point backward from the current path point as the new starting point; if not, remove the current starting point from the path point set and move one path point backward as the new starting point, and search backward for 3 path points again to determine whether two sets of parallel line segments can be formed, until all path points have completed the assignment of heading angles.

5. The full coverage path planning method of the Ackerman structure robot according to claim 1, It is characterized in that It also includes configuring the gear information of the robot at each path point according to the heading information of each path point in the generated full coverage path and the robot posture information, including: Starting from the first path point of the fully covered path, traverse each path point in turn to assign gear positions; Each time you traverse, take a path point as the current path point; If the current path point is the first path point, obtain the direction vector v1 between the current path point and the next path point, determine the angle relationship between the current robot's orientation vector and the direction vector v1, and if the angle formed is less than 90°, assign the current path point to a forward gear, otherwise assign the current path point to a reverse gear, and take the next path point as the current path point to continue traversing; If the current path point is not the first path point, respectively obtain the direction vector v1 between the current path point and the next path point and the direction vector v2 between the current path point and the previous path point, determine the angle relationship between the currently obtained direction vector v1 and the direction vector v2, and if the formed angle is less than 90°, assign the current path point the same gear as the previous path point, otherwise assign the current path point the opposite gear to the previous path point, and take the next path point as the current path point to continue traversing; Determine whether the current path point is the last path point. If so, assign the current path point the same gear as the previous path point. Otherwise, take the next path point as the current path point to continue traversal.

6. The full coverage path planning method of the Ackerman structure robot according to any one of claims 1 to 5, It is characterized in that When generating the grid map, the boundary points of the geometric map are projected into the grid map and configured as inaccessible. The hybrid A* trajectory search algorithm is used to plan the path according to the grid map and the end position of the obstacle avoidance. The point with the smallest distance from the obstacle avoidance starting position after crossing the obstacle and on the fully covered path is selected as the end point of the obstacle avoidance path.

7. The full coverage path planning method of the Ackerman structure robot according to any one of claims 1 to 5, It is characterized in that It also includes a path switching control step, including: in the initial state, the generated full coverage path is sent to the target robot to control the target robot to travel along the full coverage path; when it is determined that an obstacle is encountered, the local obstacle avoidance path is switched to be sent to the target robot to control the target robot to travel along the local obstacle avoidance path; when it is determined that the obstacle avoidance process is completed, the full coverage path is switched back to be sent to the target robot.

8. A full coverage path planning system for Ackerman structure robots, It is characterized in that include: A geometric map building module, used to generate a geometric map according to the boundary of the target working area; A global path planning module, used to perform full coverage path planning based on the generated geometric map to obtain location information of multiple path points; A heading angle information acquisition module is used to acquire the heading angle information of each path point according to the position information of each path point; A full coverage path generation unit, used to connect each path point in sequence using an RS curve according to the position information of each path point and the heading angle information, and interpolate the connected trajectory to form a full coverage path that does not contain broken line segments; A grid map generation module, used to generate a grid map according to the generated geometric map, and obtain the end position of the obstacle avoidance from the geometric map and transmit it to the grid map; The local path generation module is used to perform path planning according to the grid map and the terminal position of the obstacle avoidance, and generate a local obstacle avoidance path that bypasses obstacles and ends on the full coverage path.

9. An automatic lawn mowing robot, comprising a processor and a memory, wherein the memory is used to store a computer program. It is characterized in that The lawn mowing robot is an Ackerman structure, the processor is used to execute the computer program to perform the method according to any one of claims 1 to 7, and the processor is connected to a controller of the lawn mowing robot.

10. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Skip line generation method based on profile steel laser cutting contour geometric information

    CN119358789A

  • Farm operation path planning method and application

    CN119714333A

  • Agricultural machine navigation system based on farmland path identification

    CN120800399A

  • Agricultural machine navigation system based on farmland path recognition

    CN120800399B