Robot control method and device, robot and storage medium

Through the combination of visual detection and UWB detection, the position before the target is lost is used to select the UWB detection component for target detection, which solves the problem of target loss when the robot follows and improves the control accuracy.

CN118809571AActive Publication Date: 2024-10-22BEIJING XIAOMI ROBOT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202310369925.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-07
Publication Date
2024-10-22
Estimated Expiration
2043-04-07

AI Technical Summary

Technical Problem

The robot is prone to losing its target when performing following actions, resulting in failure to follow.

Method used

By combining visual detection and UWB detection technology, when the visual detection component cannot detect the target object, the most recently detected target position is used to select the corresponding UWB detection component for target detection, thereby avoiding target loss.

Benefits of technology

It improves the control accuracy of following motion and avoids the problem of target loss caused by the limited field of view of visual detection technology and obstruction by obstacles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118809571A_ABST
    Figure CN118809571A_ABST
Patent Text Reader

Abstract

The invention relates to a robot control method and device, a robot and a storage medium, and the method is applied to the robot with a visual detection element and a plurality of UWB detection elements facing different directions. Responding to the situation that the robot does not detect the target object in the view field range of the visual detection element, and obtaining a first position of the target object in the view field range when the target object is detected in the view field range last time; according to the first position, a target UWB detection element is determined in the multiple UWB detection elements, the robot is controlled to follow the target object to move according to UWB signals collected by the target UWB detection element, and the target object is provided with a UWB element matched with the UWB detection element.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of robot technology, and in particular to a robot control method, device, robot and storage medium. Background Art

[0002] In recent years, the technology of robotics has been developing continuously, becoming more and more intelligent and automated, and the richness, stability and flexibility of actions have been improved to varying degrees. Current robots can not only complete periodic and repetitive actions such as sweeping and walking, but also perform following actions, that is, follow a target to move. However, in related technologies, when robots perform following actions, it is easy to lose the target, resulting in following failure. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a robot control method, device, robot and storage medium to solve the defects in the related art.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a robot control method, which is applied to a robot having a visual detection element and a plurality of UWB detection elements facing different directions, the method comprising:

[0005] In the process of the robot following the target object to move, in response to the robot not detecting the target object within the field of view of the visual detection element, obtaining a first position of the target object within the field of view when the target object was most recently detected within the field of view;

[0006] According to the first position, a target UWB detection element is determined among the multiple UWB detection elements, and according to the UWB signal collected by the target UWB detection element, the robot is controlled to follow the target object to move, wherein the target object is provided with a UWB element matching the UWB detection element.

[0007] In one embodiment of the present disclosure, determining a target UWB detection element among the plurality of UWB detection elements according to the first position includes:

[0008] In response to the first position being located in a first direction at the center of the field of view, a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements is determined as the target detection element.

[0009] In one embodiment of the present disclosure, the robot includes a visual detection element facing the front of the robot, a first UWB detection element facing the left side of the robot, and a second UWB detection element facing the right side of the robot;

[0010] In response to the first position being located in a first direction at the center of the field of view, determining a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements as the target detection element, comprises:

[0011] In response to the first position being located to the left of the center of the field of view, determining the first UWB detection element as the target detection element;

[0012] In response to the second position being located on the right side of the center of the field of view, the second UWB detection element is determined as the target detection element.

[0013] In one embodiment of the present disclosure, it also includes:

[0014] When the robot follows the target object, in response to the robot detecting the target object within the field of view of the visual detection element, the robot is controlled to follow the target object according to visual data collected by the visual detection element.

[0015] In one embodiment of the present disclosure, the orientation of a third UWB detection element among the plurality of UWB detection elements is the same as the orientation of the visual detection element;

[0016] The step of controlling the robot to follow the target object according to the visual data collected by the visual detection element comprises:

[0017] The robot is controlled to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element.

[0018] In one embodiment of the present disclosure, controlling the robot to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element includes:

[0019] Determining a first coordinate position of the target object in a world coordinate system according to the visual data collected by the visual detection element;

[0020] Determining a second coordinate position of the target object in the world coordinate system according to the UWB signal collected by the third UWB detection element;

[0021] A target coordinate position is determined according to the first coordinate position and the second coordinate position, and the robot is controlled to move following the target object according to the target coordinate position.

