Robot control method and apparatus

By setting vertical sensors on the swimming pool robot and adjusting the movement direction and speed according to the sensing information, the problem of incomplete cleaning caused by the unreasonable distance between the swimming pool robot and the swimming pool wall is solved, and the cleaning efficiency and intelligence are improved.

WO2024221634A1PCT designated stage expired Publication Date: 2024-10-31XINGMAI INNOVATION TECH (SUZHOU) CO LTD

Patent Information

Application Number
PCT/CN2023/111087
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2023-08-03
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

The distance between the swimming pool robot and the swimming pool wall is unreasonable, resulting in poor cleaning effect and serious cleaning leakage. The existing technology lacks effective solutions.

Method used

By setting vertical first and second sensors in the front and side of the robot, sensing information is collected respectively, and the robot's movement direction is controlled based on the sensing information to avoid collision with obstacles, and the speed and rotation direction are adjusted to achieve more thorough cleaning.

Benefits of technology

It improves the cleaning intensity and efficiency of the swimming pool, ensures that the robot maintains a reasonable distance from the swimming pool wall, avoids missing sweeps, and enhances the intelligence of cleaning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023111087_31102024_PF_FP_ABST
    Figure CN2023111087_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a robot control method and apparatus. The method comprises: acquiring first sensing information collected by a first sensor in a first direction of a target robot; acquiring second sensing information collected by a second sensor in a second direction of the target robot, wherein the first direction is perpendicular to the second direction; and according to the first sensing information and the second sensing information, controlling a movement direction of the target robot in a target swimming pool, wherein the target robot is configured to clean the target swimming pool. By means of the embodiments of the present application, the problem of a swimming pool not being thoroughly cleaned due to an irrational distance between a swimming pool robot and a wall of a swimming pool is solved, thereby achieving the effects of maintaining a rational distance between the swimming pool robot and the wall of the swimming pool, and improving the cleaning strength for the swimming pool.
Need to check novelty before this filing date? Find Prior Art

Description

Robot control method and device

[0001] This disclosure claims priority to the Chinese patent application filed with the China Patent Office on April 27, 2023, with application number 202310473863.X and invention name “Robot Control Method and Device,” the entire contents of which are incorporated by reference into this disclosure. Technical Field

[0002] The embodiments of the present application relate to the field of communications, and more specifically, to a method and device for controlling a robot. Background Art

[0003] Most swimming pool robots in related technologies have extremely irregular movement paths, and the cleaning paths are mainly randomly selected. After moving in one direction and hitting a wall, they randomly choose a direction to continue cleaning straight ahead. The distance between the swimming pool robot and the swimming pool wall is unreasonable, resulting in extremely poor full coverage cleaning effect of the machine and serious missed cleaning.

[0004] There is currently no effective solution to the above problems.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a robot control method and device to at least solve the problem in the related art of incomplete pool cleaning caused by an unreasonable distance between the pool robot and the pool wall.

[0007] The present invention provides a method for controlling a robot, including:

[0008] Acquire first sensing information collected by a first sensor in a first direction of a target robot; acquire second sensing information collected by a second sensor in a second direction of the target robot, wherein the first direction and the second direction are perpendicular to each other; and control the moving direction of the target robot in the target swimming pool according to the first sensing information and the second sensing information, wherein the target robot is configured to clean the target swimming pool.

[0009] In an exemplary embodiment, controlling the moving direction of the target robot in the target pool based on the first sensing information and the second sensing information includes: when the first sensing information indicates that the distance between the target robot and a first obstacle in the first direction reaches a first maximum threshold, controlling the target robot to move in a third direction, wherein the third direction is opposite to the second direction.

[0010] In an exemplary embodiment, when the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, the target robot is controlled to move to a third direction, including: when the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, the moving speed of the target robot is reduced, and when the distance between the target robot and the first obstacle reaches a first minimum threshold, the moving speed of the target robot is zero, and the first minimum threshold is less than the first maximum threshold; when the distance between the target robot and the first obstacle reaches the first minimum threshold, the target robot is controlled to rotate to the third direction.

[0011] In an exemplary embodiment, after the moving speed of the target robot is zero when the distance between the target robot and the first obstacle reaches a first minimum threshold, the method further includes:

[0012] The robot is controlled to rotate in place toward the third direction until the second sensor can detect a second obstacle in the second direction of the robot.

