Task planning state space vectorization representation method, system, equipment and medium
Through the quintuple representation method, the problem of insufficient description of action execution duration and parallel execution in complex temporal task planning is solved, the modeling of complex constraints between actions in the case of parallel execution of multiple timelines is realized, and the application of state space is expanded. range, providing good flexibility and practicality.
Patent Information
- Application Number
- CN202410535581.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-04-30
AI Technical Summary
The existing technology is difficult to effectively describe the execution duration and parallel execution of actions in complex temporal task planning, resulting in insufficient modeling of complex constraints between actions when multiple timelines are executed in parallel.
The five-tuple representation method is adopted, including continuous functions, state attributes, continuous conditions and event occurrence times, and the current state is represented by timestamps, which expands the application scope of the state space description method and realizes the action between actions in the case of parallel execution of multiple timelines. Complex constraint modeling.
Through the quintuple representation method, the description of the state in a certain period of time in the future is added, the application scope of the state space is expanded, and the flexibility and practicality of solving complex temporal planning problems are provided.
Smart Images

Figure CN118550226A
Abstract
Description
Background Art
[0002] Task planning refers to selecting several action sequences and arranging their execution time sequence given a set of action sets, task initial states, and task objectives. The action sequence is executed starting from the given task initial states, the action constraints are satisfied during the execution of this set of actions, and the task objectives are achieved after the execution is completed.
[0003] In classical action planning, the core of task planning is action and state space. In the state space part, traditional methods only describe the instantaneous state, while actions generally have execution time, and their scope of action includes a time interval. The corresponding prerequisites and effects may be associated in an interval. The instantaneous state only describes the state value at the current moment, which makes it difficult to fully describe the impact of the action. In classical action planning, since only the sequence of actions is considered, the execution time of the action can be ignored, so the instantaneous state description can be used; for complex temporal planning problems, there are multiple timelines and there are problems of parallel implementation between actions. Considering only the sequence of actions has serious shortcomings. Summary of the invention
[0004] The technical problem to be solved by the present invention is to address the deficiencies of the prior art and specifically provide a task planning state space vectorization representation method, system, device and medium, as follows:
[0005] 1) In the first aspect, the present invention provides a method for vectorizing the state space of task planning for complex temporal constraints. The specific technical solution is as follows:
[0006] Get the current status of any action device in the space station;
[0007] Determine a state space vector corresponding to any action device of the space station according to the current state, wherein the state space vector is represented by a five-tuple;
[0008] Among them, the quintuple includes: a set M for recording the values of all continuous functions in the task plan at time t, a set P for recording the state attributes corresponding to time t, a set Π for recording the persistence conditions, a set Q for recording the occurrence times corresponding to all task plans in any event, and a timestamp t for representing the current state, wherein any event contains at least one task plan, and any task plan contains at least one action device. The continuous function represents the change state of the resource value of the task object corresponding to any task plan, the state attribute represents the completion state of the task object corresponding to any task plan, and the persistence condition represents that before completing any task plan, the value of the continuous function of the task object corresponding to the task plan does not change.
[0009] The beneficial effects of the state space vectorization representation method for task planning with complex temporal constraints provided by the present invention are as follows:
[0010] The state space vector is represented by the five-tuple representation method, which adds the description of the predetermined state in a future period of time associated with the current state, thereby realizing the modeling of complex constraints between actions in the case of parallel execution of multiple timelines, expanding the application scope of the state space description method, and providing a basis for using the state space planning solution method to solve complex temporal planning problems. It has good flexibility and practicality.
[0011] Based on the above solution, the present invention can also be improved as follows.
[0012] Furthermore, it also includes:
[0013] According to the current state, the target state and the current planning sequence, the target action corresponding to any action device at the next moment of the current moment is determined in the action set to execute the target action at the next moment.
[0014] Further, the determining, according to the current state, the target state and the current planned sequence, a target action corresponding to the next moment of any action device at the current moment in the action set includes:
[0015] Determine, according to the current state, the target state and the current planned sequence, a candidate action corresponding to the next moment of any action device at the current moment in the action set;
[0016] It is determined whether the candidate action is an applicable action. If the candidate action is an applicable action, the candidate action is determined as the target action corresponding to the next moment.
[0017] Further, the determining whether the candidate action is an applicable action includes:
[0018] Determine whether the candidate action satisfies a preset condition. If the candidate action satisfies the preset condition, determine that the candidate action is an applicable action. If the candidate action does not satisfy the preset condition, determine that the candidate action is not an applicable action. The preset condition includes:
[0019] All state attributes of the action satisfy the set P and the set M;
[0020] The change state of the resource value of the action is not mutually exclusive with any continuous condition in the set ∏ and any event in the set Q;
[0021] The duration condition of an action is not mutually exclusive with any duration condition in set ∏ and any event in set Q.
[0022] Furthermore, it also includes:
[0023] According to the target action, the current state is updated to obtain an intermediate state corresponding to the target action.
[0024] Furthermore, it also includes:
[0025] Determining whether the intermediate state is consistent with a preset target state;
[0026] If the intermediate state is consistent with the target state, determining the target action sequence corresponding to any one of the action devices according to the updated state;
[0027] If the intermediate state is inconsistent with the target state, the process of determining the target action corresponding to any action device in the action set at the next moment of the current moment is re-executed according to the current state, the target state and the current planning sequence, until the intermediate state corresponding to the new target action is consistent with the target state.
[0028] Furthermore, it also includes:
[0029] After executing the target action, obtaining a timestamp of an intermediate state corresponding to the target action;
[0030] The determining whether the intermediate state is consistent with a preset target state includes:
[0031] Whether the intermediate state is consistent with the preset target state is determined according to the timestamp of the intermediate state.
[0032] 2) In the second aspect, the present invention also provides a task planning state space vector representation system for complex temporal constraints, and the specific technical solution is as follows:
[0033] The acquisition module is used to: obtain the current status of any action device of the space station;
[0034] The representation module is used to: determine a state space vector corresponding to any action device of the space station according to the current state, wherein the state space vector is represented by a five-tuple;
[0035] Among them, the quintuple includes: a set M for recording the values of all continuous functions in the task plan at time t, a set P for recording the state attributes corresponding to time t, a set Π for recording the persistence conditions, a set Q for recording the occurrence times corresponding to all task plans in any event, and a timestamp t for representing the current state, wherein any event contains at least one task plan, and any task plan contains at least one action device. The continuous function represents the change state of the resource value of the task object corresponding to any task plan, the state attribute represents the completion state of the task object corresponding to any task plan, and the persistence condition represents that before completing any task plan, the value of the continuous function of the task object corresponding to the task plan does not change.
[0036] 3) In a third aspect, the present invention further provides an electronic device, comprising a processor, wherein the processor is coupled to a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor so that the electronic device implements any of the above methods.
[0037] 4) In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor so that a computer implements any of the above methods.
[0038] It should be noted that the beneficial effects achieved by the technical solutions of the second to fourth aspects of the present invention and the corresponding possible implementation methods can be found in the above-mentioned technical effects of the first aspect and its corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0040] Figure 1 A schematic diagram of a process flow of a method for vectorizing a task planning state space with complex temporal constraints according to an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of task planning modeling for a method of vectorizing a task planning state space for complex temporal constraints according to an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of a traditional state space planning of a method for vectorizing a task planning state space with complex temporal constraints according to an embodiment of the present invention;
[0043] Figure 4A schematic diagram of state space description elements of a method for vectorizing state space representation of task planning with complex temporal constraints according to an embodiment of the present invention;
[0044] Figure 5 A schematic diagram of an applicability judgment method for action events in a timestamp state space of a method for vectorizing a task planning state space with complex temporal constraints according to an embodiment of the present invention;
[0045] Figure 6 A schematic diagram of a state transfer method based on timestamps for a state space vectorization representation method for task planning with complex temporal constraints according to an embodiment of the present invention;
[0046] Figure 7 The figure is a schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION
[0047] like Figure 2 as well as Figure 3 As shown in the figure, task planning means to select several action sequences, arrange their execution time sequence, start executing the action sequence from the given task initial state, satisfy the action constraints in the process of executing this set of actions, and achieve the task goal after execution. Task planning generally includes two parts: problem modeling and problem solving.
[0048] Problem Modeling Approach:
[0049] In classic motion planning, the core of task planning is action and state space. Action is the goal of task planning, and planning solution is to obtain an action sequence that meets the requirements of the task process. State space is a description of the state of the planning problem. On the basis of state space, the action sequence is solved. At the same time, the action will change the state space and realize the transformation of the state space.
[0050] Action: An action consists of a start time, an end time, a prerequisite, and an effect. The start time and the end time are the time intervals for the execution of the action, the prerequisite defines the state constraints that must be met for the action to be executed, and the effect defines the impact of the action execution on the state.
[0051] The prerequisite of an action refers to the state that must be satisfied within the corresponding time interval when the action is to be executed. The 13 time interval relationships corresponding to the Allen algebra can be used to constrain the action. The commonly used ones include before the action is executed and during the action execution:
[0052] (1) Before the action is executed: the action can only be executed when the timeline object is in a constrained state. For example, the "extend the robot arm" action must be constrained to start in the "folded" state, which is the state before the action is executed.
[0053] (2) Action execution: that is, during the execution of an action, the timeline object needs to maintain the required state. For example, during a mobile phone call, a timeline object is set to indicate whether the mobile phone is within the coverage of the base station. There are two states: "offline" and "online". If the "call" action is to be executed, the mobile phone must be in the "online" state during the "call".
[0054] The effect of an action is the change in state caused by executing the action. The commonly used ones include during the execution of the action and after the execution of the action:
[0055] (1) Action execution: When the action starts, the state of the timeline object is changed to the state of the action effect setting. For example, the "extend the robot arm" action needs to be started in the "folded" state. During the execution of the action, the state changes to "opening".
[0056] (2) After the action is executed: After the action is executed, the state of the timeline object is converted to the state set by the action effect. For example, the "extend the robot arm" action needs to be executed in the "folded" state. During the execution of the action, the state changes to "opening", and after the action is completed, the state changes to "opened".
[0057] The constraints of actions mainly include resource constraints and temporal constraints. Resource constraints refer to the resource conditions that need to be met for the execution of an action, such as consuming a certain amount of electricity, requiring the support of a certain number of people, etc. Temporal constraints refer to the time sequence constraints between actions. For example, in the problem of cargo transportation, there is a strict time sequence between loading, transporting, and unloading cargo. The cargo must be loaded first, then transported, and finally unloaded. That is, to execute the action of "transportation", the action of "loading cargo" must be executed first, and to execute the action of "unloading cargo", the action of "transportation" must be executed first.
[0058] State space: State space is a description of the task state. Through the judgment and transformation of the state space, the action sequence planning solution is realized. The state space is mainly divided into two categories: discrete and continuous according to the type of state value. Assertions correspond to discrete and binary variables, and functions correspond to continuous variables.
[0059] State space planning: In traditional state space planning methods, based on a given initial state, a set of actions that meet the prerequisites is determined, actions are implemented in the current state, and state transitions are performed based on the effects of the actions to change the state space. After each update of the action sequence, a state transition is performed, and for the new state space, it is determined whether the constraints of the target state are met. If so, the current action sequence is returned to obtain a feasible planning solution; if not, new actions are applied.
[0060] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0061] like Figure 1 As shown, a method for representing a state space vector of a task planning with complex temporal constraints according to an embodiment of the present invention includes the following steps:
[0062] Get the current status of any action device in the space station;
[0063] Determine a state space vector corresponding to any action device of the space station according to the current state, wherein the state space vector is represented by a five-tuple;
[0064] Among them, the quintuple includes: a set M for recording the values of all continuous functions in the task plan at time t, a set P for recording the state attributes corresponding to time t, a set Π for recording the persistence conditions, a set Q for recording the occurrence times corresponding to all task plans in any event, and a timestamp t for representing the current state, wherein any event contains at least one task plan, and any task plan contains at least one action device. The continuous function represents the change state of the resource value of the task object corresponding to any task plan, the state attribute represents the completion state of the task object corresponding to any task plan, and the persistence condition represents that before completing any task plan, the value of the continuous function of the task object corresponding to the task plan does not change.
[0065] The beneficial effects of the state space vectorization representation method for task planning with complex temporal constraints provided by the present invention are as follows:
[0066] The state space vector is represented by the five-tuple representation method, which adds the description of the predetermined state in a future period of time associated with the current state, thereby realizing the modeling of complex constraints between actions in the case of parallel execution of multiple timelines, expanding the application scope of the state space description method, and providing a basis for using the state space planning solution method to solve complex temporal planning problems. It has good flexibility and practicality.
[0067] In order to facilitate the understanding of the quintuple mentioned in this solution, the following examples are provided to assist the understanding:
[0068] Example 1, in order to facilitate the subsequent vector representation, the planning problem is unified into three types of information in the early stage, specifically including action, predicate, and function;
[0069] Actions include: start time, end time, preconditions and effects. Preconditions and effects are used to define the time constraints and resource constraints between actions, that is, each action has clear preconditions and effects. Preconditions describe the state conditions that need to be met when the action is executed, and effects describe the state changes caused by the execution of the action. For example, for a space robot arm raising action, the start time is specified as 80 seconds after the start time of the event corresponding to the action, and the end time is specified as 85 seconds after the start time of the event corresponding to the action. The precondition is that the space robot arm completes the rotation and reaches the specified position, and the effect is the lifting of the space robot arm.
[0070] In the state space, the five-tuple (instantaneous predicate state, function state, continuous predicate state, delayed predicate state, moment) is used to represent the current state and the delay constraint associated with the current state.
[0071] Based on the above, the action applicability judgment, state transfer and time state improvement methods are designed, so as to embed the present invention into the classic state space planning algorithm framework. The predicates and actions are represented by word vectors to realize the vectorized representation of the state space and the transformation from the structured description space to the digital vector space.
[0072] The five-tuple provided in this solution is a five-tuple generated by adding a timestamp to the four-tuple. The specific content of the four-tuple can be understood by referring to Example 2. The five-tuple in this solution, i.e., the state S (timestamped state) with a timestamp, can be expressed as a five-tuple, S = (P, M, ∏, Q, t), where each element is described as follows: Figure 4 As shown:
[0073] P is a set containing a set (Predicate, time). The predicate in P is true at time t, but the time when the value of the predicate becomes true is often earlier than time t.
[0074] M is a set containing a set of (function, Value), which is used to record the values of all continuous functions at time t.
[0075] ∏ is a set of continuous conditions consisting of a set of (Predicate, time). In ∏, the value of the predicate does not change until the specified time (time>t).
[0076] Q is an event queue (delayed effect of an action), containing a set of (Predicate, time, action). Each event occurs at a specified time in the future (the predicate value becomes true or false), and the occurrence of the event is caused by an action.
[0077] t is the timestamp of state S.
[0078] Based on the above description of the state space, search for action sequences to solve the planning scheme that satisfies the initial state to the target state. Plan the state space for the current task, determine the applicable action of the current state, and generate a new state. When the new state meets the target state, a feasible planning scheme is generated. There are three basic operations involved here: finding applicable actions for the state, applying actions to transfer the state, and using time-promoting actions to advance the time.
[0079] The specific process of the applicability action judgment part is as follows:
[0080] like Figure 5 As shown, in state S = (P, M, ∏, Q, t), if an action A is applicable, then all of the following conditions must be met:
[0081] 1. All prerequisites of A can be met in P and M;
[0082] 2. The effect of A is not mutually exclusive with any continuous condition in ∏ and any event in Q;
[0083] 3. The persistence precondition of A is not mutually exclusive with any persistence condition in ∏ and any event in Q.
[0084] The specific process of state transfer is as follows:
[0085] like Figure 6 As shown, executing action A in state S = (P, M, II, Q, t) will generate a new state, and the original state S is transferred to S' through action A.
[0086] 1. All instantaneous effects of A are added to P and M;
[0087] 2. The delayed effect of A (the state of the next moment at the current moment) is added to Q;
[0088] 3. The continuing prerequisite of A is added to II.
[0089] The specific process of time state improvement is as follows:
[0090] In addition to the planning actions defined in the domain problem, there is a special action called the raise time action. By applying the raise time action, the timestamp of state S can be raised to the time when the earliest event in the event queue Q occurred. The raise time action can be applied to any state S with a non-empty event queue. By applying the raise time action, state S is updated according to all events in the event queue Q that are scheduled to occur together at the time when the earliest event occurs.
[0091] For example, if a state s describes the state at time t, the state s1 at a certain time t1 after time t can be deduced based on the delay effect in s. That is, the time is advanced to a new time t1, and the corresponding state is s1.
[0092] The process of vectorization description of state space is as follows:
[0093] During the planning search process, the current search state includes three parts of information: the current state, the target state, and the current planning sequence. The current state S = (P, V, T), including all predicate vectors and numerical vectors in the domain model and time under the current search step; the target state is consistent with the current state, which is the target state to be achieved.
[0094]
[0095] The current planning sequence is the action sequence currently obtained during the search process, which is composed of the actions accumulated during the current search process. Compared with One-hot encoding, using Word2Vec to map actions can better reflect the relationship between actions. The encoding of actions includes the action token itself and parameters. Assuming that the action set includes N action tokens, using One-hot encoding requires an N-dimensional vector to represent a token. The Word2Vec technology can be used to compress the token into an M-dimensional low-dimensional space and represent it using an M-dimensional vector. For the parameters of the action, an L-dimensional vector can be connected after the M-dimensional vector to represent the parameters of the action.
[0096]
[0097] According to the above method, the M+L-dimensional vector can be used to represent the action with parameters. Add the current state and target state vectors to realize the vectorized representation of the task search state. The current search state space includes the current state, target state and current action sequence information. The current state and target state are represented by S t Represented by, the dimension is 2*(K+C+1); the current action sequence contains several actions, each of which is represented by a (M+L)-dimensional vector.
[0098] Furthermore, it also includes:
[0099] According to the current state, the target state and the current planning sequence, the target action corresponding to any action device at the next moment of the current moment is determined in the action set to execute the target action at the next moment.
[0100] Further, the determining, according to the current state, the target state and the current planned sequence, a target action corresponding to the next moment of any action device at the current moment in the action set includes:
[0101] Determine, according to the current state, the target state and the current planned sequence, a candidate action corresponding to the next moment of any action device at the current moment in the action set;
[0102] It is determined whether the candidate action is an applicable action. If the candidate action is an applicable action, the candidate action is determined as the target action corresponding to the next moment.
[0103] Further, the determining whether the candidate action is an applicable action includes:
[0104] Determine whether the candidate action satisfies a preset condition. If the candidate action satisfies the preset condition, determine that the candidate action is an applicable action. If the candidate action does not satisfy the preset condition, determine that the candidate action is not an applicable action. The preset condition includes:
[0105] All state attributes of the action satisfy the set P and the set M;
[0106] The change state of the resource value of the action is not mutually exclusive with any continuous condition in the set ∏ and any event in the set Q;
[0107] The duration condition of an action is not mutually exclusive with any duration condition in set ∏ and any event in set Q.
[0108] Furthermore, it also includes:
[0109] According to the target action, the current state is updated to obtain an intermediate state corresponding to the target action.
[0110] Furthermore, it also includes:
[0111] Determining whether the intermediate state is consistent with a preset target state;
[0112] If the intermediate state is consistent with the target state, determining the target action sequence corresponding to any one of the action devices according to the updated state;
[0113] If the intermediate state is inconsistent with the target state, the process of determining the target action corresponding to any action device in the action set at the next moment of the current moment is re-executed according to the current state, the target state and the current planning sequence, until the intermediate state corresponding to the new target action is consistent with the target state.
[0114] Furthermore, it also includes:
[0115] After executing the target action, obtaining a timestamp of an intermediate state corresponding to the target action;
[0116] The determining whether the intermediate state is consistent with a preset target state includes:
[0117] Whether the intermediate state is consistent with the preset target state is determined according to the timestamp of the intermediate state.
[0118] In the above embodiments, although the steps are numbered S1, S2, etc., these are only specific embodiments given by the present invention. Those skilled in the art may adjust the execution order of S1, S2, etc. according to actual conditions, which is also within the protection scope of the present invention. It can be understood that in some embodiments, some or all of the above embodiments may be included.
[0119] Aiming at the constraint modeling problem of multi-timeline parallel actions in complex temporal task planning, the present invention designs a dynamic task planning state space modeling method. The method is based on the traditional state space modeling method. Under the premise and effect description framework of the action, the description of the predetermined state in the future time interval associated with the current state is added, so as to realize the complex constraint modeling between actions under the condition of multi-timeline parallel execution. Through the vectorization technology, the predicate state and action are converted into vectors to realize the vectorization of the state space. On this basis, the action applicability judgment, state transfer and time state improvement methods are designed to realize the state description of complex temporal problems.
[0120] The present invention expands the application scope of the state space description method, provides a basis for solving complex temporal planning problems using the state space planning solution method, and has good flexibility and practicality.
[0121] The present invention also provides a task planning state space vector representation system for complex temporal constraints, and the specific technical solution is as follows:
[0122] The acquisition module is used to: obtain the current status of any action device of the space station;
[0123] The representation module is used to: determine a state space vector corresponding to any action device of the space station according to the current state, wherein the state space vector is represented by a five-tuple;
[0124] Among them, the quintuple includes: a set M for recording the values of all continuous functions in the task plan at time t, a set P for recording the state attributes corresponding to time t, a set Π for recording the persistence conditions, a set Q for recording the occurrence times corresponding to all task plans in any event, and a timestamp t for representing the current state, wherein any event contains at least one task plan, and any task plan contains at least one action device. The continuous function represents the change state of the resource value of the task object corresponding to any task plan, the state attribute represents the completion state of the task object corresponding to any task plan, and the persistence condition represents that before completing any task plan, the value of the continuous function of the task object corresponding to the task plan does not change.
[0125] Furthermore, it also includes:
[0126] The determination module is used to determine the target action corresponding to any action device at the next moment of the current moment in the action set according to the current state, the target state and the current planning sequence, so as to execute the target action at the next moment.
[0127] Further, the determining, according to the current state, the target state and the current planned sequence, a target action corresponding to the next moment of any action device at the current moment in the action set includes:
[0128] Determine, according to the current state, the target state and the current planned sequence, a candidate action corresponding to the next moment of any action device at the current moment in the action set;
[0129] It is determined whether the candidate action is an applicable action. If the candidate action is an applicable action, the candidate action is determined as the target action corresponding to the next moment.
[0130] Further, the determining whether the candidate action is an applicable action includes:
[0131] Determine whether the candidate action satisfies a preset condition. If the candidate action satisfies the preset condition, determine that the candidate action is an applicable action. If the candidate action does not satisfy the preset condition, determine that the candidate action is not an applicable action. The preset condition includes:
[0132] All state attributes of the action satisfy the set P and the set M;
[0133] The change state of the resource value of the action is not mutually exclusive with any continuous condition in the set ∏ and any event in the set Q;
[0134] The duration condition of an action is not mutually exclusive with any duration condition in set ∏ and any event in set Q.
[0135] Furthermore, it also includes:
[0136] The updating module is used to update the current state according to the target action to obtain an intermediate state corresponding to the target action.
[0137] Furthermore, it also includes:
[0138] The judging module is used to: judge whether the intermediate state is consistent with a preset target state;
[0139] If the intermediate state is consistent with the target state, determining the target action sequence corresponding to any one of the action devices according to the updated state;
[0140] If the intermediate state is inconsistent with the target state, the process of determining the target action corresponding to any action device in the action set at the next moment of the current moment is re-executed according to the current state, the target state and the current planning sequence, until the intermediate state corresponding to the new target action is consistent with the target state.
[0141] Furthermore, it also includes:
[0142] The execution module is used to: after executing the target action, obtain the timestamp of the intermediate state corresponding to the target action;
[0143] The determining whether the intermediate state is consistent with a preset target state includes:
[0144] Whether the intermediate state is consistent with the preset target state is determined according to the timestamp of the intermediate state.
[0145] It should be noted that the beneficial effects of the system for state space vectorization representation of task planning for complex temporal constraints provided by the above-mentioned embodiment are the same as the beneficial effects of the method for state space vectorization representation of task planning for complex temporal constraints, which will not be repeated here. In addition, when the system provided by the above-mentioned embodiment realizes its functions, it only uses the division of the above-mentioned functional modules as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the system can be divided into different functional modules according to actual conditions to complete all or part of the functions described above. In addition, the system and method embodiments provided by the above-mentioned embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0146] like Figure 7As shown, an electronic device 300 according to an embodiment of the present invention includes a processor 320, the processor 320 is coupled to a memory 310, and the memory 310 stores at least one computer program 330, and the at least one computer program 330 is loaded and executed by the processor 320, so that the electronic device 300 implements any of the above methods, specifically:
[0147] The electronic device 300 may have relatively large differences due to different configurations or performances, and may include one or more processors 320 (Central Processing Units, CPU) and one or more memories 310, wherein the one or more memories 310 store at least one computer program 330, and the at least one computer program 330 is loaded and executed by the one or more processors 320, so that the electronic device 300 implements a state space vector representation method for task planning facing complex temporal constraints provided by the above embodiment. Of course, the electronic device 300 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the electronic device 300 may also include other components for realizing device functions, which will not be repeated here.
[0148] A computer-readable storage medium according to an embodiment of the present invention stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements any one of the above methods.
[0149] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0150] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs any of the above methods.
[0151] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects and represent the definition of a specific order or sequence. The order of use of similar objects can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than the order shown or described.
[0152] Those skilled in the art know that the present invention can be implemented as a system, method or computer program product. Therefore, the present disclosure can be specifically implemented in the following forms, namely: it can be complete hardware, it can be complete software (including firmware, resident software, microcode, etc.), or it can be a combination of hardware and software, which is generally referred to as "circuit", "module" or "system" herein. In addition, in some embodiments, the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable medium contains computer-readable program code.
[0153] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0154] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A state space vectorization representation method for task planning with complex temporal constraints, characterized in that: include: Get the current status of any action device in the space station; Determine a state space vector corresponding to any action device of the space station according to the current state, wherein the state space vector is represented by a five-tuple; Among them, the quintuple includes: a set M for recording the values of all continuous functions in the task plan at time t, a set P for recording the state attributes corresponding to time t, a set Π for recording the persistence conditions, a set Q for recording the occurrence times corresponding to all task plans in any event, and a timestamp t for representing the current state, wherein any event contains at least one task plan, and any task plan contains at least one action device. The continuous function represents the change state of the resource value of the task object corresponding to any task plan, the state attribute represents the completion state of the task object corresponding to any task plan, and the persistence condition represents that before completing any task plan, the value of the continuous function of the task object corresponding to the task plan does not change.
2. The method for state space vectorization of task planning for complex temporal constraints according to claim 1, characterized in that: Also includes: According to the current state, the target state and the current planning sequence, the target action corresponding to any action device at the next moment of the current moment is determined in the action set to execute the target action at the next moment.
3. The method for state space vectorization of task planning for complex temporal constraints according to claim 2, characterized in that: The step of determining, according to the current state, the target state, and the current planning sequence, a target action corresponding to the next moment of any action device at the current moment in the action set includes: Determine, according to the current state, the target state and the current planned sequence, a candidate action corresponding to the next moment of any action device at the current moment in the action set; It is determined whether the candidate action is an applicable action. If the candidate action is an applicable action, the candidate action is determined as the target action corresponding to the next moment.
4. The method for state space vectorization representation of task planning for complex temporal constraints according to claim 3 is characterized in that: The determining whether the candidate action is an applicable action includes: Determine whether the candidate action satisfies a preset condition. If the candidate action satisfies the preset condition, determine that the candidate action is an applicable action. If the candidate action does not satisfy the preset condition, determine that the candidate action is not an applicable action. The preset condition includes: All state attributes of the action satisfy the set P and the set M; The change state of the resource value of the action is not mutually exclusive with any continuous condition in the set ∏ and any event in the set Q; The duration condition of an action is not mutually exclusive with any duration condition in set ∏ and any event in set Q.
5. The method for state space vectorization representation of task planning for complex temporal constraints according to claim 2, characterized in that: Also includes: According to the target action, the current state is updated to obtain an intermediate state corresponding to the target action.
6. The method for state space vectorization of task planning for complex temporal constraints according to claim 5, characterized in that: Also includes: Determining whether the intermediate state is consistent with a preset target state; If the intermediate state is consistent with the target state, determining the target action sequence corresponding to any one of the action devices according to the updated state; If the intermediate state is inconsistent with the target state, the process of determining the target action corresponding to any action device in the action set at the next moment of the current moment is re-executed according to the current state, the target state and the current planning sequence, until the intermediate state corresponding to the new target action is consistent with the target state.
7. The method for state space vectorization of task planning for complex temporal constraints according to claim 6, characterized in that: Also includes: After executing the target action, obtaining a timestamp of an intermediate state corresponding to the target action; The determining whether the intermediate state is consistent with a preset target state includes: Whether the intermediate state is consistent with the preset target state is determined according to the timestamp of the intermediate state.
8. A task planning state space vectorization representation system for complex temporal constraints, characterized by: include: The acquisition module is used to: obtain the current status of any action device of the space station; The representation module is used to: determine a state space vector corresponding to any action device of the space station according to the current state, wherein the state space vector is represented by a five-tuple; Among them, the quintuple includes: a set M for recording the values of all continuous functions in the task plan at time t, a set P for recording the state attributes corresponding to time t, a set Π for recording the persistence conditions, a set Q for recording the occurrence times corresponding to all task plans in any event, and a timestamp t for representing the current state, wherein any event contains at least one task plan, and any task plan contains at least one action device. The continuous function represents the change state of the resource value of the task object corresponding to any task plan, the state attribute represents the completion state of the task object corresponding to any task plan, and the persistence condition represents that before completing any task plan, the value of the continuous function of the task object corresponding to the task plan does not change.
9. An electronic device, characterized in that: The electronic device comprises a processor, the processor is coupled to a memory, at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor so that the electronic device implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Time redundancy heuristic planning method, device and equipment for space station operation tasks
CN113283789A
Driving equipment positioning method and device, equipment and storage medium
CN113804194A
Universal spacecraft heuristic temporal programming modeling and solving method
CN114638082A
Task planning execution method and system for event group, medium and equipment
CN115689165A
Mechanical arm complex operation skill learning method and system based on hierarchical reinforcement learning
CN116079737A