[0022] In one embodiment of the present disclosure, in response to the robot not detecting the target object within the field of view of the visual detection element, obtaining a first position of the target object within the field of view when the target object was most recently detected within the field of view includes:

[0023] In response to the robot failing to detect the target object within the field of view of the visual detection element, a first position of the target object within the field of view when the target object was last detected within a preset time period forward from the current moment is obtained.

[0024] In one embodiment of the present disclosure, it also includes:

[0025] In response to the robot failing to detect the target object within the field of view of the visual detection element and failing to detect the target object within the field of view within a preset time period forward from a current moment, it is determined that the target object is lost.

[0026] According to a second aspect of an embodiment of the present disclosure, there is provided a robot control device, which is applied to a robot having a visual detection element and a plurality of UWB detection elements facing different directions, the device comprising:

[0027] an acquisition module, configured to acquire a first position of the target object within the field of view when the target object was most recently detected within the field of view in response to the robot failing to detect the target object within the field of view of the visual detection element during the process of the robot following the target object for movement;

[0028] A motion module is used to determine a target UWB detection element among the multiple UWB detection elements according to the first position, and control the robot to follow the target object to move according to the UWB signal collected by the target UWB detection element, wherein the target object is provided with a UWB element matching the UWB detection element.

[0029] In one embodiment of the present disclosure, the motion module is used to determine the target UWB detection element among the multiple UWB detection elements according to the first position, specifically to:

[0030] In response to the first position being located in a first direction at the center of the field of view, a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements is determined as the target detection element.

[0031] In one embodiment of the present disclosure, the robot includes a visual detection element facing the front of the robot, a first UWB detection element facing the left side of the robot, and a second UWB detection element facing the right side of the robot;

[0032] The motion module is used to determine, in response to the first position being located in a first direction at the center of the field of view, a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements as the target detection element, specifically to:

[0033] In response to the first position being located to the left of the center of the field of view, determining the first UWB detection element as the target detection element;

[0034] In response to the second position being located on the right side of the center of the field of view, the second UWB detection element is determined as the target detection element.

[0035] In one embodiment of the present disclosure, the motion module is further used for:

[0036] When the robot follows the target object, in response to the robot detecting the target object within the field of view of the visual detection element, the robot is controlled to follow the target object according to visual data collected by the visual detection element.

[0037] In one embodiment of the present disclosure, the orientation of a third UWB detection element among the plurality of UWB detection elements is the same as the orientation of the visual detection element;

[0038] The motion module is used to control the robot to follow the target object to move according to the visual data collected by the visual detection element, specifically for:

[0039] The robot is controlled to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element.

[0040] In one embodiment of the present disclosure, the motion module is used to control the robot to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element, specifically for:

[0041] Determining a first coordinate position of the target object in a world coordinate system according to the visual data collected by the visual detection element;

[0042] Determining a second coordinate position of the target object in the world coordinate system according to the UWB signal collected by the third UWB detection element;

[0043] A target coordinate position is determined according to the first coordinate position and the second coordinate position, and the robot is controlled to move following the target object according to the target coordinate position.

[0044] In one embodiment of the present disclosure, the acquisition module is specifically used to:

[0045] In response to the robot failing to detect the target object within the field of view of the visual detection element, a first position of the target object within the field of view when the target object was last detected within a preset time period forward from the current moment is obtained.

[0046] In one embodiment of the present disclosure, a loss module is further included, which is used to:

[0047] In response to the robot failing to detect the target object within the field of view of the visual detection element and failing to detect the target object within the field of view within a preset time period forward from a current moment, it is determined that the target object is lost.

[0048] According to a third aspect of an embodiment of the present disclosure, a robot is provided, comprising a visual detection element, a plurality of UWB detection elements facing different directions, a memory, and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to implement the robot control method described in the first aspect when executing the computer instructions.

[0049] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect is implemented.

[0050] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0051] The robot control method provided by the embodiment of the present disclosure, in the process of the robot following the target object to move, in response to the robot not detecting the target object within the field of view, obtains the first position of the target object within the field of view when the target object was most recently detected within the field of view, and then determines the target UWB detection element among the multiple UWB detection elements based on the first position, and controls the robot to follow the target object to move based on the UWB signal collected by the target UWB detection element. This method combines the two detection methods of visual detection and UWB detection. When the visual detection element cannot detect the target object, the corresponding UWB detection element is selected to detect the target object according to the position of the target object before it is lost, thereby avoiding the problem of target loss caused by the limited field of view of the visual detection technology, obstacle occlusion, etc., and improving the control accuracy of the following movement. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0053] Figure 1 is a flow chart of a robot control method shown in an exemplary embodiment of the present disclosure;