[0013] In an exemplary embodiment, when the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, the target robot is controlled to move to a third direction, and the method further includes: when the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, the target robot's movement speed is reduced, and when the distance between the target robot and the first obstacle reaches a first minimum threshold, the target robot's movement speed is zero, and the first minimum threshold is less than the first maximum threshold; when the distance between the target robot and the first obstacle reaches the first minimum threshold, the target robot is controlled to move a preset distance in a fourth direction, and the fourth direction is the opposite direction of the first direction; when the target robot moves the preset distance in the fourth direction, the target robot is controlled to rotate to the third direction.

[0014] In an exemplary embodiment, when the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, controlling the target robot to move to a third direction also includes: when the first sensing information indicates that the distance between the target robot and the first obstacle reaches the first maximum threshold, reducing the moving speed of the target robot, and controlling the target robot to rotate to the third direction at a preset rotation speed, and when the distance between the target robot and the first obstacle reaches the first minimum threshold, the target robot rotates to the third direction.

[0015] In an exemplary embodiment, controlling the moving direction of the target robot in the target pool based on the first sensing information and the second sensing information further includes: when the second sensing information indicates that the distance between the target robot and a second obstacle in the second direction is within a preset range, controlling the target robot to move in a direction parallel to the second obstacle; or, when the second sensing information indicates that the distance between the target robot and the second obstacle is within the preset range, controlling the target robot to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches a second minimum threshold, controlling the target robot to move in a direction parallel to the second obstacle, wherein the second minimum threshold is less than a minimum value of the preset range;

[0016] When the second sensing information indicates that the distance between the target robot and the second obstacle is not within the preset range, the moving direction of the target robot is controlled according to the distance between the target robot and the second obstacle.

[0017] In an exemplary embodiment, when the second sensing information indicates that the distance between the target robot and the second obstacle is not within the preset range, the moving direction of the target robot is controlled according to the distance between the target robot and the second obstacle, including: when the distance between the target robot and the second obstacle is less than the second minimum threshold and greater than or equal to a third minimum threshold, reducing the moving speed of the target robot, and controlling the target robot to rotate in a third direction at a preset rotation speed; when the distance between the target robot and the second obstacle reaches the second minimum threshold, controlling the target robot to move in a direction parallel to the second obstacle, wherein the third minimum threshold is less than the second minimum threshold, and the third direction is the opposite direction of the second direction; or, when the distance between the target robot and the second obstacle is less than the third minimum threshold, controlling the target robot to rotate to the third direction.

[0018] In an exemplary embodiment, when the second sensing information indicates that the distance between the target robot and the second obstacle is not within the preset range, controlling the movement direction of the target robot according to the distance between the target robot and the second obstacle includes: when the distance between the target robot and the second obstacle is greater than or equal to a second maximum threshold and less than or equal to a third maximum threshold, controlling the target robot to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches a second minimum threshold, controlling the target robot to move in a direction parallel to the second obstacle; or, when the distance between the target robot and the second obstacle is greater than or equal to the second maximum threshold and less than or equal to a third maximum threshold, controlling the target robot to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches a minimum value within the preset range, controlling the target robot to move in a direction parallel to the second obstacle; or, when the distance between the target robot and the second obstacle is greater than or equal to the third maximum threshold, controlling the target robot to rotate to the second direction.

[0019] In an exemplary embodiment, the method further includes: disposing a cleaning device in the second direction of the target robot, and controlling the cleaning device to clean the target swimming pool during the process of controlling the movement of the target robot.

[0020] In an exemplary embodiment, the first direction is the front of the target robot, and the second direction is the left direction or the right direction of the target robot.

[0021] In an exemplary embodiment, the first sensor is configured as a waterproof ultrasonic sensor, and the second sensor is configured as a waterproof ultrasonic sensor.

[0022] In an exemplary embodiment, the first direction is the front of the robot, and the second direction is the right side of the robot.

[0023] According to another embodiment of the present application, a robot control device is provided, including: a first acquisition module, configured to acquire first sensing information collected by a first sensor in a first direction of a target robot; a second acquisition module, configured to acquire second sensing information collected by a second sensor in a second direction of the target robot, wherein the first direction and the second direction are perpendicular to each other; a control module, configured to control the moving direction of the target robot in the target swimming pool according to the first sensing information and the second sensing information, wherein the target robot is configured to clean the target swimming pool.

[0024] According to another embodiment of the present application, a swimming pool robot is provided, including: a first sensor, arranged in a first direction of the swimming pool robot, configured to collect first sensor information in the first direction; a second sensor, arranged in a second direction of the swimming pool robot, configured to collect second sensor information in the second direction; a processor, configured to control the moving direction of the target robot in a target swimming pool based on the first sensor information and the second sensor information, wherein the swimming pool robot is configured to clean the target swimming pool; and a cleaning device, configured to clean the target swimming pool.

