Obstacle detection and control method for underwater robot, and underwater robot and medium

The acceleration sensor and distance sensor are used to detect obstacles and control the water pumping and escape mechanism of the underwater robot. This solves the problem of the underwater robot being stuck by obstacles or changing its direction of travel, and improves the cleaning range and efficiency.

WO2024207592A1PCT designated stage expired Publication Date: 2024-10-10SHENZHEN SEAUTO TECH CO LTD

Patent Information

Application Number
PCT/CN2023/093920
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-04
Filing Date
2023-05-12
Publication Date
2024-10-10

AI Technical Summary

Technical Problem

When performing cleaning tasks, underwater robots can easily get stuck by obstacles or change their direction of travel, affecting the cleaning scope and efficiency.

Method used

The acceleration sensor and distance sensor are used to detect obstacles, determine the type of obstacle, and control the water pumping and escape mechanisms to perform corresponding actions to avoid being trapped or changing the direction of travel.

Benefits of technology

The cleaning range and efficiency of the underwater robot are improved to ensure that obstacles do not affect the cleaning task.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023093920_10102024_PF_FP_ABST
    Figure CN2023093920_10102024_PF_FP_ABST
Patent Text Reader

Abstract

An obstacle detection and control method for an underwater robot, and an underwater robot and a medium. The method is applied to an underwater robot, and the underwater robot comprises an out-of-obstacle mechanism and a water pumping mechanism. The method comprises the following steps: S10, during the process of executing a cleaning task, acquiring an acceleration measured by an acceleration sensor, and a distance value measured by a distance sensor; S20, when the variation of the acceleration within a preset time window is greater than a preset threshold value and the distance value is greater than a distance threshold value, determining that there is a first-type obstacle at the current position; and S30, when it is detected that there is a first-type obstacle at the current position, controlling the water pumping mechanism and the out-of-obstacle mechanism to execute a first out-of-obstacle action. By means of measuring the variation of the acceleration of an underwater robot within a preset window and a distance value from a distance sensor, the type of swimming-pool obstacle is determined, and an out-of-obstacle action is executed on the basis of the type of obstacle, thereby widening the cleaning range of the underwater robot.
Need to check novelty before this filing date? Find Prior Art

Description

Obstacle detection and control method of underwater robot, underwater robot and medium

[0001] This application claims priority to the invention patent application filed with the Patent Office of China on April 4, 2023, with application number 202310382400.2 and application name “Obstacle Detection and Control Method of Underwater Robot, Underwater Robot and Medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of robotics, and in particular to an obstacle detection and control method for an underwater robot, an underwater robot, and a medium. Background Art

[0003] Underwater robots can be used for a variety of underwater operations, such as repeatedly cleaning the bottom, walls and waterline of a swimming pool.

[0004] When an underwater robot is cleaning a pool, obstacles on the pool floor can hinder its performance. For example, if there are foreign objects underwater, such as goggles, slippers, and branches, the robot can easily become stuck and unable to move. Alternatively, if the robot encounters fixed obstacles like ladders and steps on the pool wall, the collision can cause it to change direction. This can cause the robot to become stuck or change direction during cleaning, affecting its cleaning range.

[0005] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art.

[0006] Summary of the Invention

[0007] The main purpose of this application is to provide an obstacle detection and control method for an underwater robot, an underwater robot and a medium, so as to solve the problem in the prior art that the underwater robot may be trapped in a certain position or change its original direction of travel during the cleaning process, thereby affecting the cleaning range of the underwater robot.

[0008] To achieve the above objectives, the present application provides an obstacle detection and control method for an underwater robot, the obstacle detection and control method for an underwater robot comprising the following steps:

[0009] During the cleaning process, the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor are obtained;

[0010] When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current position; and

[0011] When it is detected that the first type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a first escape action.

[0012] Optionally, when the first type of obstacle is detected at the current position, the step of controlling the pumping mechanism and the escape mechanism to perform the first escape action includes:

[0013] When the first type of obstacle is detected at the current position, the pumping mechanism is stopped and the escape mechanism is started to switch the underwater robot to a running state; and

[0014] The underwater robot is controlled to perform the first escape action for a first preset time period based on the switched operating state.

[0015] Optionally, in the process of performing the cleaning task, after the step of obtaining the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor, the method further includes:

[0016] When the change in the acceleration within the preset time window is less than the preset threshold, and the distance value is less than the distance threshold, it is determined that a second type of obstacle exists at the current position; and

[0017] When it is detected that the second type of obstacle exists at the current position, the pumping mechanism is controlled to perform a second escape action.