[0054] Figure 2 is a schematic structural diagram of a robot shown in an exemplary embodiment of the present disclosure;

[0055] Figure 3 is a logic schematic diagram of a robot control method shown in an exemplary embodiment of the present disclosure;

[0056] Figure 4 is a schematic structural diagram of a robot control device shown in an exemplary embodiment of the present disclosure;

[0057] Figure 5 It is a structural block diagram of a robot shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0058] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0059] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0060] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0061] In recent years, the technology of robotics has been developing continuously, becoming more and more intelligent and automated, and the richness, stability and flexibility of actions have been improved to varying degrees. Current robots can not only complete periodic and repetitive actions such as sweeping and walking, but also perform following actions, that is, follow a target to move. However, in related technologies, when robots perform following actions, it is easy to lose the target, resulting in following failure.

[0062] Based on this, in the first aspect, at least one embodiment of the present disclosure provides a robot control method, please refer to the attached Figure 1 , which shows the process of the method, including step S101 to step S102.

[0063] The method can be applied to a robot, for example, a legged robot, which has multiple legs and can walk by stepping alternately with multiple legs. The robot can be provided with a visual detection element and multiple UWB detection elements facing different directions, wherein the visual detection element can include a depth sensor (such as a laser, a depth camera, etc.) and an RGB camera, and the field of view of the depth sensor and the field of view of the RGB camera overlap each other; the UWB (Ultra WideBand) detection element can be a UWB tag, and the UWB detection element can have a detection angle, that is, an angle of its orientation to both sides, for example, if the detection angle of the UWB detection element is 120°, then its detection angle is 120° formed by its orientation of 60° to the left and right sides.

[0064] For example, please refer to the attached Figure 2 The robot may be provided with a visual detection element facing the front of the robot, a first UWB detection element 201 facing the left side of the robot, a second UWB detection element 202 facing the right side of the robot and a third UWB detection element 203 facing the front of the robot (i.e., the third UWB detection element 203 has the same orientation as the visual detection element, and the detection angle of the third UWB detection element 203 partially or completely overlaps with the field of view of the visual detection element); it can be understood that the front of the robot refers to the direction in which the robot moves when it is moving forward.

[0065] Exemplarily, the method can be applied to the process of a robot performing a following action, that is, detecting the position of a target object in a world coordinate system in real time, and controlling the robot to maintain a relative position relationship with the target object unchanged through movement according to the position.

[0066] In step S101, when the robot follows a target object, in response to the robot failing to detect the target object in its field of view, a first position of the target object in the field of view when the target object was last detected is obtained.

[0067] The robot follows the target object to move, which means the robot performs a following action.

[0068] Before the robot performs the following action, it can first use the visual detection element to collect RGB images for the field of view, and process the collected RGB images to detect at least one object in the image; then, the detection result can be presented to the user through a human-computer interaction program (for example, a program installed on the robot, or a program installed on a terminal device bound to the robot), and the user is prompted to select a target object (that is, the object that the user wants the robot to follow) from the above at least one object; after receiving the user's selection instruction indicating the target object, the characteristics of the target object can be extracted from the above image, and the target object can be followed based on the characteristics, that is, the movement is performed on the principle of keeping the relative position with the target object unchanged.

[0069] After the robot starts to perform the following action, the visual detection component can collect depth images and RGB images for the field of view at a preset frequency. Since the field of view of the RGB camera and the depth sensor in the visual detection component overlap, the position of the target object in the RGB image and the position of the target object in the depth image are the same; based on this, the robot can process the collected RGB image to detect the target object in the RGB image to obtain the position of the target object in the RGB image, and then obtain the depth information at the same position in the depth image, and process the depth information to obtain the position of the target object in the world coordinate system. Therefore, the robot detects the target object in the RGB image, which is equivalent to the robot detecting the target object within the field of view of the visual detection component; correspondingly, the robot does not detect the target object in the RGB image, which is equivalent to the robot not detecting the target object within the field of view of the visual detection component.