[0025] In an exemplary embodiment, the cleaning device cleans the water in the target swimming pool by filtering the water in the target swimming pool.

[0026] In an exemplary embodiment, the cleaning device is disposed in the second direction of the robot, and the cleaning device is used to clean the wall of the target swimming pool.

[0027] In an exemplary embodiment, the cleaning device includes a pumping device and a filter. The pumping device is used to suck the liquid in the target swimming pool from the water inlet of the pumping device, filter the impurities and / or garbage in the liquid through the filter, and the filtered water is discharged from the cleaning device including the pumping device and the filter outlet to clean the liquid in the target swimming pool.

[0028] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.

[0029] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

[0030] Through this application, a first sensor is set in the first direction of the target robot, and first sensor information in the first direction is collected by the first sensor. A second sensor is set in the second direction of the target robot, and second sensor information in the second direction is collected by the second sensor. The moving direction of the target robot is controlled according to the first sensor information and the second sensor information. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] FIG1 is a hardware structure block diagram of a mobile terminal for a robot control method according to an embodiment of the present application;

[0032] FIG2 is a flow chart of a method for controlling a robot according to an embodiment of the present application;

[0033] FIG3 is a schematic diagram of the orientation of a robot according to an embodiment of the present application;

[0034] FIG4 is a distance diagram according to an embodiment of the present application;

[0035] FIG5 is a structural block diagram of a robot control device according to an embodiment of the present application. DETAILED DESCRIPTION

[0036] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0037] It should be noted that the terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0038] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, FIG1 is a hardware structure block diagram of a mobile terminal of a robot control method in an embodiment of the present application. As shown in FIG1 , the mobile terminal may include one or more (only one is shown in FIG1 ) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG1 is only for illustration and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG1 , or have a configuration different from that shown in FIG1 .

[0039] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the robot control method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above-mentioned method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0040] The transmission device 106 is used to receive or send data via a network. A specific example of the aforementioned network may include a wireless network provided by the mobile terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In one embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0041] In an embodiment of the present application, a control method for a robot running on the mobile terminal is provided. FIG2 is a flow chart of controlling the robot according to an embodiment of the present application. As shown in FIG2 , the flow chart includes the following steps:

[0042] Step S202, obtaining first sensing information collected by a first sensor in a first direction of the target robot;

[0043] The target robot may be a swimming pool robot, which may be provided with a cleaning device configured to clean the swimming pool. The first direction may be the front of the target robot, and as shown in FIG3 , the first sensor is installed in front of the target robot.

[0044] In one embodiment, the target robot may be equipped with a cleaning device that can clean the pool water by filtering it. A cleaning device may also be positioned on a second side (e.g., the right side) of the target robot to clean the pool walls. The target robot's cleaning method may involve a pumping device drawing liquid in through a water inlet, then filtering impurities and debris from the liquid through a filter, and then discharging the filtered water through an outlet, thereby cleaning the pool liquid.

[0045] Step S204, acquiring second sensing information collected by a second sensor in a second direction of the target robot, wherein the first direction and the second direction are perpendicular to each other;

[0046] The first and second sensors can be ultrasonic sensors, infrared sensors, or TOF (Time of Flight) sensors capable of measuring distance. The second direction can be the left or right direction of the target robot. Taking the right direction as an example, as shown in Figure 3, the second sensor is installed on the right side of the target robot, and a cleaning device can also be installed on the right side of the target robot.

[0047] In another embodiment, a cleaning device may be provided in the second direction of the target robot, and the cleaning device may be controlled to clean the target pool during the movement of the target robot. For example, the cleaning device in the second direction may clean the inner wall of the target pool during the movement of the target robot.

[0048] Step S206: Control the moving direction of the target robot in the target swimming pool according to the first sensing information and the second sensing information, wherein the target robot is configured to clean the target swimming pool.

[0049] Specifically, when the first sensing information indicates that the distance between the target robot and the first obstacle in the first direction reaches a first maximum threshold, the target robot is controlled to move in a third direction, wherein the third direction is opposite to the second direction.

[0050] When the second direction is the right direction of the target robot, the third direction is the left direction of the target robot. As shown in FIG4 , a schematic diagram of the distance between the target robot and the front and right sides of the target pool is provided. A cleaning device is provided on the right side of the target robot, and the cleaning device cleans the wall of the target pool during the movement of the target robot.

[0051] The first maximum threshold can be set based on actual conditions or determined based on the ultrasonic sensor's detection range (blind spot). For example, it can be 1 meter. When the first sensor detects that the distance between the obstacle in front (the first obstacle) and the target robot reaches the first maximum threshold, it indicates that the target robot is too close to the wall of the target pool and needs to be controlled to steer to avoid a collision with the wall of the target pool.