[0018] Optionally, when the second type of obstacle is detected at the current position, the step of controlling the pumping mechanism to perform the second escape action includes:

[0019] When the second type of obstacle is detected at the current position, controlling the pumping mechanism to switch the operating state; and

[0020] The underwater robot is controlled to perform the second escape action for a second preset time period based on the operating state of the switched pumping mechanism.

[0021] Optionally, in the process of performing the cleaning task, after the step of obtaining the current acceleration detected by the acceleration sensor and the distance parameter detected by the distance sensor, the method further includes:

[0022] When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is less than the distance threshold, determining that a third type of obstacle exists at the current position; and

[0023] When it is detected that the third type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a third escape action.

[0024] Optionally, when the third type of obstacle is detected at the current position, the step of controlling the pumping mechanism and the escape mechanism to perform a third escape action includes:

[0025] When the third type of obstacle is detected at the current position, the pumping mechanism is stopped and the escape mechanism is activated, so that the underwater robot performs the third escape action of the third preset duration; and

[0026] When the distance value is 0, the escape mechanism is stopped, the pumping mechanism is started, and the underwater robot is controlled to perform the third escape action of the third preset time length.

[0027] Optionally, the underwater robot includes a three-dimensional laser scanner, and before the step of obtaining the current acceleration detected by the acceleration sensor and the distance parameter detected by the distance sensor during the execution of the cleaning task, the method further includes:

[0028] Scanning the swimming pool area using the three-dimensional laser scanner, and dividing the swimming pool area into a plurality of areas of equal size based on the scanning results; and

[0029] The cleaning tasks are generated based on the areas of equal size, and the cleaning tasks are executed when a water entry signal is detected.

[0030] Optionally, in the process of performing the cleaning task, after the step of obtaining the current acceleration detected by the acceleration sensor and the distance parameter detected by the distance sensor, the method further includes:

[0031] If a change value of the distance value within a preset period is greater than a preset change value, obtaining a change level of the change value; and

[0032] When the change level is dangerous, the underwater robot is controlled to perform a fourth escape action.

[0033] In addition, to achieve the above-mentioned purpose, the present application further provides an underwater robot, comprising a memory, a processor, and an obstacle detection and control program stored in the memory and executable on the processor, wherein the obstacle detection and control program, when executed by the processor, implements the following steps:

[0034] During the cleaning process, the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor are obtained;

[0035] When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current position; and

[0036] When it is detected that the first type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a first escape action.

[0037] In addition, to achieve the above-mentioned purpose, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a control program of an underwater robot, and when the control program of the underwater robot is executed by a processor, the following steps are implemented:

[0038] During the cleaning process, the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor are obtained;

[0039] When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current position; and

[0040] When it is detected that the first type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a first escape action.

[0041] The embodiments of the present application provide an obstacle detection and control method for an underwater robot, an underwater robot, and a storage medium. When the underwater robot performs a cleaning task, the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor are obtained. When the change in the acceleration within a preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current location. When the first type of obstacle is detected at the current location, the pumping mechanism and the escape mechanism are controlled to perform a first escape action. It can be seen that when the underwater robot performs a cleaning task, the data obtained by the acceleration sensor and the distance sensor are used to determine the type of obstacle detected during the cleaning process based on the change in the acceleration within the window threshold. Then, the corresponding escape action is performed according to the obstacle type, thereby preventing the underwater robot from being trapped in place or changing its original direction of travel when encountering an obstacle, thereby improving the cleaning range and cleaning efficiency of the underwater robot. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for describing the embodiments. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without inventive work.

[0043] FIG1 is a flow chart of a first embodiment of an obstacle detection and control method for an underwater robot according to the present application;

[0044] FIG2 is a flow chart of a second embodiment of the obstacle detection and control method for an underwater robot of the present application;

[0045] FIG3 is a flow chart of a third embodiment of the obstacle detection and control method for an underwater robot of the present application;

[0046] FIG4 is a flow chart of a fourth embodiment of the obstacle detection and control method for an underwater robot of the present application;

[0047] FIG5 is a schematic diagram of the terminal hardware structure of various embodiments of the obstacle detection and control method of the underwater robot of the present application.

[0048] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] In related technologies, when underwater robots perform pool cleaning tasks, obstacles on the pool floor can hinder their performance. For example, if foreign objects such as swimming goggles, slippers, and branches are present underwater, the underwater robot can easily become stuck and unable to move. Alternatively, if the underwater robot encounters fixed obstacles such as ladders and steps on the pool wall, the collision can cause the robot to change direction. This can cause the underwater robot to become stuck or change direction during the cleaning process, thereby affecting its cleaning range.