[0070] It can be seen from the process of the robot detecting the target object using the visual detection element that each time the robot detects the target object within the field of view, it will determine the position of the target object in the RGB image (and the depth image), and this position can be used to characterize the position of the target object within the field of view. The position of the target object within the field of view when the target object was last detected within the field of view can be used to characterize the position of the target object before it was lost within the field of view, and this position can be used to guide the selection and use of the UWB detection element; however, if the target object has been lost for a long time, the position has lost the above-mentioned guiding role, so this step can be in response to the robot not detecting the target object within the field of view of the visual detection element, and obtain the first position of the target object within the field of view when the target object was last detected within the field of view within a preset time period forward from the current moment.

[0071] In response to the robot failing to detect the target object within the field of view of the visual detection element and failing to detect the target object within a preset time period forward from the current moment, it can be determined that the target object is lost, that is, the robot can execute a logical algorithm for target retrieval.

[0072] In step S102, a target UWB detection element is determined among the multiple UWB detection elements according to the first position, and the robot is controlled to follow the target object according to the UWB signal collected by the target UWB detection element, wherein the target object is provided with a UWB element.

[0073] Generally, the target object disappears from the field of view from the edge of the field of view and then reaches a certain direction of the field of view. That is, the position of the target object in the field of view when the target object was last detected in the field of view is likely to be at the edge of the field of view. Therefore, the position of the target object in the field of view when the target object was last detected in the field of view can be used to select the target UWB detection element from multiple UWB detection elements relative to the direction of the center of the field of view.

[0074] Optionally, in response to the first position being located in a first direction of a center of the field of view, a UWB detection element among the multiple UWB detection elements facing the first direction of the field of view is determined as the target detection element.

[0075] For example, the robot includes a visual detection element facing the front of the robot, a first UWB detection element facing the left side of the robot, and a second UWB detection element facing the right side of the robot; therefore, in this step, in response to the first position being located on the left side of the center of the field of view, the first UWB detection element can be determined as the target detection element; in response to the second position being located on the right side of the center of the field of view, the second UWB detection element can be determined as the target detection element.

[0076] The above method is simple and fast, and the detection angle of the target UWB detection element determined by the above method is likely to cover the target object, so the robot can follow and control the robot according to the UWB signal of the target UWB detection element, thereby avoiding the loss of the target. Moreover, although the robot provided in the embodiment of the present disclosure has multiple UWB detection elements, only one of the collected UWB signals is needed each time, thereby greatly reducing the complexity of UWB signal processing, that is, processing efficiency.

[0077] Since the target object is also provided with a UWB element that matches the UWB detection element of the robot (for example, the robot and the target object are both provided with mutually matching UWB tags), the robot can use the UWB signal between the two collected by the UWB detection element to determine the distance and angle between the two, and further determine the position of the target object in the world coordinate system based on the distance and angle between the two. For example, the position (x, y) of the target object in the world coordinate system can be calculated according to the following formula:

[0078] x=dist*cos(-1.0*θ)

[0079] y=dist*sin(-1.0*θ)

[0080] After the robot determines the position of the target object in the world coordinate system, it can control the robot to follow the target object according to the position of the target object in the world coordinate system to keep the relative position between the robot and the target object unchanged.

[0081] The robot control method provided by the embodiment of the present disclosure, in the process of the robot following the target object to move, in response to the robot not detecting the target object within the field of view, obtains the first position of the target object within the field of view when the target object was most recently detected within the field of view, and then determines the target UWB detection element among the multiple UWB detection elements based on the first position, and controls the robot to follow the target object to move based on the UWB signal collected by the target UWB detection element. This method combines the two detection methods of visual detection and UWB detection. When the visual detection element cannot detect the target object, the corresponding UWB detection element is selected to detect the target object according to the position of the target object before it is lost, thereby avoiding the problem of target loss caused by the limited field of view of the visual detection technology, obstacle occlusion, etc., and improving the control accuracy of the following movement.

[0082] Furthermore, although the robot provided in the embodiment of the present disclosure has multiple UWB detection elements, only one of the collected UWB signals needs to be used each time, thereby greatly reducing the complexity of UWB signal processing, that is, the processing efficiency.

[0083] In some embodiments of the present disclosure, when a robot follows a target object, in response to the robot detecting the target object within the field of view of the visual detection element, the robot can be controlled to follow the target object based on visual data collected by the visual detection element.

