Disclosure of Invention
The main purpose of the present application is to provide a task automatic deployment method for a robot, so as to solve the problem that the robot cannot automatically execute a task.
To achieve the above object, according to one aspect of the present application, there is provided a task automatic deployment method for a robot.
The task automatic deployment method for the robot comprises the following steps: configuring a task which can be repeatedly executed; determining a task starting time; and automatically deploying the task which can be repeatedly executed on the robot according to the task starting time.
Further, configuring the repeatedly executable tasks includes: configuring a first task which can be repeatedly executed in a time dimension; configuring a second task that can be repeatedly executed by the place dimension; configuring a third task that can be repeatedly executed by the event dimension; and generating a task which can be repeatedly executed according to the configuration combination of the first task, the second task and the third task.
Further, the automatically deploying the task capable of being repeatedly executed on the robot according to the task starting time comprises: establishing a mapping relation between the first task starting time and the first repeatedly executable task; receiving a preset configuration carrying the first task start time, and generating the associated first repeatedly executable task according to the first task start time; establishing a mapping relation between the start time of the second task and the second repeatedly executable task; receiving a preset configuration carrying the second task starting time, and generating a related second repeatedly executable task according to the second task starting time; the first task starting time is a fixed time point, and the second task starting time is a random time point.
Further, the automatically deploying the task capable of being repeatedly executed on the robot according to the task starting time comprises: establishing a mapping relation between the first task starting time and the first repeatedly executable task; receiving a preset configuration carrying the first repeatedly executable task, and generating the associated first task starting time through the first repeatedly executable task; automatically deploying the task capable of being repeatedly executed on the robot according to the first task starting time; establishing a mapping relation between the start time of the second task and the second repeatedly executable task; receiving a preset configuration carrying the second repeatedly executable task, and generating a related second task starting time through the second repeatedly executable task; automatically deploying the task which can be repeatedly executed on the robot according to the second task starting time; wherein the first repeatedly executable task is a timing task; the second re-executable task is a random task.
Further, after the task that can be repeatedly executed is automatically deployed on the robot according to the task starting time, the method includes: establishing a training set of the task start time and the repeatedly executable task; and carrying out robot self-learning through the training set so that the robot automatically executes repetitive tasks according to corresponding scenes.
In order to achieve the above object, according to another aspect of the present application, there is provided a task automatic deployment apparatus for a robot.
The task automatic deployment device for the robot according to the application comprises: a configuration module for configuring a task that can be repeatedly executed; the determining module is used for determining the task starting time; and the deployment module is used for automatically deploying the tasks which can be repeatedly executed on the robot according to the task starting time.
Further, the configuration module includes: configuring a first task which can be repeatedly executed in a time dimension; configuring a second task that can be repeatedly executed by the place dimension; configuring a third task that can be repeatedly executed by the event dimension; and generating a task which can be repeatedly executed according to the configuration combination of the first task, the second task and the third task.
Further, the deployment module includes: establishing a mapping relation between the first task starting time and the first repeatedly executable task; receiving a preset configuration carrying the first task start time, and generating the associated first repeatedly executable task according to the first task start time; establishing a mapping relation between the start time of the second task and the second repeatedly executable task; receiving a preset configuration carrying the second task starting time, and generating a related second repeatedly executable task according to the second task starting time; the first task starting time is a fixed time point, and the second task starting time is a random time point.
Further, the deployment module includes: establishing a mapping relation between the first task starting time and the first repeatedly executable task; receiving a preset configuration carrying the first repeatedly executable task, and generating the associated first task starting time through the first repeatedly executable task; automatically deploying the task capable of being repeatedly executed on the robot according to the first task starting time; establishing a mapping relation between the start time of the second task and the second repeatedly executable task; receiving a preset configuration carrying the second repeatedly executable task, and generating a related second task starting time through the second repeatedly executable task; automatically deploying the task which can be repeatedly executed on the robot according to the second task starting time; wherein the first repeatedly executable task is a timing task; the second re-executable task is a random task.
Further, the method also comprises the following steps: the establishing module is used for establishing the task starting time and a training set of the tasks which can be repeatedly executed; and the learning module is used for carrying out robot self-learning through the training set so that the robot can automatically execute repetitive tasks according to corresponding scenes.
According to the method and the device for automatically deploying the tasks for the robot in the embodiment of the application, the task starting time is determined by adopting a mode of configuring the tasks which can be repeatedly executed, so that the purpose of automatically deploying the tasks which can be repeatedly executed on the robot according to the task starting time is achieved, the technical effect of automatic task control of the robot is achieved, and the technical problem that the robot cannot automatically execute the tasks is solved.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, the method includes steps S1 to S3 as follows:
step S1, configuring a task which can be repeatedly executed;
the robot is configured with re-executable tasks, including regular tasks with a certain number of repetitions, not happened tasks.
The repeatedly executable tasks may have a repetitive pattern in execution time.
The repeatedly executable tasks may also have a repetitive pattern on the execution events.
A task that can be repeatedly executed may also have a timing law in execution time.
Step S2, determining the start time of the task;
and after the task starting time is determined, configuring the time for the robot to execute the task. The robot can enter the execution of the next task or be in a short-time idle state according to the determined starting time of a plurality of tasks after the robot executes and finishes one task.
And step S3, automatically deploying the task which can be repeatedly executed on the robot according to the task starting time.
And automatically deploying the task which can be repeatedly executed on the robot according to the task starting time.
By establishing an association of the task start time and the re-executable task, automated deployment may be accomplished on the robot. The robot after automatic deployment can complete timing tasks, automatically executes the timing tasks according to the preset configuration, and needs manual configuration or control.
From the above description, it can be seen that the following technical effects are achieved by the present application:
according to the method and the device for automatically deploying the tasks for the robot in the embodiment of the application, the task starting time is determined by adopting a mode of configuring the tasks which can be repeatedly executed, so that the purpose of automatically deploying the tasks which can be repeatedly executed on the robot according to the task starting time is achieved, the technical effect of automatic task control of the robot is achieved, and the technical problem that the robot cannot automatically execute the tasks is solved.
According to the embodiment of the present application, as a preference in the embodiment, configuring the tasks that can be repeatedly executed includes:
configuring a first task which can be repeatedly executed in a time dimension;
configuring a second task that can be repeatedly executed by the place dimension;
configuring a third task that can be repeatedly executed by the event dimension;
and generating a task which can be repeatedly executed according to the configuration combination of the first task, the second task and the third task.
In particular, the first task is configured to be repeatedly executable in a time dimension, the second task is configured to be repeatedly executable in a place dimension, and the third task is configured to be repeatedly executable in an event dimension. And generating a task which can be repeatedly executed according to the configuration combination of the first task, the second task and the third task. That is, the first task, the second task, and the third task may be configured and combined.
According to an embodiment of the present application, as a preferable preference in the embodiment, automatically deploying the task that can be repeatedly executed on the robot according to the task start time includes:
establishing a mapping relation between the first task starting time and the first repeatedly executable task;
receiving a preset configuration carrying the first task start time, and generating the associated first repeatedly executable task according to the first task start time;
establishing a mapping relation between the start time of the second task and the second repeatedly executable task;
receiving a preset configuration carrying the second task starting time, and generating a related second repeatedly executable task according to the second task starting time;
the first task starting time is a fixed time point, and the second task starting time is a random time point.
Specifically, a mapping relation between a first task starting time and a first repeatedly executable task is established; receiving a preset configuration carrying the first task start time on the robot, and generating the associated first repeatedly executable task according to the first task start time; establishing a mapping relation between the start time of the second task and the second repeatedly executable task; receiving a preset configuration carrying the second task starting time on the robot, and generating a related second repeatedly executable task according to the second task starting time; it should be noted that the first task start time is a fixed time point, and the second task start time is a random time point. Based on the established mapping relation between the second task starting time and the second repeatedly executable task, the repeatedly executable task can be correlated in time, so that the robot can realize continuous multi-timing task serial operation processing.
According to an embodiment of the present application, as a preferable preference in the embodiment, automatically deploying the task that can be repeatedly executed on the robot according to the task start time includes:
establishing a mapping relation between the first task starting time and the first repeatedly executable task;
receiving a preset configuration carrying the first repeatedly executable task, and generating the associated first task starting time through the first repeatedly executable task;
automatically deploying the task capable of being repeatedly executed on the robot according to the first task starting time;
establishing a mapping relation between the start time of the second task and the second repeatedly executable task;
receiving a preset configuration carrying the second repeatedly executable task, and generating a related second task starting time through the second repeatedly executable task;
automatically deploying the task which can be repeatedly executed on the robot according to the second task starting time;
wherein the first repeatedly executable task is a timing task; the second re-executable task is a random task.
Specifically, a mapping relation between a first task starting time and a first repeatedly executable task is established; receiving a preset configuration carrying the first repeatedly executable task on the robot, and generating the associated first task start time through the first repeatedly executable task; automatically deploying the task capable of being repeatedly executed on the robot according to the first task starting time; establishing a mapping relation between the start time of the second task and the second repeatedly executable task; receiving a preset configuration carrying the second repeatedly executable task on the robot, and generating a related second task starting time through the second repeatedly executable task; automatically deploying the task which can be repeatedly executed on the robot according to the second task starting time; it is noted that the first repeatedly executable task is a timed task; the second re-executable task is a random task.
Based on the established mapping relation between the second task starting time and the second repeatedly executable task, the repeatedly executable task can be associated on the timed task and the random task, so that the robot can realize continuous timed multitask parallel operation processing.
According to an embodiment of the present application, as a preferred embodiment in the present application, as shown in fig. 2, after the task that can be repeatedly executed is automatically deployed on the robot according to the task start time, the method includes:
step S4, establishing the task starting time and the training set of the repeatedly executable task;
and step S5, performing robot self-learning through the training set so that the robot automatically executes repetitive tasks according to corresponding scenes.
And training an automatic deployment mode of the robot by establishing the task starting time and the training set of the tasks capable of being repeatedly executed for robot self-learning, wherein the result obtained by training can enable the robot to automatically execute the repeated tasks according to the corresponding scene. For example, after the robot performs self-learning, the robot performs the welcome task only by 9 am every day and performs the charging task by 6 pm every day. For another example, after the robot performs self-learning, the robot performs the teaching task only at 3 pm of each day and performs the guidance task at 6 pm of each day.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
According to an embodiment of the present application, there is also provided an apparatus for implementing the above task automatic deployment method for a robot, as shown in fig. 2, the apparatus includes:
a configuration module 10 for configuring a task that can be repeatedly executed;
a determining module 20, configured to determine a task start time;
and the deployment module 30 is used for automatically deploying the task which can be repeatedly executed on the robot according to the task starting time.
According to the embodiment of the present application, as a preference in the embodiment, the configuration module 10 includes:
configuring a first task which can be repeatedly executed in a time dimension;
configuring a second task that can be repeatedly executed by the place dimension;
configuring a third task that can be repeatedly executed by the event dimension;
and generating a task which can be repeatedly executed according to the configuration combination of the first task, the second task and the third task.
In particular, the first task is configured to be repeatedly executable in a time dimension, the second task is configured to be repeatedly executable in a place dimension, and the third task is configured to be repeatedly executable in an event dimension. And generating a task which can be repeatedly executed according to the configuration combination of the first task, the second task and the third task. That is, the first task, the second task, and the third task may be configured and combined.
According to the embodiment of the present application, as a preference in the embodiment, the deployment module 30 includes:
establishing a mapping relation between the first task starting time and the first repeatedly executable task;
receiving a preset configuration carrying the first task start time, and generating the associated first repeatedly executable task according to the first task start time;
establishing a mapping relation between the start time of the second task and the second repeatedly executable task;
receiving a preset configuration carrying the second task starting time, and generating a related second repeatedly executable task according to the second task starting time;
the first task starting time is a fixed time point, and the second task starting time is a random time point.
Receiving a preset configuration carrying the first task start time on the robot, and generating the associated first repeatedly executable task according to the first task start time; establishing a mapping relation between the start time of the second task and the second repeatedly executable task; receiving a preset configuration carrying the second task starting time on the robot, and generating a related second repeatedly executable task according to the second task starting time; it should be noted that the first task start time is a fixed time point, and the second task start time is a random time point. Based on the established mapping relation between the second task starting time and the second repeatedly executable task, the repeatedly executable task can be correlated in time, so that the robot can realize continuous multi-timing task serial operation processing.
According to the embodiment of the present application, as a preference in the embodiment, the deployment module 30 includes:
establishing a mapping relation between the first task starting time and the first repeatedly executable task;
receiving a preset configuration carrying the first repeatedly executable task, and generating the associated first task starting time through the first repeatedly executable task;
automatically deploying the task capable of being repeatedly executed on the robot according to the first task starting time;
establishing a mapping relation between the start time of the second task and the second repeatedly executable task;
receiving a preset configuration carrying the second repeatedly executable task, and generating a related second task starting time through the second repeatedly executable task;
automatically deploying the task which can be repeatedly executed on the robot according to the second task starting time;
wherein the first repeatedly executable task is a timing task; the second re-executable task is a random task.
Specifically, a mapping relation between a first task starting time and a first repeatedly executable task is established; receiving a preset configuration carrying the first repeatedly executable task on the robot, and generating the associated first task start time through the first repeatedly executable task; automatically deploying the task capable of being repeatedly executed on the robot according to the first task starting time; establishing a mapping relation between the start time of the second task and the second repeatedly executable task; receiving a preset configuration carrying the second repeatedly executable task on the robot, and generating a related second task starting time through the second repeatedly executable task; automatically deploying the task which can be repeatedly executed on the robot according to the second task starting time; it is noted that the first repeatedly executable task is a timed task; the second re-executable task is a random task.
According to the embodiment of the present application, as a preferable feature in the embodiment, the method further includes:
a building module 40 for building a training set of the task start time and the re-executable tasks;
and the learning module 50 is used for carrying out robot self-learning through the training set so that the robot automatically executes repetitive tasks according to corresponding scenes.
And training an automatic deployment mode of the robot by establishing the task starting time and the training set of the tasks capable of being repeatedly executed for robot self-learning, wherein the result obtained by training can enable the robot to automatically execute the repeated tasks according to the corresponding scene. For example, after the robot performs self-learning, the robot performs the welcome task only by 9 am every day and performs the charging task by 6 pm every day. For another example, after the robot performs self-learning, the robot performs the teaching task only at 3 pm of each day and performs the guidance task at 6 pm of each day.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.