[0051] To address the above-mentioned drawbacks, the present invention proposes an obstacle detection and control method for an underwater robot. The main solution includes the following steps:

[0052] During the cleaning process, the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor are obtained;

[0053] When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current position; and

[0054] When it is detected that the first type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a first escape action.

[0055] The present application uses an obstacle detection and obstacle avoidance method for an underwater cleaning robot. When the underwater robot performs a cleaning task, the data obtained by the acceleration sensor and the distance sensor are used to determine the type detected during the cleaning process based on the change in acceleration within the window threshold. Then, the corresponding escape action is performed according to the obstacle type, thereby preventing the underwater robot from being trapped in place or changing its original direction of travel when encountering an obstacle, thereby improving the cleaning range and cleaning efficiency of the underwater robot.

[0056] To better understand the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0057] Please refer to FIG. 1 , which is a flow chart of a first embodiment of an obstacle detection and control method for an underwater robot of the present application.

[0058] In this embodiment, the obstacle detection and control method of the underwater robot includes the following steps:

[0059] Step S10, during the execution of the cleaning task, obtaining the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor;

[0060] In this embodiment, the underwater robot may be a pool cleaning robot, comprising a dehydration mechanism and a pumping mechanism. The distance sensor may be an ultrasonic sensor, a laser point cloud radar, a sonar sensor, a laser rangefinder, or the like. While the underwater robot is performing its pool cleaning task, obstacles such as swimming goggles, broken tiles, bricks, and the pool walls may block the robot's movement, resulting in lower pool cleaning efficiency. Therefore, when the underwater robot encounters such obstacles, it needs to be able to detect the obstacle type and perform corresponding obstacle handling based on the obstacle, thereby improving pool cleaning efficiency.

[0061] Therefore, when the underwater robot receives a cleaning task and is performing it, it activates the accelerometer and distance sensor, and obtains the underwater robot's acceleration detected by the accelerometer in real time. It also uses the ultrasonic sensor to obtain the distance of objects 2-3 meters in front of the underwater robot. Because the distance sensor has blind spots, the accelerometer can be used as a supplementary detection method. Based on the accelerometer, complementary detection is performed at locations where the distance sensor has blind spots.

[0062] Optionally, the underwater robot can also scan obstacles 2-3 meters in front of it through point cloud radar.

[0063] It should be noted that, in this embodiment, when no obstacle is detected within 2-3 meters in front of the underwater robot, it can be considered that the distance value received by the distance sensor is greater than 3 meters.

[0064] Optionally, before the underwater robot enters the water to clean the pool, it is also necessary to determine and plan a cleaning path to improve the cleaning efficiency of the underwater robot. In this embodiment, the underwater robot also includes a three-dimensional laser scanner. Therefore, before step S10, steps S40-S50 are also included:

[0065] Step S40, scanning the swimming pool area using the three-dimensional laser scanner, and dividing the swimming pool area into a plurality of areas of equal size based on the scanning results;

[0066] Step S50 : generating a cleaning path planning scheme based on the areas of equal size, and executing the cleaning path planning scheme when a water entry signal is detected, wherein the cleaning path planning scheme includes the target heading angle.

[0067] For example, before the underwater robot enters the water to clean, the user can send a scanning instruction to the underwater robot through a mobile phone APP (application). The underwater robot then scans the swimming pool through a three-dimensional laser scanner. To facilitate the generation of the cleaning path, the underwater robot will divide the scanning results into multiple equal areas, and generate a cleaning path planning scheme based on multiple equal areas. When the underwater robot performs the cleaning task, it will strictly follow the travel direction corresponding to the cleaning path planning scheme.

[0068] It should be noted that the user can also send scanning instructions to the underwater robot in other ways, such as clicking a scan button, etc., and can also scan the swimming pool through other devices. The above exemplary scheme is only for explanation and is not a limitation of this application.

[0069] Step S20: When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current position;

[0070] In this embodiment, the preset time window threshold can be set between 10ms-30ms, or the time window threshold can be selected within the range of 10ms-500ms, and a longer window threshold can also be set. And the window threshold. In order to avoid the influence of underwater resistance, the starting point of the window threshold is not 0ms. For the convenience of calculation, the change in acceleration is taken as an absolute value. The preset threshold can be set according to the actual application scenario. The distance threshold can be 0.2m, 0.5m, or 1m, etc., and can be reasonably set according to actual requirements. The first type of obstacle refers to small obstacles at the bottom of the swimming pool that are far away from the pool wall directly in front of the underwater robot, such as goggles, bricks, and branches.