[0084] Among them, after the robot starts to perform the following action, the visual detection component can collect depth images and RGB images for the field of view at a preset frequency. Since the field of view of the RGB camera and the depth sensor in the visual detection component overlap, the position of the target object in the RGB image and the position of the target object in the depth image are the same; based on this, the robot can process the collected RGB image to detect the target object in the RGB image to obtain the position of the target object in the RGB image, and then obtain the depth information at the same position in the depth image, and process the depth information to obtain the position of the target object in the world coordinate system. After the robot determines the position of the target object in the world coordinate system, it can control the robot to follow the target object according to the position of the target object in the world coordinate system to keep the relative position between the robot and the target object unchanged.

[0085] For example, the robot includes a third UWB detection element facing the front of the robot, that is, the orientation of the third UWB detection element is the same as the orientation of the visual detection element, and the detection angle of the third UWB detection element and the field of view of the visual detection element partially or completely overlap; therefore, in this step, when the robot is controlled to follow the target object according to the visual data collected by the visual detection element, the robot can be controlled to follow the target object according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element.

[0086] Exemplarily, first, according to the visual data collected by the visual detection element, the first coordinate position of the target object in the world coordinate system is determined. The above embodiment has already described in detail the manner in which the robot determines the coordinate position of the target object in the world coordinate system according to the visual data collected by the visual detection element, and will not be repeated here.

[0087] Next, according to the UWB signal collected by the third UWB detection element, the second coordinate position of the target object in the world coordinate system is determined. The above embodiment has already described in detail the manner in which the robot determines the coordinate position of the target object in the world coordinate system according to the UWB signal collected by the UWB detection element, and will not be repeated here.

[0088] Finally, the target coordinate position is determined according to the first coordinate position and the second coordinate position, and the robot is controlled to follow the target object to move according to the target coordinate position. For example, the x coordinate of the first coordinate position and the x coordinate of the second coordinate position are weighted summed to obtain the x coordinate of the target coordinate position, and the y coordinate of the first coordinate position and the y coordinate of the second coordinate position are weighted summed to obtain the y coordinate of the target coordinate position.

[0089] In this embodiment, the position coordinates of the target object in the world coordinate system are determined by combining the visual detection technology and the UWB detection technology in two dimensions, which can improve the positioning precision and accuracy of the target object, and further improve the control accuracy of the robot's following motion.

[0090] Please refer to the attached Figure 3 , which exemplarily shows a control method of a robot in an embodiment of the present disclosure, wherein the robot has a visual detection element facing forward, a UWB detection element UWB_F facing forward, a UWB detection element UWB_L facing left, and a UWB detection element UWB_R ​​facing right. After starting, it is determined whether there is a target object within the field of view of the visual detection element. If there is a target object within the field of view, the visual detection element and UWB_F are used to detect the position of the target object, and the detected position is used to control the robot to follow the movement; if there is no target object within the field of view, it is further determined whether the target object disappears from the left side of the field of view. If it disappears from the left side of the field of view, UWB_L is used to detect the position of the target object, and the detected position is used to control the robot to follow the movement; if it does not disappear from the left side of the field of view, UWB_R ​​is used to detect the position of the target object, and the detected position is used to control the robot to follow the movement.

[0091] According to a second aspect of the embodiments of the present disclosure, a robot control device is provided, which is applied to a robot having a visual detection element and a plurality of UWB detection elements facing different directions, Figure 4 , the device comprises:

[0092] An acquisition module 401 is configured to acquire a first position of the target object within the field of view when the target object was most recently detected within the field of view in response to the robot failing to detect the target object within the field of view of the visual detection element during the process of the robot following the target object for movement;

[0093] The motion module 402 is used to determine a target UWB detection element among the multiple UWB detection elements according to the first position, and control the robot to follow the target object to move according to the UWB signal collected by the target UWB detection element, wherein the target object is provided with a UWB element matching the UWB detection element.

[0094] In one embodiment of the present disclosure, the motion module is used to determine the target UWB detection element among the multiple UWB detection elements according to the first position, specifically to:

[0095] In response to the first position being located in a first direction at the center of the field of view, a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements is determined as the target detection element.

[0096] In one embodiment of the present disclosure, the robot includes a visual detection element facing the front of the robot, a first UWB detection element facing the left side of the robot, and a second UWB detection element facing the right side of the robot;

