Method for calibrating direction detection value of pool cleaning device and corresponding pool cleaning device
By calibrating the direction detection value of the pool cleaning device and using the ranging value to fit the boundary trajectory line and steering angle, the problem of the IMU detection heading angle error is solved and the accuracy and quality of the cleaning device are improved.
Patent Information
- Application Number
- CN202410878258.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-25
AI Technical Summary
During the pool cleaning process of the automatic cleaning device, there is an error in the heading angle detected by the IMU, which results in the calculated pose being inaccurate and affecting the accuracy of the operation.
By obtaining multiple ranging values of the pool cleaning device before and during the turn, a trajectory line related to the boundary of the operating area is fitted, and the heading angle is calibrated based on the difference between the steering angle and the ranging values to reduce the direction Measurement error.
The direction measurement accuracy and work quality of the pool cleaning device are improved, and the deviation caused by the IMU error is reduced.
Smart Images

Figure CN118838355A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of automatic cleaning, and more particularly to a method for calibrating a direction detection value of a pool cleaning device and a corresponding pool cleaning device. Background Art
[0002] With the development of artificial intelligence and navigation technology, more and more automatic cleaning devices are used to clean areas such as pools. In order to improve cleaning efficiency and cleaning quality, during the cleaning process, the pool cleaning device needs to detect its movement direction to perform more precise control. Summary of the invention
[0003] According to one aspect of the present disclosure, a method for calibrating a direction detection value of a pool cleaning device is proposed, and the method may include: obtaining a plurality of first ranging values of the pool cleaning device in a first detection direction; fitting a first trajectory line related to a first boundary of an operating area where the pool cleaning device is located based on the plurality of first ranging values; obtaining a plurality of second ranging values of the pool cleaning device in a second detection direction when the pool cleaning device starts to turn, the first detection direction being different from the second detection direction; determining a steering angle during the turning process when the pool cleaning device finishes turning, and fitting a second trajectory line related to a second boundary of the operating area based on the plurality of second ranging values; determining an angle between the first trajectory line and the second trajectory line; and calibrating the direction detection value of the pool cleaning device based on the angle and the steering angle.
[0004] Optionally, in the above method, the steering angle is acquired by an inertial measurement unit IMU.
[0005] Optionally, in the above method, before the pool cleaning device starts to turn, the method also includes determining whether to turn based on at least one of the following: at least one third ranging value of the pool cleaning device in the second detection direction; whether the pool cleaning device has issued an instruction to turn; or positioning information of the pool cleaning device indicates whether it is in a position where it needs to turn.
[0006] Optionally, in the above method, fitting a first trajectory line related to a first boundary of an operating area where the pool cleaning device is located includes fitting the first trajectory line based on a least squares method; and fitting a second trajectory line related to a second boundary of the operating area includes fitting the second trajectory line based on a least squares method.
[0007] Optionally, in the above method, the steering angle is greater than or equal to 30°.
[0008] Optionally, in the above method, determining the angle between the first trajectory line and the second trajectory line includes: acquiring respective slopes of the first trajectory line and the second trajectory line; and determining the angle between the first trajectory line and the second trajectory line based on the respective slopes.
[0009] Optionally, in the above method, the plurality of first distance measurement values include data collected by the pool cleaning device before turning, and the plurality of second distance measurement values include data collected by the pool cleaning device during the turning.
[0010] Optionally, in the above method, the first detection direction includes a lateral direction of the pool cleaning device, and the second detection direction includes a forward direction of the pool cleaning device.
[0011] Optionally, in the above method, the direction detection value includes a heading angle, wherein calibrating the direction detection value of the pool cleaning device based on the included angle and the steering angle includes: determining an amount for calibrating the heading angle of the pool cleaning device based on a difference between the included angle and the steering angle.
[0012] According to another aspect of the present disclosure, a pool cleaning device is also proposed, which may include: at least one ranging unit, used to obtain multiple first ranging values about the pool cleaning device in a first detection direction and multiple second ranging values about the pool cleaning device in a second detection direction; a direction detection unit, used to detect the heading angle of the pool cleaning device; a steering control unit, used to control the pool cleaning device to turn, and capable of determining the steering angle during the turning process based on the heading angle; a calibration unit, configured to: determine first analysis information about the multiple first ranging values and second analysis information about the multiple second ranging values, and calibrate the heading angle of the pool cleaning device based on the steering angle, the first analysis information and the second analysis information.
[0013] Optionally, in the above-mentioned pool cleaning device, the ranging unit includes a lateral sensor and a forward sensor, the lateral sensor is arranged on the left side or the right side of the pool cleaning device, and is used to obtain the multiple first ranging values; the forward sensor is arranged at the front of the pool cleaning device, and is used to obtain the multiple second ranging values.
[0014] Optionally, in the above pool cleaning device, the distance measuring unit includes an ultrasonic sensor or an optical distance measuring sensor.
[0015] Optionally, in the above-mentioned pool cleaning device, before the pool cleaning device turns, the at least one distance measuring unit obtains the multiple first distance measuring values, and during the turning process of the pool cleaning device, the at least one distance measuring unit obtains the multiple second distance measuring values.
[0016] Optionally, in the above pool cleaning device, the first detection direction includes a lateral direction of the pool cleaning device, and the second detection direction includes a forward direction of the pool cleaning device.
[0017] Optionally, in the above-mentioned pool cleaning device, the steering angle is greater than or equal to 30°, and the direction detection unit includes an IMU.
[0018] Optionally, in the above-mentioned pool cleaning device, the first analysis information includes statistical information or visualization information of the multiple first distance measurement values; the second analysis information includes statistical information or visualization information of the multiple second distance measurement values.
[0019] According to the above method and the corresponding pool cleaning device disclosed in the present invention, the direction detection value of the pool cleaning device can be calibrated, thereby reducing the direction measurement error of the pool cleaning device and improving the accuracy and quality of the operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a schematic diagram of a pool cleaning device according to an embodiment of the present disclosure.
[0021] Figure 2 Schematic diagram of a pool cleaning device according to an embodiment of the present disclosure when in operation.
[0022] Figure 3 is a schematic flow chart of a method according to an embodiment of the present disclosure.
[0023] Figure 4 is a schematic diagram of the architecture of a pool cleaning device according to an embodiment of the present disclosure.
[0024] Figure 5 It is a schematic diagram of a trajectory line about a first boundary / a second boundary obtained by data fitting based on the distance measurement value of the pool cleaning device in the first / a second detection direction according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The detailed description set forth below in conjunction with the accompanying drawings is intended as a description of various configurations and is not intended to represent the only configurations in which the concepts described herein may be practiced. The detailed description includes specific details in order to provide a thorough understanding of the various concepts. However, it will be apparent to those skilled in the art that these concepts may be practiced without these specific details.
[0026] In the description of the present disclosure, it needs to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", "one side", "the other side" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present disclosure.
[0027] In addition, the terms "first", "second", "third", etc., which are related to order, are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, features defined by terms such as "first", "second", "third", etc., which are related to order, may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0028] Furthermore, in the drawings, for clarity of illustration, dimensions may be exaggerated and not drawn to scale. Throughout the drawings, like reference numerals generally refer to like elements.
[0029] Figure 1 A pool cleaning device 100 is schematically shown as an example, which can clean the bottom, wall, water and water surface of a pool (such as a swimming pool) as needed, for example, to clean garbage in the water, on the bottom and on the water surface, and to clean dirt on the bottom and wall of the pool. Figure 1 As shown, the pool cleaning device 100 may include structures / components such as a shell 110, a travel mechanism 120, and a cleaning mechanism 130. As an example, the pool cleaning device 100 may also include a buoyancy adjustment mechanism (not shown), so that the pool cleaning device can adjust its depth in the water as needed, for example, it can float on the water surface, dive into the water, or sink to the bottom of the water, so as to perform cleaning operations on the water surface, in the water, or at the bottom of the water. As an example, a control compartment, a power compartment, and a filter compartment (not shown) may be provided in the shell 100, wherein measurement and control circuits such as a control unit and an inertial measurement unit IMU may be installed in the control compartment, driving mechanisms such as a water pump and a drive motor may be provided in the power compartment, and a filtering mechanism may be provided in the filter compartment, so as to filter and purify the water entering the filter compartment through the water inlet, filter out the debris therein, and discharge the cleaned water out of the pool cleaning device through the water outlet. As an example, Figure 1The traveling mechanism 120 may include crawler-type traveling mechanisms on both sides of the lower part of the pool cleaning device 100, so that the pool cleaning mechanism can travel in the water, on the bottom of the pool, or on the pool wall to perform corresponding cleaning operations. However, the traveling mechanism is not limited to Figure 1 The type shown in the figure may include, for example, a wheeled travel mechanism, which is not limited here. In addition, the travel mechanism may be coupled to a drive mechanism placed in a power bin inside the housing 110, thereby being driven by the drive mechanism. As an example, the travel mechanism may also include a water jet propulsion mechanism, so that the pool cleaning device 100 can travel by utilizing the reaction force generated by the jetted water flow. Optionally, the water jet propulsion mechanism may be arranged on both sides of the housing 100 of the pool cleaning device close to the waterline, so that when the pool cleaning device floats on the water surface, the water flow ejected by the water jet propulsion mechanism can travel in the horizontal direction, or it may be arranged at the top and / or bottom of the housing in the vertical direction of the housing 100, which is approximately the center position, so that the water flow ejected by the water jet propulsion mechanism can travel in the vertical direction. In addition, the direction of the water flow ejected by the water jet propulsion mechanism may also be set and controlled, so that the travel direction of the pool cleaning device is not limited to the horizontal and / or vertical direction, but may also be an inclined direction at a certain angle to the vertical direction. For those skilled in the art, the specific type, connection structure and working principle of the appropriate traveling mechanism can be selected according to the specific application occasion, size and other related factors of the pool cleaning device, but it is not limited thereto. As an example, the cleaning mechanism 130 can be a roller brush or other components located at the front side of the traveling mechanism along the traveling direction of the pool cleaning device. In addition, sensors such as ultrasonic sensors, infrared sensors, laser ranging sensors, etc. can also be set on the housing 110 to measure the positional relationship between the pool cleaning device and the surrounding environment.
[0030] According to an embodiment, the pool cleaning device 100 can be configured to drive the traveling mechanism 120 according to a specified mode under the control of the internal control unit to drive the pool cleaning device 100 to move along a specific track or in a specific direction on the bottom, wall, water, or surface of the pool; at the same time, the cleaning mechanism 130 can be activated to clean up garbage, debris, dirt, etc. on the bottom, wall, water, and / or surface of the pool, so that they are sucked into the filter bin of the pool cleaning device along with the water flow. Then, the garbage, debris, and dirt are filtered through the filter bin, and the garbage, debris, and dirt are trapped in the filter bin, and the cleaned water is discharged from the pool cleaning device, thereby cleaning the pool.
[0031] Figure 1 The pool cleaning device 100 shown is only an example, and those skilled in the art may change one or more aspects thereof in terms of appearance, structure, layout, components, functions, etc. according to actual needs without departing from the principles of the present disclosure.
[0032] As mentioned above, in order to improve the cleaning efficiency and cleaning quality, it is necessary to plan the route of the automatic cleaning device, and to locate and navigate the automatic cleaning device so as not to miss the objects that need to be cleaned and not to repeat the cleaning operation on the cleaned objects. This involves mapping the pool area environment for cleaning operations and / or accurately measuring and controlling the trajectory of the pool cleaning device. As an example, the position and attitude measurements of the pool cleaning device obtained by the inertial measurement unit IMU can be used as the basis for the above-mentioned measurement and control. Optionally, the IMU may include a (three-axis) gyroscope and a (three-axis) accelerometer, wherein the (three-axis) accelerometer is used to detect the acceleration signal of the pool cleaning device in each axis direction in three-dimensional space, and the (three-axis) gyroscope is used to detect the angular velocity signal of the pool cleaning device in three-dimensional space relative to each axis of the reference coordinate system; based on the detected angular velocity and acceleration of the pool cleaning device in three-dimensional space, the position and posture of the automatic cleaning device in three-dimensional space can be solved, thereby realizing accurate measurement and control when operating in the pool area.
[0033] However, considering the errors in the IMU detection signal itself and the possible influence of environmental noise, when the position and posture of the automatic cleaning device (for example, direction detection values such as heading angle, etc.) are solved based on the time integration of the IMU detection signal, these errors are accumulated, resulting in the calculated position and posture being inaccurate and causing deviation.
[0034] In addition, pool cleaning devices generally operate along the pool wall. The rotation and twisting of the fuselage may also cause errors in the heading angle detected by the IMU, which in turn causes the errors to be accumulated during the operation along the edge, which may affect the operation accuracy.
[0035] In order to reduce or even eliminate the error of the heading angle detected by the IMU caused by the above factors, the present disclosure proposes a method for calibrating the direction detection value of the pool cleaning device. According to the method, at least one distance measuring device provided on the pool cleaning device can be used to measure the distance value between the pool cleaning device and the surrounding obstacles (e.g., the pool wall) during a certain period of time when the pool cleaning device is turning, so as to determine the contour boundary of the surrounding obstacles; since the relative position relationship between the turning trajectory of the pool cleaning device during the time period and the contour boundary of the surrounding obstacles is determined (e.g., during the process of the pool cleaning device working along the edge, such as the mapping operation and / or cleaning operation along the edge), the contour boundary determined during the period of time can reflect the turning trajectory of the pool cleaning device; thereby, the actual turning value of the pool cleaning device can be determined; in addition, according to the method, the IMU can be used to obtain the change of the direction detection value (e.g., the heading angle) of the pool cleaning device during the time period, and based on the comparison between the determined actual turning value of the pool cleaning device and the change of the direction detection value of the pool cleaning device obtained by the IMU, the direction detection value obtained by the IMU can be corrected.
[0036] Figure 2 FIG. 1 is a schematic diagram showing an environment in which the above method is applied to a pool cleaning device according to an embodiment of the present disclosure. Figure 2 As shown, when the pool cleaning device 200 is operating along the boundary of the operating area 210 (e.g., the wall of the pool), the first distance measuring sensor 220 provided on the pool cleaning device 200 can detect the distance between it and the first boundary of the operating area in the first detection direction. As an example, the first detection direction can be the lateral direction of the pool cleaning device; for example, Figure 2 In the example, the pool cleaning device 200 may continuously collect first ranging values in the first detection direction during the edge operation and store them in a memory such as a cache. As an example, the first ranging value in the first detection direction may reflect the outline of the first boundary of the working area. When the pool cleaning device 200 starts to turn, the second ranging sensor 230 provided on the pool cleaning device 200 may detect the distance between it and the second boundary of the working area in the second detection direction. As an example, the second detection direction may be the forward direction of the pool cleaning device; for example, in Figure 2 In the example, the second distance measurement value in the second detection direction may reflect the contour of the second boundary of the working area. Figure 2In the above description, a first distance measuring sensor 220 for measuring distance in a first detection direction and a second distance measuring sensor 230 for measuring distance in a second detection direction are provided on the pool cleaning device 200, however this is only for example. Optionally, only one distance measuring sensor may be provided on the pool cleaning device 200, and the distance measuring sensor may change the detection direction according to the received instruction, for example, rotate according to the control instruction issued by the pool cleaning device so as to change from the first detection direction to the second detection direction, and vice versa. In the present disclosure, the type of the first and / or second distance measuring sensor is not limited, and may be an ultrasonic sensor, an infrared sensor, a laser distance measuring sensor, etc.
[0037] Based on the stored multiple first ranging values in the first detection direction, the pool cleaning device 200 can determine the first trajectory line related to the first boundary of the working area in which it is located; and when the pool cleaning device 200 ends the turn, the pool cleaning device 200 can use the IMU to determine the steering angle during the turn, and based on the stored multiple second ranging values in the second detection direction, it can determine the second trajectory line related to the second boundary of the working area in which it is located. As an example, the determination of the first trajectory line based on the multiple first ranging values in the first detection direction and / or the determination of the second trajectory line based on the multiple second ranging values in the second detection direction can be performed in a data fitting manner. For example, a plurality of first ranging values including the first detection direction can be obtained from the memory, and trajectory fitting can be performed in a data fitting manner to determine the trajectory of the first boundary of the working area. For example, the trajectory of the first boundary of the working area can be determined by a straight line fitting method, and the specific method adopted is not limited here. In the present disclosure, the least squares method will be used as an example to illustrate the method of determining the first trajectory line related to the first boundary of the working area based on the multiple first ranging values in the first detection direction. However, those skilled in the art will appreciate that, based on multiple first ranging values in the first detection direction, other straight line fitting methods may be used to determine the first trajectory line associated with the first boundary of the working area. For example, methods such as the overall mean method, polynomial fitting method, gradient descent method, support vector machine, etc. may be used for straight line fitting, which is not limited here.
[0038] As an example, the following describes a specific implementation method for determining a first trajectory line related to a first boundary of an operation area based on a plurality of first distance measurement values in a first detection direction by combining the least squares method for straight line fitting. For example, a pool cleaning device can continuously collect first distance measurement values in a first detection direction during operation along the edge, and store them as {D0, D1, D2, ... D i ,,…D n-1 When determining the first trajectory line, coordinate conversion can be performed, for example, the stored first distance measurement value D iThe coordinate value converted to the global coordinate system (X i ,Y i ), and combined with the equation of the line:
[0039] Y=a*x+b
[0040] Based on the coordinate values of each coordinate point corresponding to at least a portion of the first distance measurement values:
[0041]
[0042] Find the values of parameters a and b when f(x) reaches its minimum value:
[0043]
[0044] Let the above partial derivatives be zero, and we get a system of linear equations in two variables:
[0045]
[0046] To simplify the equation, write:
[0047]
[0048] We can get:
[0049]
[0050] By solving the above equations, we can obtain the corresponding values of the straight line fitting parameters:
[0051]
[0052] Thus, the slope a and intercept b of the fitted straight line can be obtained, thereby determining the trajectory corresponding to the straight line. In other words, the first trajectory line related to the first boundary of the working area can be determined by linear fitting based on multiple first distance measurement values in the first detection direction using the least squares method.
[0053] Similarly, when the pool cleaning device finishes turning, the same method can be used to determine a second trajectory line associated with a second boundary of the working area based on a plurality of second distance measurement values in the second detection direction.
[0054] As an example, Figure 5 A schematic diagram of a trajectory line obtained by performing straight line fitting based on the ranging value using the least squares method is shown.
[0055] As described above, when the pool cleaning device 200 is operating along the boundary of the operating area 210 (for example, the wall of the pool), there is a definite relationship between its moving trajectory and the contour of the boundary, and during the turning process of the pool, the actual turning angle of the pool cleaning device can be determined by determining the corresponding contour boundary during the turning process by utilizing the relative position relationship between the turning trajectory of the pool cleaning device during this time period and the contour boundary of the surrounding obstacles.
[0056] Typically, a pool cleaning device can use an IMU to obtain corresponding direction detection values, for example, the heading angle of the pool cleaning device. As described above, the heading angle is usually a heading angle calculated based on the angular velocity detected by the IMU. Due to the detection error, zero bias and environmental noise of the IMU, the heading angle needs to be corrected so that positioning and navigation can be achieved more accurately during the operation. To this end, according to an embodiment of the present disclosure, it is proposed to determine the actual steering angle of the pool cleaning device based on the relative position relationship between a first trajectory line related to a first boundary of the operating area and a second trajectory line related to a second boundary of the operating area, and the actual steering angle will be used to correct the heading angle of the pool cleaning device calculated by the IMU. As an example, for example, a first trajectory line associated with a first boundary of the working area can be determined by a first ranging value in a first detection direction, and a second trajectory line associated with a second boundary of the working area can be determined by a second ranging value in a second detection direction, and the actual steering angle of the pool cleaning device can be determined based on the angle between the first trajectory line and the second trajectory line; and the steering angle of the pool cleaning device can be calculated using the heading angle solved by the IMU, for example, the steering angle of the pool cleaning device can be calculated based on the difference between the heading angle before the pool cleaning device turns and the heading angle after the turning; after comparing the actual steering angle of the pool cleaning device determined and the steering angle calculated based on the detection value of the IMU, the amount of correction for the heading angle of the IMU can be determined. For example, if the actual steering angle of the pool cleaning device can be determined to be 92 degrees based on the angle between the first trajectory line and the second trajectory line, and the steering angle calculated using the heading angle obtained by the IMU is 88 degrees, a correction amount of 4 degrees can be given to the heading angle obtained by the IMU.
[0057] As an example, Figure 3 FIG. 2 shows a schematic flow chart of a method 200 according to an embodiment of the present disclosure. Figure 3As shown, the method may include: S310, obtaining a plurality of first ranging values about the pool cleaning device in a first detection direction; S320, determining a first trajectory line related to a first boundary of an operating area where the pool cleaning device is located based on the plurality of first ranging values; S330, when the pool cleaning device starts to turn, obtaining a plurality of second ranging values about the pool cleaning device in a second detection direction; S340, when the pool cleaning device ends turning, determining a steering angle during the turning process, and determining a second trajectory line related to a second boundary of the operating area based on the plurality of second ranging values; S350, calibrating the direction detection value of the pool cleaning device based on the relative position relationship between the first trajectory line and the second trajectory line and the steering angle.
[0058] As an example, the relative position relationship between the first trajectory line and the second trajectory line may include an angle between the first trajectory line and the second trajectory line, and the above method includes: based on the difference between the angle and the steering angle obtained by the IMU, an amount for calibrating the direction detection value of the pool cleaning device, such as the heading angle, can be determined.
[0059] As an example, determining the angle between the first trajectory line and the second trajectory line may include: acquiring respective slopes of the first trajectory line and the second trajectory line; and determining the angle between the first trajectory line and the second trajectory line based on the respective slopes.
[0060] As an example, the pool cleaning device 200 can determine when to make a turn so that the second distance measurement value collected in the second detection direction can be used to determine a trajectory related to the second boundary of the work area. Optionally, before the pool cleaning device starts to turn, it can determine whether to make a turn based on at least one of the following: at least one third distance measurement value of the pool cleaning device in the second detection direction; whether the pool cleaning device has issued an instruction to make a turn; or the positioning information of the pool cleaning device indicates that it is in a position where it needs to turn.
[0061] As an example, the third distance measurement value is a distance measurement value of the pool cleaning device to the front obstacle detected in the second detection direction, for example, in the front direction of the pool cleaning device. As an example, the front obstacle is a part of the second boundary of the working area.
[0062] For example, when using an ultrasonic sensor as a ranging device, considering the propagation distance of ultrasonic waves in water, when the pool cleaning device detects an ultrasonic ranging value in a second detection direction, it indicates that the pool cleaning device is approaching the second boundary of the working area. At this time, the pool cleaning device can start to turn to avoid scratching / collision with the contour of the working area.
[0063] As another example, a distance threshold may be set. When the third distance measurement value detected in the second detection direction is less than or equal to the distance threshold, it indicates that the pool cleaning device is relatively close to the second boundary of the working area. At this time, the pool cleaning device may start to turn to avoid scratching / collision with the contour of the working area.
[0064] In addition, the pool cleaning device can determine whether it is in a position where it needs to turn based on its positioning information and a map of the operating area; or it can determine whether it starts turning based on whether the pool cleaning device issues an instruction to turn. For example, if the pool cleaning device receives an instruction to turn from a remote control device, it can issue an instruction to turn in order to start turning. The above scenarios are merely examples listed to illustrate the principles of the present disclosure, and those skilled in the art may also adopt other strategies to determine when the pool cleaning device starts turning as needed.
[0065] Furthermore, in the above-described embodiments illustrating the principles of the present disclosure, as an example, the pool cleaning device moves along a route parallel to a first boundary line of the operating area before making a turn, and moves along a route parallel to a second boundary line of the operating area after completing the turn.
[0066] As an example, considering that relative to the normal travel of the pool cleaning device, when the pool cleaning device turns, its steering angle is generally larger, for example, greater than or equal to 30 degrees. Therefore, the steering angle determined based on the heading angle obtained by the IMU will generally not be less than 30 degrees. Therefore, whether the steering angle determined based on the heading angle obtained by the IMU is not less than 30 degrees can be used as a preliminary basis for determining whether the pool cleaning device has turned. Therefore, the change in the heading angle obtained by the IMU due to the twisting of the fuselage during the normal travel of the pool cleaning device other than turning can be excluded from the determination of the normal steering angle.
[0067] As an example, the plurality of first distance measurement values include data collected by the pool cleaning device before turning, and the plurality of second distance measurement values include data collected by the pool cleaning device when turning.
[0068] According to another aspect of the present disclosure, a pool cleaning device is also provided. As an example, Figure 4As shown, the pool cleaning device may include: a distance measurement unit 410, used to obtain at least one of a plurality of first distance measurement values about the pool cleaning device in a first detection direction and a plurality of second distance measurement values about the pool cleaning device in a second detection direction; a direction detection unit 420, used to detect a heading angle of the pool cleaning device; a steering control unit 430, used to control the pool cleaning device to turn, and capable of determining a steering angle during the turning process based on the heading angle; and a calibration unit 440, configured to: determine first analysis information about the plurality of first distance measurement values and second analysis information about the plurality of second distance measurement values, and calibrate the heading angle of the pool cleaning device based on the steering angle, the first analysis information, and the second analysis information.
[0069] As an example, the above-mentioned ranging unit 410 may include a lateral sensor and a forward sensor, wherein the lateral sensor may be arranged on the left side or right side of the pool cleaning device to obtain multiple first ranging values in a first detection direction; and the forward sensor may be arranged at the front of the pool cleaning device to obtain multiple second ranging values in a second detection direction.
[0070] In addition, the distance measuring unit 410 may also include a distance measuring sensor that can rotate / switch the detection direction, for example, it can rotate / switch from the first detection direction to the second detection direction, and vice versa, under the control of the pool cleaning device. Therefore, the distance measuring unit 410 only needs to include one distance measuring sensor.
[0071] As an example, the distance measuring unit may include an ultrasonic sensor, an optical distance measuring sensor or other types of sensors, and the specific types are not limited.
[0072] As an example, before the pool cleaning device turns, the at least one distance measuring unit obtains a plurality of first distance measuring values, and during the turning process of the pool cleaning device, the at least one distance measuring unit obtains a plurality of second distance measuring values. Thus, the actual turning angle of the pool cleaning device can be determined based on the first analysis information about the plurality of first distance measuring values and the second analysis information about the plurality of second distance measuring values.
[0073] Optionally, the first analysis information about the plurality of first ranging values includes statistical information about the plurality of first ranging values. As an example, the statistical information includes information obtained by data fitting based on the plurality of first ranging values, and the information can characterize a first trajectory line related to a first boundary of an operating area where the pool cleaning area is located.
[0074] Optionally, the second analysis information about the plurality of second ranging values includes statistical information about the plurality of second ranging values. As an example, the statistical information includes information obtained by data fitting based on the plurality of second ranging values, and the information can characterize a second trajectory line related to a second boundary of the working area where the pool cleaning area is located.
[0075] Optionally, the first analysis information about the plurality of first ranging values includes visualization information about the plurality of first ranging values. As an example, the visualization information includes information obtained by, for example, plotting points in a map or a global coordinate system based on the plurality of first ranging values, and the information may represent a first trajectory line related to a first boundary of an operating area where the pool cleaning area is located.
[0076] Optionally, the second analysis information about the plurality of second ranging values includes visualization information about the plurality of second ranging values. As an example, the visualization information includes information obtained by, for example, plotting points in a map or global coordinate system based on the plurality of second ranging values, and the information may characterize a first trajectory line related to a second boundary of the working area where the pool cleaning area is located.
[0077] As an example, the first detection direction includes the lateral direction of the pool cleaning device, for example, the left or right side of the travel direction of the pool cleaning device; for example, when the pool cleaning device is operating along the boundary of the working area, the side closer to the boundary of the working area.
[0078] As an example, the second detection direction includes a forward direction of the pool cleaning device, for example, a forward direction of a traveling direction of the pool cleaning device.
[0079] Optionally, direction detection unit 420 includes an inertial measurement unit IMU, wherein the IMU detects angular velocity signals through a gyroscope, for example, and obtains angle information about the traveling direction of the pool cleaning device through integration, thereby determining the heading angle of the pool cleaning device.
[0080] As an example, the steering control unit 430 can be a permanently configured dedicated circuit or logic circuit, such as a dedicated processor, a field programmable gate array (FPGA) or an application-specific integrated circuit (ASIC), a microcontroller, a microprocessor, a digital signal processor (DSP), etc., which is used to control the turning of the pool cleaning device and can determine the steering angle during the turning process based on the heading angle; or it can be a programmable logic or circuit (for example, contained in a general-purpose processor or other programmable processor) temporarily configured by software to perform the above operations.
[0081] As an example, the calibration unit 440 can be configured with the above-mentioned steering control unit to be integrated in a single chip, or configured independently of the steering control unit, to determine first analysis information about multiple first ranging values and second analysis information about the multiple second ranging values, and calibrate the direction detection value of the pool cleaning device, such as the heading angle, based on the steering angle, the first analysis information and the second analysis information.
[0082] For example, the calibration unit 440 can determine a first trajectory line related to a first boundary of the working area where the pool cleaning device is located by data fitting based on multiple first ranging values, and determine a second trajectory line related to a second boundary of the working area where the pool cleaning device is located by data fitting based on multiple second ranging values, and calibrate the direction detection value of the pool cleaning device, such as the heading angle, based on the positional relationship between the first trajectory line and the second trajectory line, and the steering angle determined by the steering control unit.
[0083] For example, the calibration unit 440 can determine a first trajectory line related to a first boundary of the working area of the pool cleaning device by plotting points on a map or a global coordinate system based on multiple first ranging values, and determine a second trajectory line related to a second boundary of the working area of the pool cleaning device by plotting points on a map or a global coordinate system based on multiple second ranging values, and calibrate the direction detection value of the pool cleaning device, such as the heading angle, based on the positional relationship between the first trajectory line and the second trajectory line, and the steering angle determined by the steering control unit.
[0084] As an example, the relative position relationship between the first trajectory line and the second trajectory line may include an angle between the first trajectory line and the second trajectory line, and the calibration unit 440 may determine an amount for calibrating a direction detection value of the pool cleaning device, such as a heading angle, based on the angle and a difference between the steering angles determined by the steering control unit.
[0085] As an example, the calibration unit 440 determining the angle between the first trajectory line and the second trajectory line may include: acquiring the slopes of the first trajectory line and the second trajectory line respectively; and determining the angle between the first trajectory line and the second trajectory line based on the respective slopes.
[0086] As an example, the steering control unit 430 may determine when to make a turn so that the second distance measurement value collected in the second detection direction may be used to determine a trajectory related to the second boundary of the working area. Optionally, before the pool cleaning device starts to turn, it may determine whether to make a turn based on at least one of the following: at least one third distance measurement value of the pool cleaning device in the second detection direction; whether the pool cleaning device has issued an instruction to make a turn; or the positioning information of the pool cleaning device indicates that it is in a position where it needs to turn.
[0087] As an example, the third distance measurement value is a distance measurement value of the pool cleaning device to the front obstacle detected in the second detection direction, for example, in the front direction of the pool cleaning device. As an example, the front obstacle is a part of the second boundary of the working area.
[0088] For example, when using an ultrasonic sensor as a ranging device, considering the propagation distance of ultrasonic waves in water, when the pool cleaning device detects an ultrasonic ranging value in a second detection direction, it indicates that the pool cleaning device is approaching the second boundary of the working area. At this time, the pool cleaning device can start to turn to avoid scratching / collision with the contour of the working area.
[0089] As another example, a distance threshold may be set. When the third distance measurement value detected in the second detection direction is less than or equal to the distance threshold, it indicates that the pool cleaning device is relatively close to the second boundary of the working area. At this time, the steering control unit 430 may control the start of the turn to avoid scratching / collision with the contour of the working area.
[0090] In addition, the steering control unit 430 can determine whether it is in a position where it needs to turn based on the positioning information and the map of the operating area; or, it can determine whether it starts turning based on whether the pool cleaning device issues an instruction to turn. For example, if the steering control unit 430 receives an instruction to turn, it can issue an instruction to turn in order to start turning. The above situation is only an example listed to illustrate the principles of the present disclosure, and those skilled in the art can also adopt other strategies to determine when the pool cleaning device starts turning as needed.
[0091] Furthermore, in the above-described embodiments illustrating the principles of the present disclosure, as an example, the pool cleaning device moves along a route parallel to a first boundary line of the operating area before making a turn, and moves along a route parallel to a second boundary line of the operating area after completing the turn.
[0092] As an example, considering that relative to the normal travel of the pool cleaning device, when the pool cleaning device turns, its steering angle is generally larger, for example, greater than or equal to 30 degrees. Therefore, the steering angle determined based on the heading angle obtained by the IMU will generally not be less than 30 degrees. Therefore, whether the steering angle determined based on the heading angle obtained by the IMU is not less than 30 degrees can be used as a preliminary basis for determining whether the pool cleaning device has turned. Therefore, the change in the heading angle obtained by the IMU due to the twisting of the fuselage during the normal travel of the pool cleaning device other than turning can be excluded from the determination of the normal steering angle.
[0093] As an example, the plurality of first distance measurement values include data collected by the pool cleaning device before turning, and the plurality of second distance measurement values include data collected by the pool cleaning device when turning.
[0094] According to the above method of the present disclosure and the corresponding pool cleaning device, the direction detection value of the pool cleaning device can be calibrated based on the ranging value in the first detection direction / the ranging value in the second detection direction, and the steering angle of the pool cleaning device obtained during the turning process, thereby reducing the direction measurement error of the pool cleaning device and improving the accuracy and quality of the mapping operation and / or cleaning operation of the pool cleaning device in the working area.
[0095] Thus, several aspects of the present disclosure are presented above with reference to various devices and methods. These devices and methods are illustrated in the accompanying drawings by various blocks, components, circuits, processes, algorithms, etc. (collectively referred to as "elements"). These elements can be implemented using electronic hardware, computer software, or any combination thereof. Whether these elements are implemented as hardware or software depends on the specific application and the design constraints on the overall system.
[0096] For example, an element or any part of an element or any combination of elements may be implemented as a "processing system" including one or more processors. One or more processors in a processing system may execute software. Software should be broadly interpreted to mean instructions, instruction sets, codes, code segments, program codes, programs, subroutines, software components, applications, software applications, software packages, routines, subroutines, objects, executable programs, execution threads, processes, functions, etc. Whether referred to as software, firmware, middleware, microcode, hardware description language, or other.
[0097] Therefore, in one or more example embodiments, the functions described may be implemented in hardware, software, or any combination thereof. If implemented in software, these functions may be stored in or encoded as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media. The storage medium may be any available medium that can be accessed by a computer. As an example and not limitation, such a computer-readable medium may include a random access memory (RAM), a read-only memory (ROM), an electrically erasable programmable ROM (EEPROM), an optical disk storage, a magnetic disk storage, other magnetic storage devices, a combination of computer-readable media of the above types, or any other medium that can be used to store computer executable code in the form of instructions or data structures accessible to a computer.
[0098] It should be understood that the specific order or hierarchy of blocks in the disclosed process / flowchart is an illustration of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of blocks in the process / flowchart can be rearranged. In addition, some blocks can be combined or omitted. The attached method claims present the elements of various blocks in a sample order and are not meant to be limited to the specific order or hierarchy presented.
[0099] The foregoing description is provided to enable those skilled in the art to practice the various aspects described herein, and unless otherwise stated, references to elements in the singular form are not intended to mean "one and only one", but rather "one or more". The "exemplary" expression used herein means "used as an example, instance, or illustration". Any aspect described herein as "exemplary" is not necessarily to be interpreted as being more preferred or advantageous than other aspects. Unless otherwise stated, the term "some" refers to one or more. Combinations such as "at least one of A, B, or C", "one or more of A, B, or C", "at least one of A, B, and C", "one or more of A, B, and C", and "A, B, C, or any combination thereof" include any combination of A, B, and / or C, and may include multiples of A, multiples of B, or multiples of C. Specifically, combinations such as "at least one of A, B or C", "A, B or C", "at least one of A, B and C", "one or more of A, B and C" and "A, B, C or any combination thereof" may be only A, only B, only C, A and B, A and C, B and C, or A and B and C, where any such combination may include one or more members or all of A, B, C.
[0100] In the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "set", "connected", "connected", "fixed", "coupled" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a communication connection with each other; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0101] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A method for calibrating a direction detection value of a pool cleaning device, comprising: Acquire a plurality of first distance measurement values of the pool cleaning device in a first detection direction; Fitting a first trajectory line related to a first boundary of an operating area where the pool cleaning device is located based on the plurality of first distance measurement values; When the pool cleaning device starts to turn, obtaining a plurality of second distance measurement values of the pool cleaning device in a second detection direction, wherein the first detection direction is different from the second detection direction; When the pool cleaning device ends turning, determining a steering angle during the turning process, and fitting a second trajectory line related to a second boundary of the operating area based on a plurality of second ranging values; Determine an angle between the first trajectory line and the second trajectory line; as well as The direction detection value of the pool cleaning device is calibrated based on the included angle and the steering angle.
2. The method according to claim 1, wherein: The steering angle is acquired by an inertial measurement unit IMU.
3. The method according to claim 1 or 2, wherein: Before the pool cleaning device begins to turn, the method further includes determining whether to turn based on at least one of the following: at least one third range measurement value of the pool cleaning device in a second detection direction; whether the pool cleaning device has issued a command to make a turn; or The positioning information of the pool cleaning device indicates whether it is in a position where it needs to turn.
4. The method according to any one of claims 1 to 3, wherein: Fitting a first trajectory line associated with a first boundary of an operating area where the pool cleaning device is located includes fitting the first trajectory line based on a least squares method; fitting a second trajectory line associated with a second boundary of the operating area includes fitting the second trajectory line based on a least squares method.
5. The method according to any one of claims 1 to 4, wherein: The steering angle is greater than or equal to 30°.
6. The method according to claims 1-5, wherein: Determining the angle between the first trajectory line and the second trajectory line includes: Obtaining the slopes of the first trajectory line and the second trajectory line respectively; Based on the respective slopes, an angle between the first trajectory line and the second trajectory line is determined.
7. The method according to any one of claims 1 to 6, wherein: The plurality of first distance measurement values include data collected by the pool cleaning device before turning, and the plurality of second distance measurement values include data collected by the pool cleaning device during the turning.
8. The method according to any one of claims 1 to 7, wherein: The first detection direction includes a lateral direction of the pool cleaning device, and the second detection direction includes a forward direction of the pool cleaning device.
9. The method according to any one of claims 1 to 8, wherein: The direction detection value includes a heading angle, wherein calibrating the direction detection value of the pool cleaning device based on the angle and the steering angle includes: Based on the difference between the included angle and the steering angle, an amount for calibrating the heading angle of the pool cleaning device is determined.
10. A pool cleaning device comprising: at least one distance measuring unit, configured to obtain a plurality of first distance measuring values regarding the pool cleaning device in a first detection direction and a plurality of second distance measuring values regarding the pool cleaning device in a second detection direction; A direction detection unit for detecting a heading angle of the pool cleaning device; a steering control unit, configured to control the pool cleaning device to turn, and capable of determining a steering angle during the turning process based on the heading angle; The calibration unit is configured to determine first analysis information about the plurality of first ranging values and second analysis information about the plurality of second ranging values, and calibrate a heading angle of the pool cleaning device based on the steering angle, the first analysis information, and the second analysis information.
11. The pool cleaning device of claim 10, wherein: The ranging unit includes a lateral sensor and a forward sensor. The lateral sensor is arranged on the left side or the right side of the pool cleaning device to obtain the multiple first ranging values; the forward sensor is arranged at the front of the pool cleaning device to obtain the multiple second ranging values.
12. A pool cleaning device according to claim 10 or 11, wherein: The distance measuring unit includes an ultrasonic sensor or an optical distance measuring sensor.
13. A pool cleaning device according to any one of claims 10 to 12, wherein: Before the pool cleaning device turns, the at least one distance measuring unit acquires the plurality of first distance measuring values, and during the turning process of the pool cleaning device, the at least one distance measuring unit acquires the plurality of second distance measuring values.
14. A pool cleaning device according to any one of claims 10 to 13, wherein: The first detection direction includes a lateral direction of the pool cleaning device, and the second detection direction includes a forward direction of the pool cleaning device.
15. A pool cleaning device according to any one of claims 10 to 14, wherein: The steering angle is greater than or equal to 30°, and the direction detection unit includes an IMU.
16. A pool cleaning device according to any one of claims 10 to 14, wherein: The first analysis information includes statistical information or visualization information of the plurality of first distance measurement values; the second analysis information includes statistical information or visualization information of the plurality of second distance measurement values.
Citation Information
Cited By
Automatic pool cleaning device, control method thereof and computer storage medium
CN119356345A
Automatic pool cleaning device, control method and computer storage medium
CN119556707A
Automatic pool cleaning device and control method thereof
CN119645025A