[0052] Specifically, the target robot can be controlled to move in the third direction in the following three ways:

[0053] Method 1: When the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, the moving speed of the target robot is reduced, and when the distance between the target robot and the first obstacle reaches a first minimum threshold, the moving speed of the target robot is zero, and the first minimum threshold is less than the first maximum threshold; when the distance between the target robot and the first obstacle reaches the first minimum threshold, the target robot is controlled to rotate to the third direction. In an embodiment of the present application, when the distance between the target robot and the first obstacle in front is the first minimum threshold, the robot decelerates to zero, and then rotates left on the spot to turn to the third direction. The above-mentioned first minimum threshold is less than the first maximum threshold, and the specific value can be set according to actual conditions, for example, it can be 0.4 meters. The angle of the target robot's rotation to the left can be until the second sensor can detect the second obstacle in the right direction, that is, until the right side of the robot is parallel to the second obstacle. The second obstacle can be the wall of the swimming pool located to the right of the target robot, and the first obstacle can be the wall of the swimming pool located in front of the target robot.

[0054] Method 2: When the first sensor information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, the target robot's movement speed is reduced. When the distance between the target robot and the first obstacle reaches a first minimum threshold, the target robot's movement speed is zero, where the first minimum threshold is less than the first maximum threshold. When the distance between the target robot and the first obstacle reaches the first minimum threshold, the target robot is controlled to move a preset distance in a fourth direction, which is opposite to the first direction. When the target robot moves the preset distance in the fourth direction, the target robot is controlled to rotate to the third direction. In this embodiment, when the distance between the target robot and the first obstacle in front reaches the first minimum threshold, the target robot decelerates to zero, then reverses a preset distance, moves a preset distance in the fourth direction (the fourth direction is behind the target robot), and then rotates left in place. The preset distance can be set according to actual conditions. The first minimum threshold can be set relatively low, for example, 0.3 meters or 0.2 meters, so that the robot can more thoroughly clean the corners of the pool. The target robot may rotate leftward until the second sensor can detect a second obstacle to the right, i.e., until the right side of the robot is parallel to the second obstacle. The second obstacle may be a swimming pool wall to the right of the target robot, and the first obstacle may be a swimming pool wall in front of the target robot.

[0055] Method 3: When the first sensor information indicates that the distance between the target robot and the first obstacle has reached the first maximum threshold, the target robot's movement speed is reduced, and the target robot is controlled to rotate in the third direction at a preset rotation speed. When the distance between the target robot and the first obstacle reaches the first minimum threshold, the target robot rotates to the third direction. In this embodiment of the present application, when the second direction is the right side of the target robot, the third direction is the left side of the target robot. The target robot decelerates and turns left before the distance to the first obstacle in front reaches the first minimum threshold. The target robot turns left when the distance reaches the first minimum threshold.

[0056] When the second sensing information indicates that the distance between the target robot and the second obstacle in the second direction is within a preset range, the target robot is controlled to move in a direction parallel to the second obstacle; or, when the second sensing information indicates that the distance between the target robot and the second obstacle is within the preset range, the target robot is controlled to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches a second minimum threshold, the target robot is controlled to move in a direction parallel to the second obstacle, wherein the second minimum threshold is less than a minimum value of the preset range;

[0057] The second obstacle is located in the second direction of the target robot, and can be the pool wall to the right of the target robot. The preset range can be determined based on actual conditions. For example, a range of 0.1 to 0.2 meters from the second obstacle is a normal range. In this case, the target robot is controlled to move forward parallel to the second obstacle on the right. Alternatively, the target robot can be rotated to the right by a preset angle, which can be set based on actual conditions, such as 15 degrees or 20 degrees. The target robot is then controlled to slowly move forward to the right, bringing it closer to the obstacle on the right, ensuring more thorough cleaning along the edge. When the distance between the target robot and the second obstacle on the right reaches a second minimum threshold, the target robot is adjusted to move forward parallel to the second obstacle on the right. The second minimum threshold is less than the minimum value within the preset range. For example, if the preset range is 0.1 to 0.2 meters, the second minimum threshold is less than 0.1 meters, such as 0.08 meters, and can be set based on actual conditions.

[0058] When the second sensing information indicates that the distance between the target robot and the second obstacle is not within the preset range, controlling the moving direction of the target robot according to the distance between the target robot and the second obstacle may include:

