Global cost map updating method and device in mobile robot navigation

By monitoring the robot status in real time and updating the global cost map when necessary, combined with the Dijkstra and TEB algorithms, the problem of large computing power overhead caused by frequent global cost map updates in indoor service robot navigation is solved, and navigation efficiency and controllability are improved. Achieved savings in computing resources.

CN118640911APending Publication Date: 2024-09-13ROBOTICS RESEARCH CENTER OF YUYAO CITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410876008.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

During the navigation process of indoor service robots, frequent updates of the global cost map lead to high computing power overhead, resulting in a decrease in frame rate and the inability of the robot to adjust its route in time, resulting in reduced controllability and path deviation.

Method used

A global cost map update method in mobile robot navigation is proposed. By initializing the global cost map to update on request, the Dijkstra algorithm and the TEB algorithm are used to plan the path, monitor the robot status in real time, and only request updates when stuck or path deviation occurs. global cost map, and set a lower update frequency on the local cost map.

Benefits of technology

It effectively reduces the computing power consumption caused by updating the global cost map, improves the efficiency and controllability of robot navigation, avoids unnecessary waste of computing resources, and ensures the navigation effect while saving computing power resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118640911A
    Figure CN118640911A
Patent Text Reader

Abstract

The invention belongs to the field of robot positioning and navigation, and relates to a global cost map updating method and device in mobile robot navigation, and the method comprises the steps: initializing a set cost map, setting the global cost map to be updated according to a request, and setting a local cost map to be updated according to frequency; after the robot starts navigation, paths are planned on the global cost map and the local cost map respectively, whether the robot is in a stuck state or a path deviation condition is judged through real-time path analysis, and if yes, the global cost map is requested to be updated to re-plan a global path. According to the method provided by the invention, the problem of unnecessary computing power consumption caused by the fact that the actual indoor mobile robot frequently updates the global cost map and the global path is solved, the algorithm calculation amount is greatly reduced and the computing power resource is saved while the navigation effect is ensured, and the method has very high practical application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of robot positioning and navigation, and relates to a global cost map updating method and device in mobile robot navigation. Background Art

[0002] The development of indoor service robots is in the ascendant, and achieving autonomous positioning and navigation is one of its most important functions. Compared with other scenarios such as outdoor autonomous driving, indoor service robots require that the overall cost should not be too high. In order to reduce the burden on users, they generally only use IMU+odometer+single-line laser radar as the perception module and micro industrial computers as the processor. The computing performance of micro industrial computers is far inferior to that of computer CPUs, and they have to run sensor data processing programs, positioning and navigation programs, and human-computer interaction programs at the same time. In the design of actual program algorithms, how to save computing resources as much as possible while maintaining the effect has become the focus of research and development.

[0003] Specifically in the mobile robot navigation, if the algorithm computing power overhead is too large, the frame rate of the local path planner thread execution will decrease, which will further cause the frame rate of the robot output speed control instructions to decrease. The robot cannot make timely adjustments to environmental changes, and the controllability decreases. In specific practice, when the frame rate of the output control instructions decreases, the robot will move forward in a "snake-like" manner during the navigation process that should have been a straight line, and each deviation from the established navigation route is not corrected until there is enough time. In actual experiments, it was found that the update of the global cost map and the search for the global path in the robot navigation algorithm are quite time-consuming, especially when the global cost map is large or the "grid" of the cost map is small.

[0004] There are generally two methods for updating the global cost map: the first is not to update the global cost map. This method will cause the robot to get stuck and unable to reach the designated location when an obstacle large enough to block the road appears in the global path; the second is to update at a specific frequency, but since the probability of obstacles appearing on the navigation path in actual situations is not high, most of the updates are useless, which wastes computing resources. Summary of the invention

[0005] In order to solve the above technical problems existing in the prior art, the present invention proposes a global cost map updating method and device in mobile robot navigation, which reduces the computing power overhead while ensuring the effectiveness of the navigation algorithm. The specific technical solution is as follows: A global cost map updating method in mobile robot navigation, comprising: Initialize the cost map, set the global cost map to update on request, and the local cost map to update on frequency; After the robot starts navigation, it plans the path on the global cost map and the local cost map respectively. Real-time path analysis is used to determine whether the robot is stuck or deviates from the path. If so, it requests to update the global cost map to replan the global path.

[0006] Furthermore, the Dijkstra algorithm is used to plan a path with the shortest cost in the global cost map as the global path; based on the global path, the TEB algorithm is used to solve the local path on the local cost map. When the local path solution fails, it means that there are obstacles in the global path or the local path that the robot cannot pass, causing the robot to be stuck, and a request is made to update the global cost map; when the local path solution is successful, it means that the local path has been planned, and then the shortest distance between the robot's position on the local path and the global path is calculated. The shortest distance is used to determine whether the path is deviated. If so, a request is made to update the global cost map.

