A self-propelled apparatus, for example, an intelligent mower, as an apparatus for mowing grass automatically, can autonomously move and finish mowing grass in a certain region without being operated by a user for a long time, which is intelligent and convenient, saves a labor cost, and is increasingly favored by users. When colliding with an obstacle, the self-propelled apparatus needs to perform a self-perception and perform corresponding obstacle avoidance operations. According to a conventional perception method, a double-layer housing structure is used, and a Hall sensor is mounted at the joint of two layers of housings. After a collision occurs, a relative displacement of the housings causes a Hall signal to change, thereby determining the occurrence of the collision. With this perception method, it is necessary to add a housing to the whole body or part of the self-propelled apparatus, which increases a production cost and the volume of the apparatus.
In a first aspect, the present application provides a collision detection method of a self-propelled apparatus. The self-propelled apparatus includes a self-propelled electric motor for driving wheels to rotate. The collision detection method includes: detecting a current of the self-propelled electric motor in real time and calculating a change rate of the current of the self-propelled electric motor; detecting a rotational speed of the self-propelled electric motor in real time and calculating a change rate of the rotational speed of the self-propelled electric motor; and determining, according to at least the change rate of the current and the change rate of the rotational speed, whether the self-propelled apparatus collides.
In one example, when the change rate of the current of the self-propelled electric motor increases to a first threshold and the change rate of the rotational speed of the self-propelled electric motor decreases to a second threshold, the value of a counter is increased, and when the value of the counter is greater than a third threshold, it is determined that the self-propelled apparatus collides.
In one example, the collision detection method further includes: detecting acceleration of the self-propelled apparatus and calculating a change value of the acceleration; and adjusting the first threshold and the second threshold dynamically according to the change value of the acceleration.
In one example, the first threshold is decreased and the second threshold is increased when the change value of the acceleration increases.
In one example, the collision detection method further includes: detecting first acceleration of the self-propelled apparatus in an x-axis direction and second acceleration of the self-propelled apparatus in a y-axis direction; calculating a change value of the first acceleration and a change value of the second acceleration separately; acquiring a combined acceleration change value according to the change value of the first acceleration and the change value of the second acceleration; and determining that the self-propelled apparatus collides when the combined acceleration change value is greater than a fourth threshold.
In one example, the collision detection method further includes: determining a direction of the collision according to the first acceleration and the second acceleration after the self-propelled apparatus collides.
In one example, the collision detection method further includes: detecting acceleration of the self-propelled apparatus; calculating a change value of the acceleration when the change rate of the current of the self-propelled electric motor increases to a first threshold and the change rate of the rotational speed of the self-propelled electric motor decreases to a second threshold; and determining that the self-propelled apparatus collides if the change value of the acceleration is greater than a fourth threshold.
In a second aspect, the present application provides a self-propelled apparatus. The self-propelled apparatus includes: wheels configured to support the self-propelled apparatus and drive the self-propelled apparatus to walk; a self-propelled electric motor configured to drive the wheels to rotate so as to implement a self-propelled function; a current detection device configured to measure and calculate a current of the self-propelled electric motor in real time; a speed measurement device configured to measure and calculate a rotational speed of the self-propelled electric motor in real time; and a control module configured to determine whether the self-propelled apparatus collides. The control module calculates a change rate of the current according to the current measured and calculated by the current detection device, calculates a change rate of the rotational speed according to the rotational speed measured and calculated by the speed measurement device, and determines, according to at least the change rate of the current and the change rate of the rotational speed, whether the self-propelled apparatus collides.
In one example, the control module is further configured to: increase the value of a counter when the change rate of the current of the self-propelled electric motor increases to a first threshold and the change rate of the rotational speed of the self-propelled electric motor decreases to a second threshold; and determine that the self-propelled apparatus collides when the value of the counter is greater than a third threshold.
In one example, the self-propelled apparatus further includes an accelerometer configured to detect acceleration of the self-propelled apparatus.
In one example, the control module is further configured to: calculate a change value of the acceleration of the self-propelled apparatus according to the acceleration detected by the accelerometer; and adjust the first threshold and the second threshold dynamically according to the change value of the acceleration.
In one example, the control module is further configured to: acquire first acceleration of the self-propelled apparatus in an x-axis direction and second acceleration of the self-propelled apparatus in a y-axis direction from the accelerometer; calculate a change value of the first acceleration and a change value of the second acceleration separately; acquire a combined acceleration change value according to the change value of the first acceleration and the change value of the second acceleration; and determine that the self-propelled apparatus collides when the combined acceleration change value is greater than a fourth threshold.
In one example, the control module determines a direction of the collision according to the first acceleration and the second acceleration after determining that the collision occurs.
In one example, the self-propelled apparatus further includes an accelerometer configured to detect acceleration of the self-propelled apparatus, where the control module is further configured to: calculate a change value of the acceleration when the change rate of the current of the self-propelled electric motor increases to a first threshold and the change rate of the rotational speed of the self-propelled electric motor decreases to a second threshold; and determine that the self-propelled apparatus collides if the change value of the acceleration is greater than a fourth threshold.
In one example, the self-propelled apparatus is an intelligent mower.
Hereinafter, an intelligent mower is used as an example, and a collision detection method of a self-propelled apparatus is described in detail in conjunction with drawings.
As shown in
Referring to
In S1, the current of the self-propelled electric motor 231 and the rotational speed of the self-propelled electric motor 231 are acquired.
In S2, a filtering calculation is performed on the current and the rotational speed separately so that a change rate of the current and a change rate of the rotational speed are obtained.
In S3, collision recognition is performed according to the change rate of the current and the change rate of the rotational speed.
Since collision detection is continuously performed during the running of the self-propelled apparatus, the preceding basic steps are also continuously performed in a cycle.
In step one S1, the detection module 26 acquires the current of the self-propelled electric motor 231 and the rotational speed of the self-propelled electric motor 231. For example, the detection module 26 includes a current detection resistor connected in series to the self-propelled electric motor 231 to sample a current flowing through the self-propelled electric motor 231. In an example, the self-propelled electric motor 231 is a sensored motor including a Hall sensor so that a real-time rotational speed of the self-propelled electric motor 231 can be calculated according to the frequency with which an output of the Hall sensor changes. In another example, the self-propelled electric motor 231 is a sensorless motor including a counter-electromotive force detection unit so that a real-time rotational speed of the self-propelled electric motor 231 can be calculated according to the frequency of a zero-crossing of the counter-electromotive force. The present application neither limits the type of the self-propelled electric motor 231 nor limits the manners in which the current of the self-propelled electric motor 231 and the rotational speed of the self-propelled electric motor 231 are measured and calculated. The detection module 26 samples the current of the self-propelled electric motor 231 and the rotational speed of the self-propelled electric motor 231 at a predetermined interval (for example, a sampling frequency is 20 Hz, and the predetermined interval is 50 ms). The detection module 26 is connected to the control module 25 and transmits the sampled current of the self-propelled electric motor 231 and the sampled rotational speed of the self-propelled electric motor 231 to the control module 25.
In step two S2, the control module 25 filters data of the latest n currents of the self-propelled electric motor 231 and data of the latest n rotational speeds of the self-propelled electric motor 231 to obtain the change rates of the two with the preset number n of sampling points. In an example, an example is provided in which first-order resistor-capacitor (RC) filtering is performed on the data of the currents, and the specific formula is as follows:
where t denotes current time, n denotes the number of sampling points, Σi=t−ntIi denotes the sum of accumulated sampling values of a current value I within the number n of sampling points at the current time t, Σi=t−n−1t−1Ii denotes the sum of accumulated sampling values of the current value I within the number n of sampling points at the previous time t−1, It denotes the current value I at the current time t, and
denotes the sampling average value of the current value I within the number n of sampling points at the previous time t−1. That is to say, in the process where time lapses, according to this filtering algorithm, the sampling average value within the number n of sampling points at the previous time is subtracted from the sum of the accumulated sampling values and the sampling value at the current time is added, and the calculation is performed over time according to this rule. In addition, a relative change rate ΔI of the current value I with the number n of sampling points may be calculated according to the sampling value at the current time and the sampling average value within the number n of sampling points at the previous time, and the specific formula is as follows:
where the preceding method is an example in which the data of the currents of the self-propelled electric motor 231 is processed through the first-order RC filtering, and the method may be applicable to processing the data of the rotational speeds of the self-propelled electric motor 231 so that a relative change rate Δω of the rotational speed ω of the self-propelled electric motor 231 with the number n of sampling points is obtained. The preceding formulas and algorithms are merely examples, and the specific algorithms used in the filtering process are not limited in the present application.
In step three S3, the control module 25 performs the collision recognition according to the relative change rate of the current of the self-propelled electric motor 231 and the relative change rate of the rotational speed of the self-propelled electric motor 231. Specifically, some thresholds such as a first threshold and a second threshold may be preset in the control module 25, and a real-time relative change rate of the current of the self-propelled electric motor 231 and a real-time relative change rate of the rotational speed of the self-propelled electric motor 231 are compared with these thresholds. If the current increases to a certain extent while the rotational speed decreases to a certain extent, collision determination is performed. Specifically, in an example, a collision recognition algorithm may be shown in the flowchart in
It is to be noted that the parameters such as the first threshold Th1, the second threshold Th2, the third threshold Th3, the number n of sampling points, and the amount of change of the counter c may be adjusted and changed according to different tools and different working conditions. When the tool is manufactured, these parameters may be determined through a large number of experiments and may be pre-stored in a control program or stored in a control program as variables. In addition, when the tool runs, the parameters may be adjusted in real time/dynamically according to real-time parameters during the running. For example, when walking normally on grass, the intelligent mower faces a greater frictional force than an intelligent sweeper used indoors. Correspondingly, the first threshold Th1 of the intelligent mower is higher and the second threshold Th2 of the intelligent mower is lower. For another example, the different numbers n of sampling points (for example, n refers to 2, 8, and 32 samples separately) are selected for filtering the current of the self-propelled electric motor 231 of the intelligent mower 100, and filtering results are shown in
In an example, the counter c is not only used for simply recording the number of times both a real-time change rate ΔI of the current and a real-time change rate Δω of the rotational speed reach the thresholds, but also capable of reflecting the proportion of the change rate ΔI of the current and the proportion of the change rate Δω of the rotational speed and/or the magnitude of the specific value of the change rate ΔI of the current and the magnitude of the specific value of the change rate Δω of the rotational speed through the adjustment of the amount of change of the counter c, as shown in
In an example, values of the first threshold Th1 and values of the second threshold Th2 are different when the intelligent mower 100 is in different running directions. Typically, when the intelligent mower 100 moves forward, the absolute value of the first threshold Th1 and the absolute value of the second threshold Th2 (a negative value) are maximized and used for detecting a collision from the direction in which the intelligent mower 100 moves forward; when the intelligent mower 100 turns left or right, the absolute value of the first threshold Th1 and the absolute value of the second threshold Th2 (the negative value) are the second largest values and used for detecting a collision from the left or right side of the intelligent mower 100; and when the intelligent mower 100 moves backward, the absolute value of the first threshold Th1 and the absolute value of the second threshold Th2 (the negative value) are minimized and used for detecting a collision from the direction in which the intelligent mower 100 moves backward. Therefore, when switching the running direction, the intelligent mower 100 also switches to a corresponding first threshold Th1 and a corresponding second threshold Th2 at the same time. Since the rotational speeds and currents of the self-propelled electric motor 231 are different at different running speeds and change rates caused by the same collision force are different, the value of the first threshold Th1 and the value of the second threshold Th2 are also changed at the different running speeds. Therefore, the intelligent mower 100 uses a corresponding first set of a first threshold Th1 and a second threshold Th2 at a first running speed and uses a corresponding second set of a first threshold Th1′ and a second threshold Th2′ at a second running speed, where the first threshold Th1 in the first set is greater than the first threshold Th1′ in the second set, and the second threshold Th2 in the first set is less than the second threshold Th2′ in the second set when the first running speed is higher than the second running speed. The thresholds are dynamically adjusted in real time according to a running condition so that the accuracy of the collision detection is higher and omissions and erroneous determination are reduced.
With the preceding method, the collision from the running direction of the intelligent mower 100 may be detected according to the current of the self-propelled electric motor 231 and the rotational speed of the self-propelled electric motor 231. In order to detect a collision from a non-running direction, for example, a side collision on the intelligent mower 100 when the intelligent mower 100 moves forward, the intelligent mower 100 may further include an accelerometer 29 and use a reading of the accelerometer 29 for assisting in determining whether the collision occurs and determining the direction of the collision. As shown in
The collision detection through the acceleration may be used as a supplement to the collision detection through the current of the self-propelled electric motor 231 and the rotational speed of the self-propelled electric motor 231 in the preceding example. That is, when the collision is detected by the current and rotational speed method, it is considered that the collision occurs in the running direction; and when the collision is not detected by the current and rotational speed method, if the collision is detected by the acceleration method, it is considered that the collision occurs and the direction of the collision is calculated with the acceleration. In addition, the preceding two sets of determination criteria may be superimposed so that the accuracy of the collision detection is improved and the false alarms are reduced. Specifically, when the change rate ΔI of the current of the self-propelled electric motor 231 is greater than the first threshold Th1 and the change rate Δω of the rotational speed of the self-propelled electric motor 231 is less than the second threshold Th2, the combined acceleration change value a of the intelligent mower 100 is calculated, where when the combined acceleration change value a is greater than the fourth threshold Th4, it is determined that the intelligent mower 100 collides, and when the combined acceleration change value a is less than or equal to the fourth threshold Th4, it is considered that no collision occurs. Alternatively, when the combined acceleration change value a of the intelligent mower 100 is greater than the fourth threshold Th4, the change rate ΔI of the current of the self-propelled electric motor 231 is verified, where if the change rate ΔI of the current is greater than the first threshold Th1, it is determined that the intelligent mower 100 collides, and if the change rate ΔI of the current is less than or equal to the first threshold Th1, it is considered that no collision occurs. Alternatively, when the combined acceleration change value a of the intelligent mower 100 is greater than the fourth threshold Th4, the change rate Δω of the rotational speed of the self-propelled electric motor 231 is verified, where if the change rate Δω of the rotational speed is less than the second threshold Th2, it is determined that the intelligent mower 100 collides, and if the change rate Δω of the rotational speed is greater than the second threshold Th2, it is considered that no collision occurs.
In an example, the first threshold Th1 and the second threshold Th2 may be dynamically adjusted in real time according to the combined acceleration change value a. For example, with a first combined acceleration change value a1, the intelligent mower 100 uses a corresponding first set of a first threshold Th1 and a second threshold Th2, and with a second combined acceleration change value a2, the intelligent mower 100 uses a corresponding second set of a first threshold Th1′ and a second threshold Th2′, where the first threshold Th1 in the first set is less than the first threshold Th1′ in the second set, and the second threshold Th2 in the first set is greater than the second threshold Th2′ in the second set when the first combined acceleration change value a1 is greater than the second combined acceleration change value a2. Alternatively, it is defined that f(ΔI, Δω, a)=αΔI+βΔω+γa, where f(ΔI, Δω, a) denotes a collision state amount, the value of the collision state amount varies with the following parameters: ΔI—the change rate of the current, Δω—the change rate of the rotational speed, and a—the combined acceleration change value, and α, β, and γ are coefficients corresponding to the parameters, where α is a positive value, β is a negative value, and γ is a positive value. When the collision state amount f(ΔI, Δω, a) reaches a certain threshold, it is determined that the intelligent mower 100 collides. The current and rotational speed method and the acceleration method are combined so that the shortcomings of a single method are compensated and the self-propelled apparatus can recognize the collision from the running direction and the collision from the non-running direction, thereby improving a collision recognition rate. Multiple verifications are performed and the thresholds are adjusted in time so that the accuracy of the collision detection is improved. The self-propelled apparatus in the present application is not limited to the intelligent mower and may be an intelligent sweeper, an intelligent snow thrower, or the like.
Number | Date | Country | Kind |
---|---|---|---|
202110316484.0 | Mar 2021 | CN | national |
This application is a continuation of International Application Number PCT/CN2022/074590, filed on Jan. 28, 2022, through which this application also claims the benefit under 35 U.S.C. § 119(a) of Chinese Patent Application No. 202110316484.0, filed on Mar. 25, 2021, which applications are incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2022/074590 | Jan 2022 | US |
Child | 18450907 | US |