Movement control method and device of cleaning equipment, storage medium and electronic device
Through the combination of the rotating drive component of the cleaning equipment and the detection trigger element, accurate judgment and recovery of the operating status of the cleaning equipment are achieved, which solves the problem of low accuracy of residence time judgment in the existing technology and improves the intelligent control capability of the cleaning equipment.
Patent Information
- Application Number
- CN202310293310.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-09-24
AI Technical Summary
In the prior art, the accuracy of judging the operating status based on the residence time of the cleaning equipment is low, and the residence status caused by obstacles or dirt cannot be effectively distinguished.
The rotating component is driven to rotate by the rotating drive component of the cleaning equipment, the swing component is controlled to switch between the outward swing and the retracted state, and the operating state is determined by detecting the trigger element, and the specified operation is performed to return to the normal state.
It improves the accuracy of judging the operating status of the cleaning equipment, avoids misjudgments caused by incorrect judgment of residence time, and enhances the intelligent control capability of the cleaning equipment.
Smart Images

Figure CN118680473A
Abstract
Description
[Technical field]
[0001] The present application relates to the field of smart home, and more specifically, to a mobile control method and device for cleaning equipment, a storage medium, and an electronic device. [Background technology]
[0002] At present, the method of judging the abnormal operation status of cleaning equipment in the prior art is often to determine whether its operation status is abnormal based on the time the cleaning equipment stays at the same location. The longer the stay time, the greater the possibility that the cleaning equipment operation status is abnormal.
[0003] However, as cleaning equipment becomes more and more intelligent, it can select different cleaning times according to the dirtiness of the ground to ensure cleaning efficiency. Therefore, when the cleaning equipment stays at the same location for a long time, it may be because obstacles prevent the movement of the cleaning equipment, or it may be because the dirtiness of the location is high, causing the cleaning equipment to clean for a long time, resulting in a low accuracy in judging the operating status based on the stay time.
[0004] It can be seen from this that the method of judging the operating status of the cleaning equipment according to the residence time in the prior art has the problem of low accuracy of status judgment. [Summary of the invention]
[0005] The purpose of the present application is to provide a mobile control method and device for cleaning equipment, a storage medium and an electronic device, so as to at least solve the problem of low accuracy of state judgment in the prior art of judging the operating state of the cleaning equipment based on the residence time.
[0006] The purpose of this application is to achieve the following technical solutions:
[0007] According to one aspect of an embodiment of the present application, a movement control method for a cleaning device is provided, comprising: in response to an acquired rotation instruction, driving the rotating part of the cleaning device to rotate by the rotating driving part of the cleaning device to control the swinging part of the cleaning device to swing, wherein one end of the swinging part is connected to the cleaning part, and during the swinging of the swinging part, the cleaning part switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning part is swung toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning part is retracted toward the inside of the cleaning device; detecting a detection trigger element on the rotating part by a detection part on the rotating driving part to determine the operating state of the cleaning part, wherein the detection trigger element is used to identify the rotation position of the rotating part; when it is determined that the operating state of the cleaning part is abnormal, controlling the cleaning device to perform a specified operation to restore the operating state of the cleaning part to normal.
[0008] According to another aspect of an embodiment of the present application, a mobile control device for a cleaning device is also provided, comprising: a first driving unit, for driving the rotating component of the cleaning device to rotate through the rotating driving component of the cleaning device in response to an acquired rotation instruction, so as to control the swinging component of the cleaning device to swing, wherein one end of the swinging component is connected to the cleaning component, and during the swinging of the swinging component, the cleaning component switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning component swings toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning component retracts toward the inside of the cleaning device; a detection unit, for detecting a detection trigger element on the rotating component through the detection component on the rotating driving component to determine the operating state of the cleaning component, wherein the detection trigger element is used to control the position to which the rotating component is allowed to rotate; a first control unit, for controlling the cleaning device to perform a specified operation when it is determined that the operating state of the cleaning component is abnormal, so as to restore the operating state of the cleaning component to normal.
[0009] In an exemplary embodiment, the detection unit includes: a first determination module, for determining that the rotating component is rotated to a first preset position along a first rotation direction when a first detection trigger element on the rotating component is detected by a first detection component on the rotating drive component, wherein in the first preset position, the cleaning component is in the outward swing state and is swung outward to the outermost position allowed to be swung outward; a second determination module, for determining that the rotating component is rotated to a second preset position along a second rotation direction when a second detection trigger element on the rotating component is detected by a second detection component on the rotating drive component, wherein in the second preset position, the cleaning component is in the retracted state and is retracted to the innermost position allowed to be retracted.
[0010] In an exemplary embodiment, the rotating component is connected to the rotating driving component through a gear, the first detection trigger element is a tooth protruding from the gear, the second detection trigger element is another tooth protruding from the gear, and the first detection trigger element and the second detection trigger element are located on both sides of the rotating driving component.
[0011] In an exemplary embodiment, the device also includes: a first sending unit, which is used to send an outward swing-to-position instruction to the rotating drive component through the first detection component after determining that the rotating component rotates to the first preset position along the first rotation direction, so as to instruct the rotating drive component to stop driving the rotating component to continue rotating along the first rotation direction.
[0012] In an exemplary embodiment, the device also includes: a second driving unit, which is used to drive the rotating component to rotate along the second rotation direction through the rotating driving component in response to the acquired first state switching instruction after determining that the rotating component rotates along the first rotation direction to the first preset position, so as to control the working state of the cleaning component to switch from the outward swing state to the inward retracted state.
[0013] In an exemplary embodiment, the device also includes: a second sending unit, which is used to send a retraction position instruction to the rotating drive component through the second detection component after determining that the rotating component rotates to the second preset position along the second rotation direction, so as to instruct the rotating drive component to stop driving the rotating component to continue rotating along the second rotation direction.
[0014] In an exemplary embodiment, the device also includes: a third driving unit, which is used to drive the rotating component to rotate along the first rotation direction through the rotating driving component in response to the acquired second state switching instruction after determining that the rotating component rotates along the second rotation direction to the second preset position, so as to control the working state of the cleaning component to switch from the retracted state to the outward swing state.
[0015] In an exemplary embodiment, the detection unit also includes: a third determination module for determining that the outward swing state of the cleaning device is abnormal when the first detection component fails to detect the first detection trigger element within a first time range during the process of driving the rotating component to rotate along the first rotation direction by the rotation driving component; and a fourth determination module for determining that the inward retracted state of the cleaning device is abnormal when the second detection module fails to detect the second detection trigger element within a second time range during the process of driving the rotating component to rotate along the second rotation direction by the rotation driving component.
[0016] In an exemplary embodiment, the first control unit includes: a driving module, which is used to drive the rotating component to rotate along the second rotation direction through the rotating driving component when it is determined that the outward swing state of the cleaning device is abnormal; and a fifth determination module, which is used to determine that the operating state of the cleaning device has returned to normal when the second detection module detects the second detection trigger element within a third time range.
[0017] In an exemplary embodiment, the device further includes: a second control unit, configured to control the rotating drive component to stop driving the rotating component to rotate and issue an abnormal alarm message if the second detection module does not detect the second detection trigger element within the third time range.
[0018] In an exemplary embodiment, the first control unit includes: an execution module, which is used to control the cleaning device to move a distance along the target direction and drive the rotating component to rotate along the second rotation direction through the rotating drive component when it is determined that the retracted state of the cleaning device is abnormal; and a sixth determination module, which is used to determine that the operating state of the cleaning device has returned to normal when the second detection module detects the second detection trigger element within a fourth time range.
[0019] In an exemplary embodiment, the device further includes: an execution unit, configured to control the rotating drive component to stop driving the rotating component to rotate and issue an abnormal alarm message if the second detection module does not detect the second detection trigger element within the fourth time range.
[0020] In an exemplary embodiment, the device also includes: an acquisition unit, used to acquire position information of the cleaning device, wherein the position information of the cleaning device is used to indicate the position of the cleaning device in the cleaning area; a first generation unit, used to generate a first rotation instruction when it is determined according to the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is less than or equal to a preset distance threshold, wherein the first rotation instruction is used to instruct the rotation drive component to drive the driving component to rotate along a first rotation direction; a second generation unit, used to generate a second rotation instruction when it is determined according to the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is greater than a preset distance threshold and the cleaning component is in the outward swing state, wherein the second rotation instruction is used to instruct the rotation drive component to drive the driving component to rotate along a second rotation direction.
[0021] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned movement control method of the cleaning device when running.
[0022] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the movement control method of the cleaning device through the computer program.
[0023] In an embodiment of the present application, a method of indirectly determining the operating state of the cleaning device according to the swinging time of the swinging part on the cleaning device is adopted. In response to the obtained rotation instruction, the rotating part of the cleaning device is driven to rotate by the rotating driving part of the cleaning device to control the swinging of the swinging part of the cleaning device, wherein one end of the swinging part is connected to the cleaning part, and during the swinging of the swinging part, the cleaning part switches between an outward swing state and an inward retracted state, the outward swing state being a state in which at least a part of the cleaning part is swung toward the outside of the cleaning device, and the inward retracted state being a state in which at least a part of the cleaning part is retracted toward the inside of the cleaning device; the detection trigger element on the rotating part is detected by the detection part on the rotating driving part to determine the operating state of the cleaning part, wherein the detection trigger element is used to control the position to which the rotating part is allowed to rotate; after confirming When the operating state of a certain cleaning component is abnormal, the cleaning device is controlled to perform specified operations to restore the operating state of the cleaning component to normal. Since the swinging of the swinging component on the cleaning device is achieved by driving the rotating component to rotate by the rotating driving component, when the swinging of the swinging component connected to the cleaning component is blocked, the rotating component will not be able to rotate normally, thereby causing the detection component on the rotating driving component to be unable to detect the detection trigger element on the rotating component. According to the detection of the detection trigger element by the detection component, it can be determined whether the operating state of the cleaning device is abnormal (for example, the cleaning component of the cleaning device is stuck due to an obstacle, etc.), thereby achieving the purpose of improving the accuracy of state judgment, and further solving the problem of low accuracy of state judgment in the prior art of judging the operating state of the cleaning device based on the residence time.
Brief Description of the Drawings
[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0026] Figure 1 is a schematic diagram of a hardware environment of an optional mobile control method for a cleaning device according to an embodiment of the present application;
[0027] Figure 2 is a flow chart of an optional method for controlling movement of a cleaning device according to an embodiment of the present application;
[0028] Figure 3is a schematic diagram of an optional method for controlling movement of a cleaning device according to an embodiment of the present application;
[0029] Figure 4 is a schematic diagram of another optional movement control method of a cleaning device according to an embodiment of the present application;
[0030] Figure 5 is a flow chart of another optional method for controlling movement of a cleaning device according to an embodiment of the present application;
[0031] Figure 6 is a structural block diagram of an optional mobile control device for cleaning equipment according to an embodiment of the present application;
[0032] Figure 7 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. [Specific implementation method]
[0033] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0035] According to one aspect of an embodiment of the present application, a method for controlling the movement of a cleaning device is provided. Optionally, in this embodiment, the method for controlling the movement of a cleaning device can be applied to Figure 1 In the hardware environment shown in FIG. 1 , a cleaning device 102, a base station 104 and a cloud platform 106 are formed. Figure 1 As shown, the cleaning device 102 can be connected to the base station 104 and / or the cloud platform 106 (e.g., a voice cloud platform) through a network to achieve interaction between the cleaning device 102 and the base station 104 and / or the cloud platform 106.
[0036] The above-mentioned network may include but is not limited to at least one of the following: wired network, wireless network. The above-mentioned wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above-mentioned wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth, infrared. The network used by the cleaning device 102 to communicate with the base station 104 and / or the cloud platform 106 may be the same as or different from the network used by the base station 104 to communicate with the cloud platform 106. The cleaning device 102 may include but is not limited to: a sweeping robot, a floor washing robot, a robot that combines washing and sweeping, a self-cleaning device, etc.
[0037] The mobile control method of the cleaning device of the embodiment of the present application can be executed by the cleaning device 102 and the cloud platform 106 alone, or by the cleaning device 102 and the cloud platform 106 together. The mobile control method of the cleaning device of the embodiment of the present application can also be executed by the client installed on the cleaning device 102.
[0038] Taking the cleaning device 102 as an example, the cleaning device movement control method in this embodiment is executed. Figure 2 is a flow chart of an optional method for controlling the movement of a cleaning device according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:
[0039] Step S202, in response to the acquired rotation instruction, the rotating component of the cleaning device is driven to rotate by the rotating driving component of the cleaning device to control the swinging component of the cleaning device, wherein one end of the swinging component is connected to the cleaning component, and during the swinging of the swinging component, the cleaning component switches between an outward swing state and a retracted state, the outward swing state is a state in which at least a portion of the cleaning component is swung toward the outside of the cleaning device, and the retracted state is a state in which at least a portion of the cleaning component is retracted toward the inside of the cleaning device.
[0040] The mobile control method of the cleaning device in this embodiment can be applied to the scene where the cleaning device works in the target area. The above-mentioned target area can be an indoor area, for example, a user's family room, an office, a factory workshop, etc. A cleaning component can be installed on the cleaning device for cleaning the target area. The cleaning component may include but is not limited to at least one of the following: a roller brush (also called a floor brush), a mop, etc., and its shape may be round, square, etc., and the cleaning member may be a rotatable structure.
[0041] Conventional cleaning parts usually do not extend beyond the edge of the cleaning device. Even if the cleaning device reaches the edge of a wall corner, table leg, etc., its cleaning parts cannot clean the edge area well, resulting in poor mopping effect along the edge.
[0042] In order to improve the efficiency of edge cleaning, in this embodiment, the cleaning component can be set as a component that can partially exceed the edge of the body of the cleaning device. At the same time, considering that the cleaning component partially exceeds the edge of the body and may hinder the movement of the cleaning device, the cleaning component can be switched between an outward swing state and an inward retracted state. Here, the outward swing state can be a state in which at least a part of the cleaning component is swung toward the outside of the cleaning device, and the inward retracted state can be a state in which at least a part of the cleaning component is retracted toward the inside of the cleaning device.
[0043] In this embodiment, a rotation drive component, a rotating component, a swing component and a cleaning component can be arranged inside the cleaning device. One end of the swing component can be connected to the cleaning component, and the other end can be connected to the rotating module, and the rotation of the rotating module can be driven by the rotation drive component.
[0044] When it is determined that the cleaning component of the cleaning device is required to partially extend beyond the edge of the machine body or not extend beyond the edge of the machine body, a rotation instruction can be issued to the rotation driving component. In this embodiment, in response to the acquired rotation instruction, the rotation driving component of the cleaning device can drive the rotation component of the cleaning device to rotate, so as to control the swinging component of the cleaning device to swing, and during the swinging process of the swinging component, the cleaning component switches between the outward swing state and the retracted state.
[0045] Step S204: Detecting a detection trigger element on the rotating component by a detection component on the rotating driving component to determine the operating state of the cleaning component, wherein the detection trigger element is used to control the position to which the rotating component is allowed to rotate.
[0046] In order to avoid excessive swinging of the swinging member due to excessive rotation of the rotating member, which in turn causes the cleaning member to swing outward or retract excessively, thereby affecting the cleaning efficiency, in this embodiment, the detection trigger element on the rotating member can be detected by the detection member on the rotating drive member to determine the operating state of the cleaning member. Here, the detection trigger element can be used to control the position to which the rotating member is allowed to rotate. The operating state can be used to indicate the current state of the cleaning member, including the retracted state and the swing out state.
[0047] Optionally, the detection component on the rotating drive component may be fixed, and the detection trigger element on the rotating component may be fixed in position relative to the rotating component. During the rotation of the rotating component, the detection trigger element may rotate along with the rotating component.
[0048] Optionally, the detection component on the rotating drive component detects the detection trigger element on the rotating component, which may refer to the detection component detecting whether the detection trigger element appears. In the case of normal rotation, the detection trigger element can rotate from a position farther away from the detection component to a position closer to the detection component. The detection component can be a sensor, which determines whether the detection trigger element is detected by sensing the touch of the detection trigger element. The detection component can also be a signal receiver, which determines whether the detection trigger element is detected by receiving the signal sent by the detection trigger element and the signal strength. The detection component can also be other types of components, which are not limited in this embodiment.
[0049] Optionally, after the detection component detects that the detection trigger element has rotated to a certain position, a rotation instruction can be issued to control the rotating drive component to stop driving the rotating component to rotate, thereby achieving the maximum range of controlling the inward or outward swing of the cleaning component to avoid affecting the cleaning efficiency of the cleaning equipment.
[0050] Step S206: When it is determined that the operating state of the cleaning component is abnormal, the cleaning device is controlled to perform a specified operation to restore the operating state of the cleaning component to normal.
[0051] According to the detection result of the detection component on the detection trigger element, it can be determined whether the operating state of the cleaning component is in the retracted or outward swing state. In addition, it can also be determined whether the operating state of the cleaning component is normal. For example, after the rotating drive component has been working for a period of time, the detection component still does not detect the detection trigger element, or detects that the distance between the detection trigger element and the detection component is still far, it can be determined that the operating state of the cleaning component is abnormal. In addition, the above abnormality may be caused by the rotation of the rotating parts, swinging parts, etc. of the cleaning equipment being blocked or stuck, or the cleaning parts being blocked by obstacles and unable to move.
[0052] In this embodiment, when it is determined that the operating state of the cleaning component is abnormal, the cleaning device may be controlled to perform a designated operation to restore the operating state of the cleaning component to normal.
[0053] Optionally, the above-mentioned designated operation may include, but is not limited to, controlling the rotating driving component to drive the rotating component to rotate in a direction opposite to the previous direction, or controlling the body of the cleaning device to move in other directions, etc.
[0054] Through the above steps S202 to S206, in response to the acquired rotation instruction, the rotating part of the cleaning device is driven to rotate by the rotating driving part of the cleaning device to control the swinging part of the cleaning device to swing, wherein one end of the swinging part is connected to the cleaning part, and during the swinging of the swinging part, the cleaning part switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning part is swung toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning part is retracted toward the inside of the cleaning device; the detection trigger element on the rotating part is detected by the detection part on the rotating driving part to determine the operating state of the cleaning part, wherein the detection trigger element is used to control the position to which the rotating part is allowed to rotate; when it is determined that the operating state of the cleaning part is abnormal, the cleaning device is controlled to perform a specified operation to restore the operating state of the cleaning part to normal, thereby solving the problem of low accuracy of state judgment in the prior art of judging the operating state of the cleaning device based on the residence time, and improving the accuracy of state judgment.
[0055] In an exemplary embodiment, the detection trigger element on the rotating component is detected by the detection component on the rotating driving component to determine the operating state of the cleaning component, including:
[0056] S11, when a first detection trigger element on the rotating component is detected by a first detection component on the rotating driving component, determining that the rotating component is rotated to a first preset position along a first rotation direction, wherein, in the first preset position, the cleaning component is in an outward swing state and is outwardly swung to the outermost position allowed to be outwardly swung;
[0057] S12, when the second detection trigger element on the rotating component is detected by the second detection component on the rotating driving component, it is determined that the rotating component rotates to a second preset position along the second rotation direction, wherein, in the second preset position, the cleaning component is in a retracted state and retracted to the innermost position allowed to be retracted.
[0058] In order to facilitate the detection of the rotation trigger element by the detection component, in this embodiment, the detection component may include a first detection component and a second detection component, and the detection trigger element may include a first detection trigger element and a second detection trigger element. Correspondingly, the first detection component may be used to detect the first detection trigger element, and the second detection component may be used to detect the second detection trigger component.
[0059] For example, Figure 3 As shown, the rotating component 1 can be connected to the swinging component 2 through the rotation center 6, the first detection component 4 and the second detection component 5 can be installed on the rotation driving component 3, and the rotating component 1 can have a first rotation trigger element 7 and a second rotation trigger element 8 (such as Figure 4 shown).
[0060] In this embodiment, when the first detection trigger element on the rotating component is detected by the first detection component on the rotating drive component, it can be determined that the rotating component rotates to the first preset position along the first rotation direction. When the second detection trigger element on the rotating component is detected by the second detection component on the rotating drive component, it is determined that the rotating component rotates to the second preset position along the second rotation direction. Here, in the first preset position, the cleaning component is in an outward swing state and is swung outward to the outermost position allowed to be swung outward. In the second preset position, the cleaning component is in a retracted state and is retracted to the innermost position allowed to be retracted.
[0061] The first rotation direction may be as follows: Figure 3 The second rotation direction may be as shown in the counterclockwise direction. Figure 3 The outermost position and the innermost position may be positions defined based on the limitations of the first preset position and the second preset position, respectively.
[0062] For example, Figure 3 As shown, the second rotation trigger element rotates to a position adjacent to the second detection component, that is, the second preset position, and the cleaning component is in a retracted state and retracted to the innermost position allowed to be retracted. Figure 4 As shown, the first rotation trigger element rotates to a position adjacent to the first detection component, that is, the first preset position, and the cleaning component is in an outward swing state and is swung outward to the outermost position allowed.
[0063] Through this embodiment, the operating state of the cleaning component is determined by the positions to which the two detection trigger elements are rotated detected by the two detection components, which can improve the efficiency of limiting the moving range of the cleaning component and further improve the cleaning efficiency of the cleaning device.
[0064] In an exemplary embodiment, the rotating component can be connected to the rotating driving component through a gear, the first detection trigger element can be a tooth protruding from the gear, the second detection trigger element can be another tooth protruding from the gear, and the first detection trigger element and the second detection trigger element are located on both sides of the rotating driving component.
[0065] For example, Figure 3 and Figure 4 As shown, the rotating drive component 3 is connected to the rotating component 1 through gears, and a first detection component 4 and a second detection component 5 are respectively provided on both sides of the rotating drive component. Both ends of the gear of the rotating component 1 are respectively provided with a first rotating trigger element 7 and a second rotating trigger element 8 which are more protruding than other gears.
[0066] In an exemplary embodiment, after determining that the rotating component rotates to the first preset position along the first rotation direction, the method further includes:
[0067] S21, sending an outward swing-in position instruction to the rotation driving component through the first detection component to instruct the rotation driving component to stop driving the rotation component to continue rotating along the first rotation direction.
[0068] In this embodiment, after determining that the rotating component rotates to the first preset position along the first rotation direction, the first detection component can send an outward swing position instruction to the rotating drive component to instruct the rotating drive component to stop driving the rotating component to continue rotating along the first rotation direction.
[0069] Optionally, the above-mentioned outward swing-in position instruction can be sent directly from the first detection component to the rotating drive component, or the first detection component can feed back the detection result to the platform or cleaning equipment, and then the platform or cleaning equipment sends it to the rotating drive component. This embodiment does not limit this.
[0070] Through this embodiment, the first detection component sends an outward swing-in position instruction to the rotation driving component to stop the rotation of the rotation component, which can improve the efficiency of stopping the rotation of the rotation component and avoid the cleaning component from moving too far.
[0071] In an exemplary embodiment, after determining that the rotating component rotates to the first preset position along the first rotation direction, the method further includes:
[0072] S31, in response to the acquired first state switching instruction, driving the rotating component to rotate along the second rotation direction through the rotating driving component, so as to control the working state of the cleaning component to switch from the outward swing state to the inward retracted state.
[0073] After determining that the rotating component rotates to the first preset position along the first rotation direction, when the cleaning component needs to be switched to the retracted state, the cleaning component can be controlled to switch from the outward swing state to the retracted state by sending a first state switching instruction.
[0074] Optionally, the first state switching instruction may be sent to the rotating drive component by the cleaning device, or may be sent to the rotating drive component via the platform or the client of the cleaning device, and this embodiment does not limit this. In addition, the first state switching instruction may be automatically generated by the cleaning device based on information about the current environment combined with the position and state of the cleaning device (e.g., the cleaning device is not in an area that requires edge cleaning, the cleaning work is completed, or there is an obstacle that requires the cleaning component to retract to avoid it, etc.), or it may be issued by the user of the cleaning device through the client.
[0075] In this embodiment, in response to the acquired first state switching instruction, the rotating component can be driven by the rotating driving component to rotate along the second rotation direction to control the working state of the cleaning component to switch from the outward swing state to the inward retracted state.
[0076] Through this embodiment, the switching of the cleaning component from swinging outward to retracting inward is triggered according to the state switching instruction, so that the efficiency of the switching of the working state of the cleaning component can be improved, thereby improving the flexibility of the cleaning device.
[0077] In an exemplary embodiment, after determining that the rotating component rotates to the second preset position along the second rotation direction, the method further includes:
[0078] S41, sending a retracting instruction to the rotation driving component through the second detection component to instruct the rotation driving component to stop driving the rotation component to continue rotating along the second rotation direction.
[0079] In this embodiment, after determining that the rotating component rotates to the second preset position along the second rotation direction, the second detection component can send a retraction position instruction to the rotation driving component to instruct the rotation driving component to stop driving the rotating component to continue rotating along the second rotation direction.
[0080] The sending method of the above-mentioned retracted-into-position instruction may be similar to the description of the above-mentioned swing-outto-position instruction, and will not be elaborated in this embodiment.
[0081] According to this embodiment, the second detecting component sends a retracting instruction to the rotating driving component to stop the rotation of the rotating component, thereby improving the efficiency of stopping the rotation of the rotating component and avoiding an excessively large movement range of the cleaning component.
[0082] In an exemplary embodiment, after determining that the rotating component rotates to the second preset position along the second rotation direction, the method further includes:
[0083] S51, in response to the acquired second state switching instruction, driving the rotating component to rotate along the first rotation direction through the rotating driving component, so as to control the working state of the cleaning component to switch from the retracted state to the outward swing state.
[0084] After determining that the rotating component rotates to the second preset position along the second rotation direction, when the cleaning component needs to be switched to the outward swing state, the cleaning component can be controlled to switch from the retracted state to the outward swing state by sending a second state switching instruction.
[0085] The second state switching instruction may be similar to the description of the first state switching instruction, and will not be described in detail in this embodiment.
[0086] In this embodiment, in response to the acquired second state switching instruction, the rotating component can be driven by the rotating driving component to rotate along the first rotation direction to control the working state of the cleaning component to switch from the retracted state to the outward swing state.
[0087] Through this embodiment, the switching of the cleaning component from retracting to swinging outward is triggered according to the state switching instruction, so that the efficiency of the working state switching of the cleaning component can be improved, thereby improving the flexibility of the cleaning device.
[0088] In an exemplary embodiment, the detection trigger element on the rotating component is detected by the detection component on the rotating driving component to determine the operating state of the cleaning component, and further includes:
[0089] S61, in the process of driving the rotating component to rotate along the first rotation direction by the rotation driving component, if the first detection component does not detect the first detection trigger element within the first time range, it is determined that the outer swing state of the cleaning device is abnormal;
[0090] S62, when the rotating component is driven to rotate along the second rotation direction by the rotating driving component, if the second detection module does not detect the second detection triggering element within the second time range, determining that the retracted state of the cleaning device is abnormal.
[0091] When the trigger element is detected by the detection component, the first time range and the second time range can be pre-set according to the rotation time corresponding to the retracted state and the outward swing state of the cleaning component under normal circumstances, so as to determine whether there is any abnormality in the operating state of the cleaning component of the cleaning equipment.
[0092] In this embodiment, when the rotating component is driven to rotate along the first rotation direction by the rotating driving component, if the first detection component does not detect the first detection trigger element within the first time range, it can be determined that the outer swing state of the cleaning device is abnormal.
[0093] Correspondingly, in the process of driving the rotating component to rotate along the second rotation direction by the rotating driving component, if the second detection module does not detect the second detection trigger element within the second time range, it can be determined that the retracted state of the cleaning device is abnormal. The above-mentioned first time range and second time range can be the same or different, and this embodiment does not limit this.
[0094] For example, the cleaning device is a machine, the retracted state is a retracted working condition, the retracted state is a retracted working condition, the rotation drive component is a rotation drive module, the first detection trigger element is detection element 1, the second detection trigger element is detection element 2, and the first time range and the second time range are the same as time T. Figure 5 As shown:
[0095] Step S501, the machine starts.
[0096] Step S502, analyzing whether the cleaning components of the machine need to be in a retracted state, if yes, executing step S503, otherwise executing step S510.
[0097] Step S503, when the cleaning component of the machine needs to be in the retracted state, determine whether the detection element 2 is working (ie, rotating). If yes, execute step S509, otherwise execute step S504.
[0098] Step S504: when the detection element 2 is not working, the rotation driving module is controlled to rotate forward (ie, rotate in a clockwise direction).
[0099] Step S505, determining whether the detection element 2 has completed its operation within the time T, that is, whether the detection element 2 has rotated to a position capable of triggering the detection module within the time T. If yes, execute step S509, otherwise execute step S506.
[0100] Step S506, when the machine cannot rotate to a position that can trigger the detection module within the time T, it is determined that the machine may be blocked, stuck, or other abnormalities, and an escape operation is performed.
[0101] Step S507, determine whether the machine is successfully rescued within time T1, if yes, execute step S509, otherwise execute step S508.
[0102] Step S508, an abnormal warning is issued and the work is stopped.
[0103] Step S509, determine that the machine is running normally and stop working.
[0104] Step S510, when the cleaning component of the machine does not need to be in the retracted working condition, determine whether the cleaning component needs to be in the swung out working condition, if yes, execute step S511, otherwise execute step S513.
[0105] Step S511, when the cleaning part of the machine needs to be in the external swing state, determine whether the detection element 1 is working, that is, whether the detection element 1 rotates to a position that can trigger the detection module. If yes, execute step S512, otherwise execute step S514.
[0106] Step S512, determine that the machine is running normally and stop working.
[0107] Step S513, an abnormal warning is issued and the work is stopped.
[0108] Step S514, when the detection element 1 is not working, the rotation driving module is controlled to reverse (ie, rotate counterclockwise) to stop the detection element 1 from working.
[0109] Step S515, determining whether the detection element 1 has completed its operation within the time T. If yes, execute step S512, otherwise execute step S516.
[0110] Step S516, when the machine cannot rotate to a position that can trigger the detection module within the time T, it is determined that the machine may be blocked, stuck, or other abnormalities, and an escape operation is performed.
[0111] Step S517, determine whether the machine is successfully rescued within time T1, if yes, execute step S512, otherwise execute step S518.
[0112] Step S518, an abnormal warning is issued and the work stops.
[0113] Through this embodiment, whether the cleaning device operates abnormally is determined based on the rotation time, which can improve the efficiency and accuracy of judging whether the cleaning device operates abnormally.
[0114] In an exemplary embodiment, when it is determined that the operating state of the cleaning component is abnormal, controlling the cleaning device to perform a specified operation to restore the operating state of the cleaning component to normal includes:
[0115] S71, when it is determined that the outer swing state of the cleaning device is abnormal, driving the rotating component to rotate along the second rotation direction through the rotation driving component;
[0116] S72: When the second detection module detects the second detection triggering element within the third time range, it is determined that the operating state of the cleaning device returns to normal.
[0117] When the operating state of the cleaning component is determined to be abnormal, the designated operation performed by controlling the cleaning device may be to control the rotating component to reverse. In this embodiment, when the swing-out state of the cleaning device is determined to be abnormal, the rotating component may be driven to rotate along the second rotation direction by the rotation drive component.
[0118] If the second detection module detects the second detection trigger element within the third time range, it can be determined that the abnormal state of the outer swing may be caused by obstacles or other reasons that cause the outer swing to be unable to rotate to the right position. If the retraction is completed normally, it can be determined that the operation state of the cleaning device has returned to normal. Here, the third time range can be the same as the first time range and the second time range, or different, and this embodiment does not limit this.
[0119] Optionally, when abnormal outward swing state occurs at different positions and inward retraction is completed normally, it can be determined that the abnormal outward swing state may be caused by the failure of components inside the cleaning device to rotate normally, and an abnormal alarm message can be directly issued to prompt the user to check the cleaning device.
[0120] Through this embodiment, when it is determined that the outward swing state of the cleaning component is abnormal, the efficiency of the cleaning device in getting out of trouble can be improved by reversing the rotating component to restore the operating state of the cleaning device.
[0121] In an exemplary embodiment, the method further comprises:
[0122] S81, when the second detection module does not detect the second detection trigger element within the third time range, control the rotation driving component to stop driving the rotation component to rotate, and issue an abnormal alarm message.
[0123] When it is determined that the outward swing state of the cleaning device is abnormal, and the rotating part is driven to rotate along the second rotation direction by the rotating drive part, if the second detection module does not detect the second detection trigger element within the third time range, it means that both the outward swing state and the inward retracted state of the cleaning device are abnormal, and the rotating drive part can be controlled to stop driving the rotating part to rotate, and an abnormal alarm message can be issued.
[0124] Through this embodiment, when both the outward swing state and the inward retracted state are abnormal, an abnormal alarm message is directly issued, which can avoid the cleaning device from wasting a long time in self-extrication and improve the intelligence of the cleaning device.
[0125] In an exemplary embodiment, when it is determined that the operating state of the cleaning component is abnormal, controlling the cleaning device to perform a specified operation to restore the operating state of the cleaning component to normal includes:
[0126] S91, when it is determined that the retracted state of the cleaning device is abnormal, controlling the cleaning device to move a certain distance along the target direction, and driving the rotating component to rotate along the second rotation direction through the rotation driving component;
[0127] S92: When the second detection module detects the second detection triggering element within a fourth time range, determine that the operating state of the cleaning device returns to normal.
[0128] Since the abnormality of the retracted state of the cleaning device may be caused by an external obstacle blocking the cleaning component, etc., which makes it impossible for the cleaning component to retract, in this embodiment, when it is determined that the retracted state of the cleaning device is abnormal, the cleaning device can be controlled to move a distance along the target direction. At the same time, after determining that the cleaning device may leave the obstacle, the cleaning component can be controlled to retract again, that is, the rotating component is driven to rotate along the second rotation direction by the rotating driving component. Here, the target direction can be a direction different from the moving direction of the cleaning device before the abnormality of the retracted state occurs.
[0129] Starting from driving the rotating component to rotate along the second rotation direction, if the second detection module detects the second detection trigger element within a fourth time range, it can be determined that the operating state of the cleaning device has returned to normal. The fourth time range can be the same as or different from the first time range, the second time range, or the third time range.
[0130] Optionally, when it is determined that the retracted state of the cleaning device is abnormal, the cleaning component can also be controlled to move in the opposite direction to the previous retracted state, that is, the rotating component is driven to rotate along the first rotation direction by the rotating driving component. And when the first detection module detects the first detection trigger element in the fifth time range, it is determined that the operating state of the cleaning device has returned to normal. Here, the fifth time range can be the same as the aforementioned first time range, second time range, third time range or the fourth time range, or it can be different.
[0131] Through this embodiment, when it is determined that the retracted state of the cleaning component is abnormal, the cleaning device is controlled to leave the current area and retract again to restore the operating state of the cleaning device, which can improve the escape efficiency of the cleaning device.
[0132] In an exemplary embodiment, the method further comprises:
[0133] S101, when the second detection module does not detect the second detection trigger element within a fourth time range, control the rotation driving component to stop driving the rotation component to rotate, and issue an abnormal alarm message.
[0134] Starting from driving the rotating component to rotate along the second rotation direction, if the second detection module does not detect the second detection trigger element within the fourth time range, it can be determined that the operating state of the cleaning equipment cannot be restored to normal by changing the position of the equipment. In this embodiment, the rotating driving component can be controlled to stop driving the rotating component to rotate, and an abnormal alarm message can be issued.
[0135] Optionally, when the cleaning device is restored to normal by driving the rotating component to rotate along the first rotation direction through the rotating driving component as mentioned above, if the first detection module does not detect the first detection trigger element within the fifth time range, the rotating driving component can also be controlled to stop driving the rotating component to rotate and issue an abnormal alarm message.
[0136] Through this embodiment, when the cleaning device still cannot be restored to normal after controlling the cleaning device to perform a specified operation, an abnormal alarm message is directly issued, which can avoid the cleaning device wasting a long time in self-rescuing and improve the intelligence of the cleaning device.
[0137] In an exemplary embodiment, the method further comprises:
[0138] S111, obtaining location information of a cleaning device, wherein the location information of the cleaning device is used to indicate the location of the cleaning device in a cleaning area;
[0139] S112, when it is determined according to the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is less than or equal to a preset distance threshold, generating a first rotation instruction, wherein the first rotation instruction is used to instruct the rotation driving component to drive the driving component to rotate along a first rotation direction;
[0140] S113, when it is determined based on the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is greater than a preset distance threshold and the cleaning component is in an outward swing state, a second rotation instruction is generated, wherein the second rotation instruction is used to instruct the rotation driving component to drive the driving component to rotate along a second rotation direction.
[0141] When the cleaning device is in working state, it can be determined whether it needs to perform edge cleaning according to the position of the cleaning device, and it can be determined whether it needs to send a command to control the retraction or swinging of the cleaning component. In this embodiment, for the cleaning device in working state, the position information of the cleaning device can be obtained. Here, the position information of the cleaning device can be used to indicate the position of the cleaning device in the cleaning area.
[0142] When it is determined based on the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is less than or equal to the preset distance threshold, it means that the distance between the cleaning device and the edge of the cleaning area is close and edge cleaning is required, and a first rotation instruction can be generated. Here, the preset distance threshold can be a pre-set distance threshold. The first rotation instruction can be used to instruct the rotation drive component to drive the drive component to rotate along the first rotation direction.
[0143] When it is determined according to the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is greater than the preset distance threshold and the cleaning component is in the outward swing state, a second rotation instruction can be generated. Here, the second rotation instruction is used to instruct the rotation drive component to drive the drive component to rotate along the second rotation direction.
[0144] Through this embodiment, the cleaning component can be controlled to swing outward or retract inward according to the distance between the position of the cleaning device and the edge of the cleaning area, which can improve the flexibility of the cleaning device and the efficiency of edge cleaning.
[0145] The following is an explanation of the mobile control method of the cleaning device in the embodiment of the present application in conjunction with an optional example. In this optional example, the cleaning device is a cleaning robot, and the first time range and the second time range are time T.
[0146] This optional example provides a method for controlling the motion of a swing-type cleaning module, such as Figure 3 and Figure 4 As shown, the process of the mobile control method of the cleaning device in this optional example may include the following steps:
[0147] Step 1: determine the operating state (retracted or swung out) of the cleaning component according to the current position of the cleaning robot.
[0148] Step 2, when the cleaning component is in a retracted state and needs to be swung outward, the swinging component 2 is controlled to swing outward along the rotation center 6. When the rotating component 1 rotates to a certain position within time T, the detection trigger element 7 on the rotating component 1 triggers the detection component 4, thereby giving an instruction for the detection rotating module to rotate into position, and the rotating drive component 3 stops working.
[0149] Step 3: When the trigger element 7 fails to trigger the detection component 4 within the time T, it is determined that an abnormality occurs in the cleaning device, and an escape operation is performed.
[0150] Step 4: If the vehicle fails to escape within time T1, an abnormal warning is issued.
[0151] Step 5, when the cleaning component is in the outward swing state and needs to be retracted, the swing component 2 is controlled to swing back inward along the rotation center 6. When the rotating component 1 rotates to a certain position within the time T, the detection trigger element 8 on the rotating component 1 triggers the detection component 5, thereby giving an instruction for the detection rotating module to rotate into place, and the rotating drive component 3 stops working.
[0152] Step 6: When the trigger element 8 fails to trigger the detection component 5 within the time T, it is determined that an abnormality occurs in the cleaning device, and an escape operation is performed.
[0153] Step 7: If the vehicle fails to escape within time T1, an abnormal warning is issued.
[0154] Through this optional example, whether the cleaning part needs to be swung outwards can be determined according to the position of the cleaning device in the cleaning area, thereby improving the cleaning efficiency of the cleaning area. In addition, whether the cleaning device is trapped can be determined according to the rotation time of the outward swing or retracted state, thereby improving the accuracy of judging the running state of the cleaning device.
[0155] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0156] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0157] According to another aspect of an embodiment of the present application, a movement control device for a cleaning device for implementing the above-mentioned movement control method for a cleaning device is also provided. Figure 6 is a structural block diagram of an optional mobile control device for cleaning equipment according to an embodiment of the present application, such as Figure 6 As shown, the device may include:
[0158] The first driving unit 602 is used to drive the rotating part of the cleaning device to rotate through the rotating driving part of the cleaning device in response to the acquired rotation instruction, so as to control the swinging part of the cleaning device to swing, wherein one end of the swinging part is connected to the cleaning part, and during the swinging process of the swinging part, the cleaning part switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning part swings toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning part retracts toward the inside of the cleaning device;
[0159] a detection unit 604 connected to the first driving unit 602, and configured to detect a detection trigger element on the rotating component through a detection component on the rotating driving component to determine the operating state of the cleaning component, wherein the detection trigger element is used to control the position to which the rotating component is allowed to rotate;
[0160] The first control unit 606 is connected to the detection unit 604, and is used to control the cleaning device to perform a specified operation to restore the operating state of the cleaning component to normal when it is determined that the operating state of the cleaning component is abnormal.
[0161] It should be noted that the first driving unit 602 in this embodiment can be used to execute the above step S202, the detection unit 604 in this embodiment can be used to execute the above step S204, and the first control unit 606 in this embodiment can be used to execute the above step S206.
[0162] Through the above-mentioned module, in response to the acquired rotation instruction, the rotating part of the cleaning device is driven to rotate by the rotating driving part of the cleaning device to control the swinging part of the cleaning device, wherein one end of the swinging part is connected to the cleaning part, and during the swinging of the swinging part, the cleaning part switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning part is swung toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning part is retracted toward the inside of the cleaning device; the detection trigger element on the rotating part is detected by the detection part on the rotating driving part to determine the operating state of the cleaning part, wherein the detection trigger element is used to control the position to which the rotating part is allowed to rotate; when it is determined that the operating state of the cleaning part is abnormal, the cleaning device is controlled to perform a specified operation to restore the operating state of the cleaning part to normal, which can solve the problem of low accuracy of state judgment in the prior art of judging the operating state of the cleaning device based on the residence time, and improve the accuracy of judging the operating state of the cleaning device.
[0163] In an exemplary embodiment, the detection unit comprises:
[0164] A first determining module is used to determine that the rotating component rotates to a first preset position along a first rotation direction when a first detection trigger element on the rotating component is detected by a first detection component on the rotating driving component, wherein, in the first preset position, the cleaning component is in an outward swing state and is outwardly swung to the outermost position allowed to be outwardly swung;
[0165] The second determination module is used to determine that the rotating component is rotated to a second preset position along a second rotation direction when a second detection trigger element on the rotating component is detected by a second detection component on the rotating driving component, wherein in the second preset position, the cleaning component is in a retracted state and retracted to the innermost position allowed to be retracted.
[0166] In an exemplary embodiment, the rotating component is connected to the rotating driving component through a gear, the first detection trigger element is a tooth protruding from the gear, the second detection trigger element is another tooth protruding from the gear, and the first detection trigger element and the second detection trigger element are located on both sides of the rotating driving component.
[0167] In an exemplary embodiment, the above device further comprises:
[0168] The first sending unit is used to send an outward swing position instruction to the rotation driving component through the first detection component after determining that the rotation component rotates to the first preset position along the first rotation direction, so as to instruct the rotation driving component to stop driving the rotation component to continue rotating along the first rotation direction.
[0169] In an exemplary embodiment, the above device further comprises:
[0170] The second driving unit is used for driving the rotating component to rotate along the second rotation direction through the rotating driving component in response to the acquired first state switching instruction after determining that the rotating component rotates to the first preset position along the first rotation direction, so as to control the working state of the cleaning component to switch from the outward swing state to the inward retracted state.
[0171] In an exemplary embodiment, the above device further comprises:
[0172] The second sending unit is used to send a retracting position instruction to the rotation driving component through the second detection component after determining that the rotation component rotates to the second preset position along the second rotation direction, so as to instruct the rotation driving component to stop driving the rotation component to continue rotating along the second rotation direction.
[0173] In an exemplary embodiment, the above device further comprises:
[0174] The third driving unit is used for, after determining that the rotating component rotates to the second preset position along the second rotation direction, responding to the acquired second state switching instruction, driving the rotating component to rotate along the first rotation direction through the rotating driving component, so as to control the working state of the cleaning component to switch from the retracted state to the outward swing state.
[0175] In an exemplary embodiment, the detection unit further comprises:
[0176] A third determination module is used to determine that the outer swing state of the cleaning device is abnormal when the first detection component does not detect the first detection trigger element within a first time range during the process of driving the rotating component to rotate along the first rotation direction by the rotation driving component;
[0177] The fourth determination module is used to determine that the retracted state of the cleaning device is abnormal when the second detection module does not detect the second detection trigger element within a second time range during the process of the rotating component being driven to rotate along the second rotation direction by the rotating driving component.
[0178] In an exemplary embodiment, the first control unit comprises:
[0179] A driving module, configured to drive the rotating component to rotate along a second rotation direction by rotating the driving component when it is determined that the outer swing state of the cleaning device is abnormal;
[0180] The fifth determination module is used to determine that the operating state of the cleaning device returns to normal when the second detection module detects the second detection trigger element within a third time range.
[0181] In an exemplary embodiment, the above device further comprises:
[0182] The second control unit is used to control the rotation driving component to stop driving the rotation component to rotate and issue an abnormal alarm message when the second detection module fails to detect the second detection trigger element within a third time range.
[0183] In an exemplary embodiment, the first control unit comprises:
[0184] An execution module, configured to control the cleaning device to move a certain distance along a target direction and drive the rotating component to rotate along a second rotation direction through the rotating driving component when determining that the retracted state of the cleaning device is abnormal;
[0185] The sixth determination module is used to determine that the operating state of the cleaning device returns to normal when the second detection module detects the second detection trigger element within a fourth time range.
[0186] In an exemplary embodiment, the above device further comprises:
[0187] The execution unit is used to control the rotation driving component to stop driving the rotation component to rotate and issue an abnormal alarm message when the second detection module fails to detect the second detection trigger element within a fourth time range.
[0188] In an exemplary embodiment, the above device further comprises:
[0189] An acquiring unit, used for acquiring position information of a cleaning device, wherein the position information of the cleaning device is used for indicating the position of the cleaning device in a cleaning area;
[0190] A first generating unit, configured to generate a first rotation instruction when it is determined according to the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is less than or equal to a preset distance threshold, wherein the first rotation instruction is used to instruct the rotation driving component to drive the driving component to rotate along a first rotation direction;
[0191] The second generating unit is used to generate a second rotation instruction when it is determined based on the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is greater than a preset distance threshold and the cleaning component is in an outward swing state, wherein the second rotation instruction is used to instruct the rotation driving component to drive the driving component to rotate along a second rotation direction.
[0192] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.
[0193] According to another aspect of the embodiments of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of any of the above-mentioned methods for controlling movement of a cleaning device in the embodiments of the present application.
[0194] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.
[0195] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:
[0196] S1, in response to the acquired rotation instruction, driving the rotating component of the cleaning device to rotate through the rotating driving component of the cleaning device to control the swinging component of the cleaning device to swing, wherein one end of the swinging component is connected to the cleaning component, and during the swinging of the swinging component, the cleaning component switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning component swings toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning component retracts toward the inside of the cleaning device;
[0197] S2, detecting a detection trigger element on the rotating component by a detection component on the rotating driving component to determine the operating state of the cleaning component, wherein the detection trigger element is used to control the position to which the rotating component is allowed to rotate;
[0198] S3, when it is determined that the operating state of the cleaning component is abnormal, controlling the cleaning device to perform a specified operation to restore the operating state of the cleaning component to normal.
[0199] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.
[0200] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.
[0201] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned mobile control method of a cleaning device is also provided. The electronic device may be a server, a terminal, or a combination thereof.
[0202] Figure 7 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Figure 7 As shown, it includes a processor 702, a communication interface 704, a memory 706 and a communication bus 708, wherein the processor 702, the communication interface 704 and the memory 706 communicate with each other through the communication bus 708, wherein,
[0203] Memory 706, used to store computer programs;
[0204] The processor 702 is used to implement the following steps when executing the computer program stored in the memory 706:
[0205] S1, in response to the acquired rotation instruction, driving the rotating component of the cleaning device to rotate through the rotating driving component of the cleaning device to control the swinging component of the cleaning device to swing, wherein one end of the swinging component is connected to the cleaning component, and during the swinging of the swinging component, the cleaning component switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning component swings toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning component retracts toward the inside of the cleaning device;
[0206] S2, detecting a detection trigger element on the rotating component by a detection component on the rotating driving component to determine the operating state of the cleaning component, wherein the detection trigger element is used to control the position to which the rotating component is allowed to rotate;
[0207] S3, when it is determined that the operating state of the cleaning component is abnormal, controlling the cleaning device to perform a specified operation to restore the operating state of the cleaning component to normal.
[0208] Optionally, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The communication interface is used for communication between the electronic device and other devices.
[0209] The above-mentioned memory may include RAM, or may include non-volatile memory (non-volatile memory), for example, at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the above-mentioned processor.
[0210] As an example, the memory 706 may include, but is not limited to, the first driving unit 602, the detection unit 604, and the first control unit 606 in the mobile control device of the cleaning device. In addition, it may also include, but is not limited to, other module units in the mobile control device of the cleaning device, which will not be repeated in this example.
[0211] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0212] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0213] It can be understood by those skilled in the art that Figure 7 The structure shown is for illustration only. The device for implementing the mobile control method of the above-mentioned cleaning device may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 7 Different configurations shown.
[0214] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.
[0215] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0216] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0217] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0218] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0219] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
[0220] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0221] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling the movement of a cleaning device, characterized in that: include: In response to the acquired rotation instruction, the rotating component of the cleaning device is driven to rotate by the rotation driving component of the cleaning device to control the swinging component of the cleaning device to swing, wherein one end of the swinging component is connected to the cleaning component, and during the swinging of the swinging component, the cleaning component switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning component is swung toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning component is retracted toward the inside of the cleaning device; Detecting a detection trigger element on the rotating component by a detection component on the rotating drive component to determine the operating state of the cleaning component, wherein the detection trigger element is used to control the position to which the rotating component is allowed to rotate; When it is determined that the operating state of the cleaning component is abnormal, the cleaning device is controlled to perform a specified operation to restore the operating state of the cleaning component to normal.
2. The method according to claim 1, characterized in that The detecting trigger element on the rotating component is detected by the detecting component on the rotating driving component to determine the operating state of the cleaning component, including: In the case where the first detection trigger element on the rotating component is detected by the first detection component on the rotating driving component, it is determined that the rotating component rotates to a first preset position along the first rotation direction, wherein, in the first preset position, the cleaning component is in the outward swing state and is outwardly swung to the outermost position allowed to be outwardly swung; When the second detection trigger element on the rotating component is detected by the second detection component on the rotating drive component, it is determined that the rotating component is rotated to the second preset position along the second rotation direction, wherein, in the second preset position, the cleaning component is in the retracted state and retracted to the innermost position allowed to be retracted.
3. The method according to claim 2, characterized in that The rotating component is connected to the rotating driving component through a gear, the first detection trigger element is a tooth protruding from the gear, the second detection trigger element is another tooth protruding from the gear, and the first detection trigger element and the second detection trigger element are located on both sides of the rotating driving component.
4. The method according to claim 2, characterized in that: After determining that the rotating component rotates to a first preset position along the first rotation direction, the method further includes: The first detection component sends an outward swing-to-position instruction to the rotation driving component to instruct the rotation driving component to stop driving the rotation component to continue rotating along the first rotation direction.
5. The method according to claim 2, characterized in that: After determining that the rotating component rotates to a first preset position along the first rotation direction, the method further includes: In response to the acquired first state switching instruction, the rotating component is driven by the rotating driving component to rotate along the second rotation direction, so as to control the working state of the cleaning component to switch from the outward swing state to the inward retracted state.
6. The method according to claim 2, characterized in that After determining that the rotating component rotates to a second preset position along a second rotation direction, the method further includes: The second detection component sends a retracting instruction to the rotation driving component to instruct the rotation driving component to stop driving the rotation component to continue rotating along the second rotation direction.
7. The method according to claim 2, characterized in that After determining that the rotating component rotates to a second preset position along a second rotation direction, the method further includes: In response to the acquired second state switching instruction, the rotating component is driven by the rotating driving component to rotate along the first rotation direction, so as to control the working state of the cleaning component to switch from the retracted state to the outward swing state.
8. The method according to claim 2, characterized in that: The detecting trigger element on the rotating component is detected by the detecting component on the rotating driving component to determine the operating state of the cleaning component, and further includes: In the process of driving the rotating component to rotate along the first rotation direction by the rotation driving component, if the first detection component does not detect the first detection trigger element within a first time range, determining that the outer swing state of the cleaning device is abnormal; When the rotating component is driven by the rotating driving component to rotate along the second rotating direction, if the second detection module does not detect the second detection triggering element within a second time range, it is determined that the retracted state of the cleaning device is abnormal.
9. The method according to claim 8, characterized in that When it is determined that the operating state of the cleaning component is abnormal, controlling the cleaning device to perform a specified operation so that the operating state of the cleaning component returns to normal includes: When it is determined that the outward swing state of the cleaning device is abnormal, driving the rotating component to rotate along the second rotation direction by the rotation driving component; When the second detection module detects the second detection triggering element within a third time range, it is determined that the operating state of the cleaning device returns to normal.
10. The method according to claim 9, characterized in that The method further comprises: When the second detection module fails to detect the second detection trigger element within the third time range, the rotation driving component is controlled to stop driving the rotation component to rotate, and an abnormal alarm message is issued.
11. The method according to claim 8, characterized in that When it is determined that the operating state of the cleaning component is abnormal, controlling the cleaning device to perform a specified operation so that the operating state of the cleaning component returns to normal includes: When it is determined that the retracted state of the cleaning device is abnormal, controlling the cleaning device to move a distance along a target direction, and driving the rotating component to rotate along the second rotation direction through the rotation driving component; When the second detection module detects the second detection triggering element within a fourth time range, it is determined that the operating state of the cleaning device returns to normal.
12. The method according to claim 11, characterized in that The method further comprises: When the second detection module fails to detect the second detection trigger element within the fourth time range, the rotation driving component is controlled to stop driving the rotation component to rotate, and an abnormal alarm message is issued.
13. The method according to any one of claims 1 to 12, characterized in that The method further comprises: Acquiring location information of the cleaning device, wherein the location information of the cleaning device is used to indicate the location of the cleaning device in the cleaning area; When it is determined according to the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is less than or equal to a preset distance threshold, a first rotation instruction is generated, wherein the first rotation instruction is used to instruct the rotation driving component to drive the driving component to rotate along a first rotation direction; When it is determined based on the position information of the cleaning device that the distance between the cleaning device and the edge of the cleaning area is greater than a preset distance threshold and the cleaning component is in the outward swing state, a second rotation instruction is generated, wherein the second rotation instruction is used to instruct the rotation driving component to drive the driving component to rotate along a second rotation direction.
14. A mobile control device for cleaning equipment, characterized in that: include: a first driving unit, configured to drive the rotating component of the cleaning device to rotate through the rotating driving component of the cleaning device in response to the acquired rotation instruction, so as to control the swinging component of the cleaning device to swing, wherein one end of the swinging component is connected to the cleaning component, and during the swinging of the swinging component, the cleaning component switches between an outward swing state and an inward retracted state, the outward swing state is a state in which at least a part of the cleaning component is swung toward the outside of the cleaning device, and the inward retracted state is a state in which at least a part of the cleaning component is retracted toward the inside of the cleaning device; a detection unit, configured to detect a detection trigger element on the rotating component through a detection component on the rotating drive component to determine an operating state of the cleaning component, wherein the detection trigger element is configured to identify a rotation position of the rotating component; The first control unit is used to control the cleaning device to perform a specified operation to restore the operating state of the cleaning component to normal when it is determined that the operating state of the cleaning component is abnormal.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 13 when executed.
16. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 13 through the computer program.
Citation Information
Cited By
Base station control method, base station, cleaning system and computer readable storage medium
CN120918532A