[0007] Furthermore, a distance parameter is preset. When the shortest distance is greater than the distance parameter, it is determined that the path is deviated, and a request is made to update the global cost map.

[0008] Furthermore, the size of the distance parameter is one quarter of the length of the local costmap.

[0009] Furthermore, when the local path is solved successfully, it is also detected whether the robot's path point, that is, the position, appears repeatedly within a time range or remains unchanged or changes less than a threshold value without reaching the destination. If so, it means that the robot repeatedly circles or stops moving within the local path range, that is, it is in a stuck state of cyclic oscillation. At this time, the robot performs an obstacle recovery operation, so that the robot performs an operation completely opposite to the operation before it entered the stuck state of the cyclic oscillation. After performing the obstacle recovery operation, the global cost map is updated to obtain a new global cost map, and the global path is replanned.

[0010] Furthermore, when the local path is solved successfully and the path does not deviate, is not in a stuck state, updates the gradient, or clears the obstacle recovery operation gradient, the speed control output is performed on the robot.

[0011] Furthermore, the request for updating the global costmap also includes a request for navigating a new preemptive target.

[0012] Furthermore, the area size of the local cost map is inversely proportional to its set update frequency.

[0013] A global cost map updating device in mobile robot navigation includes a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the global cost map updating method in mobile robot navigation.

[0014] The beneficial technical effect of the present invention is: providing a strategy for updating the global cost map and the global planning path according to actual needs, judging whether there are obstacles that are sufficient to change the map structure and make the local path planner unable to avoid them according to the position and state of the robot, and updating the global cost map if the above situation occurs, otherwise not updating. Since the global cost map is much larger than the local map, the computing power consumed in construction and path search is also much larger. The method proposed in the present invention solves the problem of unnecessary computing power consumption caused by the frequent updates of the global cost map and the global path of the actual indoor mobile robot. While ensuring the navigation effect, it greatly reduces the algorithm calculation amount, saves computing power resources, and has a high practical application value. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flow chart of a method for updating a global cost map in mobile robot navigation according to the present invention; Figure 2 Flowchart of the traditional method.

[0016] Figure 3 The present invention is a schematic diagram of the structure of a global cost map updating device in mobile robot navigation according to an embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical scheme and technical effect of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0018] like Figure 2 As shown in the figure, the existing method sets up independent threads for global cost map calculation, global path calculation, local map calculation, local path planner, and speed control output, and updates the output at a specific frequency, and publishes the output to other threads in the form of messages. This method is simpler in that the threads do not interfere with each other, but the calculation of the global cost map and the global path is mostly invalid, that is, the calculated result is the same as the previous result. Although it can ensure timely response to external changes, it consumes a lot of computing power and is insufficient for deployment on indoor service mobile robots with tight computing power.

[0019] The present invention discloses a method for updating a global cost map in mobile robot navigation. First, the map and path planner are initialized, and the update and release frequency of the global cost map is set to 0. Instead of setting it to a scheduled update, it is updated when an external request is received. Then, the navigation is configured and started. During the navigation process, the robot status is monitored in real time. According to whether the robot is stuck or seriously deviates from the global path during the navigation process, obstacles are cleared and a global cost map update request is issued.

[0020] like Figure 1 As shown, this method uses multiple threads to process different data simultaneously, including: In the global cost map calculation thread, the global cost map is first loaded at the beginning of the program, and the global cost map is recalculated when an update message is received subsequently. If no update message is received, the thread goes to sleep.

[0021] In the global path planner thread, monitor whether a new global cost map message is received or whether a new preemptive target is given externally. If either of these two situations occurs, recalculate the global path, publish the global path and save it to the computer's internal storage.

[0022] In the local cost map thread, the local cost map is continuously updated at a specific frequency, and the local cost map is published and saved to the computer's internal storage.

[0023] In the TEB local path planning thread, first check whether the global path is updated. If there is an update, reinitialize the local path planner. If not, use the time elastic band algorithm to solve the local path based on the global path and local cost map, combined with the preset mobile robot kinematic constraints. After executing the solution program, determine whether the solution is successful. If successful, publish the local path and save it to the computer's internal storage. If the solution fails, it means that an obstacle has appeared in the global path and the previously planned global path can no longer be achieved. Wake up the global cost map calculation thread to update the global cost map, and repeat some of the above steps until a local path is successfully planned.

[0024] After planning the local path, before controlling the robot, it is necessary to determine whether the robot has seriously deviated from the global path. If so, recalculate the global path. If not, determine whether it is stuck. If stuck, set the speed to zero and try to clear obstacles and fall back, and then perform global cost map calculation. The judgment of stuck is that the robot's position change is less than a certain value within a certain time range before the robot reaches the predetermined location. If none of the above situations occur, and the robot is not in the gradient update or obstacle clearing state, the speed control output is performed and the judgment of deviation from the path, stuck, map update and obstacle clearing state, and the output of control speed are performed at a pre-set frequency.

