Robot path planning method, device, robot and computer-readable storage medium
By observing and analyzing the local dynamic characteristics of the target human body, judging its observation behavior and modifying the driving path, the robot can effectively avoid human interference, solving the problem of difficulty in avoiding interference in the existing technology and improving its operation stability under human interference. sex.
Patent Information
- Application Number
- CN202111023796.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-01
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-09-01
AI Technical Summary
It is difficult for existing robots to avoid human interference, especially when they are interfered by others during their normal operation, which affects task execution.
By observing the target human body within the visual range of the robot, it captures its local dynamic characteristics, determines whether there is observation behavior, and decides whether to modify the current driving path to deviate from the target human body based on the observation duration.
This enables the robot to avoid interference from the target human body in advance, improves the ability to avoid human interference, and solves the problem in the existing technology that the robot is difficult to avoid interference.
Smart Images

Figure CN113848882B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a robot path planning method, device, robot and computer-readable storage medium. Background Art
[0002] As labor costs increase, robots replacing human labor has gradually become a mainstream trend, and their applications in various fields are becoming more and more extensive. As a device that runs according to a program, the flexibility of robots is limited. If someone interferes with the robot during its normal operation, it is likely to affect the robot's normal execution of tasks. Based on the existing program, it is difficult for the robot to avoid these interferences. Summary of the invention
[0003] The main purpose of the present invention is to provide a robot path planning method, device, robot and computer-readable storage medium, aiming to solve the technical problem that existing robots are difficult to avoid human interference.
[0004] To achieve the above object, the present invention provides a robot path planning method, which is applied to a robot and includes:
[0005] Observe a target human body within the visual range of the robot and capture local dynamic features of the target human body;
[0006] If it is determined according to the local dynamic features that the target human body has observed the robot, then the observation time of the target human body is recorded;
[0007] If the observation time meets a preset condition, the current driving path of the robot is modified to deviate from the target human body.
[0008] Optionally, the step of observing a target human body within the visual range of the robot and capturing local dynamic features of the target human body comprises:
[0009] Identify all human bodies within the visual range of the robot, and select a human body whose distance to the robot is less than a preset distance threshold from all human bodies as the target human body;
[0010] The head region of the target human body is identified based on a preset human body template, and the dynamic features in the head region are captured as the local dynamic features.
[0011] Optionally, the step of identifying the head region of the target human body based on a preset human body template and capturing dynamic features within the head region as the local dynamic features includes:
[0012] Identifying the head region of the target human body based on the human body template, and identifying the eye socket region in the head region;
[0013] Capturing the head deflection feature of the head area and / or the relative position feature of the pupil and the eye socket in the eye socket area;
[0014] The head deflection feature and / or the relative position feature are used as the local dynamic feature.
[0015] Optionally, if it is determined according to the local dynamic feature that the target human body has an observation behavior towards the robot, the step includes:
[0016] If the head of the target person in the head area is deflected to face the direction of the robot, and / or the pupil of the target person in the eye socket area deviates from the center of the eye socket to the side of the robot opposite to the target person, it is determined based on the local dynamic characteristics that the target person is observing the robot.
[0017] Optionally, if the observation time meets a preset condition, the step of modifying the current driving path of the robot includes:
[0018] Determining whether the observation time reaches a preset first time;
[0019] If the observation time reaches a preset first time, the current driving path is modified according to a preset first deviation amplitude.
[0020] Optionally, after the step of modifying the current driving path according to a preset first deviation amplitude if the observation duration reaches a preset first duration, the method further includes:
[0021] Determine whether the observation duration reaches a preset second duration, wherein the preset second duration is greater than the preset first duration;
[0022] If the observation time reaches a preset second time, the current driving path is modified according to a preset second deviation range, wherein the preset second deviation range is greater than the preset first deviation range.
[0023] Optionally, after the step of determining whether the observation duration reaches a preset first duration, the method further includes:
[0024] If the observation time does not reach the preset first time, then when it is detected that the distance between the target human body and the robot decreases, the current driving path is modified according to a preset third deviation amplitude.
[0025] In addition, to achieve the above object, the present invention also provides a robot path planning device, the robot path planning device comprising:
[0026] A local feature capture module, used to observe a target human body within the visual range of the robot and capture local dynamic features of the target human body;
[0027] an observation duration recording module, configured to record the observation duration of the target human body if it is determined according to the local dynamic features that the target human body has observed the robot;
[0028] The driving path deviation module is used to modify the current driving path of the robot to deviate from the target human body if the observation time meets a preset condition.
[0029] Optionally, the local feature capturing module includes:
[0030] a target human body selection unit, used for identifying all human bodies within the visual range of the robot, and selecting a human body whose distance to the robot is less than a preset distance threshold from all human bodies as the target human body;
[0031] The dynamic feature capturing unit is used to identify the head region of the target human body based on a preset human body template, and capture the dynamic features in the head region as the local dynamic features.
[0032] Optionally, the dynamic feature capturing unit is further used for:
[0033] Identifying the head region of the target human body based on the human body template, and identifying the eye socket region in the head region;
[0034] Capturing the head deflection feature of the head area and / or the relative position feature of the pupil and the eye socket in the eye socket area;
[0035] The head deflection feature and / or the relative position feature are used as the local dynamic feature.
[0036] Optionally, the observation duration recording module includes:
[0037] A feature determination unit is used to determine, based on the local dynamic features, that the target person is observing the robot if the head of the target person in the head area is deflected to face the robot, and / or the pupil of the target person in the eye socket area deviates from the eye socket center to the side of the robot opposite to the target person.
[0038] Optionally, the driving path deviation module includes:
[0039] A first duration determination unit, used to determine whether the observation duration reaches a preset first duration;
[0040] The first amplitude modification unit is used to modify the current driving path according to a preset first deviation amplitude if the observation duration reaches a preset first duration.
[0041] Optionally, the driving path deviation module further includes:
[0042] A second duration determination unit, configured to determine whether the observation duration reaches a preset second duration, wherein the preset second duration is greater than the preset first duration;
[0043] The second amplitude modification unit is used to modify the current driving path according to a preset second deviation amplitude if the observation time reaches a preset second time, wherein the preset second deviation amplitude is greater than the preset first deviation amplitude.
[0044] Optionally, the driving path deviation module further includes:
[0045] The third amplitude modification unit is used to modify the current driving path according to a preset third deviation amplitude when it is detected that the distance between the target human body and the robot decreases if the observation time does not reach the preset first time.
[0046] In addition, to achieve the above-mentioned purpose, the present invention also provides a robot, which includes: a memory, a processor, and a robot path planning program stored in the memory and executable on the processor, and the robot path planning program implements the steps of the above-mentioned method when executed by the processor.
[0047] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a robot path planning program is stored, and when the robot path planning program is executed by a processor, the steps of the above-mentioned method are implemented.
[0048] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, including a computer program, which implements the steps of the robot path planning method as described above when executed by a processor.
[0049] The present invention observes a target human body within a visual range and captures it in time when local dynamic features appear, and then determines whether the target human body has observation behavior based on the local dynamic features, so that the robot can characterize the observation behavior of the target human body; then further determines whether it is necessary to modify the current driving path of the robot by judging the observation time of the target human body to the robot, and when the observation time meets a preset condition, it is considered that the target human body has an intention to interfere with the robot, so the current driving path is modified to deviate from the target human body, so that the robot can avoid the interference of the target human body in advance, thereby solving the technical problem that the existing robots are difficult to avoid human interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a schematic diagram of the robot structure of the hardware operating environment involved in the embodiment of the present invention;
[0051] Figure 2 A schematic diagram of a flow chart of a first embodiment of a robot path planning method according to the present invention;
[0052] Figure 3 Schematic diagram of the functional modules of the robot path planning device of the present invention.
[0053] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0055] like Figure 1 As shown, Figure 1 It is a schematic diagram of the robot structure of the hardware operating environment involved in the embodiment of the present invention.
[0056] like Figure 1 As shown, the robot may include: a processor 1001, such as a CPU, a communication bus 1002, and a memory 1003. The communication bus 1002 is used to realize the connection and communication between these components. The memory 1003 may be a high-speed RAM memory or a stable memory (non-volatile memory). The memory 1003 may also be a storage device independent of the aforementioned processor 1001.
[0057] Those skilled in the art will understand that Figure 1 The robot structure shown in the figure does not constitute a limitation of the robot, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0058] like Figure 1 As shown, the memory 1003 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a robot path planning program.
[0059] exist Figure 1 In the robot shown, the processor 1001 can be used to call the robot path planning program stored in the memory 1003 and perform the following operations:
[0060] Observe a target human body within the visual range of the robot and capture local dynamic features of the target human body;
[0061] If it is determined according to the local dynamic features that the target human body has observed the robot, then the observation time of the target human body is recorded;
[0062] If the observation time meets a preset condition, the current driving path of the robot is modified to deviate from the target human body.
[0063] Furthermore, the step of observing the target human body within the visual range of the robot and capturing the local dynamic features of the target human body includes:
[0064] Identify all human bodies within the visual range of the robot, and select a human body whose distance to the robot is less than a preset distance threshold from all human bodies as the target human body;
[0065] The head region of the target human body is identified based on a preset human body template, and the dynamic features in the head region are captured as the local dynamic features.
[0066] Furthermore, the step of identifying the head region of the target human body based on a preset human body template and capturing the dynamic features in the head region as the local dynamic features includes:
[0067] Identifying the head region of the target human body based on the human body template, and identifying the eye socket region in the head region;
[0068] Capturing the head deflection feature of the head area and / or the relative position feature of the pupil and the eye socket in the eye socket area;
[0069] The head deflection feature and / or the relative position feature are used as the local dynamic feature.
[0070] Furthermore, if it is determined according to the local dynamic feature that the target human body has an observation behavior towards the robot, it includes:
[0071] If the head of the target person in the head area is deflected to face the direction of the robot, and / or the pupil of the target person in the eye socket area deviates from the center of the eye socket to the side of the robot opposite to the target person, it is determined based on the local dynamic characteristics that the target person is observing the robot.
[0072] Furthermore, if the observation time meets a preset condition, the step of modifying the current driving path of the robot includes:
[0073] Determining whether the observation time reaches a preset first time;
[0074] If the observation time reaches a preset first time, the current driving path is modified according to a preset first deviation amplitude.
[0075] Further, after the step of modifying the current driving path according to the preset first deviation amplitude if the observation time reaches the preset first time, the processor 1001 can be used to call the robot path planning program stored in the memory 1003 and perform the following operations:
[0076] Determine whether the observation duration reaches a preset second duration, wherein the preset second duration is greater than the preset first duration;
[0077] If the observation time reaches a preset second time, the current driving path is modified according to a preset second deviation range, wherein the preset second deviation range is greater than the preset first deviation range.
[0078] Further, after the step of determining whether the observation time has reached a preset first time, the processor 1001 may be used to call the robot path planning program stored in the memory 1003 and perform the following operations:
[0079] If the observation time does not reach the preset first time, then when it is detected that the distance between the target human body and the robot decreases, the current driving path is modified according to a preset third deviation amplitude.
[0080] Based on the above hardware structure, various embodiments of the robot path planning method of the present invention are proposed.
[0081] As labor costs increase, robots replacing human labor has gradually become a mainstream trend, and their applications in various fields are becoming more and more extensive. As a device that runs according to a program, the flexibility of robots is limited. If someone interferes with the robot during its normal operation, it is likely to affect the robot's normal execution of tasks. Based on the existing program, it is difficult for the robot to avoid these interferences.
[0082] In order to solve the above technical problems, the present invention provides a robot path planning method, namely, by observing a target human body within the visual range and capturing it in time when local dynamic features appear, and then determining whether the target human body has observation behavior based on the local dynamic features, so that the robot can characterize the observation behavior of the target human body; then further determining whether it is necessary to modify the current driving path of the robot by judging the observation time of the target human body on the robot, and when the observation time meets the preset conditions, it is considered that the target human body has the intention to interfere with the robot, so the current driving path is modified to deviate from the target human body, so that the robot can avoid the interference of the target human body in advance, thereby solving the technical problem that the existing robots are difficult to avoid human interference.
[0083] Reference Figure 2 , Figure 2 This is a flow chart of the first embodiment of the robot path planning method.
[0084] A first embodiment of the present invention provides a robot path planning method, the robot path planning method is applied to a robot, the robot path planning method is applied to a robot, and the robot path planning method includes:
[0085] Step S10, observing a target human body within the visual range of the robot, and capturing local dynamic features of the target human body;
[0086] In this embodiment, the visual range refers to the maximum range of the external scene that the robot can observe through the visual sensors or cameras and other devices. The target human body refers to the human body that currently appears within the visual range of the robot and needs to be continuously observed by the robot to further confirm its observation intention. The number of human bodies can be one or more. Local dynamic features refer to the characteristics of the local area of the target human body that changes dynamically during the observation process of the robot. Specifically, the local area of the target human body can be the head area, the torso area, the arm area, etc.
[0087] Specifically, since robots are often in the same scene as people in the process of performing daily tasks, and some intentional or unintentional behaviors of these people may interfere with the normal operation of the robot, the robot needs to avoid the target human body with interference intention in advance before the interference occurs. After turning on the visual function, the robot observes all human bodies within the visual range, and then all human bodies can be used as target human bodies, or some human bodies can be selected from all human bodies as target human bodies through preset screening rules, wherein the preset screening rules can be to select a preset number of human bodies closest to the robot, or to select human bodies within a preset distance range from the robot, etc. After determining the target human bodies that need to be further observed, the robot can assign corresponding marks to these target human bodies to distinguish them from other human bodies, and start to continuously observe these target human bodies, so as to capture the local dynamic characteristics of the target human bodies in time when the target human bodies make corresponding actions.
[0088] Step S20, if it is determined according to the local dynamic features that the target human body has an observation behavior towards the robot, then the observation time of the target human body is recorded;
[0089] In this embodiment, observation behavior is the first basis for determining whether the target person has the intention to interfere with the robot, which refers to the target person's gaze behavior on the robot. Observation duration refers to the duration of the target person's continuous gaze on the robot, and the robot can continuously observe the target person to continuously accumulate this duration.
[0090] Specifically, after capturing the local dynamic features of the target human body, the robot analyzes the local dynamic features to determine whether the target human body has observed the robot based on the local dynamic features. If the robot determines that the target human body has observed the robot based on the local dynamic features, it means that the target human body is a human body that may have the intention to interfere with the robot, and it is necessary to further determine it through the observation time, so the observation time of the target human body is continuously recorded; if the robot does not detect the local dynamic features of the target human body, or determines that the target human body has no intention to interfere based on the local dynamic features, it means that the possibility of the target human body having the intention to interfere with the robot is small, and there is no need to continuously record its observation time, and it is only necessary to continue to observe its local dynamic features that may appear later.
[0091] Step S30: If the observation time meets a preset condition, the current driving path of the robot is modified to deviate from the target human body.
[0092] In this embodiment, the preset condition refers to the final judgment condition for further determining whether the target human body has the intention to interfere, which can be specifically exceeding one or more preset time thresholds, and different time thresholds can correspond to the same or different modification ranges. Since the purpose of modifying the robot's current driving path is to make the robot deviate from the target human body to avoid interference, the stronger the robot's predicted intention to interfere with the target human body, the greater the deviation range of the modification of the robot's current driving path. The current driving path refers to the driving path determined by the robot according to the current task, which can be specifically stopping in place, or moving in a certain direction, etc.
[0093] Specifically, the robot determines whether the observation time of the target human body meets the preset conditions. If the robot determines that the observation time meets the preset conditions, it means that the target human body has a clear intention to interfere with the robot, and the current driving path needs to be modified so that the robot can avoid the target human body during driving; if the robot determines that the observation time does not meet the preset conditions, it means that the target human body has no clear intention to interfere with the robot, and the current driving path can be temporarily not modified, and the robot continues to observe the target human body.
[0094] In this embodiment, by observing the target human body within the visual range and capturing it in time when local dynamic features appear, and then determining whether the target human body has observation behavior based on the local dynamic features, the robot can characterize the observation behavior of the target human body; then further determining whether the current driving path of the robot needs to be modified by judging the observation time of the target human body on the robot, and when the observation time meets the preset conditions, it is considered that the target human body has the intention to interfere with the robot, so the current driving path is modified to deviate from the target human body, so that the robot can avoid the interference of the target human body in advance, solving the technical problem that existing robots are difficult to avoid human interference.
[0095] Furthermore, based on the above Figure 2 The first embodiment shown in the figure provides a second embodiment of the robot path planning method of the present invention. In this embodiment, step S10 includes:
[0096] Step S11, identifying all human bodies within the visual range of the robot, and selecting a human body whose distance to the robot is less than a preset distance threshold from all human bodies as the target human body;
[0097] Step S12, identifying the head region of the target human body based on a preset human body template, and capturing dynamic features in the head region as the local dynamic features.
[0098] In this embodiment, the preset distance threshold can be flexibly set according to the actual situation, but it should not be set too large. The robot does not regard all human bodies within the current visual range as target human bodies, but will judge the distance between all human bodies within the visual range and the robot, and only those human bodies whose distance from the robot is less than the preset distance threshold will be regarded as target human bodies. The reason for this setting is that, on the one hand, it is difficult for the robot to maintain good recognition accuracy for human bodies that are too far away, and on the other hand, the possibility of human bodies that are far away interfering with the robot is relatively low, so it can be ignored. The robot screens all human bodies within the visual orientation to obtain target human bodies within a certain distance range, which not only maintains recognition accuracy, but also reduces the hardware cost of the robot.
[0099] After determining the target human body that needs to be focused on at present, the robot uses the preset human body template to identify the location of the head area of the target human body, and continuously tracks the head area of the target human body to capture the dynamic features in the head area, and use them as the above-mentioned local dynamic features, that is, the local in this embodiment refers to the head area. It should be noted that the dynamic features in the head area can be the dynamic features of the entire head, or the dynamic features in a smaller range in the head area.
[0100] Further, step S12 includes:
[0101] Step S121, identifying the head region of the target human body based on the human body template, and identifying the eye socket region in the head region;
[0102] Step S122, capturing the head deflection feature of the head area and / or the relative position feature of the pupil and the eye socket in the eye socket area;
[0103] Step S123: Using the head deflection feature and / or the relative position feature as the local dynamic feature.
[0104] In this embodiment, the local dynamic features refer to the head deflection features and / or the relative position features of the pupil and eye socket of the target human body. The robot uses a preset human body template to identify the area where the head of the target human body is located, and the area where the eye socket is located in the head, to complete the recognition of the head and eye socket, the purpose of which is to determine whether the target human body is observing the robot. When the head of the target human body deflects, and / or the relative position of the pupil and eye socket of the target human body changes, these changes are captured as the above-mentioned local dynamic features.
[0105] Furthermore, if it is determined in step S20 that the target human body has an observation behavior toward the robot according to the local dynamic feature, the step includes:
[0106] Step A1, if the head of the target human body in the head area is deflected to face the direction of the robot, and / or the pupil of the target human body in the eye socket area deviates from the center of the eye socket to the side of the robot opposite to the target human body, it is determined based on the local dynamic characteristics that the target human body is observing the robot.
[0107] In this embodiment, the local dynamic features that can specifically reflect that the target human body is paying attention to the robot are: the head of the target human body is tilted in the direction of the robot (specifically, it can be judged based on the direction in which the face moves relative to the body. For example, if the target human body is just passing by, then its movement trajectory will still remain straight, and the body will not swing at this time. Therefore, it can be inferred that if the facial features move relative to the body at this time, it can be explained that the gaze of its eyes has also moved. Further, if the facial features move to a position facing the robot, it can be explained that the target human body is looking at the robot at this time, so that the robot can complete the judgment without a sophisticated camera); when the robot is not directly in front of the target human body, if the target human body moves its line of sight, the pupil will deviate from the center of the eye socket. Therefore, the robot can judge whether the target human body is looking at the robot based on whether the deviated side corresponds to the side of the robot relative to the target body (that is, the target body moves its line of sight toward the robot).
[0108] Therefore, the robot can judge from the two aspects of head deflection and pupil rotation. The robot judges whether the target person's head is deflected to face the robot, and / or whether the target person's pupil deviates from the center of the eye socket to the robot side relative to the target person, and judges whether the target person is looking at the robot through at least one of the two items. If at least one of the above two items is met, the robot can judge that the target person has observed the robot; if both items are not met, the robot judges that the target person has not observed the robot.
[0109] Furthermore, based on the above Figure 2 The first embodiment shown in the figure proposes a third embodiment of the robot path planning method of the present invention. In this embodiment, step S30 includes:
[0110] Step S31, determining whether the observation time reaches a preset first time;
[0111] Step S32: if the observation time reaches a preset first time, modify the current driving path according to a preset first deviation range.
[0112] In this embodiment, the first deviation amplitude refers to a smaller modification amplitude, and the first duration is preset to be a duration corresponding to the conventional modification amplitude. The specific duration value can be flexibly set according to actual needs.
[0113] The robot determines whether the observation time of the target human body with observation behavior has reached the first time length. If the robot determines that the observation time has reached the first time length, it means that the target human body with observation behavior has the intention of interference, but has not exceeded the limit. Therefore, it only needs to slightly modify the current path and modify the current driving path according to the first deviation amplitude, so that the robot can appropriately deviate from the location of the target human body. On the contrary, if the robot determines that the observation time has not reached the first time length and the target human body turns its sight away from the robot to somewhere else, it means that the target human body is just curious and will not take any action. The danger level is low, and there is no need to change the current driving path, or make a slight adjustment (the amplitude is smaller than the first deviation amplitude).
[0114] Further, step S32 includes:
[0115] Step S33, determining whether the observation duration reaches a preset second duration, wherein the preset second duration is greater than the preset first duration;
[0116] Step S34: if the observation time reaches a preset second time, modifying the current driving path according to a preset second deviation range, wherein the preset second deviation range is greater than the preset first deviation range.
[0117] In this embodiment, the second deviation amplitude refers to an amplitude greater than the first deviation amplitude, and the second duration is preset to be longer than the first duration. The specific duration value can be flexibly set according to actual needs.
[0118] After the robot determines that the observation time has reached the first time period, if the target person continues to observe the robot, the robot continues to accumulate the observation time of the target person until the observation time reaches the second time period. This indicates that the target person not only has the intention to interfere, but the intention to interfere may be relatively strong and has exceeded the limit. Therefore, the robot needs to modify the current driving path with a larger modification amplitude at this time to deviate further from the target person and avoid its interference.
[0119] Furthermore, after step S31, the method further includes:
[0120] Step B1: if the observation time does not reach the preset first time, then when it is detected that the distance between the target human body and the robot decreases, the current driving path is modified according to a preset third deviation amplitude.
[0121] In the present embodiment, the third deviation amplitude is usually set to be smaller than the first deviation amplitude, which is a very slight amplitude. In actual situations, there may be a target human body that is just walking normally or needs to deviate slightly (for example, avoiding puddles, etc.) for some reasons, which will not interfere with the robot. At this time, the robot can walk as usual or deviate slightly. In this way, other risks and consumption caused by deviation can be reduced. Therefore, if the robot detects that the target human body is approaching the robot, even if the observation time of the target human body observing the robot has not exceeded the preset first time length, the current driving path can be fine-tuned (i.e., the current driving path is modified according to the third deviation amplitude as mentioned above), or the current driving path is not changed directly, and the action is carried out as usual. In addition, if the target human body approaches the robot after the observation time exceeds the preset first time length, the robot can also modify the current driving path according to the third deviation amplitude or other deviation amplitudes, or the current driving path is not changed.
[0122] This embodiment can improve the intelligence of the robot by taking corresponding processing methods for different degrees of interference intentions of the target human body, while avoiding danger and reducing other risks and consumption caused by deviation.
[0123] The present invention also provides a robot path planning device, such as Figure 3 As shown, the robot path planning device includes:
[0124] A local feature capturing module 10 is used to observe a target human body within the visual range of the robot and capture local dynamic features of the target human body;
[0125] An observation duration recording module 20, configured to record the observation duration of the target human body if it is determined according to the local dynamic features that the target human body has observed the robot;
[0126] The driving path deviation module 30 is used to modify the current driving path of the robot to deviate from the target human body if the observation time meets a preset condition.
[0127] The invention also provides a robot.
[0128] The robot includes a processor, a memory, and a robot path planning program stored in the memory and executable on the processor, wherein when the robot path planning program is executed by the processor, the steps of the robot path planning method described above are implemented.
[0129] Among them, the method implemented when the robot path planning program is executed can refer to the various embodiments of the robot path planning method of the present invention, and will not be repeated here.
[0130] The present invention also provides a computer-readable storage medium.
[0131] A robot path planning program is stored on the computer-readable storage medium of the present invention, and the robot path planning program implements the steps of the robot path planning method described above when executed by a processor.
[0132] Among them, the method implemented when the robot path planning program is executed can refer to the various embodiments of the robot path planning method of the present invention, and will not be repeated here.
[0133] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the robot path planning method as described above are implemented.
[0134] Among them, the method implemented when the computer program is executed can refer to the various embodiments of the robot path planning method of the present invention, and will not be repeated here.
[0135] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0136] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a robot) to execute the methods described in each embodiment of the present invention.
[0138] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A robot path planning method, characterized in that: The robot path planning method is applied to a robot, and the robot path planning method comprises: Observe a target human body within the visual range of the robot and capture local dynamic features of the target human body; If it is determined according to the local dynamic features that the target human body has observed the robot, then the observation time of the target human body is recorded; If the observation time meets a preset condition, modifying the current driving path of the robot to deviate from the target human body; The step of observing the target human body within the robot's visual range and capturing the local dynamic features of the target human body comprises: Identify all human bodies within the visual range of the robot, and select a human body whose distance to the robot is less than a preset distance threshold from all human bodies as the target human body; Identifying the head region of the target human body based on a preset human body template, and capturing dynamic features in the head region as the local dynamic features; The step of identifying the head region of the target human body based on a preset human body template and capturing the dynamic features in the head region as the local dynamic features comprises: Identifying the head region of the target human body based on the human body template, and identifying the eye socket region in the head region; Capturing head deflection features of the head region and / or relative position features of the pupil and eye socket in the eye socket region; Using the head deflection feature and / or the relative position feature as the local dynamic feature; If it is determined according to the local dynamic feature that the target human body has an observation behavior towards the robot, the following steps are included: If the head of the target person in the head area is deflected to face the direction of the robot, and / or the pupil of the target person in the eye socket area deviates from the center of the eye socket to the side of the robot opposite to the target person, it is determined that the target person is observing the robot; If the observation time meets the preset condition, the step of modifying the current driving path of the robot includes: Determining whether the observation time reaches a preset first time; If the observation time reaches a preset first time, modifying the current driving path according to a preset first deviation amplitude; After the step of modifying the current driving path according to a preset first deviation amplitude if the observation duration reaches a preset first duration, the method further includes: Determine whether the observation duration reaches a preset second duration, wherein the preset second duration is greater than the preset first duration; If the observation time reaches a preset second time, modifying the current driving path according to a preset second deviation range, wherein the preset second deviation range is greater than the preset first deviation range; After the step of determining whether the observation time has reached a preset first time, the method further includes: If the observation time does not reach the preset first time, when it is detected that the distance between the target human body and the robot decreases, the current driving path is modified according to a preset third deviation amplitude, and the preset third deviation amplitude is smaller than the preset first deviation amplitude.
2. A robot path planning device, characterized in that: The robot path planning device comprises: A local feature capture module, used to observe a target human body within the visual range of the robot and capture local dynamic features of the target human body; an observation duration recording module, configured to record the observation duration of the target human body if it is determined according to the local dynamic features that the target human body has observed the robot; A driving path deviation module, configured to modify the current driving path of the robot to deviate from the target human body if the observation duration meets a preset condition; The local feature capturing module is further used to identify all human bodies within the visual range of the robot, and select a human body whose distance to the robot is less than a preset distance threshold from all human bodies as the target human body; Identifying the head region of the target human body based on a preset human body template, and capturing dynamic features in the head region as the local dynamic features; The step of identifying the head region of the target human body based on a preset human body template and capturing the dynamic features in the head region as the local dynamic features comprises: Identifying the head region of the target human body based on the human body template, and identifying the eye socket region in the head region; Capturing head deflection features of the head region and / or relative position features of the pupil and eye socket in the eye socket region; Using the head deflection feature and / or the relative position feature as the local dynamic feature; The observation duration recording module is further configured to determine that the target person has an observation behavior toward the robot if the head of the target person in the head area is deflected to face the robot, and / or the pupil of the target person in the eye socket area deviates from the eye socket center to the side of the robot opposite to the target person; The driving path deviation module is further used to determine whether the observation time reaches a preset first time; If the observation time reaches a preset first time, modifying the current driving path according to a preset first deviation amplitude; After the step of modifying the current driving path according to a preset first deviation amplitude if the observation duration reaches a preset first duration, the method further includes: Determine whether the observation duration reaches a preset second duration, wherein the preset second duration is greater than the preset first duration; If the observation time reaches a preset second time, modifying the current driving path according to a preset second deviation range, wherein the preset second deviation range is greater than the preset first deviation range; After the step of determining whether the observation time has reached a preset first time, the method further includes: If the observation time does not reach the preset first time, when it is detected that the distance between the target human body and the robot decreases, the current driving path is modified according to a preset third deviation amplitude, and the preset third deviation amplitude is smaller than the preset first deviation amplitude.
3. A robot, characterized in that: The robot comprises: a memory, a processor, and a robot path planning program stored in the memory and executable on the processor, wherein the robot path planning program implements the steps of the method as claimed in claim 1 when executed by the processor.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a robot path planning program, and when the robot path planning program is executed by the processor, the steps of the method as claimed in claim 1 are implemented.
Citation Information
Patent Citations
Robot arrangement and method for controlling a robot
CN104428107A
Robot interaction method and device
CN107450729A