[0059] Case 1: When the distance between the target robot and the second obstacle is less than the second minimum threshold and greater than or equal to the third minimum threshold, the moving speed of the target robot is reduced, and the target robot is controlled to rotate in the third direction at a preset rotation speed. When the distance between the target robot and the second obstacle reaches the second minimum threshold, the target robot is controlled to move in a direction parallel to the second obstacle, wherein the third minimum threshold is less than the second minimum threshold, and the third direction is the opposite direction of the second direction; or, when the distance between the target robot and the second obstacle is less than the third minimum threshold, the target robot is controlled to rotate to the third direction.

[0060] The third minimum threshold is the minimum distance threshold between the target robot and the second obstacle on the right side. The third minimum threshold is less than the second minimum threshold. If the second minimum threshold is 0.08 meters, the third minimum threshold is less than 0.08 meters, for example, it can be 0.05 meters. If the distance between the target robot and the second obstacle on the right side is less than the third minimum threshold, the target robot is controlled to turn left. If the distance between the target robot and the second obstacle on the right side is less than the second minimum threshold and greater than or equal to the third minimum threshold (for example, it can be any distance value between 0.05 meters and 0.08 meters), the target robot is controlled to move to the left front until the distance between the target robot and the second obstacle on the right side reaches the second minimum threshold (assuming 0.08 meters), then the target robot is controlled to move in a direction parallel to the second obstacle on the right side.

[0061] Case 2: When the distance between the target robot and the second obstacle is greater than or equal to the second maximum threshold and less than or equal to the third maximum threshold, the target robot is controlled to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches the second minimum threshold, the target robot is controlled to move in a direction parallel to the second obstacle; or, when the distance between the target robot and the second obstacle is greater than or equal to the second maximum threshold and less than or equal to the third maximum threshold, the target robot is controlled to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches the minimum value within the preset range, the target robot is controlled to move in a direction parallel to the second obstacle; or, when the distance between the target robot and the second obstacle is greater than or equal to the third maximum threshold, the target robot is controlled to rotate to the second direction.

[0062] The third maximum threshold is the maximum distance between the target robot and the second obstacle on the right. The second maximum threshold is less than the third maximum threshold, and the second maximum threshold is greater than the maximum value within a preset range. Assuming the preset range is 0.1 meters to 0.2 meters, the second maximum threshold is greater than 0.2 meters, for example, 0.3 meters, and the third maximum threshold is greater than the second maximum threshold, for example, 0.4 meters. When the distance between the target robot and the second obstacle on the right is greater than or equal to the third maximum threshold, the target robot is controlled to turn right.

[0063] When the distance between the target robot and the second obstacle on the right is greater than or equal to the second maximum threshold and less than or equal to the third maximum threshold, the target robot is controlled to rotate to the right at a preset rotation speed. The preset angle can be determined according to actual conditions, such as 10 degrees, 15 degrees, etc. The target robot is controlled to move right front until the distance between the target robot and the second obstacle on the right reaches the second minimum threshold, then the target robot is controlled to move in a direction parallel to the second obstacle, or until the distance between the target robot and the second obstacle reaches the minimum value within the above-mentioned preset range, then the target robot is controlled to move in a direction parallel to the second obstacle.

[0064] Taking the above-mentioned first direction as the front of the target robot and the second direction as the right direction of the target robot as an example, the first sensor and the second sensor can be ultrasonic sensors with high waterproof performance, and are arranged in a one-front-one-right scheme. The first sensor in the front is set to detect obstacles in the target robot's forward direction to avoid collision with obstacles in the front; the second sensor on the right detects obstacles on the right side of the target robot, and the target robot maintains a reasonable distance from the right wall while moving along the edge of the swimming pool.

[0065] The execution subject of the above steps may be a swimming pool robot, etc., but is not limited thereto. The swimming pool robot can walk on one or more of the bottom wall, side wall or water surface of the swimming pool and perform related tasks, such as cleaning, disinfection, etc.

[0066] The execution order of step S202 and step S204 can be interchanged, that is, step S204 can be executed first, and then step S202.

[0067] Through the above steps, by disposing a first sensor in a first direction of the target robot to collect first sensor information in the first direction, disposing a second sensor in a second direction of the target robot to collect second sensor information in the second direction, and controlling the movement direction of the target robot based on the first and second sensor information, the target robot is cleaned in the target pool. This avoids the incomplete cleaning of the pool caused by the unreasonable distance between the pool robot and the pool wall in the related art, thereby improving the cleaning intensity and efficiency of the pool.