[0025] More specifically, the initialization of the map and path planner includes: Step 1.1: Initialize the global cost map and local cost map: First, set the grid size of the cost map. This parameter represents how large an area a point on the cost map represents. Set the grid length and width parameters to the same value as the positioning accuracy. Both the global and local cost maps are composed of three layers, namely the static layer, the dynamic layer, and the expansion layer. When instantiating the map, first load the static layer map that has been built in advance from the memory; then build the dynamic layer map representing the obstacle based on the point cloud data obtained by the lidar. The cost of the expansion layer is calculated using the expansion function based on the obstacles in the dynamic layer map. The closer the distance to the obstacle, the higher the cost. Then, the three maps are fused by taking the maximum value to obtain the cost map.

[0026] Each time the cost map is updated, the dynamic layer is recalculated based on the sensor data, and the expansion layer is recalculated based on the dynamic layer. For the global cost map, the update frequency update_frequency is initially set to 0 and the publish frequency publish_frequency is set to 0. A subscriber is set to listen to other modules' requests to update the global cost map. If a request is received, an update and publish procedure is executed. For the local cost map, first set a map with a valid length and width, only build a small piece of the cost map, and then set the update frequency. Generally, the larger the area setting, the smaller the frequency of the local cost map can be set, such as setting the map to 5m×5m and the update frequency to 4HZ.

[0027] Step 1.2: Initialize the path planner: For the global path planner, the Dijkstra algorithm is used to search for a path with the shortest total cost in the global cost map. The global path planner is executed when a new global target point is set and the global cost map is updated. For the local path planner, the TEB planner is used. The TEB planner plans the global path within a range, taking into account obstacles, kinematic constraints, etc., and can output speed control instructions. The TEB planner continuously executes and updates the local path at the frequency set in step 1.1.

[0028] The enabling of navigation specifically includes: Step 2.1: Subscribe and publish messages: Before the robot starts navigating, it first subscribes to the messages of the function nodes, including not only the global cost map, local cost map, global path planner, local path planner, but also the robot's real-time position and external target position. In addition to subscribing to messages, the navigation node move_base publishes the navigation speed command to the robot chassis.

[0029] Step 2.2: Perform navigation: When the navigation node move_base obtains a new target or a new global cost map, it starts to calculate the global path, passes the obtained global path to the local path planner, combines obstacles and robot kinematic constraints to generate local paths and control instructions, and publishes the control instructions.

[0030] The real-time monitoring of the robot status during the navigation process, and clearing obstacles and issuing a global cost map update request according to whether the robot is stuck or seriously deviates from the global path during the navigation process, specifically include: Step 3.1: Determine whether the robot is stuck: Check whether the local path planner successfully plans a valid path. If the path planning fails, it means the robot is stuck.

[0031] Detect whether the robot's path point, i.e., position, repeats the previous path point within a certain distance and angle, or whether the robot has not moved for a period of time without reaching the destination. If the robot repeatedly circles in a small range or stops moving, this indicates that it is stuck in a cyclic oscillation state.

[0032] When the robot is stuck, first set the state to "obstacle clearing" and execute the pre-set recovery operation. Here, the recovery strategy is set to perform the completely opposite operation before the robot entered the stuck state, that is, "reversing", and then publish a message requesting to update the global cost map, obtain a new global cost map, re-plan the global path, and re-enter the previous navigation state.

[0033] Step 3.2: Determine whether the robot has seriously deviated from the global path: The specific operation is to determine the shortest distance between the robot's current position and the global path. If it is greater than a specific parameter, it is considered to be a deviation, and this parameter is set to one-fourth of the length of the local cost map. When a deviation occurs, a message is also issued to request an update of the global cost map, obtain a new global cost map, re-plan the global path, and re-enter the previous navigation state.

[0034] If the robot deviates seriously from the global path, it means that there is a large obstacle in the path. The local path planner forces the robot to deviate from the original path in order to bypass the obstacle. When the robot deviates from the global path, the environment around it may not be safe, and it may get stuck or the path it takes is not the global optimal path, so it is necessary to re-navigate.

[0035] Corresponding to the above-mentioned embodiment of a global cost map updating method in mobile robot navigation, the present invention also provides an embodiment of a global cost map updating device in mobile robot navigation, as shown in the attached Figure 3 As shown. It includes a memory, one or more processors, multiple external sensors, and a motion controller. The memory contains all executable codes, the global cost map, local cost map, global path and local path output by the thread; the external sensor senses the changes in the external environment and its own motion state, and transmits them to the internal bus; the motion control realizes the control of the robot movement by subscribing to the speed command message published in the internal bus. When the processor executes the executable code, a global cost map update method in mobile robot navigation is implemented.

