Mode switching task processing method and apparatus, electronic device, and storage medium
By judging the status of the end effector in the self-driving sweeper, determining the execution strategy and executing the cleaning mode switching instructions, the problem of low cleaning efficiency and incomplete cleaning in the existing technology is solved, and intelligent switching and accurate feedback are achieved.
Patent Information
- Application Number
- PCT/CN2023/119020
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-18
- Filing Date
- 2023-09-15
- Publication Date
- 2024-10-24
AI Technical Summary
When existing self-driving sweepers receive cleaning mode switching instructions, their execution strategies are relatively simple, resulting in low cleaning efficiency and incomplete cleaning.
When the cleaning operation controller receives the operation mode switching instruction, it determines the idle state of the end effector, determines whether the execution strategy is waiting for execution or immediate execution, and executes the instruction based on the strategy, and feeds back the execution status to the automatic driving controller.
It realizes intelligent switching of cleaning operation modes without human control, improves cleaning efficiency and thoroughness, and ensures accurate feedback on the execution of instructions.
Smart Images

Figure CN2023119020_24102024_PF_FP_ABST
Abstract
Description
Mode switching task processing method, device, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 18, 2023, with application number 202310417205.9, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of autonomous driving technology, and for example, to a mode switching task processing method, device, electronic device, and storage medium. Background Art
[0003] The application of autonomous driving technology in ground vehicles has matured. It is efficient, safe, and can extend vehicle lifespan. Applying autonomous driving technology to street sweepers can replace drivers, significantly increasing their operating hours and ensuring they can consistently maintain a clean environment.
[0004] As unmanned street sweepers become more versatile, they can now operate in multiple cleaning modes. During operation, the autonomous driving controller issues cleaning mode switching instructions based on current road conditions. In related technologies, the lower-level actuator immediately switches to the correct cleaning mode upon receiving the command. This can lead to a relatively simple cleaning mode execution strategy, resulting in low cleaning efficiency and incomplete cleaning.
[0005] Summary of the Invention
[0006] The present application provides a mode switching task processing method, device, electronic device and storage medium, so as to achieve the effect of effectively executing the instructions under the execution conditions after judging the current state of the end effector. At the same time, it achieves the effect of intelligent switching of the cleaning operation mode under the premise of unmanned control, and feeds back the execution feedback information to the automatic driving controller, so as to achieve the effect of accurate feedback of the instruction execution status.
[0007] According to one aspect of the present application, a mode switching task processing method is provided, which is applied to an unmanned sweeper, and the method includes:
[0008] When the cleaning operation controller receives the operation mode switching instruction, determining an execution strategy corresponding to the operation mode switching instruction according to whether each end effector controlled by the cleaning operation controller is in an idle state, wherein the execution strategy includes waiting for execution or immediate execution;
[0009] Based on the execution strategy, the operation mode switching instruction is executed, and execution feedback information corresponding to the operation mode switching instruction is determined and fed back to the automatic driving controller in the unmanned sweeper.
[0010] According to another aspect of the present application, a mode switching task processing device is provided, which is applied to an unmanned sweeper, and includes:
[0011] an execution strategy determination module configured to, when a cleaning operation controller receives an operation mode switching instruction, determine an execution strategy corresponding to the operation mode switching instruction based on whether each end effector controlled by the cleaning operation controller is in an idle state, wherein the execution strategy includes waiting for execution or immediate execution;
[0012] The instruction execution module is configured to execute the operation mode switching instruction based on the execution strategy, determine the execution feedback information corresponding to the operation mode switching instruction, and feed it back to the automatic driving controller in the unmanned sweeper.
[0013] According to another aspect of the present application, an electronic device is provided, comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the mode switching task processing method described in any embodiment of the present application.
[0017] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the mode switching task processing method described in any embodiment of the present application when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] FIG1 is a flowchart of a mode switching task processing method provided according to Embodiment 1 of the present application;
[0019] FIG2 is a flowchart of a mode switching task processing method provided according to a second embodiment of the present application;
[0020] FIG3 is a flowchart of a mode switching task processing method provided according to Embodiment 3 of the present application;
[0021] FIG4 is a schematic structural diagram of a mode switching task processing device provided according to a fourth embodiment of the present application;
[0022] FIG5 is a schematic structural diagram of an electronic device that implements the mode switching task processing method according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] Example 1
[0026] FIG1 is a flow chart of a mode switching task processing method provided in Example 1 of the present application. This embodiment is applicable to the case where an unmanned sweeper switches between cleaning modes during operation. The method can be executed by a mode switching task processing device, which can be implemented in the form of hardware and / or software and can be configured in a terminal and / or server. As shown in FIG1 , the method includes:
[0027] S110. When the cleaning operation controller receives an operation mode switching instruction, the cleaning operation controller determines an execution strategy corresponding to the operation mode switching instruction according to whether each end effector controlled by the cleaning operation controller is in an idle state.
[0028] In this embodiment, the cleaning operation controller can be a controller installed in the unmanned sweeper for controlling the cleaning equipment, and these cleaning equipment are also installed on the unmanned sweeper. Generally, an unmanned sweeper can be equipped with at least two controllers, one of which can be an automatic driving controller for controlling the vehicle's driving functions. This controller can be the master controller of the unmanned sweeper and can be understood as the vehicle's electronic control unit (ECU); the other controller is the cleaning operation controller.
[0029] In this embodiment, the operation mode switching instruction can be a pre-programmed program code that can be used to trigger the implementation of the cleaning operation mode switching process. In actual applications, the unmanned sweeper can be configured with multiple cleaning operation modes, and by switching between these cleaning operation modes, a thorough cleaning of the road can be achieved. The cleaning operation mode can include multiple modes, including a wash and sweep mode, a flush mode, a spray mode, an independent flush mode, a garbage disposal mode, an emergency stop mode, and a standby mode.
[0030] In this embodiment, the end effector may be a cleaning device provided on an unmanned sweeper, or may be understood as an actuator provided on an unmanned sweeper for executing a cleaning operation mode. The end effector may include multiple types, and may optionally include a spray brush, a nozzle, an atomizing nozzle, a suction cup, and a cleaning brush, etc. The execution strategy may be a pre-set strategy for processing the received operation mode switching instruction. Optionally, the execution strategy may include waiting for execution or immediate execution. Among them, waiting for execution may be understood as not responding to the operation mode switching instruction when the operation mode switching instruction is received, and then processing the received instruction when it is detected that the instruction execution conditions are met; immediate execution may be understood as processing the instruction immediately when the operation mode switching instruction is received.
[0031] Based on this, before the cleaning operation controller receives the operation mode switching instruction, it also includes: based on the automatic driving controller in the unmanned sweeper, obtaining the road condition information of the road on which the unmanned sweeper is located; based on the automatic driving controller, processing the road condition information to generate an operation mode switching instruction and sending it to the cleaning operation controller.
[0032] Among them, the road condition information is collected based on the radar device and / or camera device pre-deployed on the unmanned sweeper. In this embodiment, the road condition information can be information that characterizes the sanitary condition of the road surface and the road surface condition. Optionally, the road surface condition can include whether the road surface is flat, whether the road surface is dry, and whether there are obstacles on the road surface. The radar device can be a device that identifies an object by emitting microwaves and receiving reflected waves. The radar device can be any device, and optionally, it can include at least one of an ultrasonic radar, a laser radar, a microwave radar, and a millimeter wave radar. In actual applications, when the unmanned sweeper is working, the road condition information of the road where the unmanned sweeper is located can be collected by using the radar device and / or camera device pre-installed on the unmanned sweeper, and the collected road condition information is sent to the automatic driving controller.
[0033] In actual applications, when the automatic driving controller receives the road condition information of the unmanned sweeper, it can analyze and process the road condition information to generate an operation mode switching instruction based on the analysis and processing results, and then send the operation mode switching instruction to the cleaning operation controller.
[0034] In a specific implementation, during the driving of the unmanned sweeper, the automatic driving controller set in the unmanned sweeper can receive the road condition information of the current road of the vehicle, and judge the cleaning mode suitable for the current road based on the received road condition information. Then, based on the judgment result, an operation mode switching instruction can be generated, and the operation mode switching instruction can be sent to the cleaning operation controller. When the cleaning operation controller receives the operation mode switching instruction, it can first judge the working status of each end effector controlled by the cleaning operation controller. That is to say, the cleaning operation controller can judge whether the unmanned sweeper is in the execution process of any cleaning operation mode when receiving the operation mode switching instruction, so that the execution strategy corresponding to the received operation mode switching instruction can be determined according to whether each end effector is in an idle state.
[0035] S120: Based on the execution strategy, execute the operation mode switching instruction, determine the execution feedback information corresponding to the operation mode switching instruction, and feed it back to the automatic driving controller in the unmanned sweeper.
[0036] In this embodiment, after determining the execution strategy, the received operating mode switching instruction can be executed based on the execution strategy, thereby determining execution feedback information corresponding to the operating mode switching instruction. The execution feedback information can be feedback information generated during or after instruction execution, used to characterize the execution status of the instruction. For example, the execution feedback information may include an end effector operating status indicator, execution failure information, and instruction execution result information.
[0037] In actual applications, after determining the corresponding execution strategy according to the working status of each end effector, the received operation mode switching instruction can be executed according to the determined execution strategy. For example, if the execution strategy is waiting for execution, it can be said that the end effector is currently in a working state. At this time, the received operation mode switching instruction can be set to a waiting state first. At the same time, an exit execution instruction can be sent to the end effector that is in a working state to control the corresponding end effector to shut down. When it is detected that all the end effectors in a working state are shut down, the received operation mode switching instruction can be executed; if the execution strategy is immediate execution, when the operation mode switching instruction is received, the operation mode switching instruction can be executed according to the pre-set instruction execution process; during the instruction execution process or after the instruction execution is completed, the execution feedback information corresponding to the operation mode switching instruction is determined, and the execution feedback information is sent to the automatic driving controller in the unmanned sweeper, so that the automatic driving controller can control the execution status of the instruction at any time, thereby achieving the effect of no omission of instruction control.
[0038] In actual applications, during the operation of the unmanned sweeper, when an emergency occurs, the vehicle's working mode can be switched from the current working mode to the emergency stop mode to control the vehicle to suspend work. Therefore, among the multiple cleaning working modes included in the unmanned sweeper, the priority of the emergency stop mode can be set to the highest. Then, when a switching trigger operation for the emergency stop mode is detected, the switching trigger operation can be responded to according to an execution logic different from other cleaning working modes, thereby ensuring the driving safety of the vehicle.
[0039] On the basis of the above-mentioned technical solutions, it also includes: in response to the switching trigger operation for the emergency stop mode, the main switch corresponding to the end effector is disconnected, and the current cleaning operation mode corresponding to the unmanned sweeper is determined and stored; in response to the release trigger operation for the emergency stop mode, the stored current cleaning operation mode is read, and the current cleaning operation mode is continued to be executed.
[0040] In this embodiment, an emergency stop mode control can be pre-set on the unmanned sweeper or on a central control platform corresponding to the unmanned sweeper. When a trigger operation on the control is detected, it can be determined that the emergency stop mode switching operation has been triggered. Alternatively, the unmanned sweeper can determine that the appropriate cleaning operation mode at the current moment is the emergency stop mode after analyzing the received road condition information. In this case, an operating mode switching instruction corresponding to the emergency stop mode can be generated, and this instruction can be used as a switching trigger operation for the emergency stop mode. The current operating mode can be the cleaning operation mode that the unmanned sweeper is executing when the emergency stop mode switching trigger operation is detected.
[0041] In actual applications, when a switching trigger operation for the emergency stop mode is detected, the cleaning operation controller can respond to the switching trigger operation, determine the current working mode corresponding to the unmanned sweeper and store it, and at the same time, control the main switch corresponding to the end effector to be disconnected so that the end effector remains in the action state before the main switch is disconnected. When the release trigger operation for the emergency stop mode is detected, the previously stored current working mode can be read, thereby controlling the corresponding end effector to continue to execute the current working mode.
[0042] The technical solution of the embodiment of the present application is to determine the execution strategy corresponding to the operation mode switching instruction according to whether each end effector controlled by the cleaning operation controller is in an idle state when the cleaning operation controller receives the operation mode switching instruction, execute the operation mode switching instruction based on the execution strategy, determine the execution feedback information corresponding to the operation mode switching instruction and feed it back to the automatic driving controller in the unmanned sweeper, thereby solving the problem in the related technology that the lower computer actuator will immediately switch the cleaning mode when receiving the cleaning mode switching instruction, which may result in a relatively simple cleaning mode execution strategy, resulting in low cleaning efficiency and incomplete cleaning. It achieves the effect of effectively executing the instruction under the execution conditions after judging the current state of the end effector, and at the same time, achieves the effect of intelligent switching of the cleaning operation mode under the premise of unmanned control, and feeds back the execution feedback information to the automatic driving controller, thereby achieving the effect of accurate feedback on the instruction execution status.
[0043] Example 2
[0044] FIG2 is a flow chart of a method for processing a mode switching task according to a second embodiment of the present application. Based on the aforementioned embodiment, if each end effector controlled by the cleaning operation controller is in an idle state, the execution strategy is determined to be immediate execution, and the operation mode switching instruction can be executed according to the execution strategy. Technical terms that are identical or corresponding to those in the aforementioned embodiment are not further described here.
[0045] As shown in FIG2 , the method includes:
[0046] S210. When the cleaning operation controller receives an operation mode switching instruction, if each end effector controlled by the cleaning operation controller is in an idle state, the execution strategy corresponding to the operation mode switching instruction is determined to be immediate execution.
[0047] In this embodiment, the idle state can be understood as a non-working state, that is, the end effectors are all in an initial state.
[0048] In actual applications, when the cleaning operation controller receives an operation mode switching instruction, it can first determine whether each end effector controlled by the cleaning operation controller is in an idle state, and then determine the corresponding execution strategy based on the judgment result. If each end effector controlled by the cleaning operation controller is in an idle state, the execution strategy corresponding to the operation mode switching instruction can be determined as immediate execution, so that the operation mode switching instruction can be executed according to the execution strategy.
[0049] S220. Determine whether each end effector controlled by the cleaning operation controller is in a non-fault state. In response to each end effector controlled by the cleaning operation controller being in a non-fault state, execute S230. In response to at least one end effector controlled by the cleaning operation controller being in a fault state, execute S240.
[0050] In this embodiment, after determining that each end effector controlled by the cleaning controller is in an idle state, it is possible to determine whether each end effector is in a non-fault state, and thus determine the subsequent execution steps based on the determination result. The non-fault state is the state corresponding to when the end effector can operate normally.
[0051] In actual application, when the cleaning operation controller receives the operation mode switching instruction and determines that each end effector controlled by the cleaning operation controller is in an idle state, it can be determined whether each end effector is in a non-fault state. If it is determined that each end effector is in a non-fault state, S230 can be executed. If it is determined that any end effector in each end effector is not in a non-fault state, S240 can be executed.
[0052] S230: Execute the operation mode switching instruction based on the preset instruction execution process.
[0053] In this embodiment, if it is determined that each end effector controlled by the cleaning controller is in a non-faulty state, the operation mode switching instruction can be executed according to a pre-set instruction execution process. The instruction execution process can be a pre-set execution process corresponding to the operation mode switching instruction.
[0054] In actual applications, after determining that each end effector controlled by the cleaning operation controller is in an idle state and in a non-fault state, the operation mode switching instruction can be executed according to a pre-set instruction execution process.
[0055] Optionally, based on a pre-set instruction execution process, an operation mode switching instruction is executed, including: based on the operation mode switching instruction, determining the target cleaning operation mode after switching; according to a pre-built mapping relationship, determining the end effector combination corresponding to the target cleaning operation mode, and controlling each end effector in the end effector combination to perform actions according to the corresponding execution process.
[0056] In this embodiment, the target cleaning operation mode may be the cleaning operation mode executed by the unmanned cleaning vehicle after executing the operation mode switching process, corresponding to the operation mode switching instruction. A mapping relationship may be used to characterize the correspondence between cleaning operation modes and end effector combinations. In practical applications, for each cleaning operation mode included in the unmanned cleaning vehicle, an end effector combination for executing the cleaning operation mode may be predetermined, and the cleaning operation mode and its corresponding end effector combination may be associated to establish a mapping relationship between the cleaning operation mode and the end effector combination. Thus, after determining the target cleaning operation mode, the end effector combination corresponding to the target cleaning operation mode may be determined based on the mapping relationship. The end effector combination may be a combination consisting of at least one end effector that executes the corresponding cleaning operation mode. For example, if the end effectors included in the unmanned cleaning vehicle include end effector 1, end effector 2, ..., end effector N, the end effector combination corresponding to the target cleaning operation mode may be an end effector combination consisting of end effector 2, end effector 4, and end effector 6.
[0057] In this embodiment, the execution process may be a pre-set cleaning action execution process corresponding to the corresponding end effector.
[0058] In actual applications, after determining that each end effector controlled by the cleaning operation controller is in an idle state and in a non-fault state, the operation mode switching instruction can be parsed to determine the target cleaning operation mode corresponding to the operation mode switching instruction. The end effector combination corresponding to the target cleaning operation mode can be determined based on a pre-constructed mapping relationship for characterizing the correspondence between the cleaning operation mode and the end effector combination. Then, each end effector included in the determined end effector combination can be controlled to act according to the corresponding execution process.
[0059] S240. Send an execution intention inquiry instruction to the automatic driving controller, and execute the operation mode switching instruction based on the received instruction feedback information corresponding to the execution intention inquiry instruction.
[0060] In this embodiment, for any end effector controlled by the cleaning operation controller, if the end effector is not in a non-faulty state, an execution intention query instruction can be generated and sent to the autonomous driving controller. The execution intention query instruction can be a pre-written program code that queries the autonomous driving controller regarding the execution intention of switching the operation mode. The instruction feedback information can include feedback information corresponding to the execution intention. Optionally, the instruction feedback information can include information such as whether the execution is approved or not approved.
[0061] In actual applications, when it is determined that any end effector controlled by the cleaning operation controller is not in a non-fault state, an execution intention inquiry instruction can be generated and sent to the automatic driving controller, so that the automatic driving controller can judge the current state of the unmanned sweeper, determine whether the operation mode switching instruction can continue to be executed in the current state, and generate instruction feedback information corresponding to the execution intention inquiry instruction, and feed back the instruction feedback information to the cleaning operation controller. The cleaning operation controller can execute the operation mode switching instruction according to the received instruction feedback information.
[0062] Optionally, based on the received instruction feedback information corresponding to the execution intention inquiry instruction, an operation mode switching instruction is executed, including: if the received instruction feedback information corresponding to the execution intention inquiry instruction is to continue execution, then based on the instruction execution process, the operation mode switching instruction is executed; if the received instruction feedback information corresponding to the execution intention inquiry instruction is not to continue execution, then the execution of the operation mode switching instruction is terminated.
[0063] In actual applications, when the cleaning operation controller receives instruction feedback information corresponding to the execution intention inquiry instruction, the instruction feedback information can be parsed. If the received instruction feedback information is to continue execution, the target cleaning operation mode after switching can be determined based on the operation mode switching instruction. Then, according to the pre-built mapping relationship, the end effector combination corresponding to the target cleaning operation mode is determined, and each end effector in the end effector combination is controlled to act according to the corresponding execution process; if the received instruction feedback information is not to continue execution, the execution of the operation mode switching instruction can be terminated.
[0064] S250: Determine the execution feedback information corresponding to the operation mode switching instruction and feed it back to the automatic driving controller in the unmanned sweeper.
[0065] The technical solution of the embodiment of the present application is as follows: when the cleaning operation controller receives the operation mode switching instruction, if each end effector controlled by the cleaning operation controller is in an idle state, the execution strategy corresponding to the operation mode switching instruction is determined to be immediate execution; then, it is determined whether each end effector controlled by the cleaning operation controller is in a non-fault state; in response to each end effector controlled by the cleaning operation controller being in a non-fault state, the operation mode switching instruction is executed based on a pre-set instruction execution process; in response to at least one end effector controlled by the cleaning operation controller being in a fault state, an execution intention query instruction is sent to the automatic driving controller; based on the received instruction feedback information corresponding to the execution intention query instruction, the operation mode switching instruction is executed; finally, execution feedback information corresponding to the operation mode switching instruction is determined and fed back to the automatic driving controller in the unmanned cleaning vehicle, thereby achieving the effect of effectively executing the instruction after judging the current state of the end effector and meeting the execution conditions; at the same time, achieving the effect of intelligently switching the cleaning operation mode under the premise of unmanned control; and feeding back the execution feedback information to the automatic driving controller, achieving the effect of accurately feedback the instruction execution status.
[0066] Example 3
[0067] FIG3 is a flowchart of a method for processing a mode switching task according to a third embodiment of the present application. Based on the aforementioned embodiment, if any end effector controlled by the cleaning operation controller is not in an idle state, the execution strategy is determined to be waiting for execution, and the operation mode switching instruction can be executed according to the execution strategy. Technical terms that are the same as or corresponding to those in the aforementioned embodiments are not further described here.
[0068] As shown in FIG3 , the method includes:
[0069] S310. When the cleaning operation controller receives an operation mode switching instruction, for the end actuator controlled by the cleaning operation controller, if any end actuator controlled by the cleaning operation controller is not in an idle state, the execution strategy corresponding to the operation mode switching instruction is determined to wait for execution.
[0070] In actual applications, when the cleaning operation controller receives an operation mode switching instruction, it can first determine whether each end effector controlled by the cleaning operation controller is in an idle state, and then determine the corresponding execution strategy based on the judgment result. For each end effector controlled by the cleaning operation controller, if any end effector controlled by the cleaning operation controller is not in an idle state, the execution strategy corresponding to the operation mode switching instruction can be determined as waiting for execution, so that the operation mode switching instruction can be executed according to the execution strategy.
[0071] S320: Put the operation mode switching instruction into a pre-created instruction waiting queue, and send a mode exit instruction to each end effector in the end effector combination corresponding to the current cleaning operation mode.
[0072] In this embodiment, the command waiting queue can be a database pre-created in the cleaning operation controller for storing received commands. The command waiting queue can be any queue, optionally a Redis server. The mode exit command can be a pre-written program code that controls the end effector to exit the current cleaning operation mode and return to its original state. The current cleaning operation mode can be the cleaning operation mode that the end effector was executing when the operation mode switch command was received.
[0073] In actual applications, after determining that any end effector controlled by the cleaning operation controller is not in an idle state, it can be determined that the end effector is currently executing the cleaning operation mode. At this time, the received operation mode switching instruction can be placed in a pre-created instruction waiting queue. At the same time, the end effector combination corresponding to the current cleaning operation mode can be determined based on a pre-constructed mapping relationship for characterizing the correspondence between the cleaning operation mode and the end effector combination. Then, a mode exit instruction is sent to each end effector included in the determined end effector combination, so that the operation mode switching instruction can be executed according to the instruction feedback information corresponding to the mode exit instruction fed back by each end effector.
[0074] S330 , executing the operation mode switching instruction according to the instruction feedback information corresponding to the mode exit instruction fed back by each end effector.
[0075] In this embodiment, the instruction feedback information may include feedback information corresponding to the mode exit intention. Optionally, the instruction feedback information may include information such as whether to agree to exit or not.
[0076] In actual applications, when each end effector included in the end effector combination corresponding to the current cleaning operation mode receives a mode exit instruction, for each end effector that receives the mode exit instruction, the end effector can determine the instruction feedback information corresponding to the mode exit instruction based on its corresponding current working state and feed it back to the cleaning operation controller. The cleaning operation controller can execute the operation mode switching instruction based on the instruction feedback information fed back by each end effector.
[0077] Optionally, based on the instruction feedback information corresponding to the mode exit instruction fed back by each end effector, the operation mode switching instruction is executed, including: if each instruction feedback information is to agree to exit, each end effector in the end effector combination corresponding to the current cleaning operation mode is restored to the corresponding original state, and the execution strategy is updated to immediate execution, so as to execute the operation mode switching instruction based on the updated execution strategy; if there is at least one instruction feedback information that does not agree to exit, then the execution of the operation mode switching instruction is terminated.
[0078] In this embodiment, the original state may be a state corresponding to when the end effector is not working, and may also be understood as an initial state corresponding to when the end effector is set on the unmanned sweeper.
[0079] In actual applications, after the cleaning operation controller receives the instruction feedback information corresponding to the mode exit instruction from the end effector, each instruction feedback information can be parsed. If each instruction feedback information is in agreement with the exit, each end effector in the end effector combination corresponding to the current cleaning operation mode can be controlled to perform the exit action, and each end effector actuator can be controlled to retract the operation so that each end effector included in the end effector combination is restored to the corresponding original state. At the same time, the execution strategy can be updated to immediate execution, and the operation mode switching instruction can be executed based on the updated execution strategy; for each instruction feedback information received by the cleaning operation controller, if the instruction feedback information is not in agreement with the exit, the execution of the operation mode switching instruction can be terminated.
[0080] S340: Determine the execution feedback information corresponding to the operation mode switching instruction and feed it back to the automatic driving controller in the unmanned sweeper.
[0081] The technical solution of the embodiment of the present application is that when the cleaning operation controller receives the operation mode switching instruction, for each end effector controlled by the cleaning operation controller, if any end effector is not in an idle state, the execution strategy corresponding to the operation mode switching instruction is determined to wait for execution, and then the operation mode switching instruction is placed in a pre-created instruction waiting queue, and a mode exit instruction is sent to each end effector in the end effector combination corresponding to the current cleaning operation mode. After that, the operation mode switching instruction is executed according to the instruction feedback information corresponding to the mode exit instruction fed back by each end effector. Finally, the execution feedback information corresponding to the operation mode switching instruction is determined and fed back to the automatic driving controller in the unmanned sweeper, so as to achieve the effect of effectively executing the instruction after judging the current state of the end effector under the execution conditions, and at the same time, the effect of intelligently switching the cleaning operation mode under the premise of unmanned control is achieved, and the execution feedback information is fed back to the automatic driving controller, so as to achieve the effect of accurate feedback on the instruction execution status.
[0082] Example 4
[0083] FIG4 is a schematic diagram of the structure of a mode switching task processing device provided in a fourth embodiment of the present application. As shown in FIG4 , the device includes: an execution strategy determination module 410 and an instruction execution module 420 .
[0084] An execution strategy determination module 410 is configured to, when a cleaning operation controller receives an operation mode switching instruction, determine an execution strategy corresponding to the operation mode switching instruction based on whether each end effector controlled by the cleaning operation controller is in an idle state, wherein the execution strategy includes waiting for execution or immediate execution;
[0085] The instruction execution module 420 is configured to execute the operation mode switching instruction based on the execution strategy, determine the execution feedback information corresponding to the operation mode switching instruction, and feed it back to the automatic driving controller in the unmanned sweeper.
[0086] The technical solution of the embodiment of the present application is to determine the execution strategy corresponding to the operation mode switching instruction according to whether each end effector controlled by the cleaning operation controller is in an idle state when the cleaning operation controller receives the operation mode switching instruction, execute the operation mode switching instruction based on the execution strategy, determine the execution feedback information corresponding to the operation mode switching instruction and feed it back to the automatic driving controller in the unmanned sweeper, thereby solving the problem in the related technology that the lower computer actuator will immediately switch the cleaning mode when receiving the cleaning mode switching instruction, which may result in a relatively simple cleaning mode execution strategy, resulting in low cleaning efficiency and incomplete cleaning. It achieves the effect of effectively executing the instruction under the execution conditions after judging the current state of the end effector, and at the same time, achieves the effect of intelligent switching of the cleaning operation mode under the premise of unmanned control, and feeds back the execution feedback information to the automatic driving controller, thereby achieving the effect of accurate feedback on the instruction execution status.
[0087] Optionally, the device further includes: a road condition information acquisition module and an instruction generation module.
[0088] a road condition information acquisition module configured to acquire road condition information of the road on which the unmanned sweeper is located based on the automatic driving controller in the unmanned sweeper, wherein the road condition information is collected based on a radar device and / or a camera device pre-deployed on the unmanned sweeper;
[0089] The instruction generation module is configured to process the road condition information based on the automatic driving controller to generate an operation mode switching instruction and send it to the cleaning operation controller.
[0090] Optionally, the execution strategy determination module 410 includes: an execution strategy first determination submodule and an execution strategy second determination submodule.
[0091] an execution strategy first determination submodule, configured to determine the execution strategy corresponding to the operation mode switching instruction as immediate execution if each end effector controlled by the cleaning operation controller is in an idle state;
[0092] The second execution strategy determination submodule is set to target the end effector controlled by the cleaning operation controller. If any end effector controlled by the cleaning operation controller is not in an idle state, the execution strategy corresponding to the operation mode switching instruction is determined to be waiting for execution.
[0093] Optionally, the execution strategy is immediate execution, and the instruction execution module 420 includes: a state determination unit, an instruction execution unit, and an instruction sending unit.
[0094] a state determination unit configured to determine whether each end effector controlled by the cleaning operation controller is in a non-fault state;
[0095] an instruction execution unit configured to execute the operation mode switching instruction based on a preset instruction execution process in response to each end effector controlled by the cleaning operation controller being in a non-fault state;
[0096] The instruction sending unit is configured to send an execution intention inquiry instruction to the automatic driving controller in response to at least one end effector controlled by the cleaning operation controller being in a faulty state, and execute the operation mode switching instruction based on the received instruction feedback information corresponding to the execution intention inquiry instruction.
[0097] Optionally, the instruction execution unit includes: an operation mode determination subunit and an executor combination determination subunit.
[0098] an operation mode determination subunit, configured to determine a target cleaning operation mode after switching based on the operation mode switching instruction;
[0099] The actuator combination determination subunit is configured to determine the end actuator combination corresponding to the target cleaning operation mode according to a pre-established mapping relationship, and control each end actuator in the end actuator combination to act according to the corresponding execution process.
[0100] Optionally, the instruction sending unit includes: an instruction execution subunit and an instruction end execution subunit.
[0101] an instruction execution subunit configured to execute the operation mode switching instruction based on the instruction execution process if the received instruction feedback information corresponding to the execution intention inquiry instruction is to continue execution;
[0102] The instruction termination execution subunit is configured to terminate the execution of the operation mode switching instruction if the received instruction feedback information corresponding to the execution intention inquiry instruction is not to continue execution.
[0103] Optionally, the execution strategy is waiting for execution, and the instruction execution module 420 further includes: an exit instruction sending unit and an instruction execution unit.
[0104] an exit instruction sending unit, configured to place the operation mode switching instruction into a pre-created instruction waiting queue, and send a mode exit instruction to each end effector combination corresponding to the current cleaning operation mode;
[0105] The instruction execution unit is configured to execute the operation mode switching instruction according to instruction feedback information corresponding to the mode exit instruction fed back by each end effector.
[0106] Optionally, the instruction execution unit includes: an execution strategy update subunit and an instruction end execution subunit.
[0107] an execution strategy updating subunit configured to restore each end effector in the end effector combination corresponding to the current cleaning operation mode to a corresponding original state if each instruction feedback information indicates an agreement to exit, and update the execution strategy to immediate execution, so as to execute the operation mode switching instruction based on the updated execution strategy;
[0108] The instruction termination execution subunit is configured to terminate the execution of the operation mode switching instruction if at least one instruction feedback information indicates that the exit is not agreed.
[0109] Optionally, the device further includes: a trigger operation response module and a current cleaning operation mode reading module.
[0110] In response to a switching trigger operation for the emergency stop mode, the main switch corresponding to the end effector is turned off, and the current cleaning operation mode corresponding to the unmanned sweeper is determined and stored;
[0111] In response to the release trigger operation for the emergency stop mode, the stored current cleaning operation mode is read and the current cleaning operation mode is continued.
[0112] The mode switching task processing device provided in the embodiment of the present application can execute the mode switching task processing method provided in any embodiment of the present application, and has a functional module corresponding to the execution method.
[0113] Example 5
[0114] FIG5 shows a block diagram of an electronic device 10 that can be used to implement an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0115] As shown in FIG5 , the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 and a random access memory (RAM) 13, that is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the ROM 12 or loaded from the storage unit 18 into the RAM 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0116] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0117] The processor 11 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the mode switching task processing method.
[0118] In some embodiments, the mode switching task processing method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, at least one step of the mode switching task processing method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the mode switching task processing method in any other appropriate manner (for example, by means of firmware).
[0119] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), system on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in at least one computer program that is executable and / or interpreted on a programmable system comprising at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0120] Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0121] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM (Erasable Programmable Read-Only Memory) or a flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0122] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (Cathode Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0123] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0124] A computing system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. The client-server relationship arises through computer programs running on the respective computers and establishing a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and virtual private server (VPS) services.
[0125] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of this application can be achieved. This is not limited herein.
[0126] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. A mode switching task processing method, the method being applied to an unmanned sweeper, comprising: When the cleaning operation controller receives the operation mode switching instruction, determining the execution strategy corresponding to the operation mode switching instruction according to whether each end effector controlled by the cleaning operation controller is in an idle state, wherein the execution strategy includes waiting for execution or immediate execution; Based on the execution strategy, the operation mode switching instruction is executed, and execution feedback information corresponding to the operation mode switching instruction is determined and fed back to the automatic driving controller in the unmanned sweeper.
2. The method according to claim 1, further comprising: Based on the automatic driving controller in the unmanned road sweeper, road condition information of the road on which the unmanned road sweeper is located is obtained, wherein the road condition information is collected based on at least one of a radar device and a camera device pre-deployed on the unmanned road sweeper; The road condition information is processed based on the automatic driving controller to generate an operation mode switching instruction and send it to the cleaning operation controller.
3. The method according to claim 1, wherein: The step of determining the execution strategy corresponding to the operation mode switching instruction according to whether each end effector controlled by the cleaning operation controller is in an idle state comprises: In response to each end effector controlled by the cleaning operation controller being in an idle state, determining the execution strategy corresponding to the operation mode switching instruction to be immediate execution; For the end effectors controlled by the cleaning operation controller, in response to any end effector controlled by the cleaning operation controller not being in an idle state, the execution strategy corresponding to the operation mode switching instruction is determined as waiting for execution.
4. The method according to claim 3, wherein: The execution strategy is immediate execution, and executing the operation mode switching instruction based on the execution strategy includes: Determining whether each end effector controlled by the cleaning operation controller is in a non-fault state; In response to each end effector controlled by the cleaning operation controller being in a non-fault state, executing the operation mode switching instruction based on a preset instruction execution process; In response to at least one end effector being controlled by the cleaning operation controller The device is in a fault state, sends an execution intention inquiry instruction to the automatic driving controller, and executes the operation mode switching instruction according to the received instruction feedback information corresponding to the execution intention inquiry instruction.
5. The method according to claim 4, wherein: The step of executing the operation mode switching instruction based on a preset instruction execution process includes: Based on the operation mode switching instruction, determining a target cleaning operation mode after switching; According to the pre-constructed mapping relationship, the end effector combination corresponding to the target cleaning operation mode is determined, and each end effector in the end effector combination is controlled to act according to the corresponding execution process.
6. The method according to claim 4, wherein: The step of executing the operation mode switching instruction according to the received instruction feedback information corresponding to the execution intention inquiry instruction includes: In response to the received instruction feedback information corresponding to the execution intention inquiry instruction being to continue execution, based on the instruction execution process, executing the operation mode switching instruction; In response to the received instruction feedback information corresponding to the execution intention inquiry instruction not to continue execution, the execution of the operation mode switching instruction is terminated.
7. The method according to claim 3, wherein: The execution strategy is waiting for execution, and executing the operation mode switching instruction based on the execution strategy includes: Put the operation mode switching instruction into a pre-created instruction waiting queue, and send a mode exit instruction to each end effector combination corresponding to the current cleaning operation mode; The operation mode switching instruction is executed according to instruction feedback information corresponding to the mode exit instruction fed back by each end effector.
8. The method according to claim 7, wherein: The step of executing the operation mode switching instruction according to instruction feedback information corresponding to the mode exit instruction fed back by each end effector comprises: In response to each instruction feedback information being an agreement to exit, each end effector in the end effector combination corresponding to the current cleaning operation mode is restored to a corresponding original state, and the execution strategy is updated to be executed immediately, so as to execute the operation mode switching instruction based on the updated execution strategy; In response to at least one instruction feedback information indicating that the exit is not approved, the execution of the operation mode switching instruction is terminated.
9. The method according to claim 1, further comprising: In response to a switching trigger operation for an emergency stop mode, a main switch corresponding to the end effector is disconnected, and a current cleaning operation mode corresponding to the unmanned cleaning vehicle is determined and stored; In response to the release trigger operation for the emergency stop mode, the stored current cleaning operation mode is read and the current cleaning operation mode is continuously executed.
10. A mode switching task processing device, the device being applied to an unmanned sweeper, comprising: an execution strategy determination module, configured to determine, when the cleaning operation controller receives an operation mode switching instruction, an execution strategy corresponding to the operation mode switching instruction according to whether each end effector controlled by the cleaning operation controller is in an idle state, wherein the execution strategy includes waiting for execution or immediate execution; The instruction execution module is configured to execute the operation mode switching instruction based on the execution strategy, determine the execution feedback information corresponding to the operation mode switching instruction and feed it back to the automatic driving controller in the unmanned sweeper.
Citation Information
Patent Citations
Road sweeper operation system and road sweeper operation control method
CN109356061A
Sweeper operation state automatic control system and automatic control method
CN111042034A
Execution method and device, equipment and storage medium
CN113791843A
Control method, device and equipment based on automatic road surface sweeping of vehicle and vehicle
CN114103994A
Unmanned sweeper control method and device, electronic equipment and cloud control platform
CN115097838A
Cited By
Multi-modal data processing method supporting multi-task switching and related equipment
CN120245085A
