Mars probe path planning method and device
Through the improved A-Star algorithm and corner optimization processing, combined with the fourth-order Bezier curve, the problem of slow path planning speed and non-optimized path of the Mars probe is solved, and fast and stable optimal path planning is achieved, which is suitable for complex applications. environment.
Patent Information
- Application Number
- CN202210643935.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-09
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-06-09
AI Technical Summary
In the existing technology, the Mars probe path planning speed is slow, and the planned path is not optimized and cannot adapt to complex terrain and kinematic models.
The improved A-Star algorithm is used for global path planning, combined with corner optimization processing, the weight coefficient is adjusted to improve the path planning efficiency, and the fourth-order Bezier curve is used for path smoothing.
It achieves rapid convergence and optimal path planning, reduces the number of turns of the detector, is suitable for complex environments, and improves the smoothness and stability of the path.
Smart Images

Figure CN114995429B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of deep space exploration technology, and in particular to a Mars probe path planning method and device. Background Art
[0002] In recent years, the exploration of other planets outside the Earth has become more and more popular. The exploration of planetary surfaces has become an important issue in the field of deep space exploration. In order to better understand an alien planet, the best way is to be able to land on its surface and complete autonomous movement on the surface of the planet. The main countries developing planetary surface rovers are the United States, the European Space Agency and China. So far, only the rovers of the United States and China have successfully explored and operated on Mars.
[0003] Human exploration of deep space is an important part of space missions, an inevitable trend in the development of the space industry, and a necessary path for humans to expand their understanding of the universe. Mars, as the planet most similar to the Earth, will become the next important target planet for human exploration. Since the beginning of the 21st century, major space powers have successively joined the wave of deep space exploration missions, making Mars exploration and asteroid exploration a research hotspot. Over the past few decades, a foreign aerospace agency has launched multiple spacecraft including artificial satellites, landers, and rovers to Mars, greatly increasing human understanding of Mars. These early works are paving the way for future Mars in-depth exploration and manned Mars exploration missions. The "Opportunity" Mars rover explored the landforms and several craters on the surface of Mars and collected a large amount of topographic data; the "Curiosity" Mars rover explored whether the environment in the craters on the surface of Mars could once support life, providing a basis for further human exploration in the future.
[0004] Mars is rich in mineral and energy resources. As an outpost of Earth's outward exploration, it can help humans explore other celestial bodies faster and more efficiently. The exploration of Mars is a relatively complex multi-cooperative project. It can not only greatly promote the development of science and technology and technological progress, and derive many new scientific and technological products, but also enhance the country's soft power. It has a great role in promoting the improvement of the country's status in the world. Therefore, the development of Mars' resources and the establishment of Mars bases have become an inevitable trend and hot spot of competition in the world's aerospace activities. The probe is one of the indispensable tools for completing a series of tasks required for lunar exploration. Whether it is patrolling and measuring the surface of Mars, or studying Mars environmental information, detecting and collecting resource reserves, Mars surface probes are needed. Humans cannot live and work in space for a long time, and due to the complexity of the Martian environment, the cost and uncertainty of manned Mars exploration are very high, and the probe can not only adapt to the harsh environment of Mars. , It can also carry various payloads required to complete the mission, so using a probe to explore Mars has become a very good choice.
[0005] Although the patent application with application number CN201910388920.8 can improve the global optimal solution, due to the limitations of the ant colony algorithm and the requirement for more iterations, the algorithm converges slowly and cannot achieve path planning on complex maps; the patent application with application number CN202210118037.9 provides a Q-learning-based indoor measurement robot multi-target point mobile path planning method, which sets a mobile strategy that conforms to the measurement robot in the reward function for robot practical learning, uses the three elements of state, action, and reward, takes actions according to the current state of the measurement robot, and records the reward fed back, and decides on the better action that can be taken when it reaches the next state, so that the measurement robot automatically obtains a reasonably ordered mobile path when the number and position of the measurement points are known. Although the path planning can be completed quickly, the path found is not optimal, and the handling of corners during the robot's movement is not considered, which does not conform to the kinematic model.
[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0007] The embodiments of the present invention provide a Mars rover path planning method and device to at least solve the technical problems in the related art that the path planning speed is slow and the planned path is not a better path.
[0008] According to one aspect of an embodiment of the present invention, a Mars rover path planning method is provided, comprising: based on a pre-established Mars environment model, utilizing an improved A-Star algorithm to perform global path planning for the Mars rover to find the global path of the Mars rover; performing corner optimization processing on the found global path to obtain the optimal path of the Mars rover.
[0009] According to another aspect of an embodiment of the present invention, a Mars rover path planning device is also provided, including: a global path planning module, configured to perform global path planning for the Mars rover based on a pre-established Mars environment model and using an improved A-Star algorithm to find the global path of the Mars rover; a corner optimization planning module, configured to perform corner optimization processing on the found global path to obtain the optimal path of the Mars rover.
[0010] In an embodiment of the present invention, based on a pre-established Martian environment model, an improved A-Star algorithm is used to perform global path planning on the Mars rover to find the global path of the Mars rover; corner optimization processing is performed on the found global path to obtain the optimal path of the Mars rover, thereby solving the technical problems in the related technology that the path planning speed is slow and the planned path is not the optimal path. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0012] Figure 1 is a flow chart of a Mars probe path planning method according to an embodiment of the present invention;
[0013] Figure 2 is a flow chart of a Mars probe path planning method according to an embodiment of the present invention;
[0014] Figure 3 is a flow chart of an A-Star improvement method according to an embodiment of the present invention;
[0015] Figure 4 is a diagram of path simulation effects when W(n) / V(n) takes different parameters according to an embodiment of the present invention;
[0016] Figure 5 is a flow chart of a Mars probe path planning method with corner optimization according to an embodiment of the present invention;
[0017] Figure 6 is a comparison diagram of corner optimization performance under different environments according to an embodiment of the present invention;
[0018] Figure 7 is a flow chart of a Mars probe path planning method with smoothing according to an embodiment of the present invention;
[0019] Figure 8 is a comparison diagram of effects of Bezier curves of different orders according to an embodiment of the present invention;
[0020] Fig. 9 is a diagram of path smoothing effects under different environments according to an embodiment of the present invention;
[0021] Fig.10 4 is a schematic diagram of the structure of a Mars probe path planning device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] Example 1
[0025] According to an embodiment of the present invention, a Mars probe path planning method based on an improved A-Star algorithm is provided. Figure 1 As shown, the method comprises the following steps:
[0026] Step S102, based on the pre-established Martian environment model, using the improved A-Star algorithm, performing global path planning for the Martian probe, and finding the global path of the Martian probe;
[0027] Step S104, performing corner optimization processing on the found global path to obtain the optimal path of the Mars probe.
[0028] In an exemplary embodiment, global path planning is performed for a Mars rover based on an improved A-Star algorithm, including: improving the evaluation function of the A-star algorithm by adjusting the weight coefficient of the actual cost and the weight coefficient of the estimated cost to obtain the improved A-star algorithm; and performing global path planning for the Mars rover based on the evaluation function of the improved A-star algorithm.
[0029] In an exemplary embodiment, the improved A-Star algorithm changes the impact on the A-Start algorithm during the path search process, so that the larger the weight coefficient of the estimated cost, the closer the A-Star algorithm is to the breadth-first search BFS algorithm, and the larger the weight coefficient of the actual cost, the closer the A-Star algorithm is to the Dijkstra algorithm.
[0030] In an exemplary embodiment, global path planning is performed for the Mars rover based on the evaluation function of the improved A-star algorithm, including: adding the starting position of the Mars rover to an open list (OL), and performing path planning in a loop based on the evaluation function of the improved A-star algorithm; determining whether there are expandable points in the planned path and whether the target point has not been found; if the judgment result is yes, placing the best candidate in the OL into a closed list (CL) and performing path backtracing, otherwise, directly performing path backtracing.
[0031] In an exemplary embodiment, performing corner optimization processing includes: obtaining the position information of the expansion points in the global path of the Mars rover, and performing path planning using loop iterations; and performing corner optimization processing based on the position information of the expansion points.
[0032] In an exemplary embodiment, corner optimization processing is performed based on the position information of the extension point, including: calculating the index value of the parent node of the extension point through the position information of the extension point stored in the domain pointer; judging whether the index value of the parent node of the extension point is equal to the starting point, if it is equal to the starting point, it indicates that the point is a point extended from the starting point, and the optimization is skipped; otherwise, using the index value of the parent node of the point, checking the position information of the parent node in the cell array domain pointer, and calculating the index value of the point expected to be taken next through the position information in the cell array domain pointer.
[0033] In an exemplary embodiment, the Mars environment model is constructed based on the following method: a grid method is used to divide the patrol detection area of the Mars rover into multiple uniform grids containing binary information, and a grid model is obtained; based on the grids, according to the movement capability of the Mars rover, a slope cost function, a roughness cost function and an undulation cost function of the Mars rover are established; wherein the Mars environment model includes at least one of the following: the grid model, the slope cost function, the roughness cost function and the undulation cost function.
[0034] In an exemplary embodiment, establishing the slope cost function of the Mars rover includes: using the least squares method to fit a plane to obtain a fitted plane equation; based on the plane equation, calculating the slope of the grid; and establishing a slope cost function based on the slope of the grid.
[0035] In an exemplary embodiment, establishing the roughness cost function includes: calculating the distance from all elevation points in the grid to the fitting plane, calculating the roughness of the grid based on the distance, and establishing the roughness cost function based on the roughness; establishing the undulation cost function includes: calculating the arithmetic mean of all elevation values in the grid; and establishing the undulation cost function based on the arithmetic mean of the elevation values.
[0036] In an exemplary embodiment, after performing the corner optimization process, the method further includes: performing a smoothing process on the path after the corner optimization by using a fourth-order Bezier curve.
[0037] The traditional ant colony algorithm needs to plan the path through multiple iterations, which has a slow convergence speed and a complex program. The Q-learning-based indoor measurement robot multi-target point moving path planning method can complete the path planning quickly, but the path is not optimal, and does not consider the handling of corners during the robot's movement, which does not conform to the kinematic model. The traditional a* algorithm has low working efficiency.
[0038] In response to the above-mentioned problems in the prior art, the embodiments of the present application provide a Mars rover path planning technology based on an improved A-Star algorithm. By improving the parameters, the optimal path can be found more quickly, overcoming the shortcomings of the prior art of slow path planning and the planned path not being the optimal path. The path planning can be quickly converged, and it can be applied to path planning in complex environments and can plan a better path.
[0039] Example 2
[0040] According to an embodiment of the present invention, a Mars probe path planning method based on an improved A-Star algorithm is provided. Figure 2As shown, the method comprises the following steps:
[0041] Step S202, establishing an environmental model based on Mars.
[0042] The method of environmental modeling mainly consists of three basic map representation methods: grid map method, geometric feature map method and topological map method. The grid map method is recognized as the most mature and safest environmental modeling algorithm. Compared with other environmental modeling methods, its map information corresponds one-to-one with the actual environmental information, so that the environment is quantified into a map with variable resolution, which is simpler and more intuitive for the human eye, and is convenient to establish and modify. However, the environmental information on the Martian surface is complicated and difficult, so this application uses the grid map method for environmental modeling.
[0043] The process of establishing the environment model is as follows:
[0044] The grid method is to divide the patrol detection area of the Mars rover (size is M×N, and its unit is usually expressed by the pixels it contains) into countless uniform units containing binary information. Usually, the coordinates of the obstacle edge points existing in the original environment map are found and located, and a safety distance is added to the size of the obstacle, so that the size of the grid unit is m×n, so the number of grids is Thus, the grid model can be obtained:
[0045] M (i,j) ={(x a ,y b )|i×m≤a≤(i+1)×m, j×n≤b≤(j+1)×n} (1)
[0046] Where M (i,j) represents the grid unit, i represents the horizontal coordinate; j represents the vertical coordinate; (x a ,y b ) represents the pixel coordinates of the original image, a represents the horizontal coordinate of the original image, and b represents the vertical coordinate of the original image. Each grid cell usually uses two values 0 or 1 to represent environmental information, that is, 0 means there are no obstacles in the environment and the detector can move freely in the area; 1 means there are obstacles in the environment and the detector cannot pass through the area. In this way, a grid map corresponding to the environmental map is created, and then all grids are sorted according to a certain rule, so that path planning becomes searching for an optimized path in the grid map from the specified starting grid to the target grid to be detected. Among them, the grids passed by the path can be expressed by grid numbers.
[0047] The least squares method is used to fit the plane, that is, the best matching value is obtained by minimizing the sum of squares of errors. Assume that the expression of the fitted plane equation is:
[0048] z=a0x+a1y+a2 (2)
[0049] Wherein, x, y, z represent the x-axis, y-axis, and z-axis coordinates respectively, and a0, a1, and a2 are the parameters of the equation, which can be obtained by the following formula (6).
[0050] Therefore, it is necessary to Minimum, where n represents the number of values taken and s is the sum of the equations added together.
[0051] Then the conditions that need to be met are
[0052]
[0053] So we have:
[0054]
[0055] Right now
[0056]
[0057] Among them, xi, yi, and zi represent the horizontal coordinate, the axial coordinate, and the vertical coordinate, respectively.
[0058] Finally, we can obtain:
[0059]
[0060] in, Z=[z1 z2 … z n ] T
[0061] Slope of grid e:
[0062]
[0063] In order to prevent the probe from being unable to pass through the area due to excessive grid slope, the slope of the area where the probe can travel is limited according to the climbing ability of the Mars probe, thus establishing a slope cost function:
[0064]
[0065] Among them, k1 is a constant value, which can be determined according to actual needs or empirical knowledge, θ max Indicates the maximum value of the detector's climbing ability.
[0066] The roughness of the terrain will affect the driving ability of the probe. If the terrain is too rough, it will make it difficult for the Mars probe to move, or even get stuck in it and unable to move. The roughness R is described by the mean deviation of the fit.
[0067] The calculation formula of roughness is:
[0068]
[0069] in, is the distance from each elevation point to the fitting plane, and n represents the number of selected coordinate points.
[0070] Similarly, in order to prevent the probe from being unable to pass through the area due to excessive grid roughness, the roughness of the area where the probe can travel is limited according to the driving ability of the Mars probe, thereby establishing a roughness cost function:
[0071]
[0072] Among them, k2 is a constant value, which can be determined according to actual needs or empirical knowledge, R max Indicates the maximum driving capacity of the detector.
[0073] The undulation of the terrain will affect the climbing ability of the detector. If the undulation is too large, it will cause rollover or collision. The undulation H is described by the standard deviation of the elevation of all discrete points in the grid. This method is more objective and realistic than describing it only by the difference between the maximum and minimum elevation points, that is:
[0074]
[0075] in, It is the arithmetic mean of all elevation values in grid e.
[0076] Similarly, in order to prevent the Mars rover from being unable to pass through the area due to excessive grid fluctuations, the fluctuation of the area where the rover can travel is limited according to the rover's obstacle-crossing ability, thereby establishing a fluctuation cost function.
[0077]
[0078] Among them, k3 is a constant that can be determined according to actual needs or empirical knowledge, and h represents the height of the detector.
[0079] Step S204, improving the path optimization of the A-Star algorithm.
[0080] A-Star is a heuristic search algorithm that combines the Dijkstra algorithm with the BFS algorithm. When searching in the state space, each search position is first evaluated to obtain the best position, and then the search is continued from this position until the target is reached. This can omit a large number of unnecessary search paths and improve efficiency. In heuristic search, the evaluation of the position is very important. Different evaluations can have different effects. The evaluation function of the traditional A-Star algorithm can be expressed as:
[0081] F(n)=G(n)+H(n) (14)
[0082] Among them, F(n) represents the cost estimate from the initial state via state n to the target state, G(n) represents the actual cost from the initial state to state n in the state space, and H(n) represents the estimated cost of the best path from state n to the target state.
[0083] The selection of H(n) needs to ensure the shortest path condition. The key lies in the selection of the evaluation function F(n) (or the selection of H(n)). In this embodiment, D(n) represents the distance from state n to the target state. Then the selection of H(n) can be roughly divided into the following three cases:
[0084] (1) If H(n) < D(n) the actual distance to the target state, in this case, the number of search points is large, the search range is large, and the efficiency is low. However, the optimal solution can be obtained.
[0085] (2) If H(n) = D(n), that is, the distance estimate H(n) is equal to the shortest distance, then the search will be strictly carried out along the shortest path, and the search efficiency is the highest at this time.
[0086] (3) If H(n)>D(n), the number of search points is small, the search range is small, and the efficiency is high, but it cannot guarantee the optimal solution.
[0087] Considering the characteristics of the A-star algorithm evaluation function, in a preferred embodiment, an improved A-star algorithm is used for global path planning, and the improved A-star algorithm evaluation function is:
[0088] F(n)=V(n)G(n)+W(n)H(n) (15)
[0089] In the formula, V(n) represents the weight coefficient of the actual cost, and W(n) represents the weight coefficient of the estimated cost H(n). The improved A-star algorithm adds weight coefficients V(n) and W(n). The influence of the algorithm on the path search process can be changed by adjusting the coefficient of the weight factor. The larger W(n), the closer it is to the BFS algorithm, and the larger V(n), the closer it is to the Dijkstra algorithm.
[0090] Step S206: corner optimization processing.
[0091] The route planned by the improved A-star algorithm is only the optimal path in mathematics. For the actual operation of the detector, the ultimate goal is to obtain the optimal operation route of the detector. The 90-degree turn is very unfavorable for the actual operation, so the route corners need to be further optimized to minimize the number of turns without increasing the path cost.
[0092] In one example, the steps of the corner optimization algorithm are as follows:
[0093] (1) Calculate the position information stored in the pointer through the point originally to be expanded. If the position information stored in the pointer is L, it means that the current expansion point is expanded from the point on the left, that is, the index value of its parent node is the index value of the point minus n (n is the length of each row or column). Similarly, the processing methods of the other three position information can be obtained.
[0094] (2) Before calculating the index value of the point to be moved to in the next step, determine whether the index value of the parent node calculated in the previous step is equal to the starting point. If it is equal to the starting point, it means that this point is a point extended from the starting point, and it is a straight line no matter which direction it goes. Skip the optimization, otherwise proceed to the next step.
[0095] (3) Using the index value of the parent node obtained in the first step, check the position information of the parent node in the cell array pointer, and use the position information to calculate the index value of the point to be taken next.
[0096] The embodiment of the present application proposes a global path planning scheme based on the improved A-Star algorithm, setting the weight ratio W(n) / V(n) to affect the objective function F(n), thereby finding the optimal weight ratio, reducing the running time, and improving the algorithm's operational efficiency. In addition, locally optimizing the path corners can effectively reduce the number of turns the probe makes during operation, ensuring the stability of the probe's operation on the surface of Mars.
[0097] Example 3
[0098] The present application embodiment uses the path planning of a Mars probe on the surface of Mars as an example for analysis. According to the present application embodiment, another Mars probe path planning method based on the improved A-Star algorithm is provided.
[0099] The environment model of the Martian surface and the corner optimization in this embodiment are the same as those in Embodiment 2, and will not be repeated here. The difference lies in the step of using the improved A-Star algorithm in this embodiment to plan the path of the probe.
[0100] Figure 3 is a flow chart of optimizing the global path using the A-Start algorithm according to an embodiment of the present application, such as Figure 3 As shown, the method comprises the following steps:
[0101] Step S302: parameter initialization.
[0102] Initialize all parameters to avoid the influence of the previous results.
[0103] Step S304, adding the starting position to the OL.
[0104] The starting point and target point of the path planning are added to the open list of the environment map to form the starting point and target point of the path planning.
[0105] Step S306, loop iteratively perform path planning.
[0106] Run the algorithm function in the loop statement to perform path planning.
[0107] Step S308: Are there any expandable points and no target point is found?
[0108] If the target point is not reached, the coordinates of the next possible forward point can be obtained.
[0109] Step S310, putting the best candidate in OL into CL.
[0110] The best extracted coordinates are put into cl, and the best judgment criterion is the shortest path.
[0111] Step S312, path backtracking.
[0112] Compare the overall path lengths and choose the shortest one.
[0113] This embodiment considers the complexity of the operation of the Mars probe on the surface of Mars, and the selected path takes into account factors such as path length, running time, and path smoothness. Path planning is divided into global path planning and local path obstacle avoidance.
[0114] The embodiment of the present application uses an optimization system function to describe the weight value of the adjustment cost function, thereby improving the operating speed of the system. A path planning simulation was performed based on the generated obstacle environment map. The grid map size was 40×40, and the proportion of obstacles to the total number of squares was 50%. The path starting point and target point were randomly set based on the obstacle environment map. During the path search process, the expanded subnodes were colored. When the weights v(n) and w(n) take different values, the path planning results based on the improved A-star algorithm are as follows: Figure 4 As shown, the circle represents the starting position, the square represents the target position, and the solid line represents the generated global path.
[0115] Figure 4 (a), (b), (c), (d), (e), and (f) are path simulation effect diagrams when W(n) / V(n)=0.5, W(n) / V(n)=1, W(n) / V(n)=2, W(n) / V(n)=3, W(n) / V(n)=4, and W(n) / V(n)=5, respectively.
[0116] When W(n) / V(n) takes different values, the path length and running time planned based on the improved A-star algorithm are shown in Table 1. Compared with the traditional A-star algorithm W(n) / V(n)=1, when W(n) / V(n)=0.5, although the path length is 48, the running time is significantly increased; when W(n) / V(n)=3, the algorithm search efficiency is significantly accelerated, and the running time is 1.17s, but at the same time, with the reduction of extended child nodes, the obtained path is not the shortest path, so in practical applications, it is necessary to flexibly adjust the ratio of W(n) to V(n) according to the specific situation.
[0117] Example 4
[0118] According to an embodiment of the present application, a path planning method with corner optimization is provided, such as Figure 5 As shown, the method comprises the following steps:
[0119] Step S502: parameter initialization.
[0120] Initialize all parameters to avoid the influence of the previous results.
[0121] Step S504, obtaining the location information of the extension point.
[0122] If the target point is not reached, the coordinates of the next possible forward point can be obtained.
[0123] Step S506, performing path planning by loop iteration.
[0124] Run the algorithm function in the loop statement to perform path planning.
[0125] Step S508: Is the extended node index value the same as the target index value?
[0126] Determine whether the next step forward has reached the target point.
[0127] Step S510, checking the parent node index value.
[0128] Check the current coordinates, that is, the parent node index value.
[0129] Step S512, performing inflection point optimization.
[0130] According to the principle of mixed directions of quadtree and octree, the direction that can go in a straight line is preferred to reduce the occurrence of right angles.
[0131] Grid maps of 30*30, 40*40, and 100*100 are established respectively, and the proportion of obstacles to the total number of squares is 50%. According to the experimental verification results, the weight W(n) / V(n) is set to 3. The simulation results before and after corner optimization are as follows Figure 6As shown in the figure, the comparison of corner optimization before and after in environments with different levels of complexity is presented. Figure 6 (a) and (b) are the simulation results of the unoptimized corners in the 30*30 environment and the optimized corners in the 30*30 environment, (c) and (d) are the simulation results of the unoptimized corners in the 40*40 environment and the optimized corners in the 40*40 environment, (e) and (f) are the simulation results of the unoptimized corners in the 100*100 environment and the optimized corners in the 100*100 environment, respectively.
[0132] Table 2 shows the number of corners before and after corner optimization in different environments. As shown in Table 2, it can be seen that, whether in a simple 30*30 environment or a 100*100 environment, the effect of corner optimization is quite obvious, effectively reducing the number of corners by 16.77%. When the path length and system running time are similar, the number of corners in the path is significantly reduced. In the 30*30 map, the number of corners is 23 before corner optimization, and 18 after optimization, reducing the number of turns.
[0133]
[0134] Table 1
[0135]
[0136] Table 2
[0137] The Mars rover path planning technology based on the improved A-Star algorithm provided in the embodiment of the present application can achieve rapid convergence of path planning and can be applicable to path planning in complex environments.
[0138] Compared with the indoor multi-target point mobile path planning algorithm based on Q learning, by setting the mobile strategy that conforms to the measurement robot in the reward function for robot practical learning, taking actions according to the current state of the measurement robot, and recording the feedback reward, the decision is made on the better action that can be taken when the next state is reached, so that the measurement robot automatically obtains a reasonably ordered mobile path when the number and position of the measurement points are known. In addition, the embodiment of the present application plans the path based on the improved A-star algorithm, making the calculation process simpler and saving more time and resources.
[0139] The Mars probe path planning based on the improved A-Star algorithm implemented in this application can complete the path planning quickly, and the path found is better than other measurement path planning algorithms. It can reach the convergence effect faster. And considering the characteristics of the probe kinematic model, the corners are optimized in the program to reduce the number of corners and make the path smoother.
[0140] Example 5
[0141] According to an embodiment of the present application, a path planning method with corner optimization is provided, such as Figure 7 As shown, the method comprises the following steps:
[0142] Step S702, establishing an environmental model based on Mars.
[0143] Step S704: Path optimization.
[0144] Since there are many choices of path planning algorithms, in addition to the A-Star algorithm proposed in the above embodiment, there are also simulated annealing algorithm, artificial potential field method, ant colony algorithm, fuzzy logic algorithm, etc. A path can be globally planned by any of these algorithms.
[0145] Step S706: corner optimization processing.
[0146] Optimize the local path in the global planning path, for example, corner optimization.
[0147] Step S708: smoothing the path using a fourth-order Bezier curve.
[0148] The path after local optimization is processed into a curve using a Bezier curve or a dynamic tangent point algorithm, such as a fourth-order Bezier curve, to obtain a smooth path.
[0149] The Bezier curve is a mathematical curve used in two-dimensional graphics applications, which has the characteristics of a rubber band effect. As the selected points move regularly, the curve will produce a transformation like the contraction of a rubber band.
[0150] In the actual operation of the detector, when the turning angle of the detector is 90°, it is easy to accelerate the physical wear of the detector, which does not conform to the motion constraint model of the detector. In order to solve the problem of many corners in the path, the fourth-order Bezier curve is used to optimize the path. In the Bezier curve, m feature points can be defined as a Bezier curve of order m-1. Figure 8 By comparison, we can see that the effect of the fourth-order Bezier curve is better than that of the second-order and third-order Bezier curves. Therefore, this paper chooses the fourth-order Bezier curve to smooth the path. The higher-order Bezier can be recursively improved to the first order. The expression of the Bezier curve is:
[0151]
[0152]
[0153] Among them, B i,m (t) is the mth-order Bessel equation, is the coefficient of the quadratic term; m is the order of the Bezier curve, Pi is the coordinate of point i, and i is the horizontal coordinate of the current position. When m=4, the expression of the fourth-order Bezier curve is:
[0154] P(t)=P0(1-f) 4 +P1t(1-f) 3 +P2t 2 (1-t) 2 +P3t 3 (1-t)+P4t 4 (18)
[0155] After using the fourth-order Bezier curve to smooth the path, right-angle turns can be avoided, and the resulting path is ultimately smooth, which is more suitable for the actual operation requirements of the detector. Fig. 9 , the black track is the original path, and the white track is the smoothed path. Fig. 9 (a), (b) and (c) are the simulation effect diagrams of 30*30 environment path smoothing, 40*40 environment path smoothing and 100*100 environment path smoothing respectively.
[0156] The path is smoothed by the fourth-order Bezier curve to avoid right-angle turns. During the operation of the detector, there are fewer interference factors, and the stability, application range and measurement range are better, which can better realize the path planning in complex environments.
[0157] The global path planning scheme based on the improved A-Star algorithm proposed in this embodiment sets the weight ratio W(n) / V(n) to affect the objective function F(n), finds the optimal weight ratio, reduces the running time, and improves the algorithm's operational efficiency. The path is locally optimized for corners to reduce the number of turns the detector makes during operation. In addition, the fourth-order Bezier curve is used to smooth the path to avoid the appearance of corner peaks and obtain a smooth path.
[0158] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0160] Example 7
[0161] According to an embodiment of the present invention, a device for Mars probe path planning is also provided. Fig.10 As shown, the device includes: a global path planning module 12 and a corner optimization planning module 14.
[0162] The global path planning module is configured to perform global path planning for the Mars rover based on a pre-established Mars environment model and utilize an improved A-Star algorithm to find the global path of the Mars rover; the corner optimization planning module is configured to perform corner optimization processing on the found global path to obtain the optimal path of the Mars rover.
[0163] In an exemplary embodiment, the global path planning module is also configured to: improve the evaluation function of the A-star algorithm by adjusting the weight coefficient of the actual cost and the weight coefficient of the estimated cost to obtain the improved A-star algorithm; and perform global path planning for the Mars rover based on the evaluation function of the improved A-star algorithm.
[0164] In an exemplary embodiment, the improved A-Star algorithm changes the impact on the A-Start algorithm during the path search process, so that the larger the weight coefficient of the estimated cost, the closer the A-Star algorithm is to the breadth-first search BFS algorithm, and the larger the weight coefficient of the actual cost, the closer the A-Star algorithm is to the Dijkstra algorithm.
[0165] In an exemplary embodiment, the global path planning module is further configured to: add the starting position of the Mars rover to the OL, and perform path planning in an iterative loop based on the evaluation function of the improved A-star algorithm; determine whether there are expandable points in the planned path and whether the target point has not been found; if the judgment result is yes, put the best candidate in the OL into the CL and perform path backtracing, otherwise, directly perform path backtracing.
[0166] In an exemplary embodiment, the corner optimization planning module is further configured to: obtain the location information of the expansion points in the global path of the Mars rover, and use loop iteration to perform path planning; and perform corner optimization processing based on the location information of the expansion points.
[0167] In an exemplary embodiment, the corner optimization planning module is further configured to: calculate the index value of the parent node of the extension point through the position information of the extension point stored in the domain pointer; determine whether the index value of the parent node of the extension point is equal to the starting point, if it is equal to the starting point, it indicates that the point is a point extended from the starting point, and the optimization is skipped; otherwise, use the index value of the parent node of the point to check the position information of the parent node in the cell array domain pointer, and calculate the index value of the point to be taken next through the position information in the cell array domain pointer.
[0168] In an exemplary embodiment, the device also includes a Mars environment model construction module, which is configured to: use a grid method to divide the patrol detection area of the Mars rover into multiple uniform grids containing binary information, and obtain a grid model; based on the grid, according to the movement capability of the Mars rover, establish the slope cost function, roughness cost function and undulation cost function of the Mars rover; wherein the Mars environment model includes at least one of the following: the grid model, the slope cost function, the roughness cost function and the undulation cost function.
[0169] In an exemplary embodiment, the Martian environment model construction module is further configured to: use the least squares method to fit the plane to obtain a fitted plane equation; calculate the slope of the grid based on the plane equation; and establish a slope cost function based on the slope of the grid.
[0170] In an exemplary embodiment, the Mars environment model building module is further configured to: calculate the distance from all elevation points in the grid to the fitting plane, calculate the roughness of the grid based on the distance, and establish the roughness cost function based on the roughness;
[0171] In an exemplary embodiment, the Mars environment model construction module is further configured to calculate the arithmetic mean of all elevation values in the grid; and establish the undulation cost function according to the arithmetic mean of the elevation values.
[0172] In an exemplary embodiment, the apparatus further comprises a smoothing processing module configured to: perform smoothing processing on the path after corner optimization by using a fourth-order Bezier curve.
[0173] The improved A-Star algorithm proposed in the embodiment of the present application can make the system converge faster than the prior art and meet the path planning requirements for complex environments during Mars exploration.
[0174] The embodiment of the present application performs a global path planning scheme based on the improved A-Star algorithm, and optimizes the corners of the path locally to reduce the number of turns of the detector during operation. This ensures the stability of the system operation and is more in line with the kinematic model of the detector. In addition, the fourth-order Bezier curve is used to smooth the understanding to avoid the appearance of corner peaks, thereby obtaining a smooth path.
[0175] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0176] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
[0177] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0178] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0179] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0180] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0181] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A Mars rover path planning method, It is characterized in that include: Based on the pre-established Martian environment model, using an improved path planning algorithm, a global path planning is performed on the Martian rover to find the global path of the Martian rover; Performing corner optimization processing on the found global path to obtain the optimal path of the Mars rover; The corner optimization process includes: obtaining an extension point index value and a target index value in the global path of the Mars probe; and performing corner optimization process based on the extension point index value and the target index value; Among them, based on the extension point index value and the target index value, corner optimization processing is performed, including: calculating the index value of the parent node of the extension point through the position information of the extension point stored in the domain pointer; judging whether the index value of the parent node of the extension point is equal to the starting point, if it is equal to the starting point, it indicates that the point is a point extended from the starting point, and the optimization is skipped; otherwise, using the index value of the parent node of the point, checking the position information of the parent node in the cell array domain pointer, and calculating the index value of the point expected to be taken next through the position information in the cell array domain pointer.
2. The method according to claim 1, It is characterized in that Based on the path planning algorithm, the global path planning of the Mars rover is carried out, including: By adjusting the weight coefficient of the actual cost and the weight coefficient of the estimated cost, the evaluation function of the A-Star algorithm is improved to obtain the improved A-Star algorithm; Based on the evaluation function of the improved A-Star algorithm, global path planning is performed for the Mars probe.
3. The method according to claim 2, It is characterized in that The improved A-Star algorithm changes the impact on the A-Star algorithm during the path search process, so that the larger the weight coefficient of the estimated cost, the closer the A-Star algorithm is to the breadth-first search BFS algorithm, and the larger the weight coefficient of the actual cost, the closer the A-Star algorithm is to the Dijkstra algorithm.
4. The method according to claim 2, It is characterized in that Based on the evaluation function of the improved A-Star algorithm, a global path planning is performed for the Mars probe, including: The starting position of the Mars probe is added to the open list OL, and path planning is performed in a loop iteration based on the evaluation function of the improved A-Star algorithm; Determine whether there are expandable points in the planned path and whether the target point has not been found; if the judgment result is yes, put the best candidate in the OL into the closed list CL and perform path backtracking, otherwise, directly perform path backtracking.
5. The method according to claim 1, It is characterized in that The Mars environment model is constructed based on the following method: Using a grid method, the patrol detection area of the Mars probe is divided into a plurality of uniform grids containing binary information, and a grid model is obtained; Based on the grid, at least one of a slope cost function, a roughness cost function, and a relief cost function of the Mars rover is established according to the movement capability of the Mars rover; The Martian environment model includes at least one of the following: the grid model, the slope cost function, the roughness cost function and the undulation cost function.
6. The method according to claim 5, It is characterized in that Establishing the slope cost function includes: fitting a plane using the least square method to obtain a fitted plane equation, calculating the slope of the grid based on the plane equation, and establishing the slope cost function based on the slope of the grid; and / or Establishing the roughness cost function includes: calculating the distance from all elevation points in the grid to the fitting plane, calculating the roughness of the grid based on the distance, and establishing the roughness cost function based on the roughness; and / or Establishing the fluctuation cost function includes: calculating the elevation standard deviation of all discrete points in the grid; and establishing the fluctuation cost function according to the elevation standard deviation.
7. The method according to any one of claims 1 to 6, It is characterized in that After the corner optimization process is performed, the method further includes: smoothing the path after the corner optimization by using a fourth-order Bezier curve.
8. A Mars rover path planning device, It is characterized in that include: The global path planning module is configured to perform global path planning for the Mars probe based on a pre-established Mars environment model and using an improved A-Star algorithm to find the global path of the Mars probe; A corner optimization planning module is configured to perform corner optimization processing on the found global path to obtain an optimal path for the Mars rover; The corner optimization planning module is further configured to: obtain an extension point index value and a target index value in the global path of the Mars probe; and perform corner optimization processing based on the extension point index value and the target index value; Among them, the corner optimization planning module is also configured to: calculate the index value of the parent node of the extension point through the position information of the extension point stored in the domain pointer; determine whether the index value of the parent node of the extension point is equal to the starting point. If it is equal to the starting point, it indicates that the point is a point extended from the starting point and the optimization is skipped; otherwise, use the index value of the parent node of the point to check the position information of the parent node in the cell array domain pointer, and calculate the index value of the point expected to be taken next through the position information in the cell array domain pointer.
Citation Information
Patent Citations
A method for path planning of mobile robots
CN110160546B
Indoor measurement robot multi-target-point moving path planning method based on Q learning
CN114518758A
Method and device for optimization of unmanned automobile path planning and terminal device
CN109828564A
Bezier-curve-based mobile robot indoor autonomous navigation control method
CN110502010A
Path planning method, device and equipment based on improved artificial potential field method
CN111897328A