[0071] Alternatively, if the acceleration sensor value is set to sensor_val and the actual acceleration value is acc_val, the acceleration change can be calculated using the following formula:

[0072] acc_val=C×sensor_val.

[0073] Where C is the conversion coefficient, and the acceleration sensor value under gravity acceleration is 4096. If the gravity acceleration value is 980cm / s 2 , then the conversion coefficient C is the quotient of 980 and 4096, that is, C is approximately 0.239258. Therefore, the above formula is specifically:

[0074] acc_val=0.239258×sensor_val.

[0075] When the acceleration changes within a preset time window by more than a preset threshold, and the distance value detected by the distance sensor is greater than the distance threshold, it indicates that the underwater robot has come into contact with an obstacle at its current location, and the obstacle is affecting the underwater robot's cleaning operation. The underwater robot can then determine that a first-category obstacle exists at its current location.

[0076] The underwater robot uses the acceleration of the accelerometer and the distance value obtained by the distance sensor in real time to determine the current obstacle type, so that the underwater robot can avoid obstacles according to the current distance to the obstacle, preventing the obstacles from negatively affecting the cleaning work of the underwater robot.

[0077] Step S30: When it is detected that the first type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a first escape action.

[0078] In this embodiment, when it is detected that the first type of obstacle exists at the current position, it is necessary to control the pumping mechanism and the escape mechanism of the underwater robot to perform the first escape action, so that the underwater robot can cross the current first type of obstacle.

[0079] Specifically, this step includes steps S31-S32:

[0080] Step S31, when detecting the presence of the first type of obstacle at the current position, stopping the pumping mechanism and starting the escape mechanism to switch the underwater robot to an operating state;

[0081] Step S32: Based on the switched operating state, the underwater robot is controlled to execute the first escape action for a first preset time period.

[0082] In this embodiment, drainage ports are provided at the bottom and top of the front of the underwater robot. When the underwater robot is performing cleaning, the pumping mechanism works normally and the water flows out from the drainage port on the top.

[0083] In one embodiment, when it is detected that the first type of obstacle exists at the current position of the underwater robot, the pumping mechanism is stopped and the escape mechanism is activated. After the escape mechanism is activated, the water flow of the underwater robot, which originally flows out from the drain port at the top, is changed to flowing out from the drain port at the bottom in front, that is, the operating state is switched. After the water flows out from the drain port at the bottom in front, the front end of the underwater robot is lifted by a preset angle, thereby enabling the underwater robot to cross the first type of obstacle (such as swimming goggles, bricks, and branches, etc.), and continue to perform the cleaning task after crossing the first type of obstacle within the first preset time. Therefore, the first escape action is to turn off the pumping mechanism, and then change the drainage mode of the underwater robot through the escape mechanism, so that the underwater robot can cross the first type of obstacle within the first preset time, thereby improving the cleaning efficiency of the underwater robot. It should be noted that the first preset time length can be set based on the actual scenario.

[0084] In the technical solution disclosed in this embodiment, while the underwater robot is performing a cleaning task, the acceleration detected by the accelerometer and the distance value detected by the distance sensor are acquired. When the change in acceleration within a preset time window is greater than a preset threshold, and the distance is greater than the threshold, the presence of a first-class obstacle is determined at the current location. Based on this, the underwater robot can detect underwater obstacles based on the change in acceleration within the preset time window and the distance value of the distance sensor, thereby ensuring that the underwater robot can detect obstacles. When the first-class obstacle is detected, the robot executes a first escape action, enabling the underwater robot to quickly escape and improve cleaning efficiency.

[0085] 2 , in the second embodiment, based on the first embodiment, after step S10, steps S40 to S50 are further included:

[0086] Step S40: When the change in the acceleration within the preset time window is less than the preset threshold, and the distance value is less than the distance threshold, it is determined that a second type of obstacle exists at the current position;

[0087] In this embodiment, the preset threshold can be set according to the actual application scenario. The distance threshold can be 0.2m, 0.5m, or 1m, etc., and can be reasonably set according to actual requirements. The second type of obstacles includes steps, pool walls, and floor drains.