[0097] The motion module is used to determine, in response to the first position being located in a first direction at the center of the field of view, a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements as the target detection element, specifically to:

[0098] In response to the first position being located to the left of the center of the field of view, determining the first UWB detection element as the target detection element;

[0099] In response to the second position being located on the right side of the center of the field of view, the second UWB detection element is determined as the target detection element.

[0100] In one embodiment of the present disclosure, the motion module is further used for:

[0101] When the robot follows the target object, in response to the robot detecting the target object within the field of view of the visual detection element, the robot is controlled to follow the target object according to visual data collected by the visual detection element.

[0102] In one embodiment of the present disclosure, the orientation of a third UWB detection element among the plurality of UWB detection elements is the same as the orientation of the visual detection element;

[0103] The motion module is used to control the robot to follow the target object to move according to the visual data collected by the visual detection element, specifically for:

[0104] The robot is controlled to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element.

[0105] In one embodiment of the present disclosure, the motion module is used to control the robot to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element, specifically for:

[0106] Determining a first coordinate position of the target object in a world coordinate system according to the visual data collected by the visual detection element;

[0107] Determining a second coordinate position of the target object in the world coordinate system according to the UWB signal collected by the third UWB detection element;

[0108] A target coordinate position is determined according to the first coordinate position and the second coordinate position, and the robot is controlled to move following the target object according to the target coordinate position.

[0109] In one embodiment of the present disclosure, the acquisition module is specifically used to:

[0110] In response to the robot failing to detect the target object within the field of view of the visual detection element, a first position of the target object within the field of view when the target object was last detected within a preset time period forward from the current moment is obtained.

[0111] In one embodiment of the present disclosure, a loss module is further included, which is used to:

[0112] In response to the robot failing to detect the target object within the field of view of the visual detection element and failing to detect the target object within the field of view within a preset time period forward from a current moment, it is determined that the target object is lost.

[0113] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the first aspect related to the method, and will not be elaborated here.

[0114] In a third aspect, at least one embodiment of the present disclosure provides a robot, please refer to the attached Figure 5 , which shows the structure of the robot, the robot includes a visual detection element, a plurality of UWB detection elements facing different directions, a memory, and a processor, the memory is used to store computer instructions that can be executed on the processor, and the processor is used to control the robot based on the method described in any one of the first aspects when executing the computer instructions.

[0115] In a fourth aspect, at least one embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements any of the methods described in the first aspect.

[0116] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0117] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A robot control method, characterized in that: Applied to a robot having a visual detection element and a plurality of UWB detection elements facing in different directions, the method comprises: In the process of the robot following the target object to move, in response to the robot not detecting the target object within the field of view of the visual detection element, obtaining a first position of the target object within the field of view when the target object was most recently detected within the field of view; According to the first position, a target UWB detection element is determined among the multiple UWB detection elements, and according to the UWB signal collected by the target UWB detection element, the robot is controlled to follow the target object to move, wherein the target object is provided with a UWB element matching the UWB detection element.

2. The robot control method according to claim 1, characterized in that: The step of determining a target UWB detection element among the plurality of UWB detection elements according to the first position includes: In response to the first position being located in a first direction at the center of the field of view, a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements is determined as the target detection element.

3. The robot control method according to claim 2, characterized in that: The robot includes a visual detection element facing the front of the robot, a first UWB detection element facing the left side of the robot, and a second UWB detection element facing the right side of the robot; In response to the first position being located in a first direction at the center of the field of view, determining a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements as the target detection element, comprises: In response to the first position being located to the left of the center of the field of view, determining the first UWB detection element as the target detection element; In response to the second position being located on the right side of the center of the field of view, the second UWB detection element is determined as the target detection element.

4. The robot control method according to claim 1, characterized in that: Also includes: When the robot follows the target object, in response to the robot detecting the target object within the field of view of the visual detection element, the robot is controlled to follow the target object according to visual data collected by the visual detection element.

5. The robot control method according to claim 1, characterized in that: The orientation of a third UWB detection element among the plurality of UWB detection elements is the same as the orientation of the visual detection element; The step of controlling the robot to follow the target object according to the visual data collected by the visual detection element comprises: The robot is controlled to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element.