[0036] An embodiment of a global cost map updating device in mobile robot navigation provided by the present invention can be applied to any device with data processing capability, and the device with data processing capability can be a device or apparatus such as a computer. The device embodiment can be implemented through software, or through hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of any device with data processing capability in which it is located reading the corresponding computer program instructions in the non-volatile memory into the internal memory for execution. From a hardware perspective, if Figure 3 As shown, the present invention provides a hardware structure diagram of a global cost map updating device in mobile robot navigation, where any device with data processing capability is located, except Figure 3In addition to the processor, memory, network interface, multi-pipeline image acquisition device, and fixed memory shown, any device with data processing capability in which the device in the embodiment is located may also include other hardware according to the actual function of the device with data processing capability, which will not be described in detail. The implementation process of the functions and effects of each unit in the above device is specifically detailed in the implementation process of the corresponding steps in the above method, which will not be described in detail here.

[0037] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.

[0038] The embodiment of the present invention also provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, a global cost map updating method in mobile robot navigation in the above embodiment is implemented. The computer-readable storage medium can be an internal storage unit of any device with data processing capability described in any of the above embodiments, such as a hard disk or a memory. The computer-readable storage medium can also be an external storage device of any device with data processing capability, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), an SD card, a flash card (Flash Card), a graphics card (Graphics Card), etc. equipped on the device. Further, the computer-readable storage medium can also include both an internal storage unit and an external storage device of any device with data processing capability. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capability, and can also be used to temporarily store data that has been output or is to be output.

[0039] The above is only a preferred implementation case of the present invention and does not limit the present invention in any form. Although the implementation process of the present invention is described in detail above, for those familiar with the art, they can still modify the technical solutions recorded in the above examples, or replace some of the technical features therein with equivalents. All modifications, equivalent replacements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A global cost map updating method for mobile robot navigation, It is characterized in that include: Initialize the cost map, set the global cost map to update on request, and the local cost map to update on frequency; After the robot starts navigation, it plans the path on the global cost map and the local cost map respectively. Real-time path analysis is used to determine whether the robot is stuck or has deviated from the path. If so, it requests to update the global cost map to replan the global path.

2. The global costmap updating method in mobile robot navigation according to claim 1, It is characterized in that Use Dijkstra algorithm to plan a path with the shortest cost in the global cost map as the global path; Based on the global path, the TEB algorithm is used to solve the local path on the local cost map. When the local path solution fails, it means that there are obstacles in the global path or the local path that the robot cannot pass, causing the robot to be stuck, and a request is made to update the global cost map. When the local path solution is successful, it means that the local path has been planned, and then the shortest distance between the robot's position on the local path and the global path is calculated. The shortest distance is used to determine whether the path is deviated. If so, a request is made to update the global cost map.

3. The global cost map updating method in mobile robot navigation according to claim 2, It is characterized in that A distance parameter is preset. When the shortest distance is greater than the distance parameter, it is determined that the path is deviated, and a request is made to update the global cost map.

4. The global cost map updating method in mobile robot navigation according to claim 3, It is characterized in that The size of the distance parameter is one quarter of the length of the local costmap.

5. The global cost map updating method in mobile robot navigation according to claim 2, It is characterized in that When the local path is solved successfully, it is also detected whether the robot's path point, that is, the position, repeats within a time range or remains unchanged or changes less than a threshold before reaching the destination. If so, it means that the robot repeatedly circles or stops moving within the local path range, that is, it is in a stuck state of cyclic oscillation. At this time, the robot performs an obstacle recovery operation, which makes the robot perform an operation completely opposite to the one before it entered the stuck state of cyclic oscillation. After performing the obstacle recovery operation, it requests to update the global cost map, obtain a new global cost map, and re-plan the global path.

6. The global cost map updating method in mobile robot navigation according to claim 5, It is characterized in that When the local path is solved successfully and the path does not deviate, is not stuck, or is updating the gradient or clearing the obstacle recovery operation gradient, the speed control output is performed on the robot.

7. The global costmap updating method in mobile robot navigation according to claim 1, It is characterized in that The request for updating the global costmap also includes a request for navigating to a new preemptive target.

8. The global cost map updating method in mobile robot navigation according to claim 1, It is characterized in that The size of a local costmap region is inversely proportional to its set update frequency.

9. A global cost map updating device in mobile robot navigation, It is characterized in that It includes a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used to implement a global cost map updating method in mobile robot navigation according to any one of claims 1 to 8.

Citation Information

Cited By

  • Cost map updating method and device and electronic equipment

    CN119665949A