Path planning method and device, robot and storage medium
By replanning the navigation route and marking target points on transparent obstacles while the robot is stationary, the problem of optical sensors being unable to detect distant transparent obstacles is solved, thus improving navigation efficiency and reducing costs.
Patent Information
- Application Number
- CN202311869344.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-28
AI Technical Summary
In existing technologies, optical sensors cannot effectively detect transparent obstacles at a distance, causing robots to repeatedly navigate in transparent obstacle environments, reducing navigation efficiency and success rate.
When the robot detects a stop while traveling along the first navigation route, it replans a second navigation route based on the current stop position and the target position. By identifying target points of transparent obstacles and marking them on the map, the robot avoids these obstacles and avoids repeated loop navigation.
It improves the robot's navigation efficiency in transparent obstacle environments, reduces navigation costs, eliminates the need for additional acoustic sensors, and simplifies the complexity of navigation algorithms.
Smart Images

Figure CN117824691B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robotics, and more particularly to a path planning method, apparatus, robot, and storage medium. Background Technology
[0002] With the continuous development of social technology, various types of robots have become common in people's lives and work, such as household robots and companion robots. As a key module for mobile robots to realize spatial movement functions, the navigation module has always attracted much attention from researchers and engineers due to its high accuracy and efficiency.
[0003] Optical sensors are the primary sensors relied upon for navigation. However, they can only detect transparent obstacles (such as glass) at very close range, while failing to detect them at long distances. This results in a high rate of missed detections of transparent obstacles in the environment, which can cause the robot to repeatedly navigate in loops. Therefore, effectively eliminating repetitive navigation loops and improving navigation efficiency has become a pressing technical problem. Summary of the Invention
[0004] To address the problems existing in the prior art, the present invention provides a path planning method, apparatus, robot, and storage medium.
[0005] This invention provides a path planning method, comprising:
[0006] During the process of the robot traveling based on the first navigation route, if the robot is detected to be in a stopped state, a second navigation route is replanned based on the robot's first current stopping position and target position;
[0007] Based on the first navigation route and the second navigation route, it is determined whether there is a first target point, which is used to characterize a transparent obstacle;
[0008] If the first target point exists, mark the first target point on the map based on its location; the first target point is a point that the robot avoids when planning a new navigation route based on the marked map.
[0009] According to a path planning method provided by the present invention, determining whether a first target point exists based on a first navigation route and a second navigation route includes:
[0010] A circle is drawn with the robot's first current stopping position as the center point and based on a preset length;
[0011] Determine the first intersection point of the circle and the first navigation route, and the second intersection point of the circle and the second navigation route;
[0012] Determine the minimum angle between the first line connecting the center point and the first intersection point and the second line connecting the center point and the second intersection point;
[0013] If the minimum included angle is greater than a preset angle, the first intersection point is determined as the first target point.
[0014] According to a path planning method provided by the present invention, when the robot is detected to be in a stopped state, replanning a second navigation route based on the robot's first current stopping position and target position includes:
[0015] The first navigation route is planned based on the starting position and the target position;
[0016] The prediction duration is determined based on the length of the first navigation route and the robot's driving speed;
[0017] If it is determined that the robot's travel time based on the first navigation route is greater than the predicted time, and the robot is detected to be in a stopped state, a second navigation route is replanned based on the robot's first current stopping position and target position.
[0018] According to a path planning method provided by the present invention, the method further includes:
[0019] During the process of the robot traveling from the first current stopping position based on the second navigation route, if it is detected that the robot is stopped again, a third navigation route is replanned based on the robot's second current stopping position and the target position;
[0020] Based on the second navigation route and the third navigation route, it is determined whether a second target point exists, the second target point being used to characterize a transparent obstacle;
[0021] If the second target point exists, the second target point is marked on the map based on its location; the second target point is a point that the robot avoids when planning a new navigation route based on the marked map.
[0022] According to a path planning method provided by the present invention, the method further includes:
[0023] After a target point is marked on the map, a timer is started; the target point includes either the first target point or the second target point.
[0024] The target point is deleted when the preset time is reached.
[0025] According to a path planning method provided by the present invention, the method further includes:
[0026] After marking the target point on the map, a monitoring instruction is sent to the monitoring device. The monitoring instruction includes the location of the target point, which may be either the first target point or the second target point.
[0027] Upon receiving a notification message from the monitoring device, the target point is deleted; the notification message is sent by the monitoring device after detecting the disappearance of the transparent obstacle at the location of the target point.
[0028] According to a path planning method provided by the present invention, the method further includes:
[0029] If the minimum included angle is less than or equal to the preset angle, it is determined that the first target point does not exist.
[0030] The present invention also provides a path planning device, comprising:
[0031] The first planning unit is used to replan the second navigation route based on the robot's first current stopping position and the target position when the robot is detected to be in a stopped state during the robot's travel based on the first navigation route.
[0032] The first determining unit is configured to determine whether a first target point exists based on the first navigation route and the second navigation route, wherein the first target point is used to characterize a transparent obstacle;
[0033] The first marking unit is used to mark the first target point on the map based on the location of the first target point when the first target point exists; the first target point is a point that the robot avoids when planning a new navigation route based on the marked map.
[0034] The present invention also provides a robot, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the path planning methods described above.
[0035] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the path planning method as described above.
[0036] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements any of the path planning methods described above.
[0037] The path planning method, apparatus, robot, and storage medium provided by this invention, when detecting that the robot is in a stopped state while traveling along a first navigation route, replans a second navigation route based on the robot's first current stopping position and target position. Based on the first and second navigation routes, it determines whether there is a first target point representing a transparent obstacle. If the first target point exists, it marks the first target point on the map, so that when the robot plans a new navigation route based on the marked map, it can avoid the first target point representing a transparent obstacle. This can prevent the robot from repeatedly circling in a transparent obstacle environment and improve navigation efficiency. Attached Figure Description
[0038] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0039] Figure 1 This is a schematic diagram of the robot navigation process provided in an embodiment of the present invention;
[0040] Figure 2 This is one of the flowcharts illustrating the path planning method provided in this embodiment of the invention;
[0041] Figure 3 This is a schematic diagram of the target point determination method provided in an embodiment of the present invention;
[0042] Figure 4 This is a second flowchart illustrating the path planning method provided in this embodiment of the invention;
[0043] Figure 5 This is the third flowchart illustrating the path planning method provided in this embodiment of the invention;
[0044] Figure 6 This is a schematic diagram of the path planning device provided in an embodiment of the present invention;
[0045] Figure 7 This is a schematic diagram of the physical structure of the robot provided by the present invention. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0047] Existing mobile robots rely heavily on optical sensors, such as laser sensors, for navigation and mapping. These sensors can pass through transparent obstacles, leading to a certain probability of missed detections. Alternatively, laser sensors may miss detections at long distances but be visible at close range, causing the navigation module to ignore the presence of transparent obstacles when planning paths. In actual tests, it was found that missed detections of transparent obstacles often cause mobile robots to repeatedly navigate in loops.
[0048] Figure 1 This is a schematic diagram of the robot navigation process provided in an embodiment of the present invention, such as... Figure 1 As shown, the robot travels along navigation line 1 to target point C. Because the optical sensor cannot detect transparent obstacles at a distance, the navigation module cannot see them either, so the planned navigation line 1 passes through the transparent obstacle. When the robot reaches point A along navigation line 1, it is blocked by the transparent obstacle. To continue towards target point C, the navigation module plans a new navigation line 2. Since the robot is now close to point A, the optical sensor can successfully detect the transparent obstacle in front of point A, allowing the new navigation line 2 to bypass it and attempt to reach target point C via point B. However, because the optical sensor cannot see the transparent obstacle at point B from a distance when at point A, the new navigation line 2 passes through it again. When the robot reaches point B along the new navigation line 2, it is blocked by the transparent obstacle again, and the navigation module replans the route. Since the robot is now far from point A, the optical sensor cannot detect the transparent obstacle at point A, so the newly planned navigation line 3 again passes through the transparent obstacle at point A. In summary, the characteristic of optical sensors that they can see transparent obstacles at close range but not at distant transparent obstacles causes the robot to repeatedly navigate between point A and point B, greatly reducing navigation efficiency and success rate.
[0049] In related technologies, acoustic sensors are typically added to robots, and path planning is performed by combining the detection results of acoustic sensors and optical sensors. This reduces the missed detection rate of transparent obstacles and avoids the problem of reciprocating navigation. However, the need to combine the detection results of acoustic sensors and optical sensors for path planning increases the complexity of navigation detection algorithms, increases the computation time of navigation, thereby reducing navigation efficiency and increasing the cost of robot navigation.
[0050] Based on this, the present invention provides a path planning method. When it is detected that the robot is in a stopped state while traveling along a first navigation route, a second navigation route is replanned based on the robot's first current stopping position and target position. Based on the first and second navigation routes, it is determined whether there is a first target point representing a transparent obstacle. If the first target point exists, it is marked on the map. This allows the robot to avoid the first target point representing a transparent obstacle when planning a new navigation route based on the marked map. This avoids the robot repeatedly circling in a transparent obstacle environment and improves navigation efficiency. In addition, the present invention does not require the addition of acoustic sensors, thereby reducing the cost of robot navigation.
[0051] The following is combined with Figures 2-5 The path planning method of the present invention is described. The subject executing the path planning method can be a robot or a path planning device installed in the robot. The path planning device can be implemented by software, hardware, or a combination of both.
[0052] Figure 2 This is one of the flowcharts illustrating the path planning method provided in this embodiment of the invention, such as... Figure 2 As shown, this path planning method includes the following steps:
[0053] Step 201: During the process of the robot traveling based on the first navigation route, if the robot is detected to be in a stopped state, a second navigation route is replanned based on the robot's first current stopping position and target position.
[0054] The first navigation route is a navigation route that the robot obtains by using a navigation planning algorithm to plan the path based on a pre-generated map, starting position, and target position.
[0055] For example, when planning the first navigation route, the map used may not cover all obstacles, especially transparent obstacles such as glass doors, which are often missed by the light sensor and therefore do not appear on the map. Therefore, as the robot travels towards the target location based on the first navigation route, the light sensor in the robot also needs to detect obstacles in real time. When an obstacle is detected during the robot's movement, the robot will stop because it is too close to the obstacle or has collided with it; that is, the robot is in a stopped state. At this point, it is considered that the robot's movement has been interrupted by an obstacle, and the information of the first navigation route being executed is recorded. Specifically, the coordinate information of each sampling point in the first navigation route and the direction information of the first navigation route are recorded, and the first current stopping position of the robot in the stopped state is obtained. Based on the robot's first current stopping position and the target position, a navigation planning algorithm is used to re-plan the path, resulting in a re-planned second navigation route.
[0056] Step 202: Based on the first navigation route and the second navigation route, determine whether there is a first target point, which is used to characterize a transparent obstacle.
[0057] For example, the coordinate information of each sampling point in the recorded first navigation route and the direction information of the first navigation route can characterize the first navigation route. Then, by combining the first navigation route and the replanned second navigation route, it is determined whether there is a first target point that represents a transparent obstacle. If it is determined that there is a first target point that represents a transparent obstacle, it is determined that the map needs to be edited, that is, the high-cost point used to represent the transparent obstacle, which is the first target point, is marked on the map. If it is determined that there is no first target point that represents a transparent obstacle, it is determined that the map does not need to be edited.
[0058] Step 203: If the first target point exists, mark the first target point on the map based on its location; the first target point is the point that the robot avoids when planning a new navigation route based on the marked map.
[0059] For example, when there is a first target point representing a transparent obstacle, it is determined that the map needs to be edited. That is, the position of the first target point on the map is marked as a high-cost point to represent the transparent obstacle. In this way, the robot can then perform path planning based on the map after marking the high-cost points to avoid the high-cost points in the map after marking the high-cost points, that is, to avoid the transparent obstacle. This ensures that there are no transparent obstacles in the new navigation route, thereby avoiding the robot repeatedly navigating in the transparent obstacle environment.
[0060] The path planning method provided by this invention, when detecting that the robot is in a stopped state while traveling on a first navigation route, replans a second navigation route based on the robot's first current stopping position and target position. Based on the first and second navigation routes, it determines whether there is a first target point representing a transparent obstacle. If the first target point exists, it marks the first target point on the map, so that when the robot plans a new navigation route based on the marked map, it can avoid the first target point representing a transparent obstacle. This can avoid the robot repeatedly circling in a transparent obstacle environment and improve navigation efficiency.
[0061] In one embodiment, step 202 above determines whether a first target point exists based on the first navigation route and the second navigation route, which can be implemented through the following steps:
[0062] Using the robot's first current stopping position as the center point, draw a circle based on a preset length, determine the first intersection point of the circle and the first navigation route, and the second intersection point of the circle and the second navigation route, determine the minimum angle between the first line connecting the center point and the first intersection point and the second line connecting the center point and the second intersection point, and if the minimum angle is greater than a preset angle, determine the first intersection point as the first target point.
[0063] The preset length can be set based on the shape of the robot. For example, if the robot is a circular sweeping robot, the preset length can be the radius of the outer circumference of the robot body; the preset angle can be set based on requirements.
[0064] For example, a circle is drawn with the robot's first current stopping position as the center point, i.e., the center of the circle, and a radius of a preset length. Since the robot traveled to the first current stopping position based on the old first navigation route, the center of the circle is a point on the old first navigation route. Extending the old first navigation route in the direction indicated by the old first navigation route for the preset length, the old first navigation route will intersect the circle to obtain the first intersection point. The replanned second navigation route is planned starting from the first current stopping position, so the center of the circle is the starting point of the replanned second navigation route. Extending the replanned second navigation route in the direction indicated by the replanned second navigation route for the preset length, the second navigation route will intersect the circle to obtain the second intersection point. Then, the minimum angle between the first line connecting the center of the circle and the first intersection point and the second line connecting the center of the circle and the second intersection point is measured. The minimum angle is compared with a preset angle. If the minimum angle is greater than the preset angle, it indicates that the robot has suddenly made a large turn during travel. It is assumed that the large turn is caused by an obstacle not marked on the map, so it is determined that the map needs to be edited, and the position of the first intersection point is determined as the first target point, i.e., the high-cost point. Figure 3This is a schematic diagram of the target point determination method provided in an embodiment of the present invention, as shown below. Figure 3 As shown, circle 301 is a circle drawn with the robot's first current stopping position as the center point O and a radius based on a preset length. The first intersection of the first navigation route 302 and circle 301 is point E, and the first intersection of the second navigation route 303 and circle 301 is point F. Then, dashed line 304 is the first connecting line, and dashed line 305 is the second connecting line. Angle α is the minimum angle between the first connecting line and the second connecting line. If angle α is greater than the preset angle, then point E is determined as the first target point. The position of point E is marked on the map as the position of the high-cost point. Since high-cost points are used to represent transparent obstacles, once a high-cost point is marked on the map, the robot should try to avoid high-cost points when making subsequent path planning, so as to avoid the robot repeatedly circling in the transparent obstacle environment.
[0065] Furthermore, if the minimum included angle is less than or equal to the preset angle, it is determined that the first target point does not exist.
[0066] For example, if the minimum included angle is determined to be less than or equal to the preset angle, it means that the robot has not suddenly made a large turn during the movement, and that the high-cost points representing obstacles have been marked on the map, so there is no need to edit the map at this time.
[0067] In this embodiment, a circle is drawn based on the robot's own dimensions. The first intersection point of the circle with the first navigation route and the second intersection point of the circle with the second navigation route are determined. When the minimum angle between the first line connecting the center point and the first intersection point and the second line connecting the center point and the second intersection point is greater than a preset angle, it is determined that the robot has suddenly made a large turn during its journey. It is assumed that the large turn is caused by an obstacle not marked on the map. Therefore, the first intersection point is determined as the first target point for representing the transparent obstacle, thus realizing the rapid determination of the target point for representing the transparent obstacle.
[0068] In one embodiment, Figure 4 This is a second flowchart illustrating the path planning method provided in this embodiment of the invention, as shown below. Figure 4 As shown, in step 201 above, when the robot is detected to be in a stopped state, the second navigation route is replanned based on the robot's first current stopping position and target position. This can be achieved through the following steps:
[0069] Step 2011: Plan the first navigation route based on the starting position and the target position.
[0070] For example, the robot uses a navigation planning algorithm to plan a path based on a pre-generated map, starting position, and target position, generating a first navigation route.
[0071] It should be noted that the navigation planning algorithm can be A* algorithm, Dijkstra algorithm or D* algorithm, etc., and this invention does not limit it.
[0072] Step 2012: Determine the predicted duration based on the length of the first navigation route and the robot's driving speed.
[0073] For example, after generating the first navigation route, the length of the first navigation route is calculated, and the length of the first navigation route is divided by the robot's driving speed to obtain the predicted duration.
[0074] Step 2013: If it is determined that the robot's travel time based on the first navigation route is greater than the predicted time, and the robot is detected to be in a stopped state, a second navigation route is replanned based on the robot's first current stopping position and target position.
[0075] For example, when the robot is traveling along the first navigation route, the travel time is recorded. If the travel time is determined to be longer than the preset time, it means that the robot is not traveling to the target location according to the first navigation route and may have encountered obstacles. The presence of obstacles causes the robot to repeatedly cycle through navigation, wasting time. Therefore, when the travel time is determined to be longer than the preset time, the robot abandons navigation based on the first navigation route. It is necessary to re-plan the second navigation route based on the robot's first current stopping position and the target position, using a navigation planning algorithm, when the robot is detected to be in a stopped state.
[0076] In this embodiment, if it is determined that the robot's travel time based on the first navigation route is longer than the predicted time and the robot is detected to be in a stopped state, the robot will abandon navigation based on the first navigation route and needs to replan the second navigation route based on the robot's first current stopping position and target position in order to avoid the robot repeatedly circling in the transparent obstacle environment.
[0077] In one embodiment, Figure 5 This is the third flowchart illustrating the path planning method provided in this embodiment of the invention, as shown below. Figure 5 As shown, after step 203, the path planning method further includes the following steps:
[0078] Step 204: During the process of the robot traveling from the first current stopping position based on the second navigation route, if it is detected that the robot is in a stopped state again, a third navigation route is replanned based on the robot's second current stopping position and the target position.
[0079] For example, during the process of the robot traveling from the first current stopping position based on the second navigation route, the optical sensor in the robot detects obstacles in real time. When an obstacle is detected during the robot's travel, the robot will stop traveling because it is too close to the obstacle or hits the obstacle, that is, the robot is in a stopped state again. Then, the information of the second navigation route being executed is recorded, specifically the coordinate information of each sampling point in the second navigation route and the direction information of the second navigation route, and the second current stopping position of the robot in the stopped state is obtained. Based on the robot's second current stopping position and the target position, the navigation planning algorithm is used to re-plan the path to obtain the re-planned third navigation route.
[0080] Step 205: Based on the second navigation route and the third navigation route, determine whether there is a second target point, which is used to characterize a transparent obstacle.
[0081] For example, the coordinate information of each sampling point in the recorded second navigation route and the direction information of the second navigation route can characterize the second navigation route. Then, by combining the second navigation route and the replanned third navigation route, it is determined whether there is still a second target point that characterizes the transparent obstacle. If it is determined that there is still a second target point that characterizes the transparent obstacle, it is determined that the map needs to be edited, that is, the high-cost point used to characterize the transparent obstacle, which is the second target point, is marked on the map. If it is determined that there is no second target point that characterizes the transparent obstacle, it is determined that the map does not need to be edited.
[0082] Step 206: If the second target point exists, mark the second target point on the map based on its location; the second target point is the point that the robot avoids when planning a new navigation route based on the marked map.
[0083] For example, when a second target point representing a transparent obstacle exists, it is determined that the map needs to be edited again. That is, the position of the second target point in the map is also marked as a high-cost point to represent a transparent obstacle. In this way, the robot can then perform path planning based on the map after marking high-cost points twice, so as to avoid all high-cost points in the map after marking high-cost points, that is, to avoid all transparent obstacles, so that there are no transparent obstacles in the new navigation route, thereby avoiding the robot repeatedly navigating in the transparent obstacle environment.
[0084] It should be noted that during the process of the robot traveling from the second current stopping position based on the third navigation route, if it is detected that the robot is in a stopped state again, the third current stopping position is determined as the new second current stopping position, and the process returns to step 204, which involves replanning the third navigation route based on the robot's second current stopping position and the target position, until the robot reaches the target position. This allows all high-cost points representing transparent obstacles in the area covered by the map to be marked on the map.
[0085] In this embodiment, if the robot stops again while traveling along the second navigation route, a third navigation route is replanned based on the robot's second current stopping position and target position. Based on the second and third navigation routes, it is determined whether there is still a second target point representing a transparent obstacle. If there is still a second target point, it is marked on the map again. This allows the robot to avoid all target points representing transparent obstacles when planning a new navigation route based on the marked map, thereby avoiding repeated looping navigation in the transparent obstacle environment and further improving navigation efficiency.
[0086] In one embodiment, after marking the target point on the map, the path planning method further includes the following steps:
[0087] After marking the target point on the map, a timer is started; once the preset time has elapsed, the target point is deleted.
[0088] The target point includes either the first target point or the second target point; the preset duration is used to characterize the life cycle of the target point.
[0089] For example, after each target point representing a transparent obstacle is marked on the map, a timer is started. When the timer reaches the preset duration, it means that the target point has exceeded its lifespan on the map, and the target point needs to be deleted from the map.
[0090] In this embodiment, after the target point is marked on the map, a timer is started. When the timer reaches the preset duration, the target point is deleted to avoid the transparent obstacle represented by the target point being a dynamic transparent obstacle, thereby improving the accuracy of map creation and further improving the accuracy of navigation.
[0091] In one embodiment, after marking the target point on the map, the path planning method further includes the following steps:
[0092] After marking the target point on the map, a monitoring instruction is sent to the monitoring device. The monitoring instruction includes the location of the target point. Upon receiving a notification message from the monitoring device, the target point is deleted. The notification message is sent by the monitoring device when it detects that the transparent obstacle at the location of the target point has disappeared.
[0093] The target point includes either the first target point or the second target point.
[0094] For example, after marking a target point on the map, the robot can send a monitoring command, including the location of the target point, to a monitoring device in the area where the robot operates. When the monitoring device receives the monitoring command from the robot, it controls the monitoring device to rotate to the location of the target point via a pan-tilt-zoom (PTZ) and collects video at the target point. When it determines, based on the collected video, that the transparent obstacle at the target point has been removed, it sends a notification message to the robot that the transparent obstacle at the target point has disappeared. When the robot receives the notification message and determines that the transparent obstacle at the target point has disappeared, it deletes the target point from the map.
[0095] In this embodiment, after marking the target point on the map, a monitoring command is sent to the monitoring device to monitor the transparent obstacles at the target point. When the robot receives a notification message from the monitoring device that the transparent obstacles at the target point have disappeared, it deletes the target point from the map, thereby improving the accuracy of map creation and further improving the accuracy of navigation.
[0096] The path planning apparatus provided by the present invention will be described below. The path planning apparatus described below and the path planning method described above can be referred to in correspondence.
[0097] Figure 6 This is a schematic diagram of the path planning device provided in an embodiment of the present invention, as shown below. Figure 6 As shown, the path planning device 600 includes a first planning unit 601, a first determining unit 602, and a first marking unit 603; wherein:
[0098] The first planning unit 601 is used to replan the second navigation route based on the robot's first current stopping position and the target position when the robot is detected to be in a stopped state during the process of the robot traveling based on the first navigation route.
[0099] The first determining unit 602 is used to determine whether a first target point exists based on the first navigation route and the second navigation route, wherein the first target point is used to characterize a transparent obstacle;
[0100] The first marking unit 603 is used to mark the first target point on the map based on the location of the first target point when the first target point exists; the first target point is a point that the robot avoids when planning a new navigation route based on the marked map.
[0101] The path planning device provided by this invention, when detecting that the robot is in a stopped state while traveling on a first navigation route, replans a second navigation route based on the robot's first current stopping position and target position. Based on the first and second navigation routes, it determines whether there is a first target point representing a transparent obstacle. If the first target point exists, it marks the first target point on the map, so that when the robot plans a new navigation route based on the marked map, it can avoid the first target point representing a transparent obstacle. This can prevent the robot from repeatedly circling in a transparent obstacle environment and improve navigation efficiency.
[0102] Based on any of the above embodiments, the first determining unit 602 is specifically used for:
[0103] A circle is drawn with the robot's first current stopping position as the center point and based on a preset length;
[0104] Determine the first intersection point of the circle and the first navigation route, and the second intersection point of the circle and the second navigation route;
[0105] Determine the minimum angle between the first line connecting the center point and the first intersection point and the second line connecting the center point and the second intersection point;
[0106] If the minimum included angle is greater than a preset angle, the first intersection point is determined as the first target point.
[0107] Based on any of the above embodiments, the first planning unit 601 is specifically used for:
[0108] The first navigation route is planned based on the starting position and the target position;
[0109] The prediction duration is determined based on the length of the first navigation route and the robot's driving speed;
[0110] If it is determined that the robot's travel time based on the first navigation route is greater than the predicted time, and the robot is detected to be in a stopped state, a second navigation route is replanned based on the robot's first current stopping position and target position.
[0111] Based on any of the above embodiments, the path planning device 600 further includes:
[0112] The second planning unit is used to replan a third navigation route based on the robot's second current stopping position and the target position when the robot is detected to be stopped again during the process of the robot traveling from the first current stopping position based on the second navigation route.
[0113] The second determining unit is used to determine whether a second target point exists based on the second navigation route and the third navigation route, wherein the second target point is used to characterize a transparent obstacle;
[0114] The second marking unit is used to mark the second target point on the map based on the location of the second target point when the second target point exists; the second target point is a point that the robot avoids when planning a new navigation route based on the marked map.
[0115] Based on any of the above embodiments, the path planning device 600 further includes:
[0116] A timing unit is used to start timing after a target point is marked on the map; the target point includes the first target point or the second target point.
[0117] The first deletion unit is used to delete the target point when the timer reaches a preset duration.
[0118] Based on any of the above embodiments, the path planning device 600 further includes:
[0119] The sending unit is configured to send a monitoring instruction to the monitoring device after marking the target point on the map. The monitoring instruction includes the location of the target point, and the target point includes either the first target point or the second target point.
[0120] The second deletion unit is used to delete the target point upon receiving a notification message from the monitoring device; the notification message is sent by the monitoring device when it detects that the transparent obstacle at the location of the target point has disappeared.
[0121] Based on any of the above embodiments, the path planning device 600 further includes:
[0122] The third determining unit is used to determine that the first target point does not exist when the minimum included angle is less than or equal to the preset angle.
[0123] Figure 7 This is a schematic diagram of the physical structure of the robot provided by the present invention, as shown below. Figure 7As shown, the robot may include a processor 710, a communication interface 720, a memory 730, and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 can call logical instructions in the memory 730 to execute a path planning method, which includes: while the robot is traveling based on a first navigation route, if it is detected that the robot is in a stopped state, replanning a second navigation route based on the robot's first current stopping position and target position;
[0124] Based on the first navigation route and the second navigation route, it is determined whether there is a first target point, which is used to characterize a transparent obstacle;
[0125] If the first target point exists, mark the first target point on the map based on its location; the first target point is a point that the robot avoids when planning a new navigation route based on the marked map.
[0126] Furthermore, the logical instructions in the aforementioned memory 730 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0127] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being able to be stored on a non-transitory computer-readable storage medium, the computer program being executed by a processor, the computer being able to execute the path planning method provided by the above methods, the method including: during the process of the robot traveling based on a first navigation route, when it is detected that the robot is in a stopped state, replanning a second navigation route based on the robot's first current stopping position and target position;
[0128] Based on the first navigation route and the second navigation route, it is determined whether there is a first target point, which is used to characterize a transparent obstacle;
[0129] If the first target point exists, mark the first target point on the map based on its location; the first target point is a point that the robot avoids when planning a new navigation route based on the marked map.
[0130] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the path planning methods provided by the above methods, the method comprising: during the process of a robot traveling based on a first navigation route, when it is detected that the robot is in a stopped state, replanning a second navigation route based on the robot's first current stopping position and target position;
[0131] Based on the first navigation route and the second navigation route, it is determined whether there is a first target point, which is used to characterize a transparent obstacle;
[0132] If the first target point exists, mark the first target point on the map based on its location; the first target point is a point that the robot avoids when planning a new navigation route based on the marked map.
[0133] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0134] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A path planning method, characterized in that, include: During the process of the robot traveling based on the first navigation route, if the robot is detected to be in a stopped state, a second navigation route is replanned based on the robot's first current stopping position and target position; Based on the first navigation route and the second navigation route, it is determined whether there is a first target point, which is used to characterize a transparent obstacle; If the first target point exists, mark the first target point on the map based on its location; The first target point is the point that the robot avoids when planning a new navigation route based on the marked map; Determining whether a first target point exists based on the first navigation route and the second navigation route includes: A circle is drawn with the robot's first current stopping position as the center point, based on a preset length, where the preset length is determined based on the shape of the robot; Determine the first intersection point of the circle and the first navigation route, and the second intersection point of the circle and the second navigation route. The first intersection point is the intersection point of the first navigation route with the circle when it extends the preset length in the forward direction, and the second intersection point is the intersection point of the second navigation route with the circle when it extends the preset length in the forward direction. Determine the minimum angle between the first line connecting the center point and the first intersection point and the second line connecting the center point and the second intersection point; If the minimum included angle is greater than a preset angle, the first intersection point is determined as the first target point.
2. The path planning method according to claim 1, characterized in that, The step of replanning a second navigation route based on the robot's first current stopping position and target position when the robot is detected to be in a stopped state includes: The first navigation route is planned based on the starting position and the target position; The prediction duration is determined based on the length of the first navigation route and the robot's driving speed; If it is determined that the robot's travel time based on the first navigation route is greater than the predicted time, and the robot is detected to be in a stopped state, a second navigation route is replanned based on the robot's first current stopping position and target position.
3. The path planning method according to claim 1 or 2, characterized in that, The method further includes: During the process of the robot traveling from the first current stopping position based on the second navigation route, if it is detected that the robot is stopped again, a third navigation route is replanned based on the robot's second current stopping position and the target position; Based on the second navigation route and the third navigation route, it is determined whether a second target point exists, the second target point being used to characterize a transparent obstacle; If the second target point exists, the second target point is marked on the map based on its location; the second target point is a point that the robot avoids when planning a new navigation route based on the marked map.
4. The path planning method according to claim 3, characterized in that, The method further includes: After a target point is marked on the map, a timer is started; the target point includes either the first target point or the second target point. The target point is deleted when the preset time is reached.
5. The path planning method according to claim 3, characterized in that, The method further includes: After marking the target point on the map, a monitoring instruction is sent to the monitoring device. The monitoring instruction includes the location of the target point, which may be either the first target point or the second target point. Upon receiving a notification message from the monitoring device, the target point is deleted; the notification message is sent by the monitoring device after detecting the disappearance of the transparent obstacle at the location of the target point.
6. The path planning method according to claim 1, characterized in that, The method further includes: If the minimum included angle is less than or equal to the preset angle, it is determined that the first target point does not exist.
7. A path planning device, characterized in that, include: The first planning unit is used to replan the second navigation route based on the robot's first current stopping position and the target position when the robot is detected to be in a stopped state during the robot's travel based on the first navigation route. The first determining unit is configured to determine whether a first target point exists based on the first navigation route and the second navigation route, wherein the first target point is used to characterize a transparent obstacle; The first marking unit is used to mark the first target point on the map based on the location of the first target point when the first target point exists; the first target point is a point that the robot avoids when planning a new navigation route based on the marked map; The first determining unit is specifically used for: A circle is drawn with the robot's first current stopping position as the center point, based on a preset length, where the preset length is determined based on the shape of the robot; Determine the first intersection point of the circle and the first navigation route, and the second intersection point of the circle and the second navigation route. The first intersection point is the intersection point of the first navigation route with the circle when it extends the preset length in the forward direction, and the second intersection point is the intersection point of the second navigation route with the circle when it extends the preset length in the forward direction. Determine the minimum angle between the first line connecting the center point and the first intersection point and the second line connecting the center point and the second intersection point; If the minimum included angle is greater than a preset angle, the first intersection point is determined as the first target point.
8. A robot comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the path planning method as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the path planning method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Navigation method, device, navigation robot and storage medium
CN110549339A
Path planning method and electronic equipment
CN113867371A