[0088] In one embodiment, when the change in acceleration within a preset time window is less than a preset threshold, and the distance value detected by the distance sensor is less than the distance threshold, the underwater robot has detected a second-category obstacle, such as a step, pool wall, or floor drain, directly in front of it at its current location. The underwater robot has now determined that a second-category obstacle exists at its current location. It should be noted that obstacles such as steps, pool walls, and floor drains can be detected by the underwater robot using the distance sensor. This means that second-category obstacles can be detected solely by the distance sensor. Meanwhile, first-category obstacles require the acceleration sensor to detect and can be considered obstacles in the corresponding area of ​​the distance sensor's blind spot. Therefore, when a first-category obstacle is detected, the underwater robot can execute a maneuver to cross the first-category obstacle, preventing it from interfering with the robot's cleaning operation. When a second-category obstacle, such as a step or pool wall, is detected, the robot must either climb over the step or the pool wall to perform cleaning, preventing the step or wall from interfering with the robot's cleaning operation.

[0089] Based on this, the current obstacle type is determined by the acceleration of the acceleration sensor obtained by the underwater robot in real time and the distance value obtained by the distance sensor.

[0090] Step S50: When it is detected that the second type of obstacle exists at the current position, the pumping mechanism is controlled to perform a second escape action.

[0091] In this embodiment, when the second type of obstacle is detected at the current position, it is necessary to control the pumping mechanism of the underwater robot to perform a second escape action so that the underwater robot can cross the steps or climb the wall of the swimming pool, thereby enabling the underwater robot to easily cross the second type of obstacle and improve the cleaning efficiency of the underwater robot in the swimming pool.

[0092] Specifically, this step includes steps S51-S52:

[0093] Step S51, when the second type of obstacle is detected at the current position, controlling the pumping mechanism to switch to an operating state;

[0094] Step S52: Based on the operating state of the switched pumping mechanism, the underwater robot is controlled to perform the second escape action for a second preset time period.

[0095] In this embodiment, upon detecting the presence of the second type of obstacle at the current location, the pumping mechanism is controlled to switch its operating state. After switching to this operating state, the pumping mechanism causes the underwater robot's water flow, which originally flowed out of the top drain, to flow out of the front bottom drain instead. After the water flows out of the front bottom drain, the front end of the underwater robot is raised by a preset angle, enabling the underwater robot to traverse steps or climb the pool wall within a second preset time period. After traversing the second type of obstacle, the robot can resume its cleaning task.

[0096] Therefore, the second escape action is to switch the operating state of the pumping mechanism so that the underwater robot can pass the second type of obstacle within the second preset time, thereby improving the cleaning efficiency of the underwater robot. It should be noted that the second preset time can be set based on the actual scenario.

[0097] In the technical solution disclosed in this embodiment, while the underwater robot is performing a cleaning task, the acceleration detected by the accelerometer and the distance value detected by the distance sensor are obtained. When the change in acceleration within a preset time window is less than a preset threshold, and the distance is less than the distance threshold, the presence of a second-type obstacle is determined at the current location. Based on this, the underwater robot can detect underwater obstacles based on the change in acceleration within the preset time window and the distance value of the distance sensor, thereby ensuring that the underwater robot can detect obstacles. When the second-type obstacle is detected, the second escape action is executed, allowing the underwater robot to quickly escape and improve cleaning efficiency.

[0098] 3 , in the third embodiment, based on the first embodiment, after step S10, steps S60 to S70 are further included:

[0099] Step S60: When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is less than the distance threshold, it is determined that a third type of obstacle exists at the current position;

[0100] In this embodiment, the preset threshold can be set based on the actual application scenario. The distance threshold can be 0.2m, 0.5m, or 1m, etc., and can be reasonably set based on actual requirements. The third type of obstacle is composed of the first and second types of obstacles, such as bricks near the pool wall.

[0101] In one embodiment, when the change in acceleration within a preset time window is greater than a preset threshold, and the distance value detected by the distance sensor is less than the distance threshold, it indicates that the underwater robot has detected a first-type obstacle, such as a brick or a branch, at its current location after detecting a second-type obstacle, such as a step or a pool wall. The underwater robot then determines that a third-type obstacle exists at its current location.

[0102] Based on this, the current obstacle type is determined by the acceleration of the acceleration sensor obtained by the underwater robot in real time and the distance value obtained by the distance sensor.

[0103] Step S70: When it is detected that the third type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a third escape action.

[0104] In this embodiment, when it is detected that the third type of obstacle exists at the current position, it is necessary to first control the book-drawing mechanism and the escape mechanism to perform the first escape action first, and after performing the first escape action, perform the second escape action, so that the underwater robot can cross the goggles, bricks or branches, and then cross the steps or climb up the pool wall, thereby enabling the underwater robot to cross the third type of obstacle and improve the cleaning efficiency of the underwater robot in the swimming pool.

