Path Planning
By dividing the path planning task into multiple small processes and using simple geometric analysis, mobile robots can quickly and efficiently determine obstacle-free paths, solving the problem of high power requirements in existing technologies, reducing costs and extending battery life.
Patent Information
- Application Number
- CN201980066741.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-02
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-10-02
AI Technical Summary
Existing path planning algorithms require a lot of processing time and power in mobile robots and are difficult to implement on low-power processors, resulting in high costs and short battery life.
By dividing the path planning task into multiple smaller processes, iteratively processes waypoints, and uses simple geometric analysis to identify and adjust waypoint locations to avoid obstacles and reduce processor requirements.
This enables fast and efficient determination of obstacle-free paths on a low-power processor, reducing mobile robot costs and extending battery life.
Smart Images

Figure CN112805647B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to path planning, and more particularly to a method and system for determining an obstacle-free path between a starting point and a target point, in particular for a mobile robotic device. Background Art
[0002] Mobile robotic devices are becoming more common and are used in a variety of fields such as space exploration, telepresence, home assistance, lawn mowing and floor cleaning. Recently, there has been rapid development in the field of domestic robots, whose main purpose is to autonomously navigate the user's house and perform tasks such as vacuuming and cleaning, while requiring as little help as possible, preferably no help, from the human user.
[0003] When performing such tasks, the mobile robotic device must be able to autonomously navigate and negotiate obstacles in its environment. Typically, the mobile robotic device is configured to follow an established path using a path pattern. When an obstacle is encountered on the path, the mobile robotic device will readjust and re-maneuver to find a way around the obstacle until it can resume the path. As mobile robotic devices have advanced, there has been an increasing emphasis on advance path planning performed before the mobile robotic device navigates the environment. Instead of the mobile robot simply following a pattern and then dealing with obstacles on an ad hoc basis as they are encountered, a path is instead planned out in advance that takes into account obstacles known to be located in the environment. By planning a path in advance in this way, the mobile robotic device is able to navigate the environment more quickly and efficiently, thereby extending battery runtime and maximizing coverage.
[0004] Path planning is well known in the art and there are many available solutions. However, path planning solutions typically require a significant amount of processing time and power. Thus, a powerful processor is required to perform the path planning, which is both expensive and power-hungry, or the process may take a significant amount of time to complete. This can make the path planning system expensive and also difficult to implement on a mobile robotic device, particularly if the mobile robotic device is a consumer robotic device such as a robotic vacuum cleaner.
[0005] An example of path planning is described in WO2016 / 050274A1. This describes a path planning scheme that calculates all possible paths between a start and end point that pass through a range of possible nodes in between. Any of those paths that are blocked by obstacles are then excluded, and a cost function associated with each of the remaining paths is calculated. The path that passes through the range of possible nodes with the lowest cost function is then selected from the remaining non-excluded paths. Although this scheme is effective in finding an efficient path that avoids all obstacles, the processing requirements associated with calculating all possible routes and calculating the cost function are considerable.
[0006] Therefore, there is a need for an improved path planning scheme that is still effective in determining an obstacle-free path, but requires much less processing power. Summary of the invention
[0007] A first aspect of the present invention provides a method for determining an obstacle-free path between a starting point and a target point. The method comprises the following steps:
[0008] Providing a plurality of waypoints, wherein the waypoints are linearly distributed between a starting point and a target point;
[0009] Determine a sequence of waypoints where the first waypoint is at the starting point and the last waypoint is at the destination point; and
[0010] • Iteratively processing each of the plurality of waypoints in the sequence from the second waypoint to the last waypoint.
[0011] Processing each of the plurality of waypoints includes identifying an obstacle closest to the waypoint of interest and calculating a first distance between the waypoint of interest and the identified closest obstacle, and then modifying a position of the waypoint of interest if the first distance is less than a gap threshold.
[0012] Thus, a method for determining an obstacle-free path is achieved that divides the path planning task into multiple smaller processes that can be processed quickly and easily. As a result, the method can be performed using a low-power processor compared to other path planning algorithms. This in turn increases the possibility that the method can be performed on a mobile robot without equipping the mobile robot with a high-power or high-performance processor, which may significantly increase the cost of the mobile robot. Moreover, when the method is performed by a battery-powered device, the battery life of the device can be extended due to the low performance requirements of the processor required to perform the method.
[0013] If the first distance is less than the gap threshold, then the step of changing the position of the waypoint of interest may include the following steps:
[0014] Calculating a set of points that are both located at a first predetermined distance from a previous waypoint of the waypoint of interest and at a second predetermined distance from the closest identified obstacle;
[0015] · Selecting a preferred point from a set of points; and
[0016] Change the location of the waypoint of interest to a preferred point.
[0017] Thus, a fast method for identifying new locations of waypoints of interest can be achieved which is based on a simple geometric analysis and requires little processing power.
[0018] The step of calculating a set of points may include calculating the intersection between a first shape and a second shape, wherein the first shape is centered at a previous waypoint of the waypoint of interest and has a radius equal to a first predetermined distance, and the second shape is centered at the closest identified obstacle and has a radius equal to a second predetermined distance, and wherein the intersection is considered a set of points. The first and second shapes may be circular or spherical. This provides a simple geometric shape that can be easily used to identify the location of the intersection. In addition, the radius of the circle or sphere can be set as needed to match the clearance distance of a moving vehicle that needs to navigate along the path without contacting obstacles.
[0019] The first predetermined distance may be equal to the step length between waypoints. Thus, the new position of a waypoint will always be the step length away from the last waypoint, thereby reducing the risk of a vehicle travelling on the path needing to travel a large distance between waypoints for which analysis has not yet been performed to clear obstacles.
[0020] The second predetermined distance may be equal to the clearance threshold. Therefore, the new position of the waypoint will certainly be at least one clearance threshold away from the obstacle, and the new position of the waypoint will ensure that the path avoids the obstacle.
[0021] The step of selecting the preferred point may include calculating the distance between each calculated point in the set of points and a horizon point, and selecting the point closest to the horizon point. The horizon point may be located on a line connecting two consecutive waypoints in the sequence of waypoints between the waypoint of interest and the target point. Thus, the best point is selected to ensure that the path is as close as possible to the original, unprocessed linear path of waypoints between the starting point and the target point.
[0022] The step of iteratively processing each of the plurality of waypoints in the sequence may further include: calculating a third distance between the waypoint of interest and a previous waypoint in the sequence; and comparing the third distance between the waypoint of interest and the previous waypoint to a predetermined step size threshold. If the third distance between the waypoint of interest and the previous waypoint is greater than the predetermined step size threshold, the position of the waypoint of interest may be changed to a point located on a line segment connecting the previous waypoint and the next waypoint in the sequence, the point located on the line segment, and the distance from the previous waypoint is equal to the predetermined step size. Thus, the waypoint will remain the step size away from the previous waypoint, thereby reducing the risk that a vehicle traveling on the path will need to travel a larger distance between waypoints for which analysis has not yet been performed to clear obstacles.
[0023] The previous waypoint can be any waypoint in the sequence from the starting point to the waypoint of interest, and the next waypoint is any waypoint in the sequence from the waypoint of interest to the target point.
[0024] The method may further include, after changing the position of the waypoint to the preferred point, identifying an obstacle closest to the new position of the waypoint of interest, and calculating a fourth distance between the waypoint of interest and the closest identified obstacle, and then, if the fourth distance is less than a gap threshold, deleting the waypoint of interest from the sequence. Thus, if the new position of the waypoint brings the waypoint too close to another obstacle, the new position will not be used within the planned path because the new waypoint will be abandoned. This ensures that the path determined by the method remains free of obstacles.
[0025] The method may further include the additional steps of calculating a fifth distance between the path point of interest and a previous path point in the sequence after changing the location of the path point of interest to the preferred point; calculating a sixth distance between the path point of interest and a path point before the previous path point in the sequence; and comparing the fifth distance to the sixth distance. If the sixth distance is less than the fifth distance, the path point of interest may be removed from the sequence. Thus, if the new location of the path point of interest takes the path back to an earlier path point in the sequence and thus directs the path toward itself rather than the target point, it may be removed from the sequence.
[0026] A second aspect of the present invention provides a system, comprising:
[0027] Memory that stores data related to the environment, including the location of any obstacles located in the environment;
[0028] A memory storing data related to path planning, including locations of a start point and a target point, a plurality of waypoints, a sequence of the plurality of waypoints, and a gap threshold; and
[0029] A path planning engine comprising at least one processor and configured to iteratively process each of the plurality of waypoints to determine an obstacle-free path between a start point and a destination point.
[0030] To process each of the plurality of waypoints, the path planning engine is configured to identify an obstacle closest to the waypoint of interest, calculate a first distance between the waypoint of interest and the identified closest obstacle, and then update data corresponding to the position of the waypoint of interest to change its position if the first distance is less than a gap threshold.
[0031] Thus, the system is able to determine an obstacle-free path between a starting point and a destination point by dividing the path between the starting point and the destination point into a plurality of discrete path points that can be processed individually. This reduces the demand on the processor, and a low-power processor can be used. In turn, this increases the possibility that such a system can be implemented on a mobile robot without equipping the mobile robot with a high-power or high-performance processor, which may significantly increase the cost of the mobile robot. In addition, when the system is implemented on a battery-powered device, the battery life of the device can be extended due to the low performance requirements of the processor.
[0032] To change the location of waypoints of interest, the path planning engine can be configured to:
[0033] Calculating a set of points that are both located at a first predetermined distance from a previous waypoint of the waypoint of interest and at a second predetermined distance from the closest identified obstacle, the first predetermined distance and the second predetermined distance being stored in a memory;
[0034] · Selecting a preferred point from a set of points; and
[0035] · Update the data corresponding to the location of the waypoint of interest to change its location to the preferred point.
[0036] Thus, the path planning engine is only required to perform a simple geometric analysis to change the position of the path points of interest. The path planning engine does not require a large amount of processor power to achieve this, so the path planning engine can plan paths faster and / or can use a cheaper, less powerful processor.
[0037] To calculate a set of points, the path planning engine can be configured to calculate an intersection between a first shape and a second shape, wherein the first shape is centered at a previous waypoint of the waypoint of interest and has a radius equal to a first predetermined distance, and the second shape is centered at the closest obstacle identified and has a radius equal to a second predetermined distance, and wherein the intersection is considered a set of points. The first and second shapes can be one of a circle or a sphere. The circle or sphere provides a simple geometric shape that allows for a quick geometric analysis to identify the location of the intersection. In addition, the radius of the circle or sphere can be set as needed to match the clearance distance of a moving vehicle that needs to navigate along the path without contacting obstacles.
[0038] The first predetermined distance may be equal to a step size between waypoints, which step size is stored in the data associated with the path planning in the memory. In this way, the new position of a waypoint will always be a fixed step size away from the last waypoint, thereby reducing the risk of a vehicle traveling on the planned path needing to travel a large distance between waypoints for which analysis has not yet been performed to clear obstacles.
[0039] The second predetermined distance may be equal to the clearance threshold. In this way, it may be determined that the new position of the waypoint will be at least the clearance threshold away from the obstacle, and the new position of the waypoint will ensure that the planned path avoids the obstacle.
[0040] To select the preferred point, the path planning engine may be configured to calculate a distance between each calculated point in the set of points and a horizontal point, and then select a point that is closest to the horizontal point. The horizontal point may be located on a line connecting two consecutive waypoints in the sequence of waypoints between the waypoint of interest and the target point. Thus, the path planning engine is configured to select the most suitable point to ensure that the path is as close as possible to the original, unprocessed linear path of waypoints between the starting point and the target point.
[0041] To iteratively process each of the plurality of waypoints, the path planning engine may be configured to: calculate a third distance between the waypoint of interest and a previous waypoint in the sequence; and compare the third distance between the waypoint of interest and the previous waypoint to a predetermined step size threshold. If the third distance between the waypoint of interest and the previous waypoint is greater than the predetermined step size threshold, the path planning engine may be configured to update data corresponding to the position of the waypoint of interest to change the position of the waypoint of interest to a point located on a line segment connecting the previous waypoint and the next waypoint in the sequence, the point located on the line segment, and the distance from the previous waypoint is equal to the predetermined step size. Thus, the waypoint will remain the step size away from the previous waypoint, thereby reducing the risk that a vehicle traveling on the path will need to travel a larger distance between waypoints for which analysis has not yet been performed to clear obstacles.
[0042] The previous waypoint may be any waypoint in the sequence from the starting point to the waypoint of interest, and the next waypoint may be any waypoint in the sequence from the waypoint of interest to the target point.
[0043] After updating the data corresponding to the position of the waypoint of interest to change its position to the preferred point, the path planning engine can be further configured to: identify an obstacle closest to the new position of the waypoint of interest, and calculate a fourth distance between the waypoint of interest and the identified closest obstacle; if the fourth distance is less than the gap threshold, update the data related to the path planning to remove the waypoint of interest from the sequence. Therefore, if the new position of the waypoint brings the waypoint too close to another obstacle, the path planning engine will not use the waypoint at the new position within the planned path because the waypoint will be abandoned. This ensures that the path determined by the path planning engine remains obstacle-free.
[0044] After updating the data corresponding to the position of the path point of interest to change its position to the preferred point, the path planning engine can also be configured to: calculate a fifth distance between the path point of interest and the previous path point in the sequence; calculate a sixth distance between the path point of interest and the path point before the previous path point in the sequence; and compare the fifth distance to the sixth distance. If the sixth distance is less than the fifth distance, the path planning engine can be configured to update the data related to the path planning to remove the path point of interest from the sequence. Therefore, if the new position of the path point of interest takes the path back to an earlier path point in the sequence and thus leads the path to itself instead of the target point, the path planning engine removes it from the sequence.
[0045] A third aspect of the present invention provides a robot device, comprising:
[0046] · Systems related to any of the foregoing statements about systems;
[0047] one or more actuators to enable the robotic device to navigate in a surrounding three-dimensional environment; and
[0048] A navigation engine comprising at least one processor to control the one or more actuators, wherein the navigation engine uses the environment-related data and the path planning-related data stored in the memory to navigate the robotic device along an obstacle-free path within the surrounding three-dimensional environment.
[0049] A fourth aspect of the present invention provides a non-transitory computer-readable storage medium comprising computer-executable instructions which, when executed by a processor, cause a computing device to perform a method as set forth in any of the preceding statements relating to a method of determining an obstacle-free path. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order that the present invention may be more readily understood, embodiments of the present invention will now be described by way of example with reference to the following drawings, in which:
[0051] Figure 1An example of a robotic device is shown;
[0052] Figure 2 yes Figure 1 A schematic diagram of the system on a robotic device;
[0053] Figure 3 yes Figure 2 A schematic diagram of a memory of a system;
[0054] Figure 4 yes Figure 1 A schematic diagram of a floor cleaning system of a robot device;
[0055] Figure 5 yes Figure 1 A schematic diagram of a driving system of a robot device;
[0056] Figure 6 A diagram showing an environment in which a robotic device is required to travel;
[0057] Figures 7 to 24 Shown in Figure 6 The environment diagram of each step during the path planning operation;
[0058] Fig.25 Shown in Figures 7 to 24 The final result of the path planning operation performed in , where the original path is displayed together with the updated processed path; and
[0059] Figures 26 to 29 is a flow chart detailing the iterative steps performed during the algorithm’s path planning operation. DETAILED DESCRIPTION
[0060] Figure 1An example of a robotic device is shown. The robotic device is a robot vacuum cleaner 1 and has a floor cleaning system including a cyclonic separation system 2 and a cleaner head 4. A vacuum motor (not shown) disposed inside the body of the robot vacuum cleaner 1 draws dirty air from the cleaner head 4 through the cyclonic separator 2, where dirt particles are removed from the air flow, and then exhausts clean air through an exhaust port (not shown) on the back of the robot vacuum cleaner 1. The robot vacuum cleaner 1 has a drive actuator in the form of a tank track 6 that can be driven to move the robot vacuum cleaner 1 in its environment. The robot vacuum cleaner 1 has a visual sensor 8 that is capable of capturing images of the environment surrounding the robot vacuum cleaner 1. The control system of the robotic device uses a simultaneous localization and mapping (SLAM) technique on the images captured by the visual sensor 8 to build a map of the environment and identify the position of the robot device in the map. The SLAM technique performed by the control system also uses odometry provided from the drive actuators, as well as information provided by other sensors (such as proximity sensors) located in the sensor housing 9 on both sides of the cyclone separator 52. The sensors are, for example,
[0061] Figure 2 yes Figure 1 Schematic diagram of a system 20 on a robotic device 1 of FIG. The system 20 has a control system 22, a task execution system 23, a drive system 24, and a memory 25. Although shown separately, the memory 25 may alternatively be part of the control system 22. The control system 22 includes a path planning engine 26, a navigation engine 27, and a processor 20.
[0062] like Figure 3 As shown schematically, the memory 25 stores all data required by the robotic device and includes environmental data 32 and path planning data 34. The environmental data 32 may include, for example, a map of the environment surrounding the robotic device, and data related to the location of any obstacles within the environment. The data may be data collected by the robotic device during the last navigation operation within the environment, or the data may be pre-programmed into the memory using, for example, a 3D representation of the environment previously generated or drawn by other devices. The path planning data 34 may include information related to the desired path of the robotic device, the location of the starting point and target point of the desired path, intermediate waypoints between the starting point and target point, and the sequence of the plurality of waypoints. Other data related to path planning may also be included, such as a gap threshold, which describes the minimum distance possible between a waypoint and an obstacle and may be specific to the robotic device.
[0063] The task execution system 23 is a part of the robotic system 20 and is responsible for executing the tasks or operations assigned to the robotic device. Figure 1In the robot device, the task execution system 23 is a floor cleaning system. A schematic diagram of the floor cleaning system 40 is shown in FIG. Figure 4 4. The floor cleaning system 40 includes a cleaner head 42, a separation system 44, and a vacuum motor 46. These features of the floor cleaning system are common features of floor cleaning systems, and further description of these systems will not be provided here. In alternative embodiments, for example, the robotic device can be a robotic lawn mower, in which case the task execution system 23 can be a mowing and / or collection system. Other examples of task execution systems will be apparent.
[0064] The navigation engine 27, together with the drive system 24, enables the robotic device to manipulate and navigate within an environment. Figure 5 A schematic diagram of a drive system 24 is provided. The drive system 24 is provided with a drive actuator 50 and a plurality of navigation sensors 52A-E. The drive actuator 50 may be, for example, a driven wheel or a tank track, and is capable of providing mileage measurements to the control system 22 of the robotic system 20. These mileage measurements may be used by the control system 22, in particular the navigation engine 27, to estimate the distance and path traveled by the mobile robotic device. Mileage data may also be provided by other sensors, such as an optical flow sensor. The navigation sensors 52A-E are sensors capable of providing additional information about the environment surrounding the robotic device to the control system 22. For example, the navigation sensor 52A may be a visual camera, and the navigation sensors 52B and 52C may be proximity sensors such as time of flight (TOF) sensors, and the navigation sensors 52D and 52E may be fall sensors or cliff sensors. Other navigation sensors may be used in addition to or in place of these sensors. For example, the robotic device may include a laser rangefinder. In an alternative embodiment, the navigation sensors 52A-E may form part of the navigation engine 27 of the robotic device 20. The robotic system 20 of the robotic device will typically use a variety of different types of navigation sensors in order to be able to more successfully navigate the environment autonomously. The navigation sensors 52A-E provide information about the environment around the robotic device to the control system 22, which enables the control system 22 to build a map of the environment that can be used by the robotic device to navigate. The map of the environment can be stored in the memory 25 of the robotic system 20. Figure 3A schematic diagram of a memory 25 of a robotic system 20 is shown. The illustrated memory 25 contains environmental data 32. The environmental data 32 includes the above-mentioned environmental map, and also includes the location of any obstacles located in the environment. Path planning data 34 is also stored in the memory 25. The path planning data 34 includes any data required by the robotic system 20 to perform path planning before navigating the environment. Examples of data that may be included in the path planning data 34 are a starting point and a target point, a plurality of intermediate path points, a sequence of the plurality of path points, and a gap threshold. How these data are used for path planning will be described in more detail below.
[0065] As used throughout this document, the term "obstacle" is intended to include any object or hazard that may cause an obstruction to the maneuverability of a mobile robotic device in an environment. For example, the term "obstacle" includes physical objects and items that are intended to be placed on a floor surface, such as furniture, household items, footwear, etc. In addition, "obstacles" also include virtual objects (such as user-defined restricted areas or virtual objects), and may also include certain aspects of the environment itself that may cause difficulties for a mobile robotic device, such as falls, stairs, area boundaries, etc.
[0066] A method of determining an obstacle-free path or path plan will now be described. The method is algorithmic and will be performed by the path planning engine 26 in the control system 22 of the robotic system 20, as previously described. In an alternative embodiment, although not a preferred embodiment, the method may be performed by the path planning engine on a separate computing device, and the resulting path data may then be transmitted to the robotic system of the robotic device.
[0067] Figures 26 to 29 is a flow chart illustrating the steps of the multiple iterative phases performed during the overall path planning algorithm. Figures 6 to 24 The path planning operation performed in the environment 100 is exemplified in Figures 26 to 29 The path planning algorithm iteratively processes each waypoint wp1 to wp7 in the sequence. Figures 26 to 29 Each method of the flowchart is executed during the processing of each waypoint, but for clarity, Figures 6 to 25 Some steps are not shown. Fig.25 The final result of the path planning algorithm is shown, with the adjusted path represented by the circular waypoints labeled wp1-7 and displayed together with the original waypoints on the linear path represented by the cross waypoints and labeled owp1-7.
[0068] We will now describe Figures 26 to 29 method, and then we will explain how to Figures 6 to 25 These methods are applied in the path planning operation shown.
[0069] Fig.26 is a flow chart outlining some of the initial method steps, including calculating a level point. The level point will be used in subsequent steps of the method, and although it is not required, it is useful to calculate a level point at the beginning. The method begins at step 260, which selects the current path point (wp n ) for processing. The term "current waypoint" as used herein should be understood to refer to the waypoint of interest for a particular iteration of the method during the iterative processing of each waypoint within the sequence. At step 261, a check is made to ensure that the current waypoint requires processing. There may be a maximum desired length of the path to be processed. For example, it may be desirable for the system to process the path only in smaller and more manageable portions, and therefore set a path length threshold length(path) and store it in memory. Step 261 performs a check to confirm that the current waypoint wp n Less than the length(path) threshold. In addition, check the current path point wp n Is it less than the maximum path point wp in the sequence? max If the answer to any of these checks is no, then processing of the waypoint is stopped and the method ends in step 262 .
[0070] However, if you want to process the waypoint wp n , the method continues to step 263. The horizon point is typically set to a predetermined number of waypoints ahead in the sequence. The predetermined number of waypoints is stored as the parameter horizon_step. In step 263, a calculation is performed to see if the current waypoint wp n Add whether the horizontal_step is greater than the path length threshold length(path). If not, set the horizontal point to the path point determined by this calculation, i.e. wp n +horizon_step. The method then proceeds to the first step 270 of the next stage, referring to Fig. 27 Describe it.
[0071] However, if the current path point wp n If horizon_step is greater than the path length threshold length(path), the horizontal point is set to the last waypoint last_waypoint in the maximum path length set by the path length threshold, as shown in step 265. Steps 266 and 267 perform a check to see if the current waypoint wp n Is the same as last_waypoint, then the method continues to Fig. 27 The next stage described in , if not required by the system, steps 266 and 267 can be skipped.
[0072] Fig. 27 The step_length check is illustrated in FIG. 27. This method ensures that the waypoint remains within a predetermined step_length threshold from the previous waypoint, which in turn reduces the risk that subsequent vehicles traveling on the path will need to travel larger distances between waypoints because these larger distances have not yet been analyzed to clear obstacles. In step 271, the current waypoint wp is calculated n With the previous waypoint wp n-1 The distance between them is D1. Fig. 27 In the illustrated method, the previous path point used is wp n-1 , but it will be appreciated that a different previous path point may be used instead if desired. The distance D1 is then compared to the step_length threshold in step 272, and if D1 is less than the step_length threshold, the method proceeds to the first step 280 of the next stage, where the reference Fig.28 Describe it.
[0073] However, if in step 272, the distance D1 is greater than the step_length threshold, then in step 273 the current path point wp is moved n . Current path point wp n Move to the previous waypoint wp located on the connection n-1 With the current path point wp n A new point on the line segment, and the new point is consistent with the previous path point wp n-1 Once the current path point has moved, the method proceeds to the first step 280 of the next stage, which is to refer to Fig.28 Describe it.
[0074] Fig.28 The steps of a method for ensuring that a path remains at least a set distance from any obstacles in the environment are described. In step 281, a path is identified that is at least a set distance from the current path point wp n The closest obstacle. In step 282, calculate the distance from the current path point wp nThe distance D2 to the nearest obstacle identified in step 281 is calculated. In step 283, the distance D2 is compared to a predetermined threshold value minimum_clearance. The minimum_clearance threshold value may be set according to the requirements of the robot. Typically, the minimum_clearance threshold value will be set to the maximum radius of the robot to be traveling on the planned path. Thus, it is ensured that the robot will remain at least its maximum radius away from any obstacle. Of course, other minimum_clearance threshold values may be adopted according to the requirements of the robot or system, and may also vary depending on the type of environment through which the planned path passes. If in step 283 the distance D2 is greater than the minimum_clearance threshold value, the current waypoint is deemed to be far enough away from its nearest obstacle, and therefore there is no need to move it. The method then proceeds to step 289, where the next waypoint wp is selected in turn. n+1 As the current path point, and continue to the next iteration. You can execute again for the next path point Fig.26 and 27 methods, such as Fig.28 As shown in the dotted box marked with 260 and 270.
[0075] However, if in step 283 the distance D2 is less than the minimum_clearance threshold, the method proceeds to step 284 where an intersection of the two circles is performed. Fig.28 The method of describes the intersection of two circles, but it should be understood that this is only a specific embodiment. What is actually needed is to calculate a set of points, where this set of points is located at the same path point as the previous path point wp n-1 The first circle (Circle 1) is a circle with a radius equal to the step_length threshold and centered on the previous path point wp. n-1 The first circle is a circle with a radius equal to the minimum_clearance threshold and centered on the closest obstacle. The geometric analysis that computes the intersection point ic of this set of points or circle1 and circle2 should return the same point, and may return one or two points. If more than one point is returned, a preferred intersection point must be selected.
[0076] Step 285 determines whether two intersection points ic were returned from step 284. If only one point was returned, then there is no need to select a preferred point and the method proceeds directly to step 288 where the current path point wp is changed.n position, moving it to the intersection point returned from step 284.
[0077] However, if more than one intersection point ic is returned from step 284, then in step 286, a distance H is calculated for each intersection point ic, where distance H is the distance between the intersection point ic and the previously Fig.26 Then, in step 287, the preferred point of the two intersection points is selected by selecting the intersection point with the minimum distance H to the horizontal point. This selection is made because the planned path can be as close as possible to the original unprocessed path by selecting the intersection point with the minimum distance H to the horizontal point as the preferred point. Once the preferred point is selected, the method proceeds to step 288, in which the current path point wp is changed n position and move it to the preferred point.
[0078] The method can then proceed to step 289, which selects the next waypoint wp in turn. n+1 As the current waypoint, and continue to the next iteration, you can execute it again for the next waypoint Fig.26 and 27 methods, such as Fig.28 As shown in the dashed boxes marked with 260 and 270. However, Fig.28 As shown in the dashed box 290 in FIG. 1 , before selecting a new waypoint, another checking method may be performed to check the current waypoint wp before continuing to the next waypoint in the sequence. n The new location of . Now the reference Fig.29 Steps describing a method for performing a new waypoint location check.
[0079] Once the current path point wp n The position of has been changed and the current waypoint wp is identified n The closest obstacle to the new position of the path point wp is calculated, and step 290 continues directly from step 288. Then, in step 291, the current path point wp is calculated. n The distance D3 between the new position of wp and the closest obstacle identified in step 290 is then compared with the minimum_clearance threshold in step 292. If the distance D3 is less than the minimum_clearance threshold, this means that the current waypoint wp n The new position of is too close to the obstacle, so the current waypoint wp is abandoned in step 293 n After abandoning the waypoint in step 293, the method selects the next waypoint wp in turn. n+1 As the current waypoint to continue, this returns Fig.28 Step 289 is performed, and the remainder of the method proceeds as described above.
[0080] However, if in step 292 the distance D3 is greater than the minimum_clearance threshold, the method proceeds to step 294 where the current waypoint wp is checked. n Is it at the target point at the end of the path. If so, the path planning operation is complete and the method ends at step 299. Alternatively, instead of checking whether the current path point is at the target point, it can be checked whether the current path point is at wp max Still at the end of length(path).
[0081] If the current waypoint is not the target point, it is wise to ensure that the current waypoint wp n The new position of will not mistakenly point the path to itself instead of the target point. To this end, in step 295, calculate the path from the current path point wp n Go to the previous path point wp n-1 Then, in step 296, the distance D4 from the current path point wp is calculated. n To the waypoint before the previous waypoint wp n-2 Then in step 297, the distance D4 is compared with the distance D5, and if the distance D5 is less than the distance D4, it can be inferred that the path is pointing to itself rather than to the target point, so the current path point wp is abandoned in step 298. n After abandoning the waypoint in step 298, the method continues by selecting the next waypoint wp n+1 As the current waypoint to continue, this returns Fig.28 Step 289 is performed, and the remainder of the method proceeds as described above.
[0082] However, if the distance D5 is greater than the distance D4 in the comparison in step 297, the current path point wp n Remain in the sequence, and the method continues, selecting the next waypoint wp in the sequence in turn n+1 As the current waypoint, this will return Fig.28 Step 289 is performed, and the remainder of the method proceeds as previously described for the next iteration.
[0083] Figure 6A diagram of an environment 100 is shown in which a robotic device travels. A starting point and a target point are represented by large X symbols, and obstacles 110 are located in the environment 100 in which the robotic device will need to maneuver. A sequence of waypoints labeled wp1-wp7 are evenly and linearly distributed between the starting point and the target point, with the first waypoint wp1 being located at the starting point, the last waypoint wp7 being located at the target point, and the intermediate waypoints wp2-wp6 being located in a linear path between wp1 and wp7 and represented by small x symbols.
[0084] During the processing of each waypoint, execute Figures 26 to 29 However, for clarity, some steps of the method are not shown in the flowchart. Figures 6 to 25 Shown in.
[0085] The starting point or waypoint wp1 does not need to be processed because it is assumed that since the robotic device starts there, it can appear there without overlapping with obstacles. Therefore, the first waypoint to be processed is wp2. Figure 7 The environment during the processing of the second waypoint wp2 is shown. In each figure, the current waypoint being processed is represented by an x symbol surrounded by a square. Figure 7 In the example above, the path point wp5 is marked as a horizontal point. Fig.26 In this example, the horizon_step has been set to three path points in length, so the current horizontal point has been calculated as wp 2+3 , namely wp5. Although not shown, it has been described according to the above reference Fig. 27 The method described computes the distance between wp1 and wp2, and the computed distance is within the predetermined step_length threshold. Therefore, the method proceeds to Fig.28 The method described in . Figure 7 A dashed circle is shown, which is located around the current interesting waypoint wp2. The radius of the circle is equal to the minimum_clearance threshold set for this path planning operation. It can be easily seen that the obstacle 110 is located at a distance far enough from the waypoint wp2 that the distance between wp2 and the obstacle 110 (equal to Fig.28 The distance D2 in (wp2) is greater than the minimum_clearance threshold. Therefore, the method is able to keep wp2 in its current position and select the next waypoint in the sequence, which is wp3.
[0086] Figure 8 The steps for processing wp3 are shown. Here, wp3 is still within the step_length threshold of wp2. However, it can be clearly seen from the way obstacle 110 falls within the dotted circle that the distance between wp3 and obstacle 110 (equal to Fig.28 The distance D2 in (D2) is less than the minimum_clearance threshold. Therefore, the position of waypoint wp3 must be changed. Fig. 9 Shown with Fig.28 The two circles C1 and C2 corresponding to the two circles described in step 284 are described. Circle C1 is centered on the previous path point wp2, and its radius R1 is equal to the step_length threshold. Circle C2 is centered on the obstacle 110, and its radius R2 is equal to the minimum_clearance threshold. The two circles C1 and C2 produce two intersection points ic1 and ic2. In order to determine which of the intersection points ic1 and ic2 is the preferred intersection point, the distances A and B between each of the intersection points ic1, ic2 and the horizontal point that has now been calculated as wp6 are calculated. Since distance B is the shorter of the distances, intersection point ic2 is selected as the preferred point, and the position of wp3 is changed to the position where ic2 is located, as shown in FIG. Fig.10 Although not shown, the new location of wp3 is now executed Fig.29 Once the method is executed, wp3 remains in its original position.
[0087] Fig.11 The steps for processing wp4 are shown. Again, it can be clearly seen from the way that obstacle 110 falls within the dotted circle that the distance between wp4 and obstacle 110 (equal to Fig.28 The distance D2 in ( ) is less than the minimum_clearance threshold. Therefore, the position of waypoint wp4 must be changed. Fig.12 Again, it is shown that Fig.28 The two circles C1 and C2 correspond to the two circles described in step 284. As before when processing wp3, circle C1 is centered on the previous path point (now wp3), and its radius R1 is equal to the step_length threshold. Circle C2 is centered on obstacle 110, and its radius R2 is equal to the minimum_clearance threshold. The two circles C1 and C2 produce two new intersection points ic3 and ic4. In order to determine which of the intersection points ic3 and ic4 is the preferred intersection point, the distances C and D between each of the intersection points ic3 and ic4 and the horizontal point (also the target point) that has now been calculated as wp7 are calculated. Since distance D is the shorter of the distances, intersection point ic4 is selected as the preferred point, and the position of wp4 is changed to the position where ic4 is located, as shown in Fig.13 shown. Fig.13 It is also shown that the new position of wp4 is at least minimum_clearance away from the obstacle, and since obstacle 110 is still the closest obstacle to the new position of wp4, waypoint wp4 does not need to be abandoned.
[0088] Fig.14 , 15 The same process for handling the repetition of wp5 is shown again in Figures 16. This time, the two circles C1 and C2 produce intersection points ic5 and ic6, and the position of ic6 is selected as the preferred point to which the waypoint wp5 should be moved when the distance F is less than the distance E. The horizontal point is still wp7 because this is the last waypoint in the sequence and there are no other waypoints that could be horizontal points.
[0089] Fig.17 The processing of waypoint wp6 is shown to start. Fig.17 It can be clearly seen that the distance between the closest obstacle (still obstacle 110) and wp6 is greater than the minimum_clearance threshold represented by the dashed circle. However, the distance between wp6 and wp5 is quite large. Now refer to Fig.18 And the processing of the waypoint wp6 to demonstrate Fig. 27 The distance between wp6 and wp5 (indicated by the dashed line labeled G) is greater than the step_length threshold, which is shown as a double-headed arrow next to the dashed line G. Therefore, the current waypoint wp6 is moved to a point along the dashed line G connecting wp5 and wp6. The point to which wp6 is moved is at a distance from wp5 equal to the step_length threshold.
[0090] The new location of wp6 is Fig.19 Unfortunately, the new position of wp6 causes the distance from wp6 to its closest obstacle to be less than the minimum_clearance threshold. Therefore, the procedure must be repeated at the new position of wp6. Fig.28 The intersection circle method of Fig. 20 This time, the two circles C1 and C2 produce intersection points ic7 and ic8, and the position of ic8 is selected as the preferred point to which the waypoint wp6 should be moved when the distance J is less than the distance H. The horizontal point is still wp7 because this is the last waypoint in the sequence and there are no other waypoints that could be horizontal points.
[0091] The last waypoint to process is wp7, which is also the destination point. Fig. 22 It is shown that the distance between the current waypoint wp7 and the previous waypoint wp6 (as shown by the dashed line marked K) is greater than the step_length threshold. As a result, the current waypoint wp7 is moved to a point along the dashed line K connecting wp6 and wp7. The position where wp7 is moved is equal to the step_length threshold from wp5. The new position of wp7 is Fig.23 Shown in. Fig.23It is also shown that the distance of the new position of wp7 from the closest obstacle 110 is greater than the minimum_clearance threshold represented by the dashed circle, so the waypoint does not need to be moved again. Since wp7 is also the target point, it is also the last waypoint to be processed in the sequence, so the path planning operation ends. Fig.24 The final path showing the processed and updated waypoint locations can be seen in . Fig.24 It clearly shows how the path avoids obstacles. Therefore, when the vehicle adopts the path that has been planned by this path planning maneuver, the vehicle will be able to navigate that path without touching obstacles or having to readjust its trajectory during navigation.
[0092] Fig.25 The final result of the path planning algorithm is shown, with the adjusted path represented by the circular waypoints labeled wp1-7 and displayed together with the original waypoints on the linear path represented by the cross waypoints and labeled owp1-7.
[0093] The above algorithm is intended to be run periodically during the motion of the robotic device. For example, the robotic device may have a motion update that runs at a frequency of approximately 30-50 Hz, and the path planning algorithm may be run during the motion update to plan a path for the robotic device to cover a portion of the upcoming expected path of the robotic device. Alternatively, the algorithm may be run once at the beginning of an operation, and the entire path that the robotic device intends to take during that operation may be mapped. In this alternative embodiment, the entire path may be divided into multiple path segments, and the path planning algorithm may be run for each path segment until the entire path has been processed.
[0094] While specific examples and embodiments have been described thus far, it will be appreciated that various modifications, some of which have been described above, may be made without departing from the scope of the present invention as defined by the claims.
[0095] For example, in the examples given above, the previous waypoint is always considered to be the waypoint immediately before the current waypoint, e.g. if the current waypoint is wp n , then the previous path point is wp n-1 However, the previous waypoint can be any previous waypoint, such as wp n-2 、wp n-3 or wp n-4 etc., depending on e.g. the requirements of the robotic system, the path planning engine or the size of the path to be processed.
[0096] Furthermore, the various predetermined thresholds and parameters described herein (e.g., horizon_step, minimum_clearance, and step_length) may differ from those suggested in the examples above. For example, instead of minimum_clearance being equal to the outer diameter of the robot, minimum_clearance may be set using a user-selected confidence level, which the user may adjust if the user is concerned about the robot navigating too close to delicate furniture or objects.
[0097] In addition, the above method provides a simple geometric analysis using the intersection of circles to return the intersection points. However, other shapes can be used instead of circles, such as polygons. In addition, if the path to be planned is a path through 3D space, as opposed to the 2D path illustrated in this article, the shape used can be a 3D shape, such as a sphere.
Claims
1. A method for determining an obstacle-free path between a starting point and a target point, the method comprising the following steps: Providing a plurality of waypoints, wherein the waypoints are linearly distributed between a starting point and a target point; Determine a sequence of waypoints in which the first waypoint is located at the starting point and the last waypoint is located at the destination point; and iteratively processing each of the plurality of waypoints in the sequence from a second waypoint to a last waypoint; Wherein, the processing step includes: identifying an obstacle closest to the path point of interest and calculating a first distance between the path point of interest and the identified closest obstacle, and if the first distance is less than a gap threshold, then changing the position of the path point of interest.
2. The method according to claim 1, wherein: If the first distance is less than the gap threshold, the step of changing the position of the waypoint of interest comprises the following steps: calculating a set of points located both at a first predetermined distance from a previous waypoint of the waypoint of interest and at a second predetermined distance from the identified closest obstacle; selecting a preferred point from the set of points; and changing the location of the path point of interest to the preferred point, The step of selecting a preferred point from the set of points includes calculating the distance between each calculated point in the set of points and a horizontal point, and selecting a point closest to the horizontal point.
3. The method according to claim 2, wherein: The step of calculating the set of points includes calculating an intersection point between a first shape and a second shape, wherein the first shape is centered on a previous waypoint of the waypoint of interest and has a radius equal to the first predetermined distance, and the second shape is centered on the identified closest obstacle and has a radius equal to the second predetermined distance, and wherein the intersection point is considered as the set of points.
4. The method according to claim 3, wherein: The first shape and the second shape are one of a circle or a sphere.
5. The method according to any one of claims 2 to 4, wherein: The first predetermined distance is equal to the step length between waypoints.
6. The method according to any one of claims 2 to 4, wherein: The second predetermined distance is equal to the gap threshold.
7. The method according to claim 2, wherein: The horizontal point is located on a line connecting two consecutive waypoints in the sequence of waypoints between the interesting waypoint and the target point.
8. The method according to any one of claims 2 to 4, wherein: The step of iteratively processing each of a plurality of waypoints in the sequence further comprises: Calculating a third distance between the path point of interest and a previous path point in the sequence; comparing a third distance between the path point of interest and the previous path point with a predetermined step length threshold; and If the third distance between the path point of interest and the previous path point is greater than the predetermined step size threshold, the position of the path point of interest is changed to a point on the line segment connecting the previous path point and the next path point in the sequence, the point being located on the line segment and at a distance from the previous path point equal to the predetermined step size.
9. The method according to claim 8, wherein: The previous waypoint is any waypoint in the sequence from the starting point to the interested waypoint, and the next waypoint is any waypoint in the sequence from the interested waypoint to the target point.
10. The method according to any one of claims 2 to 4, wherein: The method also includes, after changing the position of the waypoint to the preferred point, identifying an obstacle closest to the new position of the waypoint of interest and calculating a fourth distance between the waypoint of interest and the identified closest obstacle, and then removing the waypoint of interest from the sequence if the fourth distance is less than the gap threshold.
11. The method according to any one of claims 2 to 4, wherein: The method further comprises the additional step of, after changing the position of the interesting waypoint to the preferred point: calculating a fifth distance between the path point of interest and a previous path point in the sequence; calculating a sixth distance between the pathpoint of interest and a pathpoint preceding a previous pathpoint in the sequence; The fifth distance is compared to the sixth distance, and if the sixth distance is less than the fifth distance, the interesting waypoint is removed from the sequence.
12. A system for determining an obstacle-free path between a starting point and a target point, comprising: a memory storing data related to the environment, the data including the location of any obstacles in the environment; A memory storing data related to path planning, the data including positions of a starting point and a target point, a plurality of path points, a sequence of the plurality of path points, and a gap threshold; a path planning engine comprising at least one processor and configured to iteratively process each of the plurality of waypoints to determine an obstacle-free path between an origin and a destination point; Wherein, to process each of the plurality of waypoints, the path planning engine is configured to identify an obstacle closest to the waypoint of interest; calculate a first distance between the waypoint of interest and the identified closest obstacle; and if the first distance is less than the gap threshold, then update data corresponding to the position of the waypoint of interest to change its position.
13. The system according to claim 12, wherein: To change the location of the interesting waypoint, the path planning engine is configured to: calculating a set of points located both at a first predetermined distance from a previous waypoint of the waypoint of interest and at a second predetermined distance from the identified closest obstacle, the first predetermined distance and the second predetermined distance being stored in a memory; selecting a preferred point from the set of points; and updating data corresponding to the location of the waypoint of interest to change its location to a preferred point, In order to select a preferred point from the set of points, the path planning engine is configured to calculate the distance between each calculated point in the set of points and a horizontal point, and then select a point closest to the horizontal point.
14. The system according to claim 13, wherein: To calculate the set of points, the path planning engine is configured to calculate an intersection point between a first shape and a second shape, wherein the first shape is centered on a previous waypoint of the waypoint of interest and has a radius equal to the first predetermined distance, and the second shape is centered on the identified closest obstacle and has a radius equal to the second predetermined distance, and wherein the intersection point is considered as the set of points.
15. The system of claim 14, wherein: The first shape and the second shape are one of a circle or a sphere.
16. A system according to any one of claims 13 to 15, wherein: The first predetermined distance is equal to a step length between path points, and the step length is stored in data related to path planning in the memory.
17. A system according to any one of claims 13 to 15, wherein: The second predetermined distance is equal to the gap threshold.
18. The system of claim 13, wherein: The horizontal point is located on a line connecting two consecutive waypoints in the sequence of waypoints between the interesting waypoint and the target point.
19. A system according to any one of claims 13 to 15, wherein: To iteratively process each of the plurality of waypoints, the path planning engine is configured to: calculating a third distance between the path point of interest and a previous path point in the sequence; comparing a third distance between the path point of interest and the previous path point with a predetermined step length threshold; as well as If a third distance between the path point of interest and the previous path point is greater than a predetermined step size threshold, data corresponding to the position of the path point of interest is updated to change the position of the path point of interest to a point on a line segment connecting the previous path point and the next path point in the sequence, the point being on the line segment and at a distance from the previous path point equal to the predetermined step size.
20. The system of claim 19, wherein: The previous waypoint is any waypoint in the sequence from the starting point to the interested waypoint, and the next waypoint is any waypoint in the sequence from the interested waypoint to the target point.
21. A system according to any one of claims 13 to 15, wherein: After updating the data corresponding to the location of the interesting waypoint to change its location to the preferred point, the path planning engine is further configured to: identifying an obstacle closest to the new position of the waypoint of interest, and calculating a fourth distance between the waypoint of interest and the identified closest obstacle; as well as If the fourth distance is less than the gap threshold, data related to the path planning is updated to remove the interesting waypoint from the sequence.
22. A system according to any one of claims 13 to 15, wherein: After updating the data corresponding to the location of the interesting waypoint to change its location to the preferred point, the path planning engine is further configured to: calculating a fifth distance between the path point of interest and a previous path point in the sequence; calculating a sixth distance between the pathpoint of interest and a pathpoint preceding a previous pathpoint in the sequence; The fifth distance is compared with the sixth distance, and if the sixth distance is less than the fifth distance, data related to path planning is updated to remove the interesting path point from the sequence.
23. A robotic device comprising: A system according to any one of claims 12 to 22; one or more actuators to enable the robotic device to navigate in a surrounding three-dimensional environment; and A navigation engine comprising at least one processor to control the one or more actuators, wherein the navigation engine uses the environment-related data and the path planning-related data stored in the memory to navigate the robotic device along an obstacle-free path within the surrounding three-dimensional environment.
24. A non-transitory computer-readable storage medium comprising computer-executable instructions which, when executed by a processor, cause a computing device to perform the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Method and system for determining a path of an object for moving from a starting state to an end state set avoiding one or more obstacles
WO2016050274A1
Point -to-point path planning
US20050192749A1
Computer-Implemented Method and a System for Guiding a Vehicle Within a Scenario with Obstacles
US20180100743A1