[0068] In an embodiment of the present application, the first sensor information and the second sensor information collected by the first sensor and the second sensor can also be used to create a probability grid map, and the data of the inertial measurement unit imu, the code disk, the water depth sensor, etc. can be integrated to perform real-time positioning of the target robot. The target robot cleans along the edge of the swimming pool wall underwater, and at the same time completes the map creation of the entire swimming pool, and also provides a boundary reference for coverage path planning. The present application subversively improves the cleaning efficiency and intelligence level of the swimming pool robot by using ultrasonic sensors with a higher waterproof grade and an intelligent full coverage solution. Increasing the waterproof grade of the ultrasonic sensor enables the sensor to meet the needs of long-term underwater work. Compared with existing swimming pool robots, it can obtain rich underwater obstacle information and effectively process it. The intelligent full coverage solution of the pool bottom can improve the cleaning efficiency of the machine and improve the efficiency of battery capacity utilization.

[0069] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, 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), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the method described in each embodiment of the present application.

[0070] In the embodiments of the present application, a control device for a robot is also provided, which is configured to implement the above-mentioned embodiments and optional implementations, and the details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.

[0071] Figure 5 is a structural block diagram of a control device for a robot according to an embodiment of the present application. As shown in Figure 5, the device includes: a first acquisition module 52, configured to acquire first sensing information collected by a first sensor in a first direction of the target robot; a second acquisition module 54, configured to acquire second sensing information collected by a second sensor in a second direction of the target robot, wherein the first direction and the second direction are perpendicular to each other; a control module 56, configured to control the moving direction of the target robot in a target swimming pool according to the first sensing information and the second sensing information, wherein the target robot is configured to clean the target swimming pool.

[0072] In an exemplary embodiment, the above-mentioned device is also configured to control the target robot to move in a third direction when the first sensing information indicates that the distance between the target robot and the first obstacle in the first direction reaches a first maximum threshold, wherein the third direction is the opposite direction of the second direction.

[0073] In an exemplary embodiment, the above-mentioned device is further configured to reduce the moving speed of the target robot when the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, and the moving speed of the target robot is zero when the distance between the target robot and the first obstacle reaches a first minimum threshold, and the first minimum threshold is less than the first maximum threshold; when the distance between the target robot and the first obstacle reaches the first minimum threshold, the target robot is controlled to rotate to the third direction.

[0074] In an exemplary embodiment, the above-mentioned device is also configured to reduce the moving speed of the target robot when the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, and the moving speed of the target robot is zero when the distance between the target robot and the first obstacle reaches a first minimum threshold, and the first minimum threshold is less than the first maximum threshold; when the distance between the target robot and the first obstacle reaches the first minimum threshold, control the target robot to move a preset distance in a fourth direction, and the fourth direction is the opposite direction of the first direction; when the target robot moves the preset distance in the fourth direction, control the target robot to rotate to the third direction.

[0075] In an exemplary embodiment, the above-mentioned device is also configured to reduce the movement speed of the target robot and control the target robot to rotate toward the third direction at a preset rotation speed when the first sensing information indicates that the distance between the target robot and the first obstacle reaches the first maximum threshold, and the target robot rotates to the third direction when the distance between the target robot and the first obstacle reaches the first minimum threshold.

[0076] In an exemplary embodiment, the above-mentioned device is further configured to control the target robot to move in a direction parallel to the second obstacle when the second sensing information indicates that the distance between the target robot and the second obstacle in the second direction is within a preset range; or, when the second sensing information indicates that the distance between the target robot and the second obstacle is within the preset range, control the target robot to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches a second minimum threshold, control the target robot to move in a direction parallel to the second obstacle, wherein the second minimum threshold is less than the minimum value of the preset range; when the second sensing information indicates that the distance between the target robot and the second obstacle is not within the preset range, control the moving direction of the target robot according to the distance between the target robot and the second obstacle.

[0077] In an exemplary embodiment, the above-mentioned device is further configured to reduce the movement speed of the target robot and control the target robot to rotate in a third direction at a preset rotation speed when the distance between the target robot and the second obstacle is less than the second minimum threshold and greater than or equal to a third minimum threshold. When the distance between the target robot and the second obstacle reaches the second minimum threshold, the target robot is controlled to move in a direction parallel to the second obstacle, wherein the third minimum threshold is less than the second minimum threshold, and the third direction is the opposite direction of the second direction; or, when the distance between the target robot and the second obstacle is less than the third minimum threshold, the target robot is controlled to rotate to the third direction.

[0078] In an exemplary embodiment, the above-mentioned device is further configured to control the target robot to rotate in the second direction at a preset rotation speed when the distance between the target robot and the second obstacle is greater than or equal to a second maximum threshold and less than or equal to a third maximum threshold, and when the distance between the target robot and the second obstacle reaches a second minimum threshold, control the target robot to move in a direction parallel to the second obstacle; or, when the distance between the target robot and the second obstacle is greater than or equal to the second maximum threshold and less than or equal to a third maximum threshold, control the target robot to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches the minimum value within the preset range, control the target robot to move in a direction parallel to the second obstacle; or, when the distance between the target robot and the second obstacle is greater than or equal to the third maximum threshold, control the target robot to rotate to the second direction.