[0105] Specifically, this step includes steps S71-S72:

[0106] Step S71: when it is detected that the third type of obstacle exists at the current position, the pumping mechanism is stopped and the escape mechanism is activated, so that the underwater robot performs the third escape action for a third preset time period;

[0107] Step S72: When the distance value is 0, the escape mechanism is stopped, the pumping mechanism is started, and the underwater robot is controlled to perform the third escape action of the third preset time period.

[0108] In this embodiment, when the presence of the third type of obstacle is detected at the current location, the first type of obstacle needs to be overcome first, that is, the pumping mechanism is stopped, and the escape mechanism is activated to perform the first escape action of the third preset time period. Since the underwater robot needs to continue to overcome the second type of obstacle after overcoming the first type of obstacle, after crossing the first type of obstacle, when the distance value detected by the distance sensor is 0, that is, when the front end of the underwater robot contacts the second type of obstacle such as a step or the pool wall, the second escape action is performed. That is, the escape mechanism is turned off, the pumping mechanism is restarted, and the pumping mechanism is controlled to maintain or switch the current operating state, so that the water flow of the underwater robot flows out from the drain port at the bottom directly in front, thereby ensuring that the front end of the underwater robot is lifted to a preset angle, so that the underwater robot can overcome the step or climb the pool wall within the third preset time period, and then continue to perform the cleaning task.

[0109] Therefore, the third escape action is to sequentially execute the first and second escape actions, so that the underwater robot can continue to cross the second type of obstacle after crossing the first type of obstacle. The condition for switching from the first escape action to the second escape action is that the distance value detected by the distance sensor is 0, that is, contact with the second type of obstacle, such as the pool wall or steps.

[0110] It should be noted that the third preset duration can be set based on the actual scenario.

[0111] In the technical solution disclosed in this embodiment, while the underwater robot is performing a cleaning task, the acceleration detected by the accelerometer and the distance value detected by the distance sensor are acquired. When the change in acceleration within a preset time window is greater than a preset threshold, and the distance value is less than the threshold, the presence of a third-category obstacle is determined at the current location. Based on this, the underwater robot can detect underwater obstacles based on the change in acceleration within the preset time window and the distance value of the distance sensor, thereby ensuring that the underwater robot can detect obstacles. When the third-category obstacle is detected, the robot executes a third escape action, enabling the underwater robot to quickly escape and improve cleaning efficiency.

[0112] 4 , in the fourth embodiment, based on the first embodiment, after step S10, steps S80 to S90 are further included:

[0113] Step S80, if the change value of the distance value within the preset time period is greater than the preset change value, obtaining the change level of the change value;

[0114] In this embodiment, if the change in the distance value within a preset time period exceeds a preset change value, meaning that the ultrasonic distance detected by the ultrasonic sensor changes too rapidly, it can be assumed that the underwater robot's ultrasonic sensor has detected a movable obstacle, such as another underwater robot. Based on this, when the change in the distance value exceeds the preset change value, a change level can be determined. The change level can be set based on the ratio of the change value to the preset change value. For example, if the change value is greater than 1.5 times the preset change value, the current change level can be considered dangerous.

[0115] For example, if the underwater robot detects an obstacle and the distance between the obstacles is 3 meters, the underwater robot moves 1 meter after 5 seconds, and the distance of the detected obstacle is only 1 meter, that is, the distance change value is 40 cm / s. Based on this, it can be judged that the current distance value change level is dangerous.

[0116] It should be noted that the above parameters are for explanation only and are not intended to limit the solution. Actual data needs to be set according to specific application scenarios.

[0117] Step S90: When the change level is dangerous, control the underwater robot to perform a fourth escape action.

[0118] In this embodiment, the fourth escape action can be controlling the underwater robot to perform a left or right turn. If the distance value changes to a dangerous level, it indicates that another underwater robot may be traveling in the opposite direction of the current underwater robot. Based on this, the underwater robot's travel motor can be controlled to move to the left to avoid a violent collision with the movable obstacle, which would affect the cleaning process.

[0119] In the technical solution disclosed in this embodiment, the change value of the distance value within a preset time period is calculated. When the change value is greater than the preset change value, the change level is further calculated. When the change level is dangerous, it indicates that there is a movable obstacle directly in front of the underwater robot. Based on this, in order to protect the safety of the underwater robot's cleaning process, it is necessary to control the underwater robot's restrictive fourth escape action so that the underwater robot avoids movable obstacles and ensures that the underwater robot can successfully complete the cleaning task.