6. The robot control method according to claim 5, characterized in that: The controlling the robot to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element comprises: Determining a first coordinate position of the target object in a world coordinate system according to the visual data collected by the visual detection element; Determining a second coordinate position of the target object in the world coordinate system according to the UWB signal collected by the third UWB detection element; A target coordinate position is determined according to the first coordinate position and the second coordinate position, and the robot is controlled to move following the target object according to the target coordinate position.

7. The robot control method according to claim 1, characterized in that: In response to the robot not detecting the target object within the field of view of the visual detection element, obtaining a first position of the target object within the field of view when the target object was most recently detected within the field of view, comprising: In response to the robot failing to detect the target object within the field of view of the visual detection element, a first position of the target object within the field of view when the target object was last detected within a preset time period forward from the current moment is obtained.

8. The robot control method according to claim 7, characterized in that: Also includes: In response to the robot failing to detect the target object within the field of view of the visual detection element and failing to detect the target object within the field of view within a preset time period forward from a current moment, it is determined that the target object is lost.

9. A robot control device, characterized in that: Applied to a robot having a visual detection element and a plurality of UWB detection elements facing in different directions, the device comprises: an acquisition module, configured to acquire a first position of the target object within the field of view when the target object was most recently detected within the field of view in response to the robot failing to detect the target object within the field of view of the visual detection element during the process of the robot following the target object for movement; A motion module is used to determine a target UWB detection element among the multiple UWB detection elements according to the first position, and control the robot to follow the target object to move according to the UWB signal collected by the target UWB detection element, wherein the target object is provided with a UWB element matching the UWB detection element.

10. The robot control device according to claim 9, characterized in that: The motion module is used to determine the target UWB detection element among the multiple UWB detection elements according to the first position, specifically to: In response to the first position being located in a first direction at the center of the field of view, a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements is determined as the target detection element.

11. The robot control device according to claim 10, characterized in that: The robot includes a visual detection element facing the front of the robot, a first UWB detection element facing the left side of the robot, and a second UWB detection element facing the right side of the robot; The motion module is used to determine, in response to the first position being located in a first direction at the center of the field of view, a UWB detection element facing the first direction of the field of view among the plurality of UWB detection elements as the target detection element, specifically to: In response to the first position being located to the left of the center of the field of view, determining the first UWB detection element as the target detection element; In response to the second position being located on the right side of the center of the field of view, the second UWB detection element is determined as the target detection element.

12. The robot control device according to claim 9, characterized in that: The motion module is also used to: When the robot follows the target object, in response to the robot detecting the target object within the field of view of the visual detection element, the robot is controlled to follow the target object according to visual data collected by the visual detection element.

13. The robot control device according to claim 9, characterized in that: The orientation of a third UWB detection element among the plurality of UWB detection elements is the same as the orientation of the visual detection element; The motion module is used to control the robot to follow the target object to move according to the visual data collected by the visual detection element, specifically for: The robot is controlled to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element.

14. The robot control device according to claim 13, characterized in that: The motion module is used to control the robot to follow the target object to move according to the visual data collected by the visual detection element and the UWB signal collected by the third UWB detection element, specifically for: Determining a first coordinate position of the target object in a world coordinate system according to the visual data collected by the visual detection element; Determining a second coordinate position of the target object in the world coordinate system according to the UWB signal collected by the third UWB detection element; A target coordinate position is determined according to the first coordinate position and the second coordinate position, and the robot is controlled to move following the target object according to the target coordinate position.

15. The robot control device according to claim 9, characterized in that: The acquisition module is specifically used for: In response to the robot failing to detect the target object within the field of view of the visual detection element, a first position of the target object within the field of view when the target object was last detected within a preset time period forward from the current moment is obtained.

16. The robot control device according to claim 15, characterized in that: Also includes loss modules for: In response to the robot failing to detect the target object within the field of view of the visual detection element and failing to detect the target object within the field of view within a preset time period forward from a current moment, it is determined that the target object is lost.

17. A robot, characterized in that: The robot includes a visual detection element, a plurality of UWB detection elements facing different directions, a memory, and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to implement the robot control method described in any one of claims 1 to 8 when executing the computer instructions.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Method and device for tracking targets

    CN106683123A

  • Robot, robot following method and robot following system

    CN107608345A

  • Target tracking method and device, mobile equipment and storage medium

    CN107992052A

  • Mobile robot following method based on vision and UWB positioning

    CN115239759A

  • Method for tracking, sensing and identifying single person under multi-target condition

    CN115439504A