[0079] In an exemplary embodiment, a cleaning device is provided in the second direction of the target robot, and the device is further configured to control the cleaning device to clean the target swimming pool during the process of controlling the movement of the target robot.

[0080] In an exemplary embodiment, the first direction is the front of the target robot, and the second direction is the left direction or the right direction of the target robot.

[0081] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0082] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when run.

[0083] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0084] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.

[0085] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0086] An embodiment of the present application also provides a swimming pool robot, comprising: a first sensor, arranged in a first direction of the swimming pool robot, configured to collect first sensor information in the first direction; a second sensor, arranged in a second direction of the swimming pool robot, configured to collect second sensor information in the second direction; a processor, configured to control the moving direction of the target robot in a target swimming pool based on the first sensor information and the second sensor information, wherein the swimming pool robot is configured to clean the target swimming pool; and a cleaning device, configured to clean the target swimming pool.

[0087] For specific examples in the embodiments of the present application, reference may be made to the examples described in the above embodiments and exemplary implementations, and this embodiment will not be described in detail here.

[0088] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0089] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included within the scope of protection of the present application.

Claims

1. A robot control method, comprising: Acquire first sensing information collected by the first sensor in a first direction of the target robot; Acquire second sensing information collected by a second sensor in a second direction of the target robot, wherein the first direction is perpendicular to the second direction; The moving direction of the target robot in the target swimming pool is controlled according to the first sensing information and the second sensing information, wherein the target robot is configured to clean the target swimming pool.

2. The method according to claim 1, characterized in that Controlling the moving direction of the target robot in the target swimming pool according to the first sensing information and the second sensing information includes: When the first sensing information indicates that the distance between the target robot and the first obstacle in the first direction reaches a first maximum threshold, the target robot is controlled to move in a third direction, wherein the third direction is an opposite direction to the second direction.

3. The method according to claim 2, wherein: When the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, controlling the target robot to move in a third direction includes: When the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, the moving speed of the target robot is reduced, and when the distance between the target robot and the first obstacle reaches a first minimum threshold, the moving speed of the target robot is zero, and the first minimum threshold is less than the first maximum threshold; When the distance between the target robot and the first obstacle reaches the first minimum threshold, the target robot is controlled to rotate to the third direction.

4. The method according to claim 3, wherein: After the moving speed of the target robot is zero when the distance between the target robot and the first obstacle reaches a first minimum threshold, the method further includes: The robot is controlled to rotate in situ toward the third direction until the second sensor can detect a second obstacle in the second direction of the robot.

5. The method according to claim 2, wherein: When the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, controlling the target robot to move in a third direction also includes: When the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, the moving speed of the target robot is reduced, and when the distance between the target robot and the first obstacle reaches a first minimum threshold, the moving speed of the target robot is zero, and the first minimum threshold is less than the first maximum threshold; When the distance between the target robot and the first obstacle reaches a first minimum threshold, controlling the target robot to move a preset distance in a fourth direction, where the fourth direction is opposite to the first direction; When the target robot moves the preset distance in the fourth direction, the target robot is controlled to rotate to the preset distance. Describe the third direction.

6. The method according to claim 2, wherein: When the first sensing information indicates that the distance between the target robot and the first obstacle reaches a first maximum threshold, controlling the target robot to move in a third direction also includes: When the first sensing information indicates that the distance between the target robot and the first obstacle reaches the first maximum threshold, the moving speed of the target robot is reduced, and the target robot is controlled to rotate toward the third direction at a preset rotation speed; when the distance between the target robot and the first obstacle reaches the first minimum threshold, the target robot rotates to the third direction.

7. The method according to claim 1, wherein: According to the first sensor information and the second sensor information, controlling the moving direction of the target robot in the target swimming pool also includes: When the second sensing information indicates that the distance between the target robot and the second obstacle in the second direction is within a preset range, controlling the target robot to move in a direction parallel to the second obstacle; or When the second sensing information indicates that the distance between the target robot and the second obstacle is within the preset range, the target robot is controlled to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches a second minimum threshold, the target robot is controlled to move in a direction parallel to the second obstacle, wherein the second minimum threshold is less than a minimum value of the preset range; When the second sensing information indicates that the distance between the target robot and the second obstacle is not within the preset range, the moving direction of the target robot is controlled according to the distance between the target robot and the second obstacle.