[0120] Refer to Figure 5, which is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.

[0121] As shown in Figure 5, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0122] Those skilled in the art will understand that the terminal structure shown in FIG5 does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0123] As shown in FIG5 , the memory 1005 as a computer storage medium may include an operating system, a data storage module, a network communication module, and an obstacle detection and control program.

[0124] In the terminal shown in FIG5 , the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the processor 1001 can call the obstacle detection and control program stored in the memory 1005 and perform the following operations:

[0125] During the cleaning process, the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor are obtained;

[0126] When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current position; and

[0127] When it is detected that the first type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a first escape action.

[0128] Furthermore, the processor 1001 may call the obstacle detection and control program stored in the memory 1005 and perform the following operations:

[0129] When the first type of obstacle is detected at the current position, the pumping mechanism is stopped and the escape mechanism is started to switch the underwater robot to a running state; and

[0130] The underwater robot is controlled to perform the first escape action for a first preset time period based on the switched operating state.

[0131] Furthermore, the processor 1001 may call the obstacle detection and control program stored in the memory 1005 and perform the following operations:

[0132] When the change in the acceleration within the preset time window is less than the preset threshold, and the distance value is less than the distance threshold, it is determined that a second type of obstacle exists at the current position; and

[0133] When it is detected that the second type of obstacle exists at the current position, the pumping mechanism is controlled to perform a second escape action.

[0134] Furthermore, the processor 1001 may call the obstacle detection and control program stored in the memory 1005 and perform the following operations:

[0135] When the second type of obstacle is detected at the current position, controlling the pumping mechanism to switch the operating state; and

[0136] The underwater robot is controlled to perform the second escape action for a second preset time period based on the operating state of the switched pumping mechanism.

[0137] Furthermore, the processor 1001 may call the obstacle detection and control program stored in the memory 1005 and perform the following operations:

[0138] When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is less than the distance threshold, determining that a third type of obstacle exists at the current position; and

[0139] When it is detected that the third type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a third escape action.

[0140] Furthermore, the processor 1001 may call the obstacle detection and control program stored in the memory 1005 and perform the following operations:

[0141] When the third type of obstacle is detected at the current position, the pumping mechanism is stopped and the escape mechanism is activated, so that the underwater robot performs the third escape action of the third preset duration; and

[0142] When the distance value is 0, the escape mechanism is stopped, the pumping mechanism is started, and the underwater robot is controlled to perform the third escape action of the third preset time length.

[0143] Furthermore, the processor 1001 may call the obstacle detection and control program stored in the memory 1005 and perform the following operations:

[0144] Scanning the swimming pool area using the three-dimensional laser scanner, and dividing the swimming pool area into a plurality of areas of equal size based on the scanning results; and

[0145] The cleaning tasks are generated based on the areas of equal size, and the cleaning tasks are executed when a water entry signal is detected.

[0146] Furthermore, the processor 1001 may call the obstacle detection and control program stored in the memory 1005 and perform the following operations:

[0147] If a change value of the distance value within a preset period is greater than a preset change value, obtaining a change level of the change value; and

[0148] When the change level is dangerous, the underwater robot is controlled to perform a fourth escape action.

[0149] Furthermore, those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the control terminal to implement the steps of the above-described method embodiment.

[0150] Therefore, the present application also provides a computer-readable storage medium, which stores a control program for an underwater robot. When the control program for the underwater robot is executed by a processor, the various steps of the obstacle detection and control method for the underwater robot as described in the above embodiment are implemented.

[0151] It should be noted that since the storage medium provided in the embodiments of this application is the storage medium used to implement the method of the embodiments of this application, based on the method described in the embodiments of this application, those skilled in the art will be able to understand the specific structure and deformation of the storage medium, and therefore will not be described in detail here. All storage media used in the method of the embodiments of this application fall within the scope of protection to be provided by this application.

[0152] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0153] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.

[0154] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0156] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0157] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.

[0158] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

[0159] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. An obstacle detection and control method for an underwater robot, wherein: Applied to an underwater robot, the underwater robot includes an escape mechanism and a water pumping mechanism, and the obstacle detection and control method of the underwater robot includes: In the process of executing the cleaning task, the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor are obtained; When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current position; and When it is detected that the first type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a first escape action.

