Method for controlling movement of a pool cleaning robot and related apparatus
By acquiring visual data and motion status information from the bottom of the pool cleaning robot and adjusting the motion control parameters of the walking mechanism, the problems of walking stability and cleaning effect of the pool cleaning robot in complex terrain areas were solved, achieving higher stability and continuity.
Patent Information
- Application Number
- CN202611426416.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-27
AI Technical Summary
When swimming pool cleaning robots navigate complex terrain such as steps and ramps, the perception results can easily deviate from the actual traversal status of the walking mechanism, affecting walking stability and cleaning effectiveness.
By acquiring visual data of the target area at the bottom of the pool cleaning robot, terrain information is determined, and combined with motion state information, the motion control parameters of the walking mechanism are adjusted to match the actual terrain and robot state, thereby reducing the deviation between the perception results and the actual passage state of the walking mechanism.
It improves the walking stability and cleaning continuity of the pool cleaning robot in complex terrain areas, and reduces motion control deviations caused by terrain perception errors.
Smart Images

Figure CN123169089A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of underwater cleaning equipment technology, and in particular to motion control methods and related devices for pool cleaning robots. Background Technology
[0002] In underwater pool cleaning operations, in order for cleaning robots to operate autonomously in areas such as the pool bottom, pool walls, and steps, it is usually necessary to perceive and judge the surrounding environment and the path of travel, so as to realize the planning of the cleaning path and the control of movement.
[0003] In related technologies, pool cleaning robots typically collect environmental images through vision devices set at the front or top of the robot body, and combine them with odometers, attitude sensors or motor load information to judge obstacles and terrain changes. Therefore, in complex elevation areas such as steps and ramps, the perception results are prone to deviation from the actual passage state of the walking mechanism, which in turn affects the stability of the robot's walking and the cleaning effect. Summary of the Invention
[0004] In a first aspect, embodiments of this application provide a motion control method for a pool cleaning robot, including:
[0005] Acquire visual data of the target area on the bottom of the pool cleaning robot;
[0006] The terrain information of the bottom target area is determined based on the visual data;
[0007] Obtain the motion status information of the pool cleaning robot;
[0008] Based on the terrain information and the motion state information, determine the target motion control parameters corresponding to the bottom target area;
[0009] The walking mechanism of the pool cleaning robot is controlled based on the target motion control parameters to adjust the motion state of the pool cleaning robot when passing through the bottom target area.
[0010] Secondly, embodiments of this application also provide a pool cleaning robot, comprising:
[0011] The robot itself;
[0012] A walking mechanism, disposed on the robot body, is used to drive the robot body to move;
[0013] A visual acquisition device is installed at the bottom of the robot body to acquire visual data of the target area at the bottom of the robot body;
[0014] A motion state acquisition device is used to acquire the motion state information of the pool cleaning robot;
[0015] Memory, used to store programs;
[0016] The controller is connected to the vision acquisition device, the motion state acquisition device, the walking mechanism, and the memory, respectively.
[0017] The controller is used to execute the program to implement the motion control method for the pool cleaning robot according to any one of claims 1 to 9.
[0018] Thirdly, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, is used to implement the motion control method for a pool cleaning robot described in the first aspect or any specific implementation of the first aspect of the embodiments of this application.
[0019] Fourthly, embodiments of this application also provide a computer program product storing a computer program / instruction thereon. When the computer program / instruction is executed by a processor, it is used to implement the motion control method for the pool cleaning robot described in the first aspect or any specific implementation of the first aspect of the embodiments of this application.
[0020] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:
[0021] This application embodiment acquires visual data of the target area at the bottom of the pool cleaning robot and determines the terrain information of the target area based on the visual data, enabling the robot to obtain the terrain state directly related to the area it actually traverses. Simultaneously, combined with the motion state information of the pool cleaning robot, target motion control parameters corresponding to the target area at the bottom are determined, and the walking mechanism is controlled based on these parameters. Therefore, the robot's motion control can be matched with the actual terrain state of the target area at the bottom and the robot's current motion state, reducing motion control deviations caused by inconsistencies between terrain perception results and the actual traversal state of the walking mechanism. This improves the walking stability and reliability of the pool cleaning robot in complex terrain areas such as steps and ramps, and helps ensure the continuity of cleaning operations. Attached Figure Description
[0022] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0023] Figure 1 This application provides a schematic flowchart of a motion control method for a pool cleaning robot.
[0024] Figure 2 This application provides a schematic diagram of the installation structure of a bottom vision acquisition device for a pool cleaning robot.
[0025] Figure 3 This is a schematic diagram of a swimming pool cleaning robot provided in an embodiment of this application. Detailed Implementation
[0026] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is only for explaining specific embodiments and is not intended to limit the application. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0027] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0028] To address the aforementioned problems, this application provides a motion control method for a pool cleaning robot. The motion control method for the pool cleaning robot according to this application embodiment will be described in detail below with reference to the accompanying drawings.
[0029] Reference Figure 1 , Figure 1 A flowchart illustrating a motion control method for a pool cleaning robot provided in this application embodiment is shown below. Figure 1 As shown in the figure, the motion control method for a pool cleaning robot provided in this application embodiment may include steps S10 to S50, which are described in detail below.
[0030] S10. Obtain visual data of the target area at the bottom of the pool cleaning robot;
[0031] The bottom target area refers to the area located below or near the front and lower part of the chassis of the pool cleaning robot. In practical applications, the area that the walking mechanism will contact when the pool cleaning robot moves along the bottom, the edge of steps below the chassis, slopes, protrusions, or depressions can all be considered the bottom target area. Visual data refers to data collected by a visual acquisition device installed on the bottom of the robot, such as bottom images, continuous image frames, or visual perception data that reflects the shape of the bottom target area.
[0032] Since pool cleaning robots typically move close to the pool bottom, the terrain conditions near the robot's bottom affect the contact relationship between the walking mechanism and the pool bottom, as well as the robot's movement state. Therefore, by acquiring visual data of the target area at the bottom, environmental information related to the area the robot is currently traversing can be obtained.
[0033] For example, when a pool cleaning robot moves over a relatively flat area of the pool bottom, visual data can reflect the continuous changes in the surface of the pool bottom; when the pool cleaning robot moves to the vicinity of an area with height changes, visual data can reflect information such as the surface contour, positional changes, and spatial morphology of that area.
[0034] S20. Determine the terrain information of the bottom target area based on visual data;
[0035] Topographic information refers to information used to describe the spatial shape or surface condition of the target area at the bottom. Optionally, topographic information may include the height variation, relative position, slope, edge conditions, or surface condition of the target area at the bottom. This topographic information is not limited to a specific numerical value, but may also be a classification result of the current area's topographic condition, such as a flat area, abrupt change area, sloping area, or irregular area.
[0036] In practice, the controller can process visual data to determine the terrain features of the target area at the bottom, and then determine the corresponding terrain information based on these features. For example, when obvious edge changes or brightness variations appear in the visual data, it can be determined that the target area at the bottom may contain steps, bumps, or depressions; when the ground texture in the visual data shows a continuous slope, it can be determined that the target area at the bottom may be a slope. Through the above processing, the controller can obtain terrain information related to the actual area the robot can traverse.
[0037] S30. Obtain motion status information of the pool cleaning robot;
[0038] Motion state information refers to information used to characterize the current operating state of the pool cleaning robot. This motion state information may include the robot's current speed, direction of travel, body posture, operating status of the locomotive, motor load status, or the robot's motion trend relative to the target area at the bottom.
[0039] In practice, the controller can acquire motion state information through sensors, drive modules, or the operating controller within the robot. For example, the robot's current speed can be determined through feedback from the locomotive, its current tilt state can be determined through attitude sensors, and the current load on the locomotive can be determined through motor feedback. By acquiring motion state information, motion control can be based not only on the terrain itself but also on the robot's current actual operating state.
[0040] S40. Based on terrain information and motion status information, determine the target motion control parameters corresponding to the bottom target area;
[0041] The target motion control parameters refer to the control parameters used to control the pool cleaning robot as it traverses the target area on the bottom. Optionally, the target motion control parameters may include travel speed parameters, drive output parameters, steering parameters, posture adjustment parameters, or walking mechanism operating parameters, etc. These target motion control parameters enable the pool cleaning robot to adjust its operating mode according to the current terrain and current motion state.
[0042] In practice, the controller can integrate terrain information and motion state information to determine whether the pool cleaning robot needs to change its current motion state when passing through the bottom target area. For example, if the terrain information indicates that the bottom target area is relatively flat and the motion state information indicates that the robot is running smoothly, the current motion control parameters can be maintained; if the terrain information indicates that the bottom target area has a height change and the motion state information indicates that the robot's current speed is high, the target motion control parameters for reducing the travel speed can be determined; if the terrain information indicates that the bottom target area may affect the stability of passage, the target motion control parameters for adjusting the drive output or travel direction can be determined.
[0043] S50. Control the walking mechanism of the pool cleaning robot based on the target motion control parameters to adjust the motion state of the pool cleaning robot when passing through the bottom target area.
[0044] The locomotion mechanism refers to the mechanism that drives the pool cleaning robot to move within the pool, such as a wheeled locomotion mechanism, a tracked locomotion mechanism, or other drive mechanisms capable of underwater movement. After determining the target motion control parameters, the controller can send control commands to the locomotion mechanism according to those parameters, causing the locomotion mechanism to change its operating state.
[0045] In practice, the controller can control the drive motor of the walking mechanism to output power according to the target motion control parameters, thereby adjusting the speed, direction, or posture of the pool cleaning robot. Through this control process, the pool cleaning robot can adapt its movement according to the actual terrain of the bottom area and its own motion state when approaching or passing through the target area at the bottom.
[0046] In the aforementioned motion control method for the pool cleaning robot, visual data of the target area at the bottom of the robot is acquired, and terrain information related to the area currently traversed by the robot is obtained based on the visual data. This, combined with the robot's own motion state information, determines the target motion control parameters, enabling the control of the walking mechanism to simultaneously consider both the bottom environmental conditions and the robot's actual motion state. Compared to methods that control based solely on preset motion patterns or changes in the robot's state after movement, this embodiment allows the robot to control its walking mechanism according to the actual terrain conditions of the target area at the bottom. This reduces the discrepancy between environmental perception results and the actual traversal state of the walking mechanism, improves the stability of the pool cleaning robot when operating in complex terrain areas such as steps and slopes, and enhances the cleaning performance.
[0047] In some embodiments, acquiring visual data of a target area at the bottom of a pool cleaning robot includes: acquiring environmental perception information in the direction of travel of the pool cleaning robot; extracting terrain change features in the direction of travel of the pool cleaning robot based on the environmental perception information; generating visual acquisition trigger information based on the terrain change features according to the correspondence between preset terrain change features and visual acquisition strategies; and controlling a visual acquisition device installed at the bottom of the pool cleaning robot to acquire visual data of the target area at the bottom with target acquisition parameters in response to the visual acquisition trigger information; wherein the terrain change features include terrain change features corresponding to at least one of step areas, slope areas, depression areas, and convex areas.
[0048] In practical applications, environmental perception information can be obtained through a front-facing vision system, odometry, or other sensors. For example, the robot itself can use a front-facing vision system to identify changes in the waterline, pool wall transitions, step outlines, or other areas of height variation, or it can use an odometry to determine the distance between the robot and a target step area.
[0049] In practice, when the robot detects a region of height variation within a distance threshold ahead via its front-facing vision system or odometry, it can determine that the robot is about to enter a complex terrain area. This distance threshold can be preset based on the robot's size, travel speed, and control response time; for example, it can be 0.5 meters, or it can be set to 0.8 meters when the robot cruises near the pool steps. When the horizontal distance between the robot and the expected step is detected to be less than this distance threshold, the controller can determine that the robot has entered the step approach zone and enter the step climbing preparation state.
[0050] The visual acquisition strategy refers to the bottom visual acquisition method corresponding to different terrain change features. Different terrain change features can correspond to different target acquisition parameters, which may include acquisition frame rate, exposure time, acquisition duration, supplementary lighting status, or image processing method. For example, when the terrain change features indicate that there may be a stepped area or a slope area ahead, the controller can generate visual acquisition trigger information to increase the acquisition frequency and wake up the bottom vision system, causing the bottom vision system to switch from cruising mode to high frame rate acquisition mode. For example, the frame rate of the bottom vision system can be increased from 15fps in cruising mode to 60fps, so as to continuously acquire denser bottom images as the robot approaches the terrain change location.
[0051] Please refer to Figure 2 When acquiring visual data of the target area at the bottom, a vision acquisition device located at the bottom of the robot can capture images from below or in front of the robot chassis. To improve the usability of underwater images, the bottom vision system can also perform optical noise reduction in conjunction with a light shield and image processing. Specifically, the light shield can physically isolate the direct light from the supplementary lighting and the camera lens, reducing the light spot noise or scattering interference caused by the supplementary light being reflected by suspended particles in the water and directly entering the lens. After the bottom image is transmitted to the controller, the controller can also use the Contrast Limited Adaptive Histogram Equalization (CLAHE) algorithm to process the bottom image, thereby enhancing the local contrast of the steps or slope boundaries and filtering out light spot noise caused by underwater suspended particles, thus improving the usability of the bottom visual data.
[0052] In some embodiments, controlling a vision acquisition device disposed at the bottom of a pool cleaning robot to acquire visual data of a target area at the bottom with target acquisition parameters includes: acquiring ambient brightness information of the target area at the bottom; determining target supplementary lighting parameters of a supplementary lighting device based on the ambient brightness information; controlling the supplementary lighting device to supplement the bottom target area according to the target supplementary lighting parameters, and acquiring a bottom image after supplementary lighting; adjusting the target supplementary lighting parameters according to the image quality parameters of the bottom image, and acquiring visual data of the target area at the bottom based on the adjusted target supplementary lighting parameters.
[0053] Ambient brightness information refers to the brightness of the target area at the bottom in the current underwater environment. In practical applications, the pool cleaning robot can acquire the current bottom image through a bottom camera and determine the ambient brightness information based on the average grayscale, local brightness distribution, or exposure status of the current bottom image. When the ambient brightness information is lower than a preset threshold, the controller can determine that the target area at the bottom is in a dark environment and then activate the supplementary lighting device. The supplementary lighting device can be a supplementary light or a supplementary lighting matrix composed of multiple supplementary lights.
[0054] The target lighting parameters refer to the parameters used to control the operation of the lighting device. Optionally, the target lighting parameters may include the on / off status of the lighting lamp, brightness, pulse width modulation duty cycle (PWM duty cycle), current, illumination angle, illumination range, or lighting duration. In specific implementation, the controller can first decide whether to turn on the lighting lamp based on the current average brightness, and use the most recent effective pulse width modulation value (PWM value) or a low duty cycle as the initial lighting parameters. Subsequently, the controller executes lighting control in the order of dimming, waiting for stabilization, image acquisition, evaluation, and dimming again. That is, after each change in PWM, it can first wait for the lighting lamp output and camera exposure to stabilize, then acquire a short frame window, and use the median of the image quality index of each frame within the short frame window as the evaluation result, thereby avoiding mis-adjustment of lighting due to accidental noise in a single frame.
[0055] In one embodiment, image quality parameters may include at least one of the following: equivalent image signal-to-noise ratio (SNR), saturated pixel ratio, local contrast, Laplacian sharpness, and bright scattering point ratio. Considering that the position, posture, and observed object of the pool cleaning robot change during online operation, if a fixed reference image is used to directly call the peak signal-to-noise ratio function (cv2.PSNR) from the Open Source Computer Vision Library (OpenCV), the pixel difference between the reference image and the current image will include not only noise but also scene changes, viewpoint changes, and terrain changes. Therefore, this embodiment of the application selects to calculate the equivalent image signal-to-noise ratio within the effective area of the bottom image.
[0056] First, the distortion-free grayscale image I is smoothed to obtain the structural component S. Then, the noise residual N is equal to the grayscale image I minus the structural component S, which is taken as the high-frequency noise residual. Finally, according to SNR=10log... 10 (P s / P n Calculate the signal-to-noise ratio of the equivalent image. Where P... s P is the average energy of the structural components. n This represents the average energy of the noise residual within the non-edge, non-saturated region. This eliminates strong edges of steps, specular highlights, and areas obstructed by the fixed chassis, thereby reducing the impact of terrain edges, reflections, and the robot's own structure on noise assessment.
[0057] It should be noted that a lower SNR indicates relatively stronger noise. Therefore, when the SNR is continuously below the lower limit threshold τ of the image signal-to-noise ratio... snr If this occurs, the image quality can be determined to be insufficient. To avoid false positives, a threshold τ can be set to indicate that the proportion of bright scattering points is higher than the proportion of bright scattering points. spot Or the Laplace resolution is lower than the resolution threshold τ. sharp At least one of the above conditions must be met simultaneously, and at least one of the above conditions must be maintained for several consecutive frames before it is determined that there is excessive scattering noise or insufficient illumination quality. This prevents overexposed images from being mistakenly identified as high-quality images based solely on a single SNR indicator.
[0058] As an example, cv2.PSNR can be used for offline calibration. Specifically, with the camera position, exposure parameters, and target scene remaining constant, an image acquired under clear water conditions can be used as a reference image. This reference image is then compared with images acquired under different turbidities and different supplementary lighting powers to establish brightness thresholds, SNR thresholds, and bright scattering point ratio thresholds τ. spot1. Clarity lower limit threshold τ sharp Alternatively, the PWM adjustment range. Offline calibration results can be stored in the controller for use in selecting initial parameter values or determining thresholds during online operation.
[0059] In one embodiment, to improve the underwater supplemental lighting effect, the bottom vision system may also include an optical anti-scattering design in the mechanical structure. A vision window can be opened at the front bottom of the robot chassis. The bottom camera can be mounted vertically downwards or fixed by an inclined mounting bracket, so that its optical axis O is tilted downwards at an angle β to the horizontal plane. Optionally, the preferred range of the tilt angle β is 15° to 30°. With this tilting setting, the bottom camera can both capture the steps in front of the robot in advance and photograph the pool bottom terrain directly below, thereby expanding the effective coverage area of the field of view (FOV) of a single camera.
[0060] In one embodiment, the supplementary lighting device can employ a split-type near-field and far-field supplementary lighting matrix. Near-field supplementary lighting can use a large-angle diffused light-emitting diode (LED), such as a 120° emission angle, operating at lower brightness to illuminate the nearby terrain directly below the chassis, avoiding localized overexposure. Far-field supplementary lighting can use a narrow-angle focused LED, such as a 30° emission angle, operating at higher brightness to focus the beam onto the front step area, increasing the light flux reflected back from a distance, thus facilitating the extraction of the step's outline. It should be noted that in actual products, a single LED can also be used as the supplementary lighting device, with current or brightness adjusted via PWM to achieve the same supplementary lighting control as in this embodiment.
[0061] In one embodiment, the bottom vision system also includes a light shield. The light shield can be made of an opaque material with a light-absorbing coating on the inner wall, such as black light-absorbing silicone or anodized black aluminum alloy. The cross-section of the light shield can be an inverted frustum shape, with the larger end sealed to the lower surface of the chassis and the smaller end surrounding the lens of the bottom camera. A supplementary light can be positioned on the outer edge of the larger end of the light shield, so that the sidewall of the light shield physically blocks the light-emitting surface of the supplementary light from the light-receiving surface of the camera. In this way, the light emitted by the supplementary light does not directly enter the camera lens, but is first projected onto the target object below, such as the bottom of a pool or steps, and then diffused by the target object before passing through the opening at the bottom of the light shield into the camera, thereby reducing lateral stray light and backscatter noise.
[0062] Furthermore, to reduce reflections from the inner wall of the lens hood, the inner wall can be fabricated with a ring-shaped or spiral-shaped microstructured anti-reflection grating. This anti-reflection grating allows light hitting the inner wall to undergo multiple refractions or reflections and be absorbed, reducing interference from mirror reflections on the lens. By combining the above lens hood structure with closed-loop supplementary lighting control, even in pool water containing moss, silt, or suspended particles, it is possible to reduce snow-like spots, halos, or screen noise caused by reflections of supplementary lighting light from particles.
[0063] In one embodiment, the bottom of the light shield can also be fitted with a high-transmittance flat glass or sapphire lens. The edge of the lens is pressed against the light shield by an O-ring to achieve the waterproof requirement of IP68 (Ingress Protection 68). Considering that the refractive index of glass is approximately 1.5 and the refractive index of water is approximately 1.33, light will undergo refraction shift when passing through the interface between water and the lens. The controller can pre-store the refractive index compensation matrix of the optical interface and perform automatic compensation calibration when calculating the horizontal distance L and vertical height H. Here, the horizontal distance L can represent the horizontal distance from the step facade to the robot's front wheel or track grounding point, and the vertical height H can represent the height from the top edge of the step facade to the bottom of the pool or the step tread. The outer surface of the lens can also be coated with an underwater anti-reflective coating to improve light transmittance and reduce interface reflection.
[0064] In some embodiments, determining the terrain information of the bottom target area based on visual data includes: performing image enhancement and feature extraction on the visual data to obtain the terrain features of the bottom target area; determining the terrain change area based on the terrain features; if the visual data is monocular visual data, performing spatial geometric calculations on the terrain features according to pre-calibrated camera parameters, installation parameters of the visual acquisition device relative to the pool cleaning robot, and preset ground constraints to obtain spatial geometric calculation results; if the visual data is binocular visual data, determining depth information based on the binocular visual data, and generating local spatial point data based on the depth information; determining the terrain parameters of the terrain change area based on the spatial geometric calculation results or the local spatial point data; wherein, the terrain parameters include at least one of distance parameters, height parameters, slope parameters, terrain edge position parameters, and surface adhesion attributes.
[0065] Among these, terrain features refer to image features that can reflect changes in the shape of the target area at the bottom. In practical applications, after acquiring a clear bottom image, the control module can first perform underwater intrinsic parameter correction, lens refraction correction, and distortion correction on the bottom image, and then perform image enhancement and feature extraction. Image enhancement can be used to improve the recognizability of step edges, slope boundaries, concave edges, or convex contours; feature extraction can be used to extract terrain edge lines, texture change areas, areas of abrupt changes in brightness, and areas suspected of height changes. Through the above processing, terrain change areas can be determined from visual data, such as step facades, step top edges, slope starting positions, concave areas, or convex areas.
[0066] In one embodiment, if the bottom vision acquisition device is a monocular camera, terrain parameters can be estimated based on the monocular vision data. Specifically, the positional relationship of the bottom target area relative to the robot body can be calculated using the known height of the camera from the lowest point of the machine, the camera's viewing angle range or field of view, and the machine's speed. It can be understood that the chassis's main function is that its structural dimensions and installation relationships are pre-defined. Using the known geometric relationships between the chassis's lowest point, the front wheel or track contact point, the camera's mounting height, the camera's mounting angle, and the robot's coordinate system, combined with the terrain edge positions in the image, the positional relationship of the bottom target area relative to the robot body can be calculated.
[0067] Optionally, in monocular measurement, a perspective n-point (PnP) algorithm can be used, or a method based on a monocular depth estimation model can be employed. In this case, the three-dimensional points can be pre-measured spatial points on a calibration plate or a known structure, and the two-dimensional points can be the pixel coordinates of these points in the image.
[0068] For natural steps of unknown size, this application embodiment can employ a monocular measurement method combining known ground plane constraints and step geometric constraints. Specifically, firstly, underwater intrinsic parameters, lens refraction, and distortion correction are applied to the bottom image; then, by combining the fixed installation extrinsic parameters of the camera and the attitude of the inertial measurement unit (IMU), the normal of the lower pool bottom plane and the height of the camera relative to that plane are obtained in the current image; next, the lower and upper edges of the step facade are detected, and the lower edge pixels are converted into spatial rays through the inverse matrix of the camera intrinsic parameter matrix K, and the spatial ray is intersected with the lower pool bottom plane to obtain the three-dimensional position of the step root; then, the position of the step root is transformed into the robot body coordinate system, and the position of the front wheel or track contact point is subtracted to obtain the horizontal distance L between the step facade and the robot's front wheel contact point or track contact point.
[0069] Furthermore, the control module can fit a 3D straight line at the base of the step and establish an elevation plane with the step elevation approximately vertical as a constraint. Then, the spatial ray corresponding to the edge pixel on the step elevation intersects with this elevation plane, and the normal distance of the intersection point relative to the lower pool bottom plane is the step height H. In this way, even without known dimensions of the natural step, the step distance L and height H can be estimated based on camera parameters, installation parameters, IMU attitude, and ground constraints.
[0070] In one embodiment, the upper and lower edges of the steps in consecutive multi-frame images can also be tracked, and triangulation verification can be performed using a scaled motion baseline provided by the encoder and IMU. The control module can evaluate the confidence level of the measurement results by reprojection error, consecutive frame variance, and edge length. When the lower pool bottom is not visible, the upper and lower edges are occluded, there is severe glare, or the geometric constraints are not met, the control module can choose not to output valid L and H values and control the pool cleaning robot to decelerate, stop, or re-frame the image to avoid erroneous control based on low-confidence results.
[0071] In another embodiment, if the bottom vision acquisition device is a binocular camera, depth information can be determined based on binocular vision data. Specifically, the control module can generate a dense disparity map using the left and right visual views, obtain depth information of the bottom target area based on the dense disparity map, and generate local spatial point data through 3D point cloud reconstruction. Subsequently, planar fitting can be performed on the local spatial point data, for example, fitting the lower pool bottom plane, the step facade, and the step tread plane, thereby directly calculating the horizontal distance L from the step facade to the robot's walking mechanism grounding point, and the vertical height H of the top edge of the step facade relative to the pool bottom.
[0072] In one embodiment, the terrain parameters may further include surface adhesion properties. Specifically, the control module can extract image texture features of the step surface or pool bottom surface and compare them with a pre-stored underwater material library, which may include material types such as mosaic, ceramic tile, and waterproof coating. Based on the material comparison results, the friction coefficient μ of the current step surface can be estimated, or an equivalent adhesion property for motion control can be obtained. This surface adhesion property can be used to determine whether the walking mechanism is prone to slipping and whether adjustments to the traveling speed, drive torque, or attitude parameters are necessary.
[0073] In some embodiments, determining target motion control parameters corresponding to the bottom target area based on terrain information and motion state information includes: acquiring structural parameters and driving capability parameters of the pool cleaning robot; determining the height of the bottom target area and the distance of the bottom target area relative to the walking mechanism based on terrain information; determining motion constraint information when the pool cleaning robot passes through the bottom target area based on height, distance, motion state information, structural parameters, and driving capability parameters; and determining target motion control parameters based on motion constraint information. The motion constraint information characterizes at least one of the interference state between the chassis of the pool cleaning robot and the bottom target area, the attitude stability state of the pool cleaning robot, and the attachment state of the walking mechanism. The structural parameters include at least one of chassis geometric parameters, walking mechanism size parameters, robot center of gravity parameters, and maximum approach angle, and the driving capability parameters include maximum driving torque.
[0074] Structural parameters refer to parameters related to the mechanical structure of the pool cleaning robot itself. Optionally, structural parameters may include chassis geometry parameters, locomotive dimensional parameters, robot center of gravity parameters, and maximum approach angle α. max Chassis ground clearance h ground Minimum ground clearance h of chassis clear Wheelbase, etc. Drive capability parameters refer to parameters related to the output capability of the robot's locomotion mechanism, such as the maximum output torque T of the drive wheels or tracks. max It can also be called the maximum climbing torque T. max The above parameters can be pre-stored in the controller or read by the controller during robot initialization.
[0075] The terrain information can include the height, distance, and surface adhesion attributes of the target area at the bottom. Specifically, the bottom vision system continuously acquires images, and the controller runs edge detection and depth estimation algorithms to extract parameters of steps or other terrain-changing areas in real time. The horizontal distance L can refer to the horizontal distance from the grounding point of the robot's forward locomotive to the root of the step's facade, where the forward locomotive can be the guide wheel or front wheel of the track. The vertical height H can refer to the vertical height from the top of the step's facade to the horizontal tread of the step. Surface adhesion attributes can be obtained through material friction evaluation. For example, the controller extracts image texture features of the step's horizontal tread and facade, which can include roughness, color, etc., and compares these image texture features with a pre-stored underwater material friction coefficient database to estimate the equivalent sliding friction coefficient μ of the current step. e μ e The range can be, for example, from 0.3 to 0.7.
[0076] In practice, the controller can convert visual perception results into motion constraint information for anti-getting judgment. That is, before the robot actually traverses steps, slopes, or raised areas, it determines whether the robot can safely pass through. The controller can retrieve the robot's own mechanical limit parameters, such as the maximum approach angle α. max Chassis ground clearance h ground Maximum climbing torque T max The judgment is made by combining the height H, horizontal distance L, motion status information, and surface friction information. The motion status information may include the current travel speed, current posture, travel mechanism speed, motor load, etc.
[0077] As an example, when the controller calculates that H is greater than h ground Furthermore, if μ is lower than a preset threshold, it can be determined that the current terrain cannot be directly crossed. Here, H is greater than h. ground The value μ indicates that the height of the target area at the bottom may interfere with the chassis, and μ below the threshold indicates insufficient adhesion between the walking mechanism and the ground. In this case, the controller can generate target motion control parameters for backward turning and avoidance, enabling the robot to perform backward turning and avoidance to reduce the risk of chassis jamming or track slippage.
[0078] In one embodiment, the controller can also establish an obstacle-crossing feasibility determination matrix. This determination matrix can be based on the chassis minimum ground clearance h. clear Maximum approach angle α max The maximum output torque T of the drive wheel or track max The system generates parameters such as robot center of gravity and wheelbase. This decision matrix allows for the determination of chassis interference, attitude stability, and locomotive attachment states.
[0079] For example, in the judgment of preventing bottoming out, if H is greater than h clear The sum of Δh and H, i.e., H > h clear If Δh is a safety margin, it can be determined that the chassis will bottom out and the current terrain cannot be directly crossed. At this point, the controller can determine the target motion control parameters for obstacle avoidance and control the pool cleaning robot to execute obstacle avoidance strategies such as backward movement and turning.
[0080] For example, in the judgment of anti-flipping or anti-slipping, if μ e Less than μ critical And H > 0.5 × Wheelbase, where μ criticalThe critical friction coefficient is used to prevent track slippage and wheel spin. Wheelbase is the robot's wheelbase. If the wheelbase is set to the critical friction coefficient, it can be determined that the walking mechanism's grip is insufficient to overcome the step torque. If the robot continues to move forward, it may slip, spin, or become unstable. In this case, the controller can determine the target motion control parameters for avoidance, controlling the robot to avoid the terrain change.
[0081] For example, in determining climbability, if H ≤ h clear +Δh, and μ e ≥μ critical If the terrain is clear, it indicates that the risk of interference between the chassis and the terrain is low, and the walking mechanism has a certain degree of adhesion, so it can be determined that the current terrain meets the passability requirements. At this point, the controller can determine the target motion control parameters corresponding to the climbable state based on this motion constraint information, allowing the robot to enter the posture pre-adjustment stage.
[0082] The technical solution of this embodiment combines the height H, distance L, and equivalent sliding friction coefficient μe obtained by the bottom vision system with the maximum approach angle α of the pool cleaning robot. max Chassis ground clearance hground, minimum chassis ground clearance hclear, maximum output torque T max By combining mechanical parameters such as Wheelbase, motion constraint information can be determined before the robot passes through the target area on the bottom. As a result, the controller can determine the target motion control parameters based on the status of chassis interference, posture stability, and walking mechanism attachment, thereby reducing the probability of the robot bottoming out, slipping, overturning, or getting stuck on complex terrains such as steps.
[0083] In some embodiments, determining target motion control parameters based on motion constraint information includes: determining the target motion state of the pool cleaning robot when it passes through the bottom target area based on terrain information and motion constraint information; determining at least one of traveling speed, driving torque, traveling direction and attitude adjustment parameters as target motion control parameters based on the target motion state; and adjusting the motion state of the walking mechanism based on the target motion control parameters before the pool cleaning robot reaches the terrain change position in the bottom target area.
[0084] The target motion state refers to the desired operational state of the pool cleaning robot when passing through the target area at the bottom. In practical applications, when the target area is a stepped area, the target motion state may include the robot approaching the steps at a low speed, the robot body having a suitable upward tilt for climbing, the tracks or wheels making smooth contact with the step surface, and the drive mechanism providing sufficient driving force. When the target area is a slope, raised, or recessed area, the target motion state may also include reducing the travel speed, adjusting the travel direction, increasing or decreasing the water pump flow rate, and changing the drive output.
[0085] In practice, the controller can calculate the optimal body pitch angle required for the robot to climb the step based on the real-time distance L and height H. This can also be understood as the target angle between the tracks or wheels and the ground. Optionally, the target pitch angle can be calculated using the formula θ. target =arctan(H / L) current The calculation yields H, where H is the step height and L is... current is the real-time horizontal distance of the robot relative to the root of the step facade, and arctan is the arctangent function, with the output being an angle.
[0086] In one embodiment, to avoid structural interference when the tracks or wheels come into contact with the stepped facade, an anti-interference offset angle θ can be added based on the above calculation results. offset Preferably, the target pitch angle can also be expressed as θ. target =arctan(H / L) current )+θ offset Or, in the approximate calculation of the control quantity, it is represented as θ. target = (H / L) current )+θ offset Where θ offset An interference-prevention offset angle, such as 3° to 5°, can be set when the track contacts the stepped surface. Simultaneously, the controller can also limit θ. target ≤α max , where α max This is the maximum approach angle allowed for the robot, to prevent the robot's nose from tilting upwards excessively and causing it to tip backwards.
[0087] The target motion control parameters can include the target travel speed v, the drive motor torque T, and parameters for travel direction and attitude adjustment. In practice, the controller can combine the friction coefficient μ and the step height H to calculate the target travel speed v and drive motor torque T required for the robot to overcome gravity and sliding resistance. For example, when the step height H is large or the friction coefficient μ is low, the controller can reduce the target travel speed v and increase the drive motor torque T, allowing the robot to approach and climb the step at a lower speed with a higher driving force. When the step height is low and friction conditions are good, the controller can use gentler speed and torque changes to reduce energy consumption and impact.
[0088] In one example, traditional robots typically only struggle passively after colliding with a step. However, in this embodiment, the controller can proactively adjust the robot's motion state before it comes into contact with the step, achieving pre-collision preparation and smooth entry. In other words, before the pool cleaning robot reaches the location of the terrain change, the controller has already determined the target motion state based on L and H obtained from bottom visual feedback and pre-controls the walking mechanism to enter an operating mode suitable for climbing steps or walls.
[0089] In one embodiment, if the pool cleaning robot is equipped with an active suspension system or adjustable tension tracks, the controller can send commands to the corresponding actuators. For example, the active suspension system may include a front suspension hydraulic push rod or an adjustable tension track mechanism. The controller can output a PWM signal to instruct the front suspension to actively extend and the rear suspension to moderately retract, raising the front suspension or lowering the rear suspension, causing the robot to tilt its head up before contacting the step, thus actively raising the robot to the target pitch angle θ in advance. target This ensures that the tangential direction of the front section of the track or the front wheel forms a gentle angle of approach with the vertical surface of the step that it will soon contact. Simultaneously, the controller can instruct the drive motor to output power with torque T and speed v, causing the front end of the track to overlap the top edge of the step.
[0090] It should be noted that, without active suspension, the aforementioned attitude adjustment parameters may not correspond to independent suspension mechanical movements. For pool cleaning robots without suspension structures, when a step is detected, the controller can adjust the walking speed and water pump speed via software, causing the water pump to enter an adaptive head-up flow adjustment mode. Specifically, the controller can change the water flow effect on the robot by adjusting the water pump flow, causing the robot to tend to lift its head. After the robot lifts its head, the controller continues to adjust the water pump flow based on feedback signals from the bottom camera, allowing the robot to climb the step or wall at a set speed. In this case, the attitude adjustment parameters can include water pump speed, water pump flow, walking speed, or a coordinated control relationship between the two.
[0091] In one embodiment, while adjusting the posture or controlling the head-up position, the controller can also preload speed and torque. Specifically, the controller can instruct the drive motor to reduce its travel speed to a low-speed climbing gear, such as 0.1 m / s, and pre-increase the motor current to output a large torque T. pre By preloading torque T pre It can overcome the rigid impact resistance of the tracks or wheels when they come into contact with the steps, prevent the robot from stalling due to zero speed, and ensure that the robot has sufficient driving force at the moment of contact with the steps.
[0092] During the actual climb, the bottom vision system can continuously acquire images at high frequency, updating the remaining distance L and relative height H in real time. The controller can dynamically adjust the target motion control parameters based on the updated L and H, ensuring that the target's travel speed v, drive motor torque T, and water pump speed or flow rate match the current climbing status. If the controller detects track slippage, such as a discrepancy between the image feature point displacement and the odometer feedback, it can instantly increase the torque T or perform a brief reverse micro-motion to break the static friction of the water film, allowing the walking mechanism to regain adhesion and ensuring the robot successfully ascends the steps.
[0093] This embodiment determines the target pitch angle θ based on the height H, real-time distance L, friction coefficient μ, and motion constraint information. target Target travel speed v, drive motor torque T, preload torque T pre The system controls target motion parameters such as water pump flow rate and adjusts the walking mechanism and water pump status in advance before the robot reaches positions with terrain changes such as steps, enabling the robot to change from passive collision-based passage to pre-adjusted passage, thereby improving the robot's stability when passing through steps, walls or other complex bottom terrains.
[0094] In some embodiments, during the process of controlling the operation of the walking mechanism based on target motion control parameters, the method of this application embodiment further includes: determining the visual motion amount of the pool cleaning robot based on visual data, and determining the walking motion amount based on odometer data or encoder data of the walking mechanism; determining corrected motion control parameters based on the difference between the visual motion amount and the walking motion amount, and adjusting the operating state of the walking mechanism based on the corrected motion control parameters; acquiring the relative displacement information of the pool cleaning robot, the drive state information of the walking mechanism, and the posture state information of the pool cleaning robot; determining the escape motion control parameters based on the relative displacement information, drive state information, and posture state information, and controlling the pool cleaning robot to perform escape motion based on the escape motion control parameters.
[0095] When controlling a pool cleaning robot to traverse bottom target areas such as steps and slopes based on target motion control parameters, bottom vision data, odometry data, walking mechanism encoder data, and robot posture data can be used to track the robot's actual movement and correct the aforementioned target motion control parameters based on the actual movement results. When the robot slips, experiences motion obstruction, or gets stuck, the escape motion control parameters can be further determined, and the robot can be controlled to perform corresponding escape movements. Thus, the robot can still form a continuous motion feedback loop even after encountering changes in terrain.
[0096] Taking a robot climbing stairs as an example, when the bottom vision system detects that the horizontal distance L between the robot's front walking mechanism and the root of the stairs gradually decreases to near 0 (L≈0), it can be considered that the front end of the tracks, guide wheels, or front wheels have approached or overlapped the stairs. Subsequently, the bottom vision system can continuously acquire relatively stable image features such as the edge of the stairs and the texture of the bottom of the pool, and determine the robot's visual motion based on the positional changes of feature points in consecutive images. Visual motion can represent the robot's actual displacement relative to the stairs or the bottom of the pool, or it can be used to obtain the visual motion speed based on the movement distance of feature points in consecutive frames and the acquisition time.
[0097] Simultaneously, the amount of walking motion can be determined based on odometer data or encoder data from the walking mechanism. For example, the encoder can calculate the theoretical travel distance based on the rotation angle of the drive wheel or track drive wheel. Under normal circumstances, the visual motion amount and the walking motion amount obtained from the encoder should roughly correspond. If the encoder shows that the walking mechanism is continuously rotating and corresponds to a large theoretical travel distance, but the edge of the step or the bottom of the pool in the bottom image only shows a small positional change relative to the robot, it indicates that the rotation of the walking mechanism has not been fully converted into the actual displacement of the robot body, and it can be considered that there is significant slippage. Conversely, when the visual motion speed corresponding to the image feature point is basically consistent with the walking speed corresponding to the encoder, it can be considered that the walking mechanism is in a normal and effective attachment state.
[0098] After detecting slippage, the motion control parameters can be corrected based on the difference between visual motion and walking motion. These corrected parameters can include drive torque, travel speed, water pump flow rate, or travel direction. In one example, the output torque of the drive motor can be reduced by approximately 30% and maintained for about 1 second, allowing the tracks or wheels to return from a continuous idling state to a more stable contact state. Then, the drive torque can be increased again in a stepped manner to find an output range that generates a large effective driving force without continuous slippage under the current terrain conditions. The torque reduction here is mainly used to reduce the excessive driving force when slippage has already occurred, allowing the walking mechanism to re-establish effective adhesion. On wet, slippery underwater surfaces, this process can also change the water film and contact state between the tracks and the steps. It is understood that 30% and 1 second are exemplary control parameters and can be set according to the robot's structure and actual adhesion state.
[0099] In some alternative implementations, if the robot is equipped with an active suspension or other attitude adjustment mechanism, high-frequency micro-motion can be generated by the short-stroke reciprocating motion of the suspension motor to change the contact position and contact pressure distribution between the track and the step, thereby improving the adhesion state. It should be noted that the robot actually used in this embodiment may not have an active suspension mechanism. For robots without active suspension, similar dynamic adjustment effects can be achieved through brief forward and reverse rotation of the drive wheels and changes in water pump flow rate. For example, while the track is continuously slipping, the robot can be controlled to perform brief reverse micro-motions, and the water pump flow rate can be adjusted to change the hydrodynamic force and head-up state of the robot before reapplying driving force towards the step.
[0100] When a robot transitions from the vertical surface of a step to the horizontal tread, its posture changes significantly. Especially during the process of the walking mechanism crossing the edge of a step, the robot typically experiences a pitch change, first raising its head and then lowering it. Therefore, an IMU can be used to acquire the robot's pitch angle and the rate of pitch change, and combined with bottom-view visual data to monitor the robot's posture stability. In the optional scheme of setting an active suspension, the rear suspension can be extended to adjust the rear support state, reducing the possibility of the robot tipping backward due to a shift in the center of gravity. For robots that do not have active suspension, the forces acting on the robot in the forward and backward directions can be controlled by reducing the walking speed, adjusting the drive output, and regulating the water pump flow rate, allowing the robot to smoothly cross the edge of the step.
[0101] As the robot approaches the top of the steps, the ascent status can be identified based on bottom visual data. For example, if the area corresponding to the horizontal tread of the steps in the image exceeds approximately 80%, and this is combined with the robot's current continuous climbing motion and a significant change in distance information, it can be assumed that the robot is transitioning from the vertical step to the upper horizontal tread. In this case, the robot's speed can be reduced to approximately 0.05 m / s, allowing the walking mechanism to complete the process of crossing the edge of the steps at a lower speed, reducing the impact on the front of the robot caused by sudden changes in support. It is understood that 80% and 0.05 m / s are exemplary identification conditions and control parameters. To avoid mistaking a sudden increase in distance caused by a ditch or falling area for as reaching the top, confirmation can also be made by combining the robot's previous climbing process, IMU pitch attitude, and continuous visual features of the steps.
[0102] After the robot fully enters the level tread of the step, the IMU can detect the robot's pitch angle gradually returning to normal cruising mode. For optional solutions with active suspension mechanisms, the front suspension can be controlled to retract and return to the standard cruising height when the pitch angle quickly returns to the normal range, reducing the possibility of secondary bottoming out due to the mechanism not resetting in time after the robot crosses the edge of the step. For robots without active suspension, after detecting the robot's attitude recovery, the water pump flow rate, travel speed, and drive torque can be gradually restored to the operating parameters corresponding to normal cruising, thus completing the switch from climbing mode to normal travel mode.
[0103] Furthermore, the need for an escape maneuver can be determined based on the relative displacement information of the pool cleaning robot relative to the steps or other bottom target areas, the drive status information of the walking mechanism, and the robot's posture information. Relative displacement information can be obtained from bottom vision data, drive status information can include motor speed, motor current, or encoder data, and posture information can be obtained from the IMU. For example, if the bottom vision system continuously detects that the robot has not made any effective displacement relative to the step features for more than 5 seconds, while the drive motor is still running and the motor current has reached an overload state, the robot can be considered severely stuck.
[0104] In this situation, the escape motion control parameters can be determined based on the above information, and a reverse escape process can be initiated. For example, the drive motor can be reversed first, causing the robot to exit the current stuck position in the opposite direction of entering the step, and then the robot can be turned to avoid the original step contact point. For optional structures with an active suspension mechanism, a large-stroke reciprocating motion can be performed in conjunction with the suspension mechanism to form a creeping escape motion; for actual robots without active suspension, the robot's posture and contact position can be changed by alternating forward and reverse rotation of the drive motor and periodically adjusting the water pump flow, thereby forming a corresponding creeping escape effect. After the robot exits the stuck position, the direction of movement can be redefined or the path can be replanned to avoid repeatedly trying to pass through the original stuck position.
[0105] In some embodiments, after determining the terrain information of the bottom target area based on visual data, the method of this application embodiment further includes: acquiring forward environment data of the pool cleaning robot and determining the terrain height data of the bottom target area based on the visual data; performing time alignment on the forward environment data and the terrain height data; converting the time-aligned forward environment data and terrain height data to the same map coordinate system according to the pose information of the pool cleaning robot and predetermined sensor extrinsic parameters; and fusing the forward environment data and terrain height data converted to the same map coordinate system to update the pool terrain map.
[0106] Forward environment data refers to the data acquired by the pool cleaning robot through its forward vision system, used to characterize the structure of the environment in front of the robot. In practical applications, the forward vision system can acquire features of the pool walls, waterline, and a large area of the pool bottom, and generate a two-dimensional XY coordinate environment map based on these features. Structures such as the pool walls, waterline, pool wall corners, and escalators typically have relatively stable geometric contours, and therefore can serve as localization and map-building references during the robot's global navigation process.
[0107] Terrain height data refers to the data determined based on visual data collected by the bottom vision system, used to characterize the elevation changes in the area below or in front of the chassis. Specifically, the bottom vision system can acquire local elevation data below the chassis, i.e., Z-axis coordinate data. For example, when the robot is cruising on flat ground, the bottom vision system can mainly output flat elevation data; when the robot travels to steps or slopes, the bottom vision system can output a denser elevation change point cloud, which can be used to characterize terrain features such as step facades, continuous slope changes, and depressions or bulges at the bottom of a pool.
[0108] In practice, the front vision system and the bottom vision system can work together during the robot's global navigation, not just in the step area, but continuously providing multi-view data as the robot passes near the pool bottom, pool walls, ramps, or steps. By providing a wide range of XY plane environmental information through the front vision system and local Z-axis elevation information through the bottom vision system, the robot's perception of the pool environment can be upgraded from two-dimensional planar cognition to three-dimensional stereoscopic perception, thereby generating a high-precision underwater 3D topographic map.
[0109] In one embodiment, since the front-facing camera and the bottom camera are located at different physical positions on the robot body, and their acquisition frequencies may differ, it is necessary to synchronize the time of the multi-source data and unify their spatial coordinates before mapping. Time synchronization is to ensure that the forward environment data and terrain height data correspond to the robot's pose state at the same or nearly the same moment, avoiding motion blur, image misalignment, or map stitching errors caused by frame rate asynchrony.
[0110] As an example, the controller can have a built-in hardware timer that sends a unified global hardware trigger signal to both the front-end vision system and the bottom vision system. Upon receiving this global hardware trigger signal, the front-end and bottom vision systems expose simultaneously and record the same timestamp. Optionally, the exposure time error between the two systems can be less than 1 millisecond. This hardware-level time synchronization method aligns the front-end and bottom-end vision data in the time dimension, thereby reducing data misalignment caused by different acquisition times during robot movement.
[0111] In one embodiment, after time alignment is completed, the controller can convert the forward environment data and terrain height data to the same map coordinate system based on the pose information of the pool cleaning robot and pre-determined sensor extrinsic parameters. The pose information can be provided by the robot's odometry and IMU. The odometry characterizes the robot's displacement changes within the pool, and the IMU provides real-time robot attitude angles, such as pitch, roll, and yaw. Sensor extrinsic parameters can include the relative position and relative attitude between the front vision system and the bottom vision system.
[0112] In practice, the controller can read the pre-stored camera extrinsic parameter matrix before leaving the factory or during the initialization phase after launching into the water. The global origin O can be set as the optical center of the front-facing camera. front The translation vector T between the front camera and the bottom camera is determined by the mechanical assembly parameters inside the robot body. fb The rotation matrix R is determined based on the real-time attitude angles provided by the IMU. fb This establishes a spatial transformation equation between the local coordinate system of the bottom vision system and the global coordinate system of the front vision system. Through the aforementioned coordinate transformation matrix calibration, the content seen by the front camera and the bottom camera can be converted into the same set of position coordinates.
[0113] In one embodiment, when the bottom camera is a binocular camera or a structured light system, the controller can calculate the depth using the left and right view parallax maps. Since the bottom camera is in an underwater environment, the refractive index of the water medium affects the accuracy of the depth map; therefore, the controller can also perform optical distortion compensation on the depth map. The compensated depth map can be back-projected into a local 3D point cloud, the coordinate system of which can be denoted as O. bottom Subsequently, the controller can use R fb and T fb The transformation matrix converts the point cloud data generated by the bottom camera into the coordinates used by the front camera, based on the installation position relationship between the bottom and front cameras. After the conversion, the height information of steps, pits, protrusions, etc., captured by the bottom camera can be mapped to specific locations in the front visual map, thus allowing the front visual data and bottom visual data to be stitched together in the same pool map.
[0114] Data fusion can include feature-level alignment and data-level merging. Since the front vision system and the bottom vision system focus on different aspects, their collected data can be processed separately. Specifically, the front vision system mainly extracts structural features such as pool wall corners, waterline edges, and escalators to determine the robot's global XY plane position in the pool and performs loop closure detection. Loop closure detection refers to recognizing and correcting map errors when the robot revisits an area it has already traversed. The bottom vision system mainly extracts elevation features such as pool bottom material changes, drainage ditches, step facades, and local depressions or protrusions to supplement the Z-axis height data. Through this division of labor, the controller only needs to input the more useful features into the Simultaneous Localization and Mapping (SLAM) algorithm for processing, reducing the computational load and ensuring that the pool map simultaneously includes both planar position and height change information.
[0115] In one embodiment, when the controller embeds the elevation point cloud obtained by the bottom vision system into the two-dimensional grid map generated by the front vision system, the acquisition time corresponding to the data can be determined by timestamp synchronization, and the position of each elevation point in the global coordinate system can be determined by rigid body transformation matrix. In this way, the two-dimensional XY coordinate environment map formed by the front vision system can also be superimposed with the Z-axis coordinate data provided by the bottom vision system, thereby updating the pool topography map.
[0116] In one embodiment, to reduce the amount of fused point cloud data, the controller can also employ VoxelGrid, a voxel grid filtering algorithm, to downsample the fused point cloud. Specifically, while preserving the edge features of terrain undulations, it removes a large number of repetitive 3D points in flat areas. This reduces the memory footprint of flat elevation data when the robot is cruising on flat ground; and when the robot travels to steps or slopes, it retains key point cloud information in areas of abrupt elevation changes, thus balancing map accuracy and computational efficiency.
[0117] After fusion, the controller can output a 3D terrain map containing pool bottom depressions, ridges, and continuously changing slopes. Based on this 3D map, the robot can plan a better path in subsequent operations. For example, when encountering deep pits or towering drains, the robot can detour in advance instead of triggering obstacle avoidance after a collision; in areas with continuous steep slopes, the robot can switch to a high-torque, low-speed cleaning mode to improve stability and cleaning reliability. Through these methods, efficient and thorough cleaning coverage can be achieved globally.
[0118] In some embodiments, after fusing forward environment data and terrain height data converted to the same map coordinate system, the method of this application embodiment further includes: updating the terrain height data of the corresponding map unit in the pool terrain map according to the fused data; wherein, the pool terrain map includes multiple map units, each map unit is associated with planar position data and terrain height data respectively; performing path planning on the pool terrain map based on terrain change features to obtain a target motion path; and determining motion control parameters corresponding to the target motion path according to the terrain change features corresponding to the target motion path.
[0119] The pool topography map can be a three-dimensional elevation raster map, i.e., a 3D elevation map. Traditional 2D raster maps typically only record whether a location is passable or impassable, and the map cells mainly store the planar occupancy status, making it difficult to reflect the actual height changes at that location. In this embodiment, the pool topography map not only records the planar location but also the physical height information, enabling the robot to understand the topographic features of the pool bottom, such as undulations, step distribution, slope changes, grooves, and protrusions.
[0120] In the specific implementation, the mapping module can use the starting point of the pool cleaning robot as the origin and virtually divide the pool surface into several square grids, each grid serving as a map unit. Optionally, the side length of each square grid can be 'a', for example, 5cm × 5cm. Each map unit can store not only the occupancy probability P(x,y), but also the average terrain height data Z(x,y) and the terrain friction attribute μ(x,y). Here, P(x,y) represents the occupancy status or passability probability at that location, Z(x,y) represents the height information at that location, and μ(x,y) represents the friction or adhesion attribute of the terrain at that location.
[0121] In one embodiment, as the robot moves through the pool, the front-facing vision system continuously updates the occupancy status of P(x,y). For example, the front-facing vision can determine whether a corresponding map cell is occupied or passable based on features such as pool walls, obstacles, step edges, or large areas of the pool bottom. Simultaneously, the bottom-facing vision system measures the terrain height data below the robot's chassis and injects this data into the corresponding map cell to continuously update the grid's elevation variable Z(x,y). When the same map cell is observed multiple times, mean filtering or Kalman filtering algorithms can be used to fuse multiple elevation measurements to obtain a more stable mean elevation value Z(x,y).
[0122] In one embodiment, after the robot completes full pool coverage cleaning, the system can stitch together, deduplicate, and smooth all local terrain height data grids, and finally output a real 3D topological map containing the complete pool bottom undulations, step distribution, and transition slope between deep and shallow water areas.
[0123] The target motion path refers to the robot's subsequent walking path planned based on the pool terrain map. In specific implementations, the controller can plan the path based on the pool terrain map's features. Optionally, a 3D A* algorithm can be used. Path planning is performed using algorithms such as the Three Dimensional A Star Algorithm (3D A Star Algorithm) or the Rapidly Exploring Random Tree (RRT). Traditional robots typically need to make contact or collisions before determining whether a step is possible. However, after building a 3D map, when the robot restarts or cruises, it can anticipate the presence of steps, pits, bumps, or slopes ahead based on the elevation data in the map, thus generating a more suitable target movement path in advance.
[0124] In one embodiment, the controller can further generate a 3D composite trajectory, including deceleration points and attitude adjustment points, based on the terrain height difference ΔZ and distance information, from the original 2D path planning result. For example, when there are steps or large protrusions ahead of the target movement path, a deceleration point can be set before approaching the location, and an attitude adjustment point can be set at an appropriate position to avoid the robot identifying the terrain through ineffective collision exploration. In this way, the probability of collisions, slippage, and getting stuck can be reduced.
[0125] In another embodiment, the controller can also determine the motion control parameters corresponding to the target motion path based on the terrain change characteristics corresponding to the target motion path, and automatically switch the operating mode. For example, when the terrain features fed back by the map indicate that there is a steep slope or a large drop step ahead, and ΔZ > H critical When in use, the controller can reduce the travel speed to 30% of the standard speed and actively switch to a high-intensity bottom-scraping mode, while adjusting the track tension to the maximum to increase anti-slip grip.
[0126] As another example, when the bottom vision identifies a continuous V-shaped indentation feature on the 3D map, the area can be recognized as a groove or drainage ditch pattern. In this case, the controller can instruct the robot to reduce the power of the suction pump when passing through such areas to prevent the suction port from getting stuck in the groove; at the same time, the controller can also adjust the robot's direction of travel to be parallel to the direction of the groove, thereby performing in-depth cleaning along the line.
[0127] As another example, when IMU and bottom height data indicate that the robot has entered a shallow water area—for instance, if the terrain height data Z continuously increases and approaches the water surface—the controller can determine that the robot is in shallow water platform mode. At this point, it can automatically reduce its travel power to minimize water flow disturbance and prevent the robot from veering off course due to excessive shallow water resistance.
[0128] In one embodiment, during the 3D map construction process, the controller can not only record terrain changes but also, in conjunction with a front-facing camera, record high-turbidity areas in the pool with severe algae accumulation or silt deposition, marking these areas as enhanced cleaning zones on the 3D map. During subsequent patrols, the robot can perform reciprocating cross-cleaning in these areas or increase its dwell time to improve cleaning coverage and the cleaning effect on heavily contaminated areas.
[0129] In another embodiment, after determining the terrain information of the bottom target area based on visual data, the method of this application embodiment further includes: determining the pollution status information of the bottom target area based on visual data; associating the pollution status information with the corresponding location in the pool terrain map; determining the target cleaning area based on the pollution status information and the pool terrain map; and adjusting at least one of the following for the target cleaning area: the traveling speed of the pool cleaning robot, the working parameters of the cleaning mechanism, and the cleaning path.
[0130] The pollution status information is used to characterize the cleanliness of the target area at the bottom. Specifically, the controller can identify conditions such as sediment deposition, moss attachment, turbidity accumulation, abnormal color, or dirt buildup on the pool bottom or step surface based on bottom visual data, and determine the location, area, pollution level, or type of pollution. The controller can write the pollution status information into the corresponding map cell in the pool topography map, linking the map cell to both topographic height data and pollution status data. Therefore, when an area has a high degree of pollution, the controller can designate that area as the target cleaning area and adjust the cleaning strategy based on its topographic condition. For example, if the target cleaning area is located on a flat pool bottom, the travel speed can be reduced or the cleaning mechanism's workload increased; if the target cleaning area is located in a groove or drain, the cleaning path can be adjusted so that the robot travels along the groove; if the target cleaning area is located on steps or slopes, reciprocating cleaning can be performed or the dwell time can be increased.
[0131] In another embodiment, before or after acquiring visual data of the target area at the bottom of the pool cleaning robot, the method of this application embodiment further includes: determining the image clarity of the visual data; when the image clarity does not meet the preset clarity condition, controlling the cleaning fluid to flow along the surface of the light-transmitting component disposed on the visual acquisition device to clean the light-transmitting component; and reacquiring the visual data of the target area at the bottom after cleaning is completed.
[0132] Image sharpness can be determined based on edge sharpness, contrast, Laplacian sharpness, blurriness, or the number of effective feature points. Since the bottom vision system is prone to sediment buildup or algae buildup, the light-transmitting component on the outside of the vision acquisition device can be a flat glass plate or a sapphire lens. The bottom vision system can be equipped with a pneumatic or hydraulic self-cleaning structure, for example, by creating at least one flow guide jet hole along the tangential direction of the lens at the lower edge of the light shield. This flow guide jet hole is connected to a water pump or air pump inside the robot via a one-way valve. When the controller detects that the bottom image blurriness exceeds a threshold, or before each robot starts, dives, or comes ashore, the controller can instruct the water pump or air pump to pressurize, generating a high-pressure water or airflow that sweeps across the lens surface tangentially, washing away the attached mud, sand, and algae. After cleaning, the controller re-acquires visual data to ensure the bottom vision system maintains a clear imaging state.
[0133] Based on the above method embodiments, in order to implement the motion control method for the pool cleaning robot provided in this application embodiment, this application embodiment also provides a pool cleaning robot. Please refer to... Figure 3 The pool cleaning robot may include a robot body, a walking mechanism, a vision acquisition device, a motion status acquisition device, a memory, and a controller.
[0134] The robot body serves as the mounting platform for various functional components and can form a sealed structure suitable for underwater operation. A locomotion mechanism is installed on the robot body and can drive the robot body to move along areas such as the pool bottom, pool walls, steps, or slopes. The locomotion mechanism can include at least one of tracked or wheeled locomotion mechanisms, or other mechanisms capable of driving the pool cleaning robot can be used as needed.
[0135] A visual acquisition device is installed on the bottom of the robot body to collect visual data of the target area on the bottom of the robot body. The visual acquisition device may include a bottom camera, which may be positioned facing downwards or downwards in front of the robot body to collect images of areas such as the bottom of a pool, steps, slopes, depressions, or protrusions near the robot chassis and downwards in front of the robot body in the direction of travel. In some embodiments, the visual acquisition device may also include a supplementary lighting device, a light-shielding structure, and a light-transmitting component.
[0136] A motion state acquisition device is used to obtain motion state information of the pool cleaning robot. This device may include at least one of an inertial measurement unit (IMU), an odometer, and a locomotive encoder. For example, the IMU can acquire attitude information such as the robot's current pitch angle, roll angle, angular velocity, or acceleration; the odometer or locomotive encoder can acquire the robot's or locomotive's corresponding travel distance, speed, or rotational state. The controller can combine the above motion state information with visual data obtained from the vision acquisition device to control the motion state of the pool cleaning robot.
[0137] The memory is used to store programs and data required during the operation of the pool cleaning robot. This data may include at least one of camera calibration parameters, sensor extrinsic parameters, robot structural parameters, drive capability parameters, map data, terrain information, and motion control parameters. The memory may include at least one of volatile and non-volatile memory, such as random access memory (RAM), read-only memory (ROM), flash memory, or other storage devices capable of storing programs and data.
[0138] The controller is connected to the vision acquisition device, the motion state acquisition device, the walking mechanism, and the memory, respectively, to receive visual data and motion state information, and to execute the program stored in the memory to implement the motion control method of the pool cleaning robot in any of the foregoing embodiments. For example, the controller can determine the terrain information of the target area under the robot based on the visual data, and then determine the target motion control parameters by combining the motion state information, and control the walking mechanism to operate based on the target motion control parameters, so as to adjust the motion state of the robot when passing through the target area under the robot.
[0139] In some embodiments, the controller can also be connected to the pool cleaning robot's water pump, cleaning mechanism, or supplementary lighting device. The controller can control at least one of the walking mechanism, water pump, cleaning mechanism, or supplementary lighting device based on current terrain information or movement status. For example, when the robot approaches a step, its walking speed can be reduced and the water pump flow rate adjusted to create a movement state suitable for climbing; when the image brightness obtained by the visual acquisition device is insufficient, the supplementary lighting device can be controlled to adjust its supplementary lighting parameters.
[0140] The controller may include one or more of the following: a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a microcontroller, or other processing devices capable of executing program instructions and controlling the operation of the pool cleaning robot. The controller can communicate with the various functional components within the robot body through appropriate interfaces and wiring.
[0141] In practical applications, the vision acquisition device, motion status acquisition device, memory, locomotion mechanism, and controller can transmit data and control signals through a bus system, independent communication lines, or other connection methods. The bus system can include one or more of the following: data bus, power bus, control bus, and status signal bus. The functional devices can be integrated or set up separately according to the internal space of the robot, as long as they can achieve the corresponding data interaction and control functions.
[0142] The memory in this embodiment can store one or more program modules. The controller, by running one or more program modules in the memory, can perform processes such as visual data acquisition, terrain information determination, motion state acquisition, motion control parameter determination, walking mechanism control, and map updating. Each program module can be divided according to its specific function, or multiple processing steps can be completed by the same program module; this application does not limit this.
[0143] Those skilled in the art will understand that the robot body, walking mechanism, vision acquisition device, motion state acquisition device, memory, and controller described above are merely illustrative of one possible configuration for a pool cleaning robot and do not constitute a limitation on the specific structure of the pool cleaning robot. In practical applications, corresponding components can be added or removed according to functional needs, or two or more functional components can be integrated. For example, the controller and memory can be integrated into a single controller, while the inertial measurement unit and odometer can be separately configured and provide motion state information to the same controller.
[0144] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, performs the motion control method for the pool cleaning robot described in any of the above embodiments.
[0145] This application also provides a computer program product storing a computer program / instruction, which, when executed by a processor, is used to implement the motion control method for the pool cleaning robot described in the first aspect or any specific implementation of the first aspect of this application.
[0146] For the specific data processing and control processes of each device in the aforementioned pool cleaning robot, please refer to the corresponding content in the aforementioned embodiments of the motion control method for the pool cleaning robot, and will not be repeated here.
Claims
1. A motion control method for a swimming pool cleaning robot, characterized in that, include: Acquire visual data of the target area on the bottom of the pool cleaning robot; The terrain information of the bottom target area is determined based on the visual data; Obtain the motion status information of the pool cleaning robot; Based on the terrain information and the motion state information, determine the target motion control parameters corresponding to the bottom target area; The walking mechanism of the pool cleaning robot is controlled based on the target motion control parameters to adjust the motion state of the pool cleaning robot when passing through the bottom target area.
2. The method according to claim 1, characterized in that, The acquisition of visual data of the target area at the bottom of the pool cleaning robot includes: Obtain environmental perception information in the direction of travel of the pool cleaning robot; Based on the environmental perception information, the terrain change features in the direction of travel of the pool cleaning robot are extracted; Based on the pre-defined correspondence between terrain change features and visual acquisition strategies, visual acquisition trigger information is generated according to the terrain change features. In response to the visual acquisition trigger information, the visual acquisition device installed at the bottom of the pool cleaning robot is controlled to acquire visual data of the bottom target area with target acquisition parameters; The terrain change features include at least one terrain change feature corresponding to a stepped area, a slope area, a depression area, and a convex area.
3. The method according to claim 2, characterized in that, The control unit, located at the bottom of the pool cleaning robot, uses a vision acquisition device to collect visual data of the target area at the bottom using target acquisition parameters, including: Obtain the ambient brightness information of the bottom target area; The target supplementary lighting parameters of the supplementary lighting device are determined based on the ambient brightness information. The lighting device is controlled to provide supplementary lighting to the bottom target area according to the target supplementary lighting parameters, and the bottom image after supplementary lighting is acquired. The target illumination parameters are adjusted based on the image quality parameters of the bottom image, and visual data of the bottom target area is acquired based on the adjusted target illumination parameters.
4. The method according to claim 1, characterized in that, The determination of terrain information for the bottom target region based on the visual data includes: Image enhancement and feature extraction are performed on the visual data to obtain the terrain features of the bottom target area; Based on the aforementioned terrain features, determine the areas of terrain change; If the visual data is monocular visual data, spatial geometric calculations are performed on the terrain features based on the pre-calibrated camera parameters, the installation parameters of the visual acquisition device relative to the pool cleaning robot, and the preset ground constraints, to obtain the spatial geometric calculation results. If the visual data is binocular visual data, depth information is determined based on the binocular visual data, and local spatial point data is generated based on the depth information; Based on the spatial geometric calculation results or the local spatial point data, determine the terrain parameters of the terrain change area; The terrain parameters include at least one of the following: distance parameters, height parameters, slope parameters, terrain edge location parameters, and surface adhesion properties.
5. The method according to claim 1, characterized in that, The step of determining the target motion control parameters corresponding to the bottom target area based on the terrain information and the motion state information includes: Obtain the structural parameters and driving capability parameters of the pool cleaning robot; Based on the terrain information, determine the height of the bottom target area and the distance of the bottom target area relative to the walking mechanism; Based on the height, the distance, the motion state information, the structural parameters, and the driving capability parameters, determine the motion constraint information of the pool cleaning robot when it passes through the bottom target area; Based on the motion constraint information, the target motion control parameters are determined; The motion constraint information is used to characterize at least one of the following: the interference state between the chassis of the pool cleaning robot and the bottom target area, the attitude stability state of the pool cleaning robot, and the attachment state of the walking mechanism; the structural parameters include at least one of the following: chassis geometric parameters, walking mechanism size parameters, robot center of gravity parameters, and maximum approach angle; and the driving capability parameters include maximum driving torque.
6. The method according to claim 5, characterized in that, Determining the target motion control parameters based on the motion constraint information includes: Based on the terrain information and the motion constraint information, the target motion state of the pool cleaning robot when passing through the bottom target area is determined; Based on the target motion state, at least one of the following parameters is determined as the target motion control parameter: travel speed, driving torque, travel direction and attitude adjustment parameter. Before the pool cleaning robot reaches the terrain change location in the bottom target area, the motion state of the walking mechanism is adjusted based on the target motion control parameters.
7. The method according to claim 1, characterized in that, In the process of controlling the operation of the walking mechanism based on the target motion control parameters, the method further includes: The visual motion of the pool cleaning robot is determined based on the visual data, and the walking motion is determined based on the odometer data or the encoder data of the walking mechanism. The motion control parameters are determined based on the difference between the visual motion amount and the walking motion amount, and the operating state of the walking mechanism is adjusted based on the modified motion control parameters. Acquire the relative displacement information of the pool cleaning robot, the drive status information of the walking mechanism, and the attitude status information of the pool cleaning robot; The escape motion control parameters are determined based on the relative displacement information, the driving state information, and the attitude state information, and the pool cleaning robot is controlled to perform escape motion based on the escape motion control parameters.
8. The method according to claim 1, characterized in that, After determining the terrain information of the bottom target area based on the visual data, the method further includes: Acquire the forward environmental data of the pool cleaning robot, and determine the terrain height data of the bottom target area based on the visual data; Time alignment is performed on the forward environment data and the terrain height data; Based on the pose information of the pool cleaning robot and the pre-determined sensor extrinsic parameters, the time-aligned forward environment data and the terrain height data are converted to the same map coordinate system; The forward environment data and the terrain height data, which have been converted to the same map coordinate system, are fused to update the pool topography map.
9. The method according to claim 8, characterized in that, After fusing the forward environment data and the terrain height data converted to the same map coordinate system, the method further includes: The terrain height data of the corresponding map unit in the pool terrain map is updated according to the fused data; wherein, the pool terrain map includes multiple map units, and each map unit is associated with planar location data and terrain height data respectively; Based on the terrain change features, a path planning process is performed on the pool terrain map to obtain the target movement path; Based on the terrain change characteristics corresponding to the target movement path, determine the motion control parameters corresponding to the target movement path.
10. A swimming pool cleaning robot, characterized in that, include: The robot itself; A walking mechanism, disposed on the robot body, is used to drive the robot body to move; A visual acquisition device is installed at the bottom of the robot body to acquire visual data of the target area at the bottom of the robot body; A motion state acquisition device is used to acquire the motion state information of the pool cleaning robot; Memory, used to store programs; The controller is connected to the vision acquisition device, the motion state acquisition device, the walking mechanism, and the memory, respectively. The controller is used to execute the program to implement the motion control method for the pool cleaning robot according to any one of claims 1 to 9.