8. The method according to claim 7, wherein: When the second sensing information indicates that the distance between the target robot and the second obstacle is not within the preset range, controlling the moving direction of the target robot according to the distance between the target robot and the second obstacle includes: When the distance between the target robot and the second obstacle is less than the second minimum threshold and greater than or equal to a third minimum threshold, the moving speed of the target robot is reduced, and the target robot is controlled to rotate in a third direction at a preset rotation speed; when the distance between the target robot and the second obstacle reaches the second minimum threshold, the target robot is controlled to move in a direction parallel to the second obstacle, wherein the third minimum threshold is less than the second minimum threshold, and the third direction is the opposite direction of the second direction; or When the distance between the target robot and the second obstacle is less than the third minimum threshold, the target robot is controlled to rotate to the third direction.

9. The method according to claim 7, wherein: When the second sensing information indicates that the distance between the target robot and the second obstacle is not within the preset range, controlling the moving direction of the target robot according to the distance between the target robot and the second obstacle includes: When the distance between the target robot and the second obstacle is greater than or equal to the second maximum threshold and less than or equal to the third maximum threshold, the target robot is controlled to rotate in the second direction at a preset rotation speed; when the distance between the target robot and the second obstacle reaches a second minimum threshold, the target robot is controlled to move in a direction parallel to the second obstacle; or When the distance between the target robot and the second obstacle is greater than or equal to the second maximum threshold and less than or equal to the third maximum threshold, the target robot is controlled to rotate in the second direction at a preset rotation speed, and when the distance between the target robot and the second obstacle reaches the minimum value within the preset range, the target robot is controlled to move in a direction parallel to the second obstacle; or When the distance between the target robot and the second obstacle is greater than or equal to a third maximum threshold, the target robot is controlled to rotate to the second direction.

10. The method according to claim 1, wherein: The method further comprises: A cleaning device is arranged in the second direction of the target robot, and the cleaning device is controlled to clean the target swimming pool during the process of controlling the movement of the target robot.

11. The method according to claim 1, wherein: The first direction is the front of the target robot, and the second direction is the left direction or the right direction of the target robot.

12. The method according to any one of claims 1 to 11, wherein: The first sensor is configured as a waterproof ultrasonic sensor, and the second sensor is configured as a waterproof ultrasonic sensor.

13. The method according to any one of claims 1 to 11, wherein: The first direction is the front of the robot, and the second direction is the right direction of the robot.

14. A robot control device, applied to the robot control method according to any one of claims 1 to 13, comprising: A first acquisition module, configured to acquire first sensing information collected by a first sensor in a first direction of a target robot; A second acquisition module is configured to acquire second sensing information collected by a second sensor in a second direction of the target robot, wherein the first direction is perpendicular to the second direction; The control module is configured to control the moving direction of the target robot in the target swimming pool according to the first sensing information and the second sensing information, wherein the target robot is configured to clean the target swimming pool.

15. A swimming pool robot, applied to the robot control method according to any one of claims 1 to 13, comprising: A first sensor is disposed in a first direction of the swimming pool robot and is configured to collect first sensor information in the first direction; A second sensor is disposed in a second direction of the swimming pool robot and is configured to collect second sensor information in the second direction; a processor, configured to control a moving direction of the target robot in a target swimming pool according to the first sensing information and the second sensing information, wherein the swimming pool robot is configured to clean the target swimming pool; A cleaning device is configured to clean the target swimming pool.

16. The robot according to claim 15, wherein: The cleaning device cleans the water in the target swimming pool by filtering the water in the target swimming pool.

17. The robot according to claim 15, wherein: The cleaning device is arranged at the second direction of the robot, and is used for cleaning the pool wall of the target swimming pool.

18. The robot according to claim 15, wherein: The cleaning device includes a pumping device and a filter. The pumping device is used to suck the liquid in the target swimming pool from the water inlet of the pumping device, filter the impurities and / or garbage in the liquid through the filter, and discharge the filtered water from the water outlet of the pumping device to clean the liquid in the target swimming pool.

19. A computer-readable storage medium having a computer program stored therein, wherein: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 13 are implemented.

20. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 13 when executing the computer program.

Citation Information

Patent Citations

  • Walking control method and device of cleaning machine

    CN102799180A

  • Swimming pool cleaning robot and swimming pool cleaning method

    CN114109095A

  • Method and device for wall collision turning and swimming pool edge cleaning of swimming pool cleaning robot

    CN114319954A

  • Swimming pool water surface decontamination method and decontamination robot

    CN114352084A

  • Robot control method and device

    CN116501051A

Cited By

  • Swimming pool robot positioning and trajectory prediction method and system fusing sonar and vision

    CN120489100A