A task generation method, device, electronic device and storage medium
By displaying the facility model that simulates real scenes on the interface, users can simply associate the model to generate task configuration components and define task execution information, solving the problems of high threshold for task generation and poor flexibility in the existing technology, and achieving high universality and flexibility in task generation.
Patent Information
- Application Number
- CN202510158401.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-12
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2045-02-12
AI Technical Summary
In the prior art, generating robot handling tasks requires technicians to have code writing capabilities, resulting in high usage thresholds and poor universality. When task requirements change, scripts need to be modified or re-written, which has poor flexibility.
Provide a task generation method, which displays a facility model that simulates real scenes through the interface. Users can simply associate the model as the starting point and end point of the task, trigger the display of task configuration components, and users define task execution information through task configuration controls to generate target tasks.
Improve the universality of task generation, allowing non-code writing personnel to participate in the generation, and task configuration can be quickly modified in the interface, significantly improving flexibility.
Smart Images

Figure CN119645385B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation technology, and in particular to a task generation method, device, electronic device and storage medium. Background Art
[0002] With the development of automation technology, robots are taking on more and more handling tasks. In the simulation verification stage of simulation scenarios such as logistics warehouses and production plants, technicians will generate handling tasks by manually writing scripts according to the established handling process and handling methods. Then the technicians operate the simulation software, and the robots in the simulation software perform the generated handling tasks in the simulation environment, thereby verifying the smoothness and rationality of cargo handling in the constructed logistics warehouses, production plants and other simulation scenarios. Therefore, accurately and efficiently generating robot handling tasks has become a key link in simulation verification.
[0003] However, the above-mentioned method of generating the transport task requires the technician to have the ability to write code, which results in a high threshold for use of the method and poor universality. In addition, once the demand for the transport task changes or the transport task needs to be adjusted according to the verification results, the script needs to be modified or even rewritten, which results in poor flexibility of the method. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a task generation method, device, electronic device and storage medium to improve the universality and flexibility of task generation. The specific technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a task generation method, the method comprising:
[0006] Display models of facilities used to simulate real scenarios in the interface;
[0007] In response to an association operation on the model displayed in the interface, a first task configuration component is displayed in the interface, wherein the starting point and the end point in the first task configuration component are the model at the starting position and the model at the ending position of the association operation, respectively, and the first task configuration component further includes: at least one task configuration control;
[0008] Acquiring task execution information based on a configuration operation on a task configuration control in the first task configuration component;
[0009] A target task is generated based on the starting point, the end point and the task execution information.
[0010] Optionally, in response to an association operation on the model displayed in the interface, displaying a first task configuration component in the interface includes:
[0011] In response to an association operation on a model displayed in the interface, acquiring attribute information of the model targeted by the association operation;
[0012] The starting point and the end point in the template component are respectively set to the model at the starting position and the model at the ending position of the association operation, and the control parameters of the task configuration control included in the template component are determined according to the attribute information of the model targeted by the association operation to obtain the first task configuration component;
[0013] The first task configuration component is displayed in the interface.
[0014] Optionally, generating a target task based on the starting point, the end point and the task execution information includes:
[0015] According to the preset data mapping rules, the starting point, the end point and the task execution information are respectively filled into the corresponding fields in the template task to generate the target task, wherein the template task includes: fields corresponding to the starting point, the end point and various types of task execution information.
[0016] Optionally, the at least one task configuration control includes: a point selection mode setting control;
[0017] The acquiring task execution information based on the configuration operation of the task configuration control in the first task configuration component includes:
[0018] In response to a trigger operation on the point selection mode setting control, a point selection mode setting window is displayed, wherein the point selection mode setting window includes: an entity sub-window and a point position sub-window, the entity sub-window is used to set a method for selecting a target device from at least one device included in the facility corresponding to the model, and the point position sub-window is used to set a method for selecting a target point position from preset points around the facility corresponding to the model;
[0019] Based on the configuration operation of the point selection mode setting window, the point selection mode of the task is determined.
[0020] Optionally, in response to an association operation on the model displayed in the interface, displaying a first task configuration component in the interface includes:
[0021] In response to an associated operation on the model displayed in the interface, creating a new business;
[0022] In the area corresponding to the new service in the task configuration window, displaying the service identifier and the first task configuration component of the new service;
[0023] After generating the target task based on the starting point, the end point and the task execution information, the method further includes:
[0024] A corresponding relationship between the new business and the target task is established.
[0025] Optionally, the first task configuration component further includes: an associated task adding control;
[0026] The method further comprises:
[0027] In response to a trigger operation of adding a control to the associated task, a second task configuration component is displayed in the area corresponding to the new business in the task configuration window, a start point, an end point and task execution information of the associated task are acquired based on a configuration operation of the task configuration control in the second task configuration component, the associated task is generated based on the start point, the end point and the task execution information of the associated task, and a corresponding relationship between the new business and the associated task is established;
[0028] The second task configuration component includes: a starting point setting control, an end point setting control and a trigger condition setting control, and the trigger condition setting options in the trigger condition setting control are associated with the target task.
[0029] Optionally, the at least one task configuration control includes: a task name setting control, an execution object setting control, an execution object locking control, a trigger condition setting control, a task status setting control, a route selection mode setting control and / or a reverse control;
[0030] The acquiring task execution information based on the configuration operation of the task configuration control in the first task configuration component includes:
[0031] Determining a name of the task based on a configuration operation of the task name setting control;
[0032] and / or,
[0033] Determining an execution object of the task based on a configuration operation of setting a control for the execution object;
[0034] and / or,
[0035] Based on the configuration operation of the execution object locking control, the execution object of the task and the target task are locked to limit the execution object to only execute the target task and the tasks associated with the target task;
[0036] and / or,
[0037] Determining a trigger condition of a task based on a configuration operation of the trigger condition setting control;
[0038] and / or,
[0039] Determining the execution state of the task based on the configuration operation of the task state setting control, wherein the execution state includes: enabled and disabled;
[0040] and / or,
[0041] Based on the configuration operation of the route selection mode setting control, determining the selection mode of the execution route of the task, wherein the selection mode of the execution route includes: randomly selecting a route from a plurality of routes, cyclically selecting a route from a plurality of routes, selecting a route from a plurality of routes according to a preset ratio of each route, and specifying a route from a plurality of routes;
[0042] and / or,
[0043] In response to the triggering operation on the reverse control, the starting point and the end point of the task are swapped, and the task execution information corresponding to the starting point and the end point of the task are swapped.
[0044] Optionally, the first task configuration component further includes: a task deletion control and / or a task copy control;
[0045] The method further comprises:
[0046] In response to a trigger operation on the task deletion control, deleting the first task configuration component from the interface, and deleting the task execution information obtained based on the first task configuration component;
[0047] and / or,
[0048] In response to a trigger operation on the task copy control, a third task configuration component identical to the first task configuration component is displayed in the interface, and task execution information obtained based on the first task configuration component is set as task execution information corresponding to the third task configuration component.
[0049] Optionally, after generating the target task based on the starting point, the end point and the task execution information, the method further includes:
[0050] When the execution condition of the target task is met, the execution status of the target task according to the task execution information of the target task is displayed in the interface.
[0051] Optionally, the association operation is a line connection operation, the starting point is the model at the starting position of the line connection operation, and the end point is the model at the terminating position of the line connection operation.
[0052] Optionally, before displaying the first task configuration component in the interface, the method further includes:
[0053] Determine whether there is a fourth task configuration component in the generated task configuration components, wherein the starting point in the fourth task configuration component is the same as the model at the starting position of the associated operation, and / or the ending point in the fourth task configuration component is the same as the model at the ending position of the associated operation;
[0054] If the fourth task configuration component exists, adding the model targeted by the association operation to the starting point and / or the end point in the fourth task configuration component;
[0055] If the fourth task configuration component does not exist, the step of displaying the first task configuration component in the interface is performed.
[0056] In a second aspect, an embodiment of the present application provides a task generation device, the device comprising:
[0057] A model display module is used to display models of facilities used to simulate real scenes in the interface;
[0058] A component display module, configured to display a first task configuration component in the interface in response to an association operation on the model displayed in the interface, wherein the starting point and the end point in the first task configuration component are the model at the starting position and the model at the ending position of the association operation, respectively, and the first task configuration component further comprises: at least one task configuration control;
[0059] An information acquisition module, used to acquire task execution information based on a configuration operation on a task configuration control in the first task configuration component;
[0060] The task generation module is used to generate a target task based on the starting point, the end point and the task execution information.
[0061] Optionally, the component display module includes:
[0062] an attribute information acquisition unit, configured to, in response to an association operation on a model displayed in the interface, acquire attribute information of the model targeted by the association operation;
[0063] A component generation unit, used to set the starting point and the end point in the template component to the model at the starting position and the model at the ending position of the association operation respectively, and determine the control parameters of the task configuration control included in the template component according to the attribute information of the model targeted by the association operation, so as to obtain a first task configuration component;
[0064] A display unit is used to display the first task configuration component in the interface.
[0065] Optionally, the task generation module is specifically used to:
[0066] According to the preset data mapping rules, the starting point, the end point and the task execution information are respectively filled into the corresponding fields in the template task to generate the target task, wherein the template task includes: fields corresponding to the starting point, the end point and various types of task execution information.
[0067] Optionally, when the at least one task configuration control includes: a point selection mode setting control, the information acquisition module is specifically used to:
[0068] In response to a trigger operation on the point selection method setting control, a point selection method setting window is displayed, wherein the point selection method setting window includes: an entity sub-window and a point position sub-window, the entity sub-window is used to set a method for selecting a target device from at least one device included in the facility corresponding to the model, and the point position sub-window is used to set a method for selecting a target point from preset points around the facility corresponding to the model; based on the configuration operation on the point selection method setting window, the point selection method of the task is determined.
[0069] Optionally, the component display module includes:
[0070] A business creation unit, configured to create a new business in response to an associated operation on the model displayed in the interface;
[0071] A display unit, configured to display a service identifier and a first task configuration component of the new service in an area corresponding to the new service in the task configuration window;
[0072] The device further comprises: a correspondence establishing unit, configured to establish a correspondence between the new service and the target task after the task generating module generates the target task.
[0073] Optionally, the first task configuration component further includes: an associated task adding control;
[0074] The component display module is further configured to display a second task configuration component in the area corresponding to the new business in the task configuration window in response to a trigger operation of adding a control to the associated task; wherein the second task configuration component includes: a starting point setting control, an end point setting control, and a trigger condition setting control, and the trigger condition setting options in the trigger condition setting control are associated with the target task;
[0075] The information acquisition module is further used to acquire the starting point, end point and task execution information of the associated task based on the configuration operation of the task configuration control in the second task configuration component;
[0076] The task generation module is further used to generate the associated task based on the starting point, end point and task execution information of the associated task, and establish a corresponding relationship between the new business and the associated task.
[0077] Optionally, when the at least one task configuration control includes: a task name setting control, an execution object setting control, an execution object locking control, a trigger condition setting control, a task status setting control, a route selection mode setting control and / or a reverse control,
[0078] The information acquisition module is specifically used for:
[0079] Determine the name of the task based on the configuration operation of setting the control for the task name; and / or determine the execution object of the task based on the configuration operation of setting the control for the execution object;
[0080] and / or,
[0081] Based on the configuration operation of the execution object locking control, the execution object of the task and the target task are locked to limit the execution object to only execute the target task and the tasks associated with the target task;
[0082] and / or,
[0083] Determining a trigger condition of a task based on a configuration operation of the trigger condition setting control;
[0084] and / or,
[0085] Determining the execution state of the task based on the configuration operation of the task state setting control, wherein the execution state includes: enabled and disabled;
[0086] and / or,
[0087] Based on the configuration operation of the route selection mode setting control, determining the selection mode of the execution route of the task, wherein the selection mode of the execution route includes: randomly selecting a route from a plurality of routes, cyclically selecting a route from a plurality of routes, selecting a route from a plurality of routes according to a preset ratio of each route, and specifying a route from a plurality of routes;
[0088] and / or,
[0089] In response to the triggering operation on the reverse control, the starting point and the end point of the task are swapped, and the task execution information corresponding to the starting point and the end point of the task are swapped.
[0090] Optionally, the first task configuration component further includes: a task deletion control and / or a task copy control;
[0091] The device also includes:
[0092] a component deletion module, configured to delete the first task configuration component from the interface in response to a trigger operation on the task deletion control, and to delete the task execution information acquired based on the first task configuration component;
[0093] and / or,
[0094] The component display module is also used to display a third task configuration component that is identical to the first task configuration component in the interface in response to a trigger operation on the task copy control, and to set the task execution information obtained based on the first task configuration component as the task execution information corresponding to the third task configuration component.
[0095] Optionally, the device further includes: a task execution status display module, configured to display in the interface an execution status of the target task executed according to the task execution information of the target task when the execution conditions of the target task are met.
[0096] Optionally, the association operation is a line connection operation, the starting point is the model at the starting position of the line connection operation, and the end point is the model at the terminating position of the line connection operation.
[0097] Optionally, the component display module is specifically used for:
[0098] In response to an association operation on the model displayed in the interface, determine whether there is a fourth task configuration component in the generated task configuration components; if the fourth task configuration component exists, add the model targeted by the association operation to the starting point and / or end point in the fourth task configuration component; if the fourth task configuration component does not exist, display the first task configuration component in the interface, wherein the starting point in the fourth task configuration component is the same as the model at the starting position of the association operation, and / or the end point in the fourth task configuration component is the same as the model at the ending position of the association operation.
[0099] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0100] Memory, used to store computer programs;
[0101] The processor is used to implement any method described in the first aspect when executing a program stored in the memory.
[0102] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any method described in the first aspect is implemented.
[0103] Beneficial effects of the embodiments of the present application:
[0104] In the solution provided by the embodiment of the present application, the electronic device can display a model for simulating facilities in a real scene in an interface; in response to an association operation on the model displayed in the interface, a first task configuration component is displayed in the interface, wherein the starting point and the end point in the first task configuration component are the model at the starting position and the model at the ending position of the association operation, respectively, and the first task configuration component also includes: at least one task configuration control; based on the configuration operation on the task configuration control in the first task configuration component, task execution information is obtained; based on the starting point, the end point and the task execution information, a target task is generated.
[0105] In the above scheme, the electronic device can provide an interface for displaying a model of facilities in a simulated real scene. The user only needs to simply associate the displayed model as the starting point and end point of the task on the interface to trigger the display of the task configuration component. The task configuration control contained in the component allows the user to define the task execution information through simple configuration operations rather than code writing. Then the electronic device can obtain the starting point, end point and task execution information of the task based on the user's simple association operation and configuration operation, and generate the target task based on the acquired information, thereby significantly improving the universality of task generation, so that people who do not have code writing ability can also participate in the generation of tasks. In addition, since the configuration of the task can be completed through the interface displayed by the electronic device, when the task requirements change or the task needs to be adjusted according to the verification results, the user can quickly and flexibly modify the relevant information of the task in the interface without modifying the script or rewriting the script, thereby greatly improving the flexibility of task generation.
[0106] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0107] 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, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0108] Figure 1 A flowchart of a task generation method provided in an embodiment of the present application;
[0109] Figure 2a Based on Figure 1 A schematic diagram of the interface of the illustrated embodiment;
[0110] Figure 2b Based on Figure 2a A schematic diagram of performing a connection operation in an interface in the embodiment shown;
[0111] Figure 3 Based on Figure 1 A schematic diagram of a first task configuration component of the illustrated embodiment;
[0112] Figure 4 Based on Figure 3 A schematic diagram of a point selection method setting window of the illustrated embodiment;
[0113] Figure 5 Based on Figure 3 A specific schematic diagram of the first task configuration component of the illustrated embodiment;
[0114] Figure 6 Based on Figure 1 A schematic diagram of a second task configuration component of the illustrated embodiment;
[0115] Figure 7 Based on Figure 1 A schematic diagram of a specific flow chart of the task generation method of the illustrated embodiment;
[0116] Figure 8 Based on Figure 7 A schematic diagram of a task configuration window of the illustrated embodiment;
[0117] Fig. 9 Based on Figure 8 A specific schematic diagram of the task configuration window of the illustrated embodiment;
[0118] Fig.10a A schematic diagram of a task configuration component provided in an embodiment of the present application;
[0119] Fig.10b Another schematic diagram of a task configuration component provided in an embodiment of the present application;
[0120] Fig.10c A schematic diagram of an endpoint setting window provided in an embodiment of the present application;
[0121] Fig.11 A schematic diagram of the structure of a task generation device provided in an embodiment of the present application;
[0122] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0123] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0124] In order to improve the universality and flexibility of task generation, the embodiments of the present application provide a task generation method, device, electronic device, computer-readable storage medium and computer program product. The task generation method provided in the embodiments of the present application is first introduced below.
[0125] The task generation method provided in the embodiment of the present application can be applied to any electronic device with a display screen or an external display screen, such as a mobile phone, a computer, a tablet computer, etc., without specific limitation here. For the sake of clear description, it is referred to as an electronic device below.
[0126] like Figure 1 As shown, a task generation method includes:
[0127] S101, displaying a model of facilities in a real scene in an interface.
[0128] S102: In response to an association operation on a model displayed in the interface, display a first task configuration component in the interface.
[0129] The starting point and the end point in the first task configuration component are respectively the model at the starting position and the model at the ending position of the associated operation, and the first task configuration component further includes: at least one task configuration control.
[0130] S103: Acquire task execution information based on a configuration operation on a task configuration control in the first task configuration component.
[0131] S104, generating a target task based on the starting point, the end point and the task execution information.
[0132] In the scheme provided by the embodiment of the present application, the electronic device can provide an interface for displaying a model of a facility in a simulated real scene, and the user only needs to simply associate the displayed model on the interface as the starting point and end point of the task to trigger the display of the task configuration component. The task configuration control included in the component allows the user to define the task execution information through simple configuration operations rather than code writing. Then the electronic device can obtain the starting point, end point and task execution information of the task based on the user's simple association operation and configuration operation, and generate the target task based on the information obtained, thereby significantly improving the universality of task generation, so that people who do not have code writing ability can also participate in the generation of tasks. In addition, since the configuration of the task can be completed through the interface displayed by the electronic device, when the demand for the task changes or the task needs to be adjusted according to the verification result, the user can quickly and flexibly modify the relevant information of the task in the interface without modifying the script or rewriting the script, thereby greatly improving the flexibility of task generation.
[0133] First, the application scenario of the task generation method provided in the embodiment of the present application is introduced:
[0134] The task generation method provided in the embodiment of the present application can be applied to simulation verification scenarios as well as to actual robot control scenarios.
[0135] In the simulation verification scenario, the user can build simulation scenarios such as logistics warehouses and production plants in the interface of the software installed on the electronic device by adding various models for simulating facilities in real scenes (such as shelves, workstations, loading areas, etc.), adjusting the positions of various models, and setting the attribute information of various models. Then, the electronic device can display these models for simulating facilities in real scenes in its interface, and then execute the above steps S101-S104 to generate tasks. Finally, the electronic device can verify the smoothness and rationality of cargo handling in the constructed simulation scene through the execution of the above tasks by the objects in the simulation scene.
[0136] In an actual robot control scenario, users can add various facilities in real scenes (such as shelves, workstations, loading areas, etc.) in the form of models to the interface in the software installed on the electronic device based on the relevant information of the facilities in real scenes such as logistics warehouses and production plants, and adjust the positions of these models according to the relative positions between the facilities in the real scene, and set the attribute information of the models, so as to construct a control scene corresponding to the real scene. Then, the electronic device can display these models used to simulate the facilities in the real scene in its interface, and then execute the above steps S101-S104 to generate tasks. Finally, the electronic device can send the generated tasks to the control device of the robot so that the control device controls the robot to perform the tasks generated by the electronic device.
[0137] It should be noted that the above model can be a model corresponding to a single facility in a real scene, or a model corresponding to a facility set composed of multiple facilities in a real scene, and no specific limitation is made here. For example, each model may include: a model corresponding to a single shelf in a real scene, and / or a model corresponding to a storage area composed of multiple shelves in a real scene.
[0138] The following is an introduction to the specific implementation of the task generation method provided in the embodiment of the present application:
[0139] When a task needs to be generated, the electronic device can display the various models created to simulate the facilities in the real scene in the interface. Figure 2a For example, the electronic device can display models such as shelf 201, storage workstation 202, outbound workstation 203, and sorting workstation 204 in its interface. It should be noted that the model displayed by the electronic device can be a two-dimensional model or a three-dimensional model, and this application does not limit the specific type of the model.
[0140] For the models displayed in the interface, users can associate the models displayed in the interface through connection operations, click operations, and other association operations according to actual usage needs. Figure 2b As shown, the user can connect from the warehousing workstation 202 to the shelf 201 to associate the warehousing workstation 202 with the shelf 201.
[0141] When the electronic device detects the user's association operation, it can determine the model at the starting position and the model at the ending position of the association operation. Then, the electronic device can set the starting point and the ending point in the template component to the model at the starting position and the model at the ending position of the association operation, and can obtain the attribute information of the model targeted by the association operation, and determine the control parameters of the task configuration control included in the template component according to the obtained attribute information of the model. Thus, the first task configuration component is generated based on the template component.
[0142] For example, if the user's associated operation is to connect from the warehousing workstation to the shelf, the electronic device can set the starting point and the end point in the template component to the warehousing workstation and the shelf respectively, and can obtain the attribute information of the warehousing workstation and the shelf. Assume that the attribute information of the warehousing workstation includes "the robot used to transport the goods of the warehousing workstation is a Class A robot", and the attribute information of the shelf includes "randomly select the robot's docking point from the points around the shelf". Then the electronic device can select the setting option of the execution object setting control included in the template component as a Class A robot (that is, determine the control parameters of the execution object setting control as a Class A robot), and select the setting option of the point selection method setting control included in the template component as random selection (that is, determine the control parameters of the point selection method setting control as random selection).
[0143] After generating the first task configuration component, the electronic device can display it, and then the user can configure the task configuration control in the displayed first task configuration component. At this time, the user can configure the task configuration control of the undetermined control parameters in the first task configuration component to set additional task related information, or configure the task configuration control of the electronic device that has determined the control parameters when generating the first task configuration component to modify the default task related information, which is not specifically limited here. Among them, the first task configuration component can be displayed in the form of a task card, or in the form of a window, or in the form of text typesetting, which is not specifically limited here.
[0144] The electronic device can obtain task execution information based on the user's configuration operation on the task configuration control in the first task configuration component. Furthermore, a template task can be stored in the electronic device, and the template task can include: fields corresponding to the starting point, end point and various types of task execution information. In this way, after the electronic device determines the starting point, end point and task execution information of the task, it can fill the starting point, end point and task execution information into the corresponding fields in the template task according to the preset data mapping rules to generate the target task. Among them, the specific type of task configuration control and the specific type of task execution information will be described in detail in subsequent embodiments and will not be repeated here.
[0145] Corresponding to the above two application scenarios, in the simulation verification scenario, after the electronic device generates the target task, it can display the execution status of the target task in accordance with the task execution information of the target task in the interface if the execution conditions of the target task are met. So that the user can view the smoothness and rationality of the cargo handling in the simulation scenario through the execution status. In the actual robot control scenario, after the electronic device generates the target task, it can send the target task to the robot's control device so that the control device can control the robot in real scenes such as logistics warehouses and production plants to execute the generated target task.
[0146] In the scheme provided by the embodiment of the present application, the electronic device can provide an interface for displaying a model of a facility in a simulated real scene, and the user only needs to simply associate the displayed model on the interface as the starting point and end point of the task to trigger the display of the task configuration component. The task configuration control included in the component allows the user to define the task execution information through simple configuration operations rather than code writing. Then the electronic device can obtain the starting point, end point and task execution information of the task based on the user's simple association operation and configuration operation, and generate the target task based on the information obtained, thereby significantly improving the universality of task generation, so that people who do not have code writing ability can also participate in the generation of tasks. In addition, since the configuration of the task can be completed through the interface displayed by the electronic device, when the demand for the task changes or the task needs to be adjusted according to the verification result, the user can quickly and flexibly modify the relevant information of the task in the interface without modifying the script or rewriting the script, thereby greatly improving the flexibility of task generation.
[0147] As an implementation method of the present application, Figure 3 Taking the first task configuration component shown in the figure (the starting point and the end point of the component are "storage area 1" and "storage area 2" respectively) as an example, the at least one task configuration control may include Figure 3 At least one of the point selection mode setting control 301, the task name setting control 302 (the task name currently configured in the task name setting control 302 is "transport materials"), the execution object setting control 303, the execution object locking control 304, the trigger condition setting control 305, the task status setting control 306, the route selection mode setting control 307 (the route selection mode currently configured in the route selection mode setting control 307 is "random") and the reverse control 308. Based on the above task configuration controls, the electronic device can obtain various types of task execution information:
[0148] For the point selection mode setting control 301, the electronic device can obtain the point selection mode based on the configuration operation for the point selection mode setting control 301, specifically:
[0149] The point selection method may be a method of selecting a target device from multiple devices, or a method of selecting a target point from points around the device. For example, when the facility corresponding to the model is a sorting workstation, the point selection method may be a method of selecting a target sorting station from multiple sorting stations included in the sorting workstation, or a method of selecting a target point from multiple preset points around the sorting workstation to determine the robot's docking position.
[0150] Therefore, the electronic device may display a point selection mode setting window in response to a trigger operation on the point selection mode setting control 301, and then the electronic device determines the point selection mode of the task based on the configuration operation on the point selection mode setting window.
[0151] For example, the point selection setting window can be as follows Figure 4 As shown, it includes: an entity selection button 401 and a point selection button 402. When the user clicks the entity selection button 401, the electronic device can display an entity sub-window 403 in the point selection mode setting window. The entity sub-window can include a judgment condition setting control 4031 (i.e., a box identified by 4031) and a judgment type setting control 4032 (i.e., a box identified by 4032). The user can set a method for selecting a target device from at least one device included in the facility corresponding to the model by configuring the judgment condition setting control 4031 and the judgment type setting control 4032. The method for selecting a target device can include multiple judgment steps, and each judgment step is associated with each other through "AND" or "OR". Correspondingly, when the user clicks the point selection button 402, the electronic device can display a point sub-window in the point selection mode setting window. The point sub-window can also include a judgment type setting control and a judgment condition setting control. The user can set a method for selecting a target point from preset points around the facility corresponding to the model by configuring the judgment type setting control and the judgment condition setting control.
[0152] For the task name setting control 302, the electronic device can determine the name of the task based on the configuration operation for the task name setting control 302. For example, the user can input a task name in the task name setting control 302, or select a task name from a plurality of preset task names in the task name setting control 302, and accordingly, the electronic device can determine the task name input by the user as the name of the task, or determine the task name selected by the user as the name of the task.
[0153] For the execution object setting control 303, the electronic device can determine the execution object of the task based on the configuration operation for the execution object setting control 303. For example, the user can select an execution object from a plurality of preset execution objects (robot A, robot B, robot C, etc.) in the execution object setting control 303 according to the starting point, end point and actual use requirements of the task, and accordingly, the electronic device can determine the execution object selected by the user as the execution object of the task.
[0154] For the execution object lock control 304, the electronic device can lock the execution object of the task and the target task based on the configuration operation for the execution object lock control 304, so as to restrict the execution object to only execute the target task and the associated task of the target task. For example, the user can set the state of the execution object lock control 304 by clicking the execution object lock control 304. When the user sets the object lock control 304 to the start state, the electronic device locks the execution object of the task and the target task by adding identification information to the execution object of the task, so as to restrict the execution object to only execute the target task and the associated task call of the target task. Among them, the content of the associated task will be described in detail in the subsequent embodiments, and will not be repeated here.
[0155] For the trigger condition setting control 305, the electronic device can determine the trigger condition of the task based on the configuration operation of the trigger condition setting control 305. For example, after the user clicks the trigger condition setting control 305, the electronic device can display a trigger condition setting window, and the user can set the trigger condition in the trigger condition setting window. Accordingly, the electronic device can determine the trigger condition set by the user based on the trigger condition setting window as the trigger condition of the task.
[0156] For the task status setting control 306, the electronic device can determine the execution status of the task based on the configuration operation for the task status setting control 306. For example, the user can set the execution status of the task corresponding to the first task configuration component by clicking the task status setting control 306, wherein different execution statuses (enabled and disabled) of the task in the first task configuration component can be displayed in different colors, and accordingly, the electronic device can determine the execution status set by the user as the execution status of the task to indicate whether the task is to be executed after the task is generated.
[0157] For the route selection mode setting control 307, the electronic device can determine the selection mode of the execution route of the task based on the configuration operation of the route selection mode setting control 307. For example, there may be multiple drivable paths between the starting point and the end point of the task. On this basis, the user can determine the route selection mode from multiple preset selection modes (randomly selecting a route from multiple routes, cyclically selecting a route from multiple routes, selecting a route from multiple routes according to a preset ratio of each route, and specifying a route from multiple routes, etc.) in the route selection mode setting control 307 according to actual usage needs. Accordingly, the electronic device can determine the selection mode determined by the user as the selection mode of the execution route of the task.
[0158] For the above-mentioned reverse control 308, the electronic device can, in response to the triggering operation on the reverse control 308, swap the starting point and the end point of the task, and swap the task execution information corresponding to the starting point and the end point of the task. For example, after the user clicks the reverse control 308, the electronic device can change the starting point of the first task configuration component to the original end point, and change the end point of the first task configuration component to the original starting point, and redisplay the first task configuration component. In addition, the electronic device can also set the task execution information (point selection method, etc.) of the original end point previously set by the user as the task execution information of the current starting point, and set the task execution information (point selection method, etc.) of the original starting point previously set by the user as the task execution information of the current end point.
[0159] In the solution provided by the embodiment of the present application, the first task configuration component displayed by the electronic device may include multiple task configuration controls, which may cover multiple aspects such as point selection method, task name, execution object, execution object lock, trigger condition, task status, route selection method and / or reverse operation, and allow the user to customize the configuration according to actual needs. Therefore, the user can set various types of task execution information based on these task configuration controls, thereby improving the flexibility and accuracy of the electronic device in generating tasks.
[0160] As an implementation of the embodiment of the present application, the first task configuration component displayed by the electronic device may include at least one of an associated task adding control, a task deleting control, and a task copying control in addition to the above-mentioned task configuration control. Figure 5 For example, the associated task adding controls can be Figure 5 In addition, the first task configuration component may also include a composite control 502. After the user clicks the composite control 502, the first task configuration component may display a task deletion control and a task copy control. Based on the above controls, the electronic device may further adjust the generation of tasks:
[0161] For the associated task adding control, the electronic device may display the second task configuration component below the first task configuration component in response to a triggering operation on the associated task adding control.
[0162] like Figure 6 As shown, the second task configuration component may include: a starting point setting control 601 and an end point setting control 602. The user may manually input or select the starting point and end point of the associated task in the starting point setting control 601 and the end point setting control 602, or may first click the selection button in the starting point setting control 601 and the end point setting control 602, and then select a model from the model displayed in the interface for simulating facilities in real scenes as the starting point and end point of the associated task.
[0163] The second task configuration component may also include a trigger condition setting control 603, in which the trigger condition setting options are associated with the target task. Specifically, the trigger condition setting options in the second task configuration component may include triggering timings such as "target task completed", "target task leaves the starting point" and "target task arrives at the starting point" and delay condition setting options. Figure 6 As shown, in Figure 5 On the basis of the first task configuration component shown, in the second task configuration component displayed by triggering the associated task adding control, the trigger condition can be "delay 2s when the material transport task is completed", where "task completed" and "2s" are the trigger condition setting options associated with the target task (material transport task).
[0164] In addition, the second task configuration component may also include a point selection mode setting control, a task name setting control, an execution object setting control, an execution object locking control, a task status setting control, a route selection mode setting control and / or a reverse control. Accordingly, the electronic device can obtain the starting point, end point and task execution information of the associated task based on the configuration operation of the task configuration control in the second task configuration component, and generate the associated task based on the starting point, end point and task execution information of the associated task. Among them, the specific method of obtaining the starting point, end point and task execution information and generating the task is similar to the specific method of obtaining the starting point, end point and task execution information and generating the task in the aforementioned target task generation method, and will not be repeated here.
[0165] For the task deletion control, the electronic device can delete the first task configuration component from the interface and delete the task execution information obtained based on the first task configuration component in response to the trigger operation for the task deletion control. For example, when the user gives up generating the target task or wants to delete the generated target task, the user can click the task deletion control, and accordingly, the electronic device can delete the first task configuration component from the interface, that is, no longer display the first task configuration component, and delete the task execution information obtained based on the first task configuration component.
[0166] For the task copy control, in response to the trigger operation on the task copy control, the electronic device can display a third task configuration component that is the same as the first task configuration component in the interface, and set the task execution information obtained based on the first task configuration component as the task execution information corresponding to the third task configuration component. For example, when the user wants to make a slight change based on the target task to generate a new task, the user can click the task copy control, and accordingly, the electronic device can copy and display the task configuration component in the interface, and copy the task execution information corresponding to the task configuration component.
[0167] In the solution provided by the embodiment of the present application, the functions of task generation and management are further enriched by introducing associated task adding controls, task deleting controls and task copying controls. The associated task adding controls enable users to easily create subsequent tasks associated with the target task, and through flexible trigger condition settings, automatic connection and efficient scheduling between tasks are achieved. The task deleting controls provide a convenient means of cleaning, allowing users to revoke tasks that are no longer needed at any time, keeping the task list tidy and efficient. The task copying controls greatly improve the efficiency of task creation. Users can quickly copy and adjust existing tasks to generate new tasks without having to configure from scratch, which is particularly practical for scenarios where a large number of similar tasks need to be performed. These controls not only enhance the flexibility of task generation, but also significantly improve the convenience and efficiency of task management.
[0168] As an implementation method of the present application, Figure 7 As shown, when the electronic device executes the above step S102, it can be specifically implemented through steps S1021-S1022:
[0169] S1021: Create a new business in response to an association operation on a model displayed in the interface.
[0170] In scenarios such as logistics warehouses and production plants, a complete business is usually completed by associating multiple tasks. On this basis, in order to achieve the management of these multiple tasks and to more intuitively reflect the association relationship between the generated multiple tasks, the electronic device can create a new business in response to the association operation of the model displayed in the interface.
[0171] S1022: Displaying a service identifier and a first task configuration component of the new service in an area corresponding to the new service in the task configuration window.
[0172] When the electronic device displays the first task configuration component, it can first determine the area corresponding to the new service in the task configuration window. For example, if service A has been created before, the electronic device can determine the area corresponding to the new service below the area corresponding to service A in the task configuration window. The size of the area corresponding to the service can be fixed or increase with the number of tasks included in the service, which is not specifically limited here.
[0173] Electronic devices can then be Figure 8 In the area corresponding to the new service in the task configuration window shown, the service identifier of the new service (assuming it is "service B") and the first task configuration component are displayed.
[0174] It should be noted here that after the electronic device displays the first task configuration component, if the user triggers the associated task adding control 501 of the first task configuration component, then when the electronic device displays the second task configuration component, it can also display the second task configuration component in the area corresponding to the new business in the task configuration window. At this time, the display effects of the first task configuration component and the second task configuration component can be as follows: Fig. 9 shown.
[0175] Correspondingly, after the electronic device executes the above step S104 to generate the target task, it may further execute step S105:
[0176] S105, establishing a corresponding relationship between the new business and the target task.
[0177] After creating a new service and generating a target task, the electronic device can establish a corresponding relationship between the new service and the target task. In addition, after generating an associated task of the target task, the electronic device can also establish a corresponding relationship between the new service and the associated task. In this way, the execution of each task included in the new service can be triggered by triggering the execution of the new service.
[0178] In the solution provided by the embodiment of the present application, the electronic device can intuitively display the task configuration components of the new service and each task included in the task configuration window, which not only reduces the complexity of service settings, but also enhances the display of task relevance. In addition, the electronic device can also establish a corresponding relationship between the new service and each task included in it, which is convenient for unified management and execution.
[0179] As an implementation method of the embodiment of the present application, the above-mentioned association operation can be a connection operation, a click operation, etc.
[0180] When the associated operation is a connection operation, the starting point is the model at the start position of the connection operation, and the end point is the model at the end position of the connection operation. When the associated operation is a click operation, the starting point is the model at the first click position, and the end point is the model at the second click position.
[0181] In addition, the interface displayed by the electronic device may also include a task association option and a cargo flow association option. After the user selects the task association option, the model displayed in the interface may be associated through an association operation. At this time, the relationship between the models established is a task relationship. Accordingly, when the electronic device generates the first task configuration component, it may use the first template component. After the user selects the cargo flow association option, the model displayed in the interface may be associated through an association operation. At this time, the relationship between the models established is a cargo flow relationship. Accordingly, when the electronic device generates the first task configuration component, it may use the second template component.
[0182] Among them, because the task needs to have a corresponding execution object, the first template component can include an execution object setting control and an execution object locking control. However, the cargo flow only needs to reflect the flow direction of the cargo, so the second template component may not include an execution object setting control and an execution object locking control.
[0183] As an implementation of an embodiment of the present application, when the automatic association function is turned on, the electronic device can automatically add the model targeted by the association operation to the generated task configuration component, specifically:
[0184] In response to the association operation for the model displayed in the interface, the electronic device may first determine whether there is a fourth task configuration component in the generated task configuration components, that is, determine whether there is a task configuration component whose starting point is the same as the model at the starting position of the association operation, and / or whose end point is the same as the model at the end position of the association operation. If there is a fourth task configuration component, the electronic device may add the model targeted by the association operation to the starting point and / or end point in the fourth task configuration component.
[0185] For example, the model at the starting position of the associated operation is a storage workstation, and the model at the ending position of the associated operation is a shelf. In the generated task configuration components, the starting point and the ending point in task configuration component A are the storage workstation and the sorting workstation, respectively, and the starting point and the ending point in task configuration component B are the sorting workstation and the outbound workstation, respectively. Then, because the starting point in task configuration component A is the same as the model at the starting position of the associated operation, the electronic device can determine that there is a fourth task configuration component, that is, task configuration component A is the fourth task configuration component.
[0186] Then the electronic device can add the shelf (the model at the end position of the associated operation) to the end point in the task configuration component A. At this time, the end point in the task configuration component A also includes two models, namely the shelf and the sorting workstation. In this case, the electronic device can change the display effect of the task configuration component A from Fig.10a Change to Fig.10b , that is, the end point in the task configuration component A is changed from "sorting workstation" to "two target objects".
[0187] User clicks Fig.10b After clicking the drop-down button on the right side of "two target objects", the electronic device can display the endpoint setting window. The user can view the specific endpoints through the endpoint setting window and set whether each endpoint is enabled (that is, whether to determine the endpoint as the endpoint of the task when executing the task).
[0188] It should be noted that, for the above-mentioned route selection mode setting control 307, when the task configuration component includes only one starting point and one end point, the user can set the mode of selecting the target path among the multiple drivable paths between the starting point and the end point of the task based on the route selection mode setting control 307. When the task configuration component includes multiple starting points and / or multiple end points, the user can set the mode of selecting the target starting point among the starting points of the multiple starting points of the task and / or the mode of selecting the target end point among the multiple end points based on the route selection mode setting control 307.
[0189] For example, continuing with the above example, assuming that the user selects "random selection" from the multiple preset selection methods in the route selection method setting control 307, then when executing the task corresponding to the task configuration component A, the destination is randomly selected from the shelves and sorting workstations. Fig.10c In the destination setting window shown, the proportion of the sorting workstation is further set to 70% and the proportion of the shelf is set to 30% through the proportion setting control 1001. Then, when executing the task corresponding to the task configuration component A, the destination is selected from the shelf and the sorting workstation according to the selection ratio of 70% and 30% respectively.
[0190] also, Fig.10c The endpoint setting window shown may also include an enable setting button 1002, through which the user can set whether each endpoint is enabled. Fig.10c The end point setting window shown can also display the total of each ratio set by the user, so that the user can check the rationality of the ratio setting. After the setting is completed, the user can click the confirmation button to save the setting operation.
[0191] If the fourth task configuration component does not exist, the electronic device may generate and display a new task configuration component for the current associated operation, that is, the electronic device may display the first task configuration component in the interface.
[0192] In the solution provided by the embodiment of the present application, when there is a task configuration component in the generated task configuration component whose starting point is the same as the model at the starting position of the associated operation, and / or whose end point is the same as the model at the end position of the associated operation, the electronic device can automatically add the model targeted by the associated operation to the starting point and / or end point in the task configuration component, thereby automatically integrating the associated tasks. In addition, the task configuration component can also support users to flexibly configure the method of selecting a target starting point and / or target end point from multiple starting points and / or multiple end points, thereby meeting the user's diverse task generation needs.
[0193] Corresponding to the above-mentioned task generation method, the embodiment of the present application further provides a task generation device. The task generation device provided by the embodiment of the present application is introduced below.
[0194] like Fig.11 As shown, a task generating device comprises:
[0195] A model display module 1101 is used to display a model of facilities used to simulate a real scene in an interface;
[0196] The component display module 1102 is used to display a first task configuration component in the interface in response to an association operation on a model displayed in the interface, wherein the starting point and the end point in the first task configuration component are the model at the starting position and the model at the ending position of the association operation respectively, and the first task configuration component further includes: at least one task configuration control;
[0197] The information acquisition module 1103 is used to acquire task execution information based on the configuration operation of the task configuration control in the first task configuration component;
[0198] The task generation module 1104 is used to generate a target task based on the start point, the end point and the task execution information.
[0199] In the scheme provided by the embodiment of the present application, the electronic device can provide an interface for displaying a model of a facility in a simulated real scene, and the user only needs to simply associate the displayed model on the interface as the starting point and end point of the task to trigger the display of the task configuration component. The task configuration control included in the component allows the user to define the task execution information through simple configuration operations rather than code writing. Then the electronic device can obtain the starting point, end point and task execution information of the task based on the user's simple association operation and configuration operation, and generate the target task based on the information obtained, thereby significantly improving the universality of task generation, so that people who do not have code writing ability can also participate in the generation of tasks. In addition, since the configuration of the task can be completed through the interface displayed by the electronic device, when the demand for the task changes or the task needs to be adjusted according to the verification result, the user can quickly and flexibly modify the relevant information of the task in the interface without modifying the script or rewriting the script, thereby greatly improving the flexibility of task generation.
[0200] As an implementation of the embodiment of the present application, the component display module 1102 may include:
[0201] An attribute information acquisition unit, configured to, in response to an association operation on a model displayed in the interface, acquire attribute information of the model targeted by the association operation;
[0202] A component generation unit, used to set the starting point and the end point in the template component to the model at the starting position and the end position of the association operation respectively, determine the control parameters of the task configuration control included in the template component according to the attribute information of the model targeted by the association operation, and obtain the first task configuration component;
[0203] The display unit is used to display the first task configuration component in the interface.
[0204] As an implementation of the embodiment of the present application, the task generation module 1104 may be specifically used for:
[0205] According to the preset data mapping rules, the starting point, end point and task execution information are filled into the corresponding fields in the template task to generate the target task, wherein the template task includes: fields corresponding to the starting point, end point and various types of task execution information.
[0206] As an implementation of an embodiment of the present application, when the at least one task configuration control includes: a point selection mode setting control, the information acquisition module 1103 may be specifically used to:
[0207] In response to a trigger operation on a point selection method setting control, a point selection method setting window is displayed, wherein the point selection method setting window includes: an entity sub-window and a point position sub-window, the entity sub-window is used to set a method for selecting a target device from at least one device included in the facility corresponding to the model, and the point position sub-window is used to set a method for selecting a target point from preset points around the facility corresponding to the model; based on the configuration operation on the point selection method setting window, the point selection method of the task is determined.
[0208] As an implementation of the embodiment of the present application, the component display module 1102 may include:
[0209] A business creation unit, used to create a new business in response to an associated operation on a model displayed in the interface;
[0210] A display unit, used to display a service identifier and a first task configuration component of the new service in an area corresponding to the new service in the task configuration window;
[0211] The above device may also include:
[0212] The corresponding relationship establishing unit is used to establish a corresponding relationship between the new business and the target task after the task generating module 1104 generates the target task.
[0213] As an implementation method of the embodiment of the present application, the first task configuration component may further include: an associated task adding control;
[0214] The component display module 1102 may also be used to display a second task configuration component in the area corresponding to the new business in the task configuration window in response to a trigger operation of adding a control to the associated task; wherein the second task configuration component includes: a start point setting control, an end point setting control, and a trigger condition setting control, wherein the trigger condition setting options in the trigger condition setting control are associated with the target task;
[0215] The above-mentioned information acquisition module 1103 may also be used to acquire the starting point, end point and task execution information of the associated task based on the configuration operation of the task configuration control in the second task configuration component;
[0216] The task generation module 1104 may also be used to generate associated tasks based on the start point, end point and task execution information of the associated tasks, and establish a corresponding relationship between the new business and the associated tasks.
[0217] As an implementation of an embodiment of the present application, when the at least one task configuration control includes: a task name setting control, an execution object setting control, an execution object locking control, a trigger condition setting control, a task status setting control, a route selection mode setting control and / or a reverse control, the information acquisition module 1103 can be specifically used to:
[0218] Determining a name for the task based on a configuration operation for a task name setting control;
[0219] and / or,
[0220] Determine an execution object of the task based on a configuration operation of setting a control for the execution object;
[0221] and / or,
[0222] Based on the configuration operation of the execution object locking control, the execution object of the task and the target task are locked to restrict the execution object to only execute the target task and the tasks associated with the target task;
[0223] and / or,
[0224] Determine a trigger condition of the task based on a configuration operation for a trigger condition setting control;
[0225] and / or,
[0226] Determine the execution state of the task based on the configuration operation of the task state setting control, wherein the execution state includes: enabled and disabled;
[0227] and / or,
[0228] Determine a selection method for an execution route of the task based on a configuration operation of a route selection method setting control, wherein the selection method for the execution route includes: randomly selecting a route from a plurality of routes, cyclically selecting a route from a plurality of routes, selecting a route from a plurality of routes according to a preset ratio of each route, and specifying a route from a plurality of routes;
[0229] and / or,
[0230] In response to the trigger operation on the reverse control, the starting point and the end point of the task are swapped, and the task execution information corresponding to the starting point and the end point of the task is swapped.
[0231] As an implementation method of the embodiment of the present application, the first task configuration component may further include: a task deletion control and / or a task copy control;
[0232] The above-mentioned device may further include: a component deletion module, which is used to delete the first task configuration component from the interface in response to a trigger operation on the task deletion control, and delete the task execution information obtained based on the first task configuration component;
[0233] and / or,
[0234] The above-mentioned component display module 1102 can also be used to respond to a trigger operation on a task copy control, display a third task configuration component that is the same as the first task configuration component in the interface, and set the task execution information obtained based on the first task configuration component as the task execution information corresponding to the third task configuration component.
[0235] As an implementation of the embodiment of the present application, the above device may further include:
[0236] The task execution status display module is used to display the execution status of the target task according to the task execution information of the target task in the interface when the execution conditions of the target task are met.
[0237] As an implementation of an embodiment of the present application, the above-mentioned association operation can be a connection operation, the starting point is the model at the starting position of the connection operation, and the end point is the model at the ending position of the connection operation.
[0238] As an implementation of the embodiment of the present application, the above-mentioned component display module 1102 can be specifically used for:
[0239] In response to an association operation on a model displayed in the interface, determine whether a fourth task configuration component exists in the generated task configuration components; if the fourth task configuration component exists, add the model targeted by the association operation to the starting point and / or end point in the fourth task configuration component; if the fourth task configuration component does not exist, display the first task configuration component in the interface, wherein the starting point in the fourth task configuration component is the same as the model at the starting position of the association operation, and / or the end point in the fourth task configuration component is the same as the model at the ending position of the association operation.
[0240] The present application also provides an electronic device, such as Fig.12 As shown, including:
[0241] Memory 1201, used for storing computer programs;
[0242] The processor 1202 is used to implement the task generation method described in any of the above embodiments when executing the program stored in the memory 1201.
[0243] In the scheme provided by the embodiment of the present application, the electronic device can provide an interface for displaying a model of a facility in a simulated real scene, and the user only needs to simply associate the displayed model on the interface as the starting point and end point of the task to trigger the display of the task configuration component. The task configuration control included in the component allows the user to define the task execution information through simple configuration operations rather than code writing. Then the electronic device can obtain the starting point, end point and task execution information of the task based on the user's simple association operation and configuration operation, and generate the target task based on the information obtained, thereby significantly improving the universality of task generation, so that people who do not have code writing ability can also participate in the generation of tasks. In addition, since the configuration of the task can be completed through the interface displayed by the electronic device, when the demand for the task changes or the task needs to be adjusted according to the verification result, the user can quickly and flexibly modify the relevant information of the task in the interface without modifying the script or rewriting the script, thereby greatly improving the flexibility of task generation.
[0244] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 1202, the communication interface, and the memory 1201 communicate with each other via the communication bus.
[0245] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0246] The communication interface is used for communication between the above electronic device and other devices.
[0247] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0248] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0249] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the task generation method described in any of the above embodiments are implemented.
[0250] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the task generation method described in any one of the above embodiments.
[0251] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.
[0252] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0253] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0254] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A task generation method, characterized in that: The method comprises: Display models of facilities used to simulate real scenarios in the interface; In response to an association operation on the model displayed in the interface, a first task configuration component is displayed in the interface, wherein the starting point and the end point in the first task configuration component are the model at the starting position and the model at the ending position of the association operation, respectively, and the first task configuration component further includes: at least one task configuration control; Acquiring task execution information based on a configuration operation on a task configuration control in the first task configuration component; Generate a target task based on the starting point, the end point and the task execution information; When the automatic association function is turned on, before displaying the first task configuration component in the interface, the method further includes: Determine whether there is a fourth task configuration component in the generated task configuration components, wherein the starting point in the fourth task configuration component is the same as the model at the starting position of the associated operation, or the ending point in the fourth task configuration component is the same as the model at the ending position of the associated operation; If the fourth task configuration component exists, adding the model targeted by the association operation to the start point or end point in the fourth task configuration component to automatically integrate the associated tasks; If the fourth task configuration component does not exist, the step of displaying the first task configuration component in the interface is performed.
2. The method according to claim 1, characterized in that The step of displaying a first task configuration component in the interface in response to an association operation on the model displayed in the interface includes: In response to an association operation on a model displayed in the interface, acquiring attribute information of the model targeted by the association operation; The starting point and the end point in the template component are respectively set to the model at the starting position and the model at the ending position of the association operation, and the control parameters of the task configuration control included in the template component are determined according to the attribute information of the model targeted by the association operation to obtain the first task configuration component; The first task configuration component is displayed in the interface.
3. The method according to claim 1, characterized in that The generating a target task based on the starting point, the end point and the task execution information includes: According to the preset data mapping rules, the starting point, the end point and the task execution information are respectively filled into the corresponding fields in the template task to generate the target task, wherein the template task includes: fields corresponding to the starting point, the end point and various types of task execution information.
4. The method according to claim 1, characterized in that: The at least one task configuration control includes: a point selection mode setting control; The acquiring task execution information based on the configuration operation of the task configuration control in the first task configuration component includes: In response to a trigger operation on the point selection mode setting control, a point selection mode setting window is displayed, wherein the point selection mode setting window includes: an entity sub-window and a point position sub-window, the entity sub-window is used to set a method for selecting a target device from at least one device included in the facility corresponding to the model, and the point position sub-window is used to set a method for selecting a target point position from preset points around the facility corresponding to the model; Based on the configuration operation of the point selection mode setting window, the point selection mode of the task is determined.
5. The method according to claim 1, characterized in that The step of displaying a first task configuration component in the interface in response to an association operation on the model displayed in the interface includes: In response to an associated operation on the model displayed in the interface, creating a new business; In the area corresponding to the new service in the task configuration window, displaying the service identifier and the first task configuration component of the new service; After generating the target task based on the starting point, the end point and the task execution information, the method further includes: A corresponding relationship between the new business and the target task is established.
6. The method according to claim 5, characterized in that The first task configuration component also includes: an associated task adding control; The method further comprises: In response to a trigger operation of adding a control to the associated task, a second task configuration component is displayed in the area corresponding to the new business in the task configuration window, a start point, an end point and task execution information of the associated task are acquired based on a configuration operation of the task configuration control in the second task configuration component, the associated task is generated based on the start point, the end point and the task execution information of the associated task, and a corresponding relationship between the new business and the associated task is established; The second task configuration component includes: a starting point setting control, an end point setting control and a trigger condition setting control, and the trigger condition setting options in the trigger condition setting control are associated with the target task.
7. The method according to any one of claims 1 to 6, characterized in that: The at least one task configuration control includes: a task name setting control, an execution object setting control, an execution object locking control, a trigger condition setting control, a task status setting control, a route selection mode setting control and / or a reverse control; The acquiring task execution information based on the configuration operation of the task configuration control in the first task configuration component includes: Determining a name of the task based on a configuration operation of the task name setting control; and / or, Determining an execution object of the task based on a configuration operation of setting a control for the execution object; and / or, Based on the configuration operation of the execution object locking control, the execution object of the task and the target task are locked to limit the execution object to only execute the target task and the tasks associated with the target task; and / or, Determining a trigger condition of a task based on a configuration operation of the trigger condition setting control; and / or, Determining the execution state of the task based on the configuration operation of the task state setting control, wherein the execution state includes: enabled and disabled; and / or, Based on the configuration operation of the route selection mode setting control, determining the selection mode of the execution route of the task, wherein the selection mode of the execution route includes: randomly selecting a route from a plurality of routes, cyclically selecting a route from a plurality of routes, selecting a route from a plurality of routes according to a preset ratio of each route, and specifying a route from a plurality of routes; and / or, In response to the triggering operation on the reverse control, the starting point and the end point of the task are swapped, and the task execution information corresponding to the starting point and the end point of the task are swapped.
8. The method according to any one of claims 1 to 6, characterized in that: The first task configuration component further includes: a task deletion control and / or a task copy control; The method further comprises: In response to a trigger operation on the task deletion control, deleting the first task configuration component from the interface, and deleting the task execution information obtained based on the first task configuration component; and / or, In response to a trigger operation on the task copy control, a third task configuration component identical to the first task configuration component is displayed in the interface, and task execution information obtained based on the first task configuration component is set as task execution information corresponding to the third task configuration component.
9. The method according to any one of claims 1 to 6, characterized in that: After generating the target task based on the starting point, the end point and the task execution information, the method further includes: When the execution condition of the target task is met, the execution status of the target task according to the task execution information of the target task is displayed in the interface.
10. The method according to any one of claims 1 to 6, characterized in that: The association operation is a line connection operation, the starting point is the model at the starting position of the line connection operation, and the end point is the model at the ending position of the line connection operation.
11. A task generation device, characterized in that: The device comprises: A model display module is used to display models of facilities used to simulate real scenes in the interface; A component display module, configured to display a first task configuration component in the interface in response to an association operation on the model displayed in the interface, wherein the starting point and the end point in the first task configuration component are the model at the starting position and the model at the ending position of the association operation, respectively, and the first task configuration component further comprises: at least one task configuration control; An information acquisition module, used to acquire task execution information based on a configuration operation on a task configuration control in the first task configuration component; A task generation module, used for generating a target task based on the starting point, the end point and the task execution information; Among them, the component display module is specifically used to, when the automatic association function is turned on, respond to the association operation on the model displayed in the interface, determine whether there is a fourth task configuration component in the generated task configuration components; if the fourth task configuration component exists, add the model targeted by the association operation to the starting point or end point in the fourth task configuration component to automatically integrate the associated tasks; if the fourth task configuration component does not exist, display the first task configuration component in the interface, wherein the starting point in the fourth task configuration component is the same as the model at the starting position of the association operation, or the end point in the fourth task configuration component is the same as the model at the ending position of the association operation.
12. The device according to claim 11, characterized in that The component display module includes: an attribute information acquisition unit, which is used to respond to an association operation on the model displayed in the interface and acquire the attribute information of the model targeted by the association operation; a component generation unit, which is used to set the starting point and the end point in the template component to the model at the starting position and the model at the ending position of the association operation respectively, and determine the control parameters of the task configuration control included in the template component according to the attribute information of the model targeted by the association operation, so as to obtain a first task configuration component; a display unit, which is used to display the first task configuration component in the interface; and / or, The task generation module is specifically used to: fill the starting point, the end point and the task execution information into the corresponding fields in the template task according to the preset data mapping rules, and generate the target task, wherein the template task includes: fields corresponding to the starting point, the end point and various types of task execution information; and / or, In the case where the at least one task configuration control includes: a point selection mode setting control, the information acquisition module is specifically used to: in response to a trigger operation on the point selection mode setting control, display a point selection mode setting window, wherein the point selection mode setting window includes: an entity subwindow and a point position subwindow, the entity subwindow is used to set a mode for selecting a target device from at least one device included in the facility corresponding to the model, and the point position subwindow is used to set a mode for selecting a target point from preset points around the facility corresponding to the model; based on the configuration operation on the point selection mode setting window, determine the point selection mode of the task; and / or, The component display module includes: a business creation unit, which is used to create a new business in response to an associated operation on the model displayed in the interface; a display unit, which is used to display the business identifier and the first task configuration component of the new business in the area corresponding to the new business in the task configuration window; the device also includes: a corresponding relationship establishment unit, which is used to establish a corresponding relationship between the new business and the target task after the task generation module generates the target task; and / or, The first task configuration component further includes: an associated task adding control; the component display module is further used to display a second task configuration component in the area corresponding to the new business in the task configuration window in response to a trigger operation on the associated task adding control; wherein the second task configuration component includes: a starting point setting control, an end point setting control and a trigger condition setting control, and the trigger condition setting options in the trigger condition setting control are associated with the target task; the information acquisition module is further used to acquire the starting point, end point and task execution information of the associated task based on the configuration operation on the task configuration control in the second task configuration component; the task generation module is further used to generate the associated task based on the starting point, end point and task execution information of the associated task, and establish a corresponding relationship between the new business and the associated task; and / or, In the case where the at least one task configuration control includes: a task name setting control, an execution object setting control, an execution object locking control, a trigger condition setting control, a task status setting control, a route selection mode setting control and / or a reverse control, the information acquisition module is specifically used to: determine the name of the task based on the configuration operation of the task name setting control; and / or, determine the execution object of the task based on the configuration operation of the execution object setting control; and / or, lock the execution object of the task with the target task based on the configuration operation of the execution object locking control to limit the execution object to only execute the target task and the associated tasks of the target task; and / or, determine the execution object of the task based on the configuration operation of the execution object setting control Setting a configuration operation of a control to determine a trigger condition of a task; and / or, based on a configuration operation of setting a control for the task state, determining an execution state of the task, wherein the execution state includes: enabled and disabled; and / or, based on a configuration operation of setting a control for the route selection method, determining a selection method for an execution route of the task, wherein the selection method for an execution route includes: randomly selecting a route from a plurality of routes, cyclically selecting a route from a plurality of routes, selecting a route from a plurality of routes according to a preset ratio of each route, and specifying a route from a plurality of routes; and / or, in response to a trigger operation for the reverse control, swapping a starting point and an end point of the task, and swapping task execution information corresponding to the starting point and the end point of the task; and / or, The first task configuration component further includes: a task deletion control and / or a task copy control; the device further includes: a component deletion module, which is used to delete the first task configuration component from the interface in response to a trigger operation on the task deletion control, and delete the task execution information obtained based on the first task configuration component; and / or, the component display module is also used to display a third task configuration component identical to the first task configuration component in the interface in response to a trigger operation on the task copy control, and set the task execution information obtained based on the first task configuration component as the task execution information corresponding to the third task configuration component; and / or, The device further comprises: a task execution status display module, which is used to display the execution status of the target task according to the task execution information of the target task in the interface when the execution condition of the target task is met; and / or, The association operation is a line connection operation, the starting point is the model at the starting position of the line connection operation, and the end point is the model at the ending position of the line connection operation.
13. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-10 when executing a program stored in a memory.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Interaction method, device and system for intelligent device control and storage medium
CN109408996A
Intelligent carrying simulation method and device, electronic equipment and storage medium
CN114819846A
Storage task processing method and device, electronic equipment and storage medium
CN117333106A