Method for setting robot restricted area, robot control method, chip and robot
The buffer zone is determined by UWB tags and base stations, and the buffer zone is set using critical values. The robot determines the restricted area and changes the walking direction based on the distance, which solves the problems of easy damage of the magnetic strip and positioning error of the virtual restricted area in the existing technology, and improves the intelligence and accuracy of the robot. User experience enables flexible restricted area management.
Patent Information
- Application Number
- CN202111524346.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-14
AI Technical Summary
In the existing technology, when setting up a robot restricted area, the magnetic strip is easily damaged or aged, and the positioning error of the virtual restricted area is large, causing the robot to break into areas that it should not enter, and replacing the magnetic strip is time-consuming, laborious and inflexible.
The buffer zone is determined by UWB tags and base stations, and the buffer zone is set using critical values. The robot determines whether it has entered the restricted area based on the distance between the first positioning device and the second positioning device, and changes its walking direction away from the restricted zone to avoid global positioning deviations.
It improves the intelligence and user experience of the robot in setting up restricted areas, flexibly adjusts the buffer size, avoids intrusion problems caused by positioning errors, and meets different needs.
Smart Images

Figure CN114211487B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent mobile robots, and in particular to a method for setting a robot restricted area, a robot control method, a chip and a robot. Background Art
[0002] Cleaning robots can free people from heavy housework. With the maturity of technology, cleaning robots have entered more and more families and are deeply loved by people. However, there are some rooms or areas in the home that people do not want robots to enter. For example, the kitchen, toilet or stairs. At present, the solution provided by the existing technology is to make the robot actively avoid the area by sticking magnetic strips on the ground or setting up virtual restricted areas. The above method has obvious disadvantages: if the magnetic strip loses its magnetism due to damage or aging, it is necessary to replace it with a new magnetic strip, which is time-consuming and labor-intensive, and is neither flexible nor beautiful; if there is an error in the robot positioning, the virtual restricted area is no longer reliable, and the robot may still enter the above area. Summary of the invention
[0003] To solve the above problems, the present invention provides a method for setting a robot restricted area, a robot control method, a chip and a robot, so that the robot restricted area can play a more effective role and avoid the robot from entering an area that it should not enter due to unreliable restricted area settings. The specific technical solutions of the present invention are as follows:
[0004] A method for setting a robot restricted area, the method comprising the following steps: step S1, according to a critical value, on one side of a dividing line formed by connecting a first positioning device and a second positioning device, a semicircle is drawn with the first positioning device and the second positioning device as the center and the critical value as the radius, to obtain a first critical area and a second critical area; step S2, a semicircle is drawn with the first positioning device and the second positioning device as the center and the length of the dividing line as the radius, intersecting at the boundaries of the first critical area and the second critical area, to obtain a first intersection point and a second intersection point; the area formed by the first positioning device, the second positioning device, the first intersection point and the second intersection point is set as a buffer area; wherein the other side of the buffer area is regarded as a restricted area.
[0005] Furthermore, the critical value is sent to the robot by the intelligent terminal, and the size of the critical value is half the body length of the robot.
[0006] Furthermore, when the critical value is 0, the buffer zone is not set, so as to achieve the purpose of canceling the restricted zone.
[0007] Furthermore, the first positioning device includes a first UWB tag, the second positioning device includes a second UWB tag, and a UWB base station capable of communicating with the first UWB tag and the second UWB tag is installed on the robot.
[0008] Furthermore, the buffer zone may be set to be a union of three areas: an area formed by the first positioning device, the second positioning device, the first intersection point, and the second intersection point, and the first critical area and the second critical area.
[0009] A robot control method includes the method for setting a robot restricted area, and the method further includes: the robot receives a critical value transmitted by an intelligent terminal and makes a judgment, if the critical value is not 0, a buffer zone is set at a boundary formed by connecting a first positioning device and a second positioning device, when the robot detects that it has entered the buffer zone, the robot changes its walking direction to stay away from the restricted area; wherein the other side of the buffer zone is regarded as a restricted area; if the critical value is 0, the buffer zone is not set, so as to achieve the purpose of canceling the restricted area.
[0010] Furthermore, the method for the robot to detect that it has entered the buffer zone includes: step S3, sampling the boundary of the buffer zone to obtain a plurality of sampling points, the sampling points including the distance between the robot and the first positioning device and the distance between the robot and the second positioning device; step S4, comparing the real-time distance between the robot and the first positioning device and the real-time distance between the robot and the second positioning device with the sampling points, if they are consistent or the values fluctuate within a preset range, it indicates that the robot has entered the buffer zone.
[0011] Furthermore, according to the instructions of the intelligent terminal, the robot selects both sides of the dividing line or one side to set the buffer zone. When the robot is active on the side where the buffer zone is set, the other side of the dividing line is regarded as a restricted area. When the robot is active on the side where the buffer zone is not set, the other side of the dividing line is regarded as an active area.
[0012] A chip stores a computer program, and when the computer program is executed, the method for setting a robot restricted area or the method for controlling the robot is implemented.
[0013] A robot is equipped with the chip.
[0014] The beneficial effect of the present invention is that compared with the prior art, the method described in the present invention determines the position of the robot restricted area by setting the buffer zone. When the robot enters the buffer zone, it can change its walking direction to stay away from the restricted area. The robot determines whether it has entered the buffer zone by the distance from the first positioning device and the second positioning device, rather than by global positioning, thereby avoiding the robot from entering the restricted area due to positioning deviation, improving the intelligence of the robot and the user experience. At the same time, by controlling the size of the critical value, the size of the buffer zone can also be adjusted, and even the setting of the restricted area can be cancelled. The method is relatively flexible and can meet the different needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 The present invention is a flowchart of a robot control method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0016] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0017] It should be understood that when used in this application, the term "comprising" indicates the presence of the described features, integral bodies, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integral bodies, steps, operations, elements, components and / or their collections. It should also be understood that the term "and / or" used in this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0018] As used in this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0019] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance. The reference to "one embodiment" or "some embodiments" described in the specification of the present application means that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in the differences in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0020] Cleaning robots can free people from heavy housework. With the maturity of technology, cleaning robots have entered more and more families and are deeply loved by people. However, there are some rooms or areas in the home that people do not want robots to enter. For example, the kitchen, toilet or stairs. At present, the solution provided by the existing technology is to make the robot actively avoid the area by sticking magnetic strips on the ground or setting up virtual restricted areas. The above method has obvious disadvantages: if the magnetic strip loses its magnetism due to damage or aging, it is necessary to replace it with a new magnetic strip, which is time-consuming and labor-intensive, and is neither flexible nor beautiful; if there is an error in the robot positioning, the virtual restricted area is no longer reliable, and the robot may still enter the above area.
[0021] In order to solve the above problems, an embodiment of the present invention provides a method for setting a robot restricted area, and the method includes the following steps: step S1, according to the critical value, on one side of the dividing line formed by connecting the first positioning device and the second positioning device, a semicircle is drawn with the first positioning device and the second positioning device as the center and the critical value as the radius, to obtain a first critical area and a second critical area; step S2, a semicircle is drawn with the first positioning device and the second positioning device as the center and the length of the dividing line as the radius, intersecting at the boundary of the first critical area and the second critical area, to obtain a first intersection point and a second intersection point; the area formed by the first positioning device, the second positioning device, the first intersection point and the second intersection point is set as a buffer area; wherein the other side of the buffer area is regarded as a restricted area.
[0022] In the process of executing step S1, the robot receives the critical value sent by the intelligent terminal, and then performs relevant operations. The critical value represents the distance between the robot and the first positioning device or the second positioning device. Since the first intersection and the second intersection fall on the boundary of the first critical area and the second critical area, the critical value indirectly determines the distance between the robot and the dividing line. Preferably, the critical value is set to half the length of the robot. On the intelligent terminal, the user can set different critical values to determine the distance between the robot and the dividing line. Among them, the first positioning device and the second positioning device are pre-set on both sides of the entrance of the restricted area, such as on both sides of the door. Preferably, the first positioning device includes a first UWB tag, the second positioning device includes a second UWB tag, and the robot is equipped with a UWB base station that can communicate with the first UWB tag and the second UWB tag. The UWB is an ultra-wideband ranging sensor, and the UWB tag and the UWB base station communicate and measure distance through flight time, which has a centimeter-level positioning accuracy. Compared with wireless positioning methods such as GPS and Zigbee, it has higher accuracy and lower cost; compared with ultrasonic sensors, it has a larger signal detection angle. In some implementation scenarios, at time T1, a ranging request pulse is initiated from the UWB base station pre-set on the robot to the UWB tag set at the entrance of the restricted area. At time T2, the ranging request pulse arrives at the UWB tag to complete a ranging. The flight time of the pulse between the UWB base station and the UWB tag is the result of subtracting T1 from T2. It is known that the pulse movement speed is approximately the speed of light C, so the distance D=C*(T2-T1) between the current position of the robot and the position of the UWB tag is obtained.
[0023] In step S2, the length of the dividing line can be measured in advance and input into the robot as a fixed value, or it can be calculated by triangulation. The area formed by the first positioning device, the second positioning device, the first intersection and the second intersection is a trapezoidal area with the dividing line as the bottom and the critical value as the high. Using this area as a buffer zone can give the robot sufficient time and space to react, adjust its position in time and walk in other directions, and ensure that the robot will not mistakenly enter the restricted area. It should be noted that the other side of the area (i.e., the other side of the dividing line) is a restricted area that the robot should not enter. In another embodiment, the buffer zone can be set as: the union of the area formed by the first positioning device, the second positioning device, the first intersection and the second intersection and the first critical area and the second critical area. In this way, the range of the buffer zone can be expanded to ensure that the robot will not cross the dividing line.
[0024] like Figure 1As shown, the present invention also provides a robot control method, the method includes the method for setting the robot restricted area, and the method also includes: the robot receives the critical value transmitted by the intelligent terminal and makes a judgment, if the critical value is not 0, a buffer zone is set at the dividing line formed by the connection of the first positioning device and the second positioning device, when the robot detects that it has entered the buffer zone, it changes the walking direction to stay away from the restricted area; wherein the other side of the buffer zone is regarded as the restricted area; if the critical value is 0, the buffer zone is not set, so as to achieve the purpose of canceling the restricted area.
[0025] As one of the implementation modes, the method for the robot to detect that it has entered the buffer zone includes: step S3, sampling the boundary of the buffer zone to obtain a plurality of sampling points, wherein the sampling points include the distance between the robot and the first positioning device and the distance between the robot and the second positioning device; step S4, comparing the real-time distance between the robot and the first positioning device and the real-time distance between the robot and the second positioning device with the sampling points, and if they are consistent or the values fluctuate within a preset range, it indicates that the robot has entered the buffer zone. In step S3, after the robot sets the buffer zone, it walks along the edge of the buffer zone, and then records the distance between the robot and the first positioning device and the distance between the robot and the second positioning device according to a preset sampling frequency during the walking process and saves them as a plurality of sampling points.
[0026] In step S4, the robot compares the real-time distance with the first positioning device and the second positioning device with the pre-saved sampling points to know whether it has entered the buffer zone. Optionally, the robot can sample the boundary and internal area of the buffer zone and save the sampling points to increase the detection area. It should be noted that the robot determines whether it has entered the buffer zone by the distance with the first positioning device and the second positioning device, rather than by global positioning, so as to avoid the robot from entering the restricted area due to positioning deviation, thereby improving the intelligence of the robot and the user's experience. Optionally, when the robot determines that it has entered the buffer zone, it can move in the opposite direction to stay away from the restricted area. Preferably, the robot is allowed to move in the buffer zone on the premise that the robot does not cross the boundary line. Therefore, the current position of the robot is used as the end point of the originally planned path, and the movement path of the robot is replanned. Generally, the robot moves back and forth in a bow-shaped path. After the path is replanned, the robot no longer moves forward, but turns at the current position to enter the next path. If the robot is walking along the edge at this time, the original edge is found along the boundary of the buffer zone.
[0027] As one of the implementation modes, according to the instruction of the intelligent terminal, the robot selects both sides of the dividing line or one side to set the buffer zone. When the robot moves on the side where the buffer zone is set, the other side of the dividing line is regarded as a restricted area. When the robot moves on the side where the buffer zone is not set, the other side of the dividing line is regarded as an active area. Among them, when the buffer zones are set on both sides of the dividing line, it means that the dividing line is equivalent to a wall, and the robot cannot pass through, which can be used for area division; when the buffer zone is set on one side of the dividing line, it means that the dividing line is restricted on one side, which can make the robot not return after completing the task in the area where the buffer zone is not set, thereby improving the user experience. In another embodiment, if the critical value is set to 0, the buffer zone is not set, indicating that there is no need for a restricted area, and the robot can pass freely to meet the user's usage needs in different situations.
[0028] Compared with the prior art, the method described in the present invention determines the position of the robot restricted area by setting the buffer zone. When the robot enters the buffer zone, it can change its walking direction to stay away from the restricted area. The robot determines whether it has entered the buffer zone by the distance between the first positioning device and the second positioning device, rather than by global positioning, thereby avoiding the robot from entering the restricted area due to positioning deviation, improving the intelligence of the robot and the user experience. At the same time, by controlling the size of the critical value, the size of the buffer zone can also be adjusted, and even the setting of the restricted area can be cancelled. The method is relatively flexible and can meet the different needs of users.
[0029] The present invention also provides a chip, which stores a computer program, and when the computer program is executed, the method for setting the robot restricted area or the method for controlling the robot is implemented. The chip can be set on the robot, so that the robot can determine whether it has entered the buffer zone by the distance from the first positioning device and the second positioning device. When the robot enters the buffer zone, it can change the walking direction to stay away from the restricted area. Not using the global positioning method can avoid the robot from entering the restricted area due to positioning deviation, thereby improving the intelligence of the robot and the user experience.
[0030] It will be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the references to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory ROM, programmable memory PROM, electrically programmable memory DPROM, electrically erasable programmable memory DDPROM or flash memory. Volatile memory may include random access memory RAM or external cache memory.
[0031] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0032] The above embodiments only express several embodiments of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A method for setting a robot restricted area, characterized in that: The method comprises the following steps: Step S1, according to the critical value, on one side of the dividing line formed by connecting the first positioning device and the second positioning device, a semicircle is drawn with the first positioning device and the second positioning device as the center and the critical value as the radius, to obtain a first critical area and a second critical area; Step S2, draw a semicircle with the first positioning device and the second positioning device as the center and the length of the dividing line as the radius, intersecting at the boundary of the first critical area and the second critical area to obtain a first intersection point and a second intersection point; set the area formed by the first positioning device, the second positioning device, the first intersection point and the second intersection point as a buffer zone; wherein the other side of the buffer zone is regarded as a restricted area.
2. A method for setting a robot restricted area according to claim 1, characterized in that: The critical value is sent to the robot by the intelligent terminal, and the size of the critical value is half the body length of the robot.
3. The method for setting a robot restricted area according to claim 1, characterized in that: When the critical value is 0, the buffer zone is not set, so as to achieve the purpose of canceling the restricted area.
4. The method for setting a robot restricted area according to claim 1, characterized in that: The first positioning device includes a first UWB tag, the second positioning device includes a second UWB tag, and a UWB base station capable of communicating with the first UWB tag and the second UWB tag is installed on the robot.
5. The method for setting a robot restricted area according to claim 1, characterized in that: The buffer zone may be set to be a union of three areas: an area formed by the first positioning device, the second positioning device, the first intersection point, and the second intersection point, and the first critical area and the second critical area.
6. A robot control method, characterized in that: The method includes the method for setting a robot restricted area according to any one of claims 1 to 5, and the method further includes: The robot receives the critical value transmitted by the intelligent terminal and makes a judgment. If the critical value is not 0, a buffer zone is set at the boundary formed by the connection of the first positioning device and the second positioning device, and when the robot detects that it has entered the buffer zone, it changes its walking direction to stay away from the restricted area; wherein the other side of the buffer zone is regarded as a restricted area; If the critical value is 0, the buffer zone is not set, so as to achieve the purpose of canceling the restricted area.
7. A robot control method according to claim 6, characterized in that: The method for the robot to detect that it enters the buffer zone includes: Step S3, sampling the boundary of the buffer zone to obtain a plurality of sampling points, wherein the sampling points include the distance between the robot and the first positioning device and the distance between the robot and the second positioning device; Step S4, comparing the real-time distance between the robot and the first positioning device and the real-time distance between the robot and the second positioning device with the sampling point, if they are consistent or the values fluctuate within a preset range, it indicates that the robot has entered the buffer zone.
8. A robot control method according to claim 6, characterized in that: According to the instructions of the intelligent terminal, the robot selects both sides of the dividing line or one side to set the buffer zone. When the robot moves on the side with the buffer zone, the other side of the dividing line is regarded as a restricted area. When the robot moves on the side without the buffer zone, the other side of the dividing line is regarded as an active area.
9. A chip storing a computer program, characterized in that: When the computer program is executed, the method for setting a robot restricted area according to any one of claims 1 to 5 or the method for controlling a robot according to any one of claims 6 to 8 is implemented.
10. A robot, characterized in that: The robot is equipped with the chip of claim 9.
Citation Information
Patent Citations
Positioning and navigation control method of indoor mobile robot based on UWB
CN105657668A
Method and device for controlling movement of robot and robot
CN111360808A
Robot path planning method and device, robot and computer readable storage medium
CN111781936A
Robot and restricted area identification method and device thereof
CN112171659A
Control method of cleaning equipment and cleaning equipment
CN112716392A