2. The obstacle detection and control method of an underwater robot according to claim 1, wherein: The step of controlling the pumping mechanism and the escape mechanism to perform a first escape action when the first type of obstacle is detected at the current position comprises: When the first type of obstacle is detected at the current position, the pumping mechanism is stopped and the escape mechanism is started to switch the underwater robot to a running state; and Based on the switched operating state, the underwater robot is controlled to perform the first escape action for a first preset time period.

3. The obstacle detection and control method of an underwater robot according to claim 1, wherein: In the process of performing the cleaning task, after the step of obtaining the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor, the method further includes: When the change in the acceleration within the preset time window is less than the preset threshold, and the distance value is less than the distance threshold, it is determined that a second type of obstacle exists at the current position; and When it is detected that the second type of obstacle exists at the current position, the pumping mechanism is controlled to perform a second escape action.

4. The obstacle detection and control method of an underwater robot according to claim 1, wherein: The step of controlling the pumping mechanism to perform a second escape action when the second type of obstacle is detected at the current position comprises: When the second type of obstacle is detected at the current position, controlling the pumping mechanism to switch the operating state; and Based on the operating state of the switched pumping mechanism, the underwater robot is controlled to perform the second escape action for a second preset time period.

5. The obstacle detection and control method of an underwater robot according to claim 1, wherein: In the process of performing the cleaning task, after the step of obtaining the current acceleration detected by the acceleration sensor and the distance parameter detected by the distance sensor, the method further includes: When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is less than the distance threshold, it is determined that a third type of obstacle exists at the current position; and When it is detected that the third type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a third escape action.

6. The obstacle detection and control method of an underwater robot as claimed in claim 5, wherein: The step of controlling the pumping mechanism and the escape mechanism to perform a third escape action when the third type of obstacle is detected at the current position comprises: When the third type of obstacle is detected at the current position, the pumping mechanism is stopped and the escape mechanism is started, so that the underwater robot performs the third escape action of the third preset time length; and When the distance value is 0, the escape mechanism is stopped, the pumping mechanism is started, and the underwater robot is controlled to perform the third escape action of the third preset time length.

7. The obstacle detection and control method of an underwater robot according to claim 1, wherein: The underwater robot includes a three-dimensional laser scanner. Before the step of acquiring the current acceleration detected by the acceleration sensor and the distance parameter detected by the distance sensor in the process of performing the cleaning task, the method further includes: Scanning the swimming pool area using the three-dimensional laser scanner, and dividing the swimming pool area into a plurality of areas of equal size based on the scanning result; and The cleaning task is generated based on the areas of equal size and executed when a water entry signal is detected. Perform the cleaning tasks described.

8. The obstacle detection and control method of an underwater robot according to claim 1, wherein: In the process of executing the cleaning task, after the step of obtaining the current acceleration detected by the acceleration sensor and the distance parameter detected by the distance sensor, the method further includes: If the change value of the distance value within the preset time period is greater than a preset change value, obtaining a change level of the change value; and When the change level is dangerous, the underwater robot is controlled to perform a fourth escape action.

9. An underwater robot, wherein: The underwater robot comprises: a memory, a processor, and an obstacle detection and control program stored in the memory and executable on the processor, wherein the obstacle detection and control program implements the following steps when executed by the processor: In the process of executing the cleaning task, the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor are obtained; When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current position; and When it is detected that the first type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a first escape action.

10. A computer-readable storage medium, wherein: The computer-readable storage medium stores a control program of the underwater robot, and when the control program of the underwater robot is executed by the processor, the following steps are implemented: In the process of executing the cleaning task, the acceleration detected by the acceleration sensor and the distance value detected by the distance sensor are obtained; When the change in the acceleration within the preset time window is greater than a preset threshold, and the distance value is greater than the distance threshold, it is determined that a first type of obstacle exists at the current position; as well as When it is detected that the first type of obstacle exists at the current position, the pumping mechanism and the escape mechanism are controlled to perform a first escape action.

Citation Information

Patent Citations

  • Positioning navigation system and positioning navigation method of underwater robot

    CN108227744A

  • Method for robot to detect obstacle and robot

    CN111435164A

  • Method and device for detecting clamping position and getting out of trap of water surface robot

    CN114594771A

  • Operation control method and device for underwater robot, program and its recording medium

    JP2008052473A

  • Apparatus and method for recognizing position of underwater vehicle

    KR1020160099965A

Cited By

  • Ocean robot obstacle avoidance trajectory planning method and system considering flow-induced position deviation

    CN119759027A

  • Obstacle-avoiding moving method and device of swimming pool cleaning robot and electronic equipment

    CN119937552A

  • Wall collision reversing method, system and device of cleaning robot and cleaning robot

    CN120540307A