[go: up one dir, main page]

CN117744497A - Robot mission planning model construction system, method, equipment and storage medium - Google Patents

Robot mission planning model construction system, method, equipment and storage medium Download PDF

Info

Publication number
CN117744497A
CN117744497A CN202311818506.9A CN202311818506A CN117744497A CN 117744497 A CN117744497 A CN 117744497A CN 202311818506 A CN202311818506 A CN 202311818506A CN 117744497 A CN117744497 A CN 117744497A
Authority
CN
China
Prior art keywords
task
robot
text
level interface
simulation environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311818506.9A
Other languages
Chinese (zh)
Inventor
李滨君
王赞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ubtech Technology Co ltd
Original Assignee
Shenzhen Ubtech Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ubtech Technology Co ltd filed Critical Shenzhen Ubtech Technology Co ltd
Priority to CN202311818506.9A priority Critical patent/CN117744497A/en
Publication of CN117744497A publication Critical patent/CN117744497A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulator (AREA)

Abstract

The invention discloses a robot task planning model construction system, a method, equipment and a storage medium. The system comprises: the model module is used for acquiring an initial sentence, extracting the initial sentence by utilizing the large-scale pre-training language model to generate a task sequence, wherein the task sequence comprises a high-level interface and a low-level interface; the simulator module is used for constructing a simulation environment from top to bottom according to the high-level interface and the low-level interface, abstracting the real operation of the robot in the real environment into the simulation operation in the simulation environment, and verifying whether the simulation operation meets the expected target; the data generation module is used for determining a task target in the simulation environment, searching a task path according to the task target, generating an initial text according to the task path, and performing text enhancement on the initial text to obtain an enhanced text. The method realizes the use of a simple data structure in a high-level interface through a top-down simulator design and data generation method, reduces the construction cost of a new scene, and reduces the calculation force requirement in the verification and generation process.

Description

机器人任务规划模型构建系统、方法、设备及存储介质Robot mission planning model construction system, method, equipment and storage medium

技术领域Technical field

本发明涉及机器人控制技术领域,尤其涉及一种机器人任务规划模型构建系统、方法、设备及存储介质。The invention relates to the field of robot control technology, and in particular to a robot task planning model construction system, method, equipment and storage medium.

背景技术Background technique

机器人任务规划是现在机器人行业落地应用的痛点之一,其主要体现为机器人往往需要在多样的场景内作业,故多数机器人的能力均为基础的原子能力,例如“导航”、“抓取”、“播报”等,如果是需要在实际场景下通过业务的编排组合成完整的功能,例如拿水功能,就需要编排为:“导航→识别→移动→抓取→返回→播报→递交”这样的过程,过程中的参数还需要重新设置,而对于不同的场景需要的功能不同,同样的功能需要执行的指令序列也不同,这导致了对于每个新场景内的功能都需要重新设计和实现,这加大了机器人在各个场景落地的难度和成本,任务规划模型的目的就是将模糊的功能拆解为可以直接执行的能力序列。Robot task planning is one of the pain points in the current application of the robot industry. It is mainly reflected in the fact that robots often need to operate in a variety of scenarios. Therefore, the capabilities of most robots are basic atomic capabilities, such as "navigation", "grasping", "Broadcast", etc., if it needs to be combined into a complete function through business arrangement in actual scenarios, such as the function of getting water, it needs to be arranged as: "Navigation → Recognition → Move → Grab → Return → Broadcast → Submit" process, the parameters in the process also need to be reset, and different scenarios require different functions, and the same function requires different instruction sequences. This results in the need to redesign and implement the functions in each new scenario. This increases the difficulty and cost of implementing robots in various scenarios. The purpose of the mission planning model is to break down fuzzy functions into capability sequences that can be directly executed.

上述这种任务规划模型的输入需要包含用户的语句以及用于辅助模型进行判断的信息,主要形式例如为{“user”:“帮我拿瓶水”,“item_in_view”:[“可乐”,“餐桌”],“current_place”:“餐厅”},而输出为当前规划出的操作路径,可能不是完整的任务流程,例如[{“action”:“导航”,“action_object”:“厨房”},{“action”:“物体识别”}]这代表了上述拿水功能的前两步“导航”与“识别”,需要外部系统反馈识别到什么物体了才能继续规划后续行为。而上述方法中的数据存在一个问题是只能在特定的场景内部采集得到,而采集的成本往往较高,采集效率慢,不同场景数据不能复用,这往往会导致只能在封闭场景工作,而无法快速适应新的开放场景。The input of the above-mentioned task planning model needs to include the user's statements and information used to assist the model in making judgments. The main form is {"user": "Get me a bottle of water", "item_in_view": ["Cola", " Dining table"], "current_place": "Restaurant"}, and the output is the currently planned operation path, which may not be the complete task process, such as [{"action": "Navigation", "action_object": "Kitchen"}, {"action": "Object recognition"}] This represents the first two steps of "navigation" and "recognition" of the above-mentioned water-receiving function. Feedback from the external system is required to determine what objects have been recognized in order to continue planning subsequent actions. One problem with the data in the above method is that it can only be collected within a specific scene, and the cost of collection is often high, the collection efficiency is slow, and data from different scenes cannot be reused, which often results in work only in closed scenes. And cannot quickly adapt to new open scenarios.

现有技术往往直接使用物理引擎的模拟环境,采用的是一种自底向上的模拟环境构建方式,对于高级接口具有生成数据慢,判断条件难,验证需求算力大,必须要将底层物理实现才能进行模拟,难以直接适应各种层级的功能的需求(例如较为高级的接口是“导航到厨房”,较为低级的接口是“在地图搜索厨房→获取当前位置→使用路径规划算法→调用移动指令沿着规划出的路径移动”)等问题。Existing technologies often directly use the simulation environment of the physics engine, adopting a bottom-up simulation environment construction method. For advanced interfaces, data generation is slow, judgment conditions are difficult, and verification requires large computing power. The underlying physics must be implemented. It is difficult to directly adapt to the needs of various levels of functions (for example, the higher-level interface is "navigate to the kitchen", and the lower-level interface is "search for the kitchen on the map → get the current location → use the path planning algorithm → call the movement command move along the planned path") and other issues.

发明内容Contents of the invention

有鉴于此,本发明的目的是为了克服现有技术中的不足,提供一种机器人任务规划模型构建系统、方法、设备及存储介质。In view of this, the purpose of the present invention is to overcome the deficiencies in the existing technology and provide a robot mission planning model construction system, method, equipment and storage medium.

本发明提供如下技术方案:The present invention provides the following technical solutions:

第一方面,本公开实施例中提供了一种机器人任务规划模型构建系统,所述系统包括:In a first aspect, embodiments of the present disclosure provide a robot mission planning model construction system, which includes:

模型模块,用于获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,其中,所述任务序列包含高层接口与低层接口;The model module is used to obtain the initial statement input by the user, extract the initial statement using a large-scale pre-trained language model, and generate a task sequence, where the task sequence includes a high-level interface and a low-level interface;

模拟器模块,用于自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标;The simulator module is used to construct a simulation environment in the form of graph-structured data from top to bottom according to the high-level interface and the low-level interface, and abstract the real operations of the robot in the real environment into simulated operations in the simulation environment. , and verify whether the simulation operation meets the expected goals;

数据生成模块,用于在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本。A data generation module is used to determine a task goal in the simulation environment, search for a corresponding task path according to the task goal, generate initial text according to the task path, and perform text enhancement on the initial text to obtain enhanced text.

进一步地,所述模型模块包括:Further, the model module includes:

模型主体单元,用于获取批量数据,并对所述批量数据进行预训练,生成所述大规模预训练语言模型,并确定接口种类;The model main unit is used to obtain batch data, pre-train the batch data, generate the large-scale pre-trained language model, and determine the interface type;

前后处理单元,用于获取所述初始语句,并利用所述大规模预训练语言模型对所述初始语句进行正则化抽取,生成规划好的任务序列。A pre- and post-processing unit is used to obtain the initial statement, and use the large-scale pre-trained language model to perform regularized extraction on the initial statement to generate a planned task sequence.

进一步地,所述模拟器模块包括:Further, the simulator module includes:

模拟环境单元,用于自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建所述模拟环境,其中,所述图结构数据中数据图的节点为所述模拟环境中的具体物体,所述图结构数据中数据图的边为所述模拟环境中各所述具体物体间的关系,所述模拟环境中的高层接口的信息量少于低层接口的信息量;A simulation environment unit, configured to construct the simulation environment in the form of graph structure data from top to bottom according to the high-level interface and the low-level interface, wherein the nodes of the data graph in the graph structure data are in the simulation environment specific objects, the edges of the data graph in the graph structure data are the relationships between the specific objects in the simulation environment, and the information amount of the high-level interface in the simulation environment is less than the information amount of the low-level interface;

请求执行单元,用于将所述机器人的自身状态与所述机器人在现实环境中的现实操作,抽象为在所述模拟环境中的自身状态与模拟操作;A request execution unit configured to abstract the robot's own state and the robot's real operations in the real environment into its own state and simulated operations in the simulated environment;

验证单元,用于通过在所述模拟环境中检索所述具体物体的属性信息与边信息,验证所述模拟操作是否满足所述预期目标。A verification unit configured to verify whether the simulation operation meets the expected goal by retrieving the attribute information and side information of the specific object in the simulation environment.

进一步地,所述数据生成模块包括:Furthermore, the data generation module includes:

数据采样单元,用于通过搜索所述模拟环境中所述具体物体的属性信息,采样得到所述任务目标;A data sampling unit, configured to sample and obtain the task target by searching for attribute information of the specific object in the simulation environment;

路径搜索单元,用于通过根据所述任务目标搜索所述数据图,得到所述任务路径;A path search unit, configured to obtain the task path by searching the data graph according to the task target;

数据增强单元,用于根据所述任务路径利用预设模板生成所述初始文本,并通过预设文本增强工具对所述初始文本进行文本增强,得到所述增强文本。A data enhancement unit is configured to generate the initial text using a preset template according to the task path, and perform text enhancement on the initial text through a preset text enhancement tool to obtain the enhanced text.

第二方面,本公开实施例中提供了一机器人任务规划模型构建方法,应用于如第一方面所述的机器人任务规划模型构建系统,所述系统包括模型模块、模拟器模块与数据生成模块,所述方法包括:In the second aspect, embodiments of the present disclosure provide a method for constructing a robot mission planning model, which is applied to the robot mission planning model construction system described in the first aspect. The system includes a model module, a simulator module and a data generation module, The methods include:

通过所述模型模块获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,其中,所述任务序列包含高层接口与低层接口;Obtain the initial statement input by the user through the model module, extract the initial statement using a large-scale pre-trained language model, and generate a task sequence, where the task sequence includes a high-level interface and a low-level interface;

通过所述模拟器模块自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标;The simulator module constructs a simulation environment in the form of graph structure data from top to bottom according to the high-level interface and the low-level interface, and abstracts the real operations of the robot in the real environment into simulated operations in the simulation environment. , and verify whether the simulation operation meets the expected goals;

通过所述数据生成模块在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本。The data generation module determines a task goal in the simulation environment, searches for a corresponding task path according to the task goal, generates initial text according to the task path, and performs text enhancement on the initial text to obtain enhanced text.

进一步地,所述通过所述模型模块获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,包括:Further, the initial statement input by the user is obtained through the model module, the initial statement is extracted using a large-scale pre-trained language model, and the task sequence is generated, including:

获取批量数据,并对所述批量数据进行预训练,生成所述大规模预训练语言模型,并确定接口种类;Obtain batch data, perform pre-training on the batch data, generate the large-scale pre-trained language model, and determine the interface type;

获取所述初始语句,并利用所述大规模预训练语言模型对所述初始语句进行正则化抽取,生成规划好的任务序列。The initial statement is obtained, and the large-scale pre-trained language model is used to perform regularized extraction on the initial statement to generate a planned task sequence.

进一步地,所述自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标,包括:Further, the top-down construction of a simulation environment in the form of graph-structured data based on the high-level interface and the low-level interface abstracts the real operations of the robot in the real environment into simulated operations in the simulation environment, And verify whether the simulation operation meets the expected goals, including:

自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建所述模拟环境,其中,所述图结构数据中数据图的节点为所述模拟环境中的具体物体,所述图结构数据中数据图的边为所述模拟环境中各所述具体物体间的关系,所述模拟环境中的高层接口的信息量少于低层接口的信息量;The simulation environment is constructed in the form of graph structure data from top to bottom according to the high-level interface and the low-level interface, wherein the nodes of the data graph in the graph structure data are specific objects in the simulation environment, and the The edges of the data graph in the graph structure data are the relationships between the specific objects in the simulation environment, and the information amount of the high-level interface in the simulation environment is less than the information amount of the low-level interface;

将所述机器人的自身状态与所述机器人在现实环境中的现实操作,抽象为在所述模拟环境中的自身状态与模拟操作;Abstract the robot's own state and the robot's real operations in the real environment into its own state and simulated operations in the simulated environment;

通过在所述模拟环境中检索所述具体物体的属性信息与边信息,验证所述模拟操作是否满足所述预期目标。By retrieving the attribute information and side information of the specific object in the simulation environment, it is verified whether the simulation operation meets the expected goal.

进一步地,所述在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本,包括:Further, determining a task goal in the simulation environment, searching for a corresponding task path according to the task goal, generating an initial text according to the task path, and performing text enhancement on the initial text to obtain the enhanced text, including :

通过搜索所述模拟环境中所述具体物体的属性信息,采样得到所述任务目标;By searching the attribute information of the specific object in the simulation environment, the task target is sampled;

通过根据所述任务目标搜索所述数据图,得到所述任务路径;Obtain the task path by searching the data graph according to the task goal;

根据所述任务路径利用预设模板生成所述初始文本,并通过预设文本增强工具对所述初始文本进行文本增强,得到所述增强文本。The initial text is generated using a preset template according to the task path, and the initial text is text enhanced using a preset text enhancement tool to obtain the enhanced text.

第三方面,本公开实施例中提供了一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现第二方面中所述的机器人任务规划模型构建方法的步骤。In a third aspect, an embodiment of the present disclosure provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the computer program in the second aspect is implemented. The steps of the robot mission planning model construction method described above.

第四方面,本公开实施例中提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现第二方面中所述的机器人任务规划模型构建方法的步骤。In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium that stores a computer program. When the computer program is executed by a processor, the robot task described in the second aspect is implemented. Steps in planning a model-building approach.

本申请的实施例具有如下优点:The embodiments of the present application have the following advantages:

本申请实施例提供的机器人任务规划模型构建系统,系统包括:模型模块,用于获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,其中,所述任务序列包含高层接口与低层接口;模拟器模块,用于自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标;数据生成模块,用于在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本。本申请通过自顶向下的模拟器设计以及对应的数据生成方法来实现在对于高层的场景,使用简单的数据结构,减少新场景所需投入的构建成本降低了模拟,同时减少在验证和生成过程中的算力需求。The robot task planning model construction system provided by the embodiment of the present application includes: a model module, used to obtain the initial statement input by the user, extract the initial statement using a large-scale pre-trained language model, and generate a task sequence, wherein: The above task sequence includes a high-level interface and a low-level interface; a simulator module is used to construct a simulation environment in the form of graph-structured data from top to bottom according to the high-level interface and the low-level interface, and abstract the actual operation of the robot in the real environment. To simulate operations in the simulation environment and verify whether the simulation operations meet expected goals; a data generation module for determining task goals in the simulation environment, searching for corresponding task paths according to the task goals, and The task path generates initial text, and text enhancement is performed on the initial text to obtain enhanced text. This application uses top-down simulator design and corresponding data generation methods to implement high-level scenarios, using simple data structures to reduce the construction costs required for new scenarios, reduce simulation, and reduce the need for verification and generation. Computing power requirements during the process.

为使本发明的上述目的、特征和优点能更明显和易懂,下文特举较佳实施例,并配合所附附图,做详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, preferred embodiments are given below and described in detail with reference to the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。在各个附图中,类似的构成部分采用类似的编号。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and therefore do not It should be regarded as a limitation of the scope. For those of ordinary skill in the art, other relevant drawings can also be obtained based on these drawings without exerting creative efforts. In the various drawings, similar components are numbered similarly.

图1示出了本申请实施例提供的一种机器人任务规划模型构建系统的流程图;Figure 1 shows a flow chart of a robot mission planning model construction system provided by an embodiment of the present application;

图2示出了本申请实施例提供的一种模拟环境的示意图;Figure 2 shows a schematic diagram of a simulation environment provided by an embodiment of the present application;

图3示出了本申请实施例提供的一种机器人任务规划模型构建方法的结构示意图。Figure 3 shows a schematic structural diagram of a method for constructing a robot mission planning model provided by an embodiment of the present application.

主要元器件符号说明:Description of main component symbols:

100-机器人任务规划模型构建系统;110-模型模块;111-模型主体单元;112-前后处理单元;120-模拟器模块;121-模拟环境单元;122-请求执行单元;123-验证单元;130-数据生成模块;131-数据采样单元;132-路径搜索单元;133-数据增强单元。100-Robot mission planning model construction system; 110-Model module; 111-Model main unit; 112-Pre- and post-processing unit; 120-Simulator module; 121-Simulation environment unit; 122-Request execution unit; 123-Verification unit; 130 -Data generation module; 131-data sampling unit; 132-path search unit; 133-data enhancement unit.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present invention and cannot be understood as limiting the present invention.

需要说明的是,当元件被称为“固定于”另一个元件,它可以直接在另一个元件上或者也可以存在居中的元件。当一个元件被认为是“连接”另一个元件,它可以是直接连接到另一个元件或者可能同时存在居中元件。相反,当元件被称作“直接在”另一元件“上”时,不存在中间元件。本文所使用的术语“垂直的”、“水平的”、“左”、“右”以及类似的表述只是为了说明的目的。It should be noted that when an element is referred to as being "fixed" to another element, it can be directly on the other element or intervening elements may also be present. When an element is said to be "connected" to another element, it can be directly connected to the other element or there may also be intervening elements present. In contrast, when an element is referred to as being "directly on" another element, there are no intervening elements present. The terms "vertical," "horizontal," "left," "right" and similar expressions are used herein for illustrative purposes only.

在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly stated and limited, the terms "installation", "connection", "connection", "fixing" and other terms should be understood in a broad sense. For example, it can be a fixed connection or a detachable connection. , or integrated; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two elements or an interaction between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present invention, "plurality" means two or more than two, unless otherwise explicitly and specifically limited.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在模板的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在限制本发明。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terminology used herein in the description of the template is for the purpose of describing specific embodiments only and is not intended to limit the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

实施例1Example 1

本申请提出的机器人任务规划模型系统主要解决的是两个问题,其一是信息迁移的问题,其二是对于场景不同层级的接口需要不同的层级的功能,若使用物理引擎直接构建首先需要先实现底层物理实现,这增加了模拟工作的复杂度,同时造成了在不同场景下场景难以迁移的问题;其三是对于多数模拟器,难以通过采样方式同样生成输入与标签,这降低了数据生成的效率。如图1所示,为本申请实施例中的一种机器人任务规划模型构建系统100的结构示意图,其系统包括:The robot mission planning model system proposed in this application mainly solves two problems. One is the problem of information migration, and the other is that interfaces at different levels of the scene require different levels of functions. If you use the physics engine to build it directly, you first need to Implementing the underlying physical implementation increases the complexity of the simulation work and makes it difficult to migrate scenarios in different scenarios. Thirdly, for most simulators, it is difficult to generate inputs and labels through sampling, which reduces data generation. s efficiency. As shown in Figure 1, it is a schematic structural diagram of a robot mission planning model construction system 100 in an embodiment of the present application. The system includes:

模型模块110,用于获取用户输入的初始语句,利用大规模预训练语言模型对初始语句进行抽取,生成任务序列,其中,任务序列包含高层接口与低层接口。The model module 110 is used to obtain the initial statement input by the user, extract the initial statement using a large-scale pre-trained language model, and generate a task sequence, where the task sequence includes a high-level interface and a low-level interface.

具体地,模型模块110还包括:模型主体单元111,用于获取批量数据,并对批量数据进行预训练,生成大规模预训练语言模型,并确定接口种类;前后处理单元112,用于获取初始语句,并利用大规模预训练语言模型对初始语句进行正则化抽取,生成规划好的任务序列。Specifically, the model module 110 also includes: a model main unit 111, used to obtain batch data, pre-train the batch data, generate a large-scale pre-trained language model, and determine the interface type; a pre- and post-processing unit 112, used to obtain the initial Statements, and use a large-scale pre-trained language model to regularize the initial statements to generate a planned task sequence.

可以理解的是,本申请的机器人任务规划模型构建系统100其主要目标是训练出一套将机器人在与人交互过程中模糊的指令拆解为机器人可以直接执行指令的模型,并实现其任务拆解功能。在本发明中,系统包含几个部分:模型模块110、模拟器模块120和数据生成模块130。It can be understood that the main goal of the robot task planning model construction system 100 of the present application is to train a set of models that decompose the fuzzy instructions of the robot during the interaction with humans into a model that the robot can directly execute the instructions, and realize its task decomposition. solution function. In the present invention, the system includes several parts: model module 110, simulator module 120 and data generation module 130.

其中,模型模块110用于实现模型的训练与推理,包括模型主体单元111和前后处理单元112,模型模块110中的模型主体单元111主要通过获取批量数据,并对批量数据进行预训练得到大规模预训练语言模型,这种模型的输入输出均为文本,且由于在大规模的批量数据上进行过预训练,利用模型预训练中学到的知识,可以带有一定将某个场景的知识迁移到其他场景下的功能,从而减少了新场景所需投入的训练成本。Among them, the model module 110 is used to implement model training and inference, including a model main unit 111 and a pre- and post-processing unit 112. The model main unit 111 in the model module 110 mainly obtains batch data and pre-trains the batch data to obtain large-scale data. Pre-training language model, the input and output of this model are text, and because it is pre-trained on large-scale batch data, using the knowledge learned in model pre-training, the knowledge of a certain scene can be transferred to functions in other scenarios, thereby reducing the training costs required for new scenarios.

另外,在模型模块110中的前后处理单元112主要工作是将输入输出构造为对应于输出的形式,前后处理单元112的输入是用户输入的初始语句或其他外部输入,前后处理单元112的输出是经过大规模预训练语言模型正则化抽取后的已经规划好的任务序列,任务序列中的元素(即高层接口与低层接口)在模型主体单元111预训练开始时确定。In addition, the main job of the pre- and post-processing unit 112 in the model module 110 is to construct the input and output into a form corresponding to the output. The input of the pre- and post-processing unit 112 is the initial sentence input by the user or other external input, and the output of the pre- and post-processing unit 112 is The planned task sequence has been extracted through regularization of a large-scale pre-trained language model. The elements in the task sequence (ie, high-level interfaces and low-level interfaces) are determined at the beginning of pre-training of the model main unit 111.

需要说明的是,在本实施例中,正则化抽取主要是prompt工程和一些信息抽取方法,具体的抽取方法可根据实际情况确定,本实施例对此不作限定。It should be noted that in this embodiment, regularization extraction mainly includes prompt engineering and some information extraction methods. The specific extraction method can be determined according to the actual situation, and this embodiment does not limit this.

对于模型部分,本发明中选择了大规模预训练语言模型作为方案,这种方案可以利用语言模型在其他文本上学到的知识,让模型理解现在在做的内容具体是什么,增加了模型泛化到新的场景的能力。For the model part, the present invention chooses a large-scale pre-trained language model as a solution. This solution can use the knowledge learned by the language model on other texts to allow the model to understand what the specific content is currently doing, and increases model generalization. The ability to reach new scenarios.

模拟器模块120,用于自顶向下根据高层接口与低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在模拟环境中的模拟操作,并验证模拟操作是否满足预期目标。The simulator module 120 is used to construct a simulation environment in the form of graph-structured data from top to bottom based on high-level interfaces and low-level interfaces, abstract the real operations of the robot in the real environment into simulated operations in the simulated environment, and verify the simulated operations. Whether it meets the expected goals.

具体地,模拟器模块120包括:模拟环境单元121,用于自顶向下根据高层接口与低层接口以图结构数据的形式构建模拟环境,其中,图结构数据中数据图的节点为模拟环境中的具体物体,图结构数据中数据图的边为模拟环境中各具体物体间的关系,模拟环境中的高层接口的信息量少于低层接口的信息量;请求执行单元122,用于将机器人的自身状态与机器人在现实环境中的现实操作,抽象为在模拟环境中的自身状态与模拟操作;验证单元123,用于通过在模拟环境中检索具体物体的属性信息与边信息,验证模拟操作是否满足预期目标。Specifically, the simulator module 120 includes: a simulation environment unit 121, which is used to construct a simulation environment in the form of graph structure data from top to bottom according to high-level interfaces and low-level interfaces, wherein the nodes of the data graph in the graph structure data are specific objects in the simulation environment, the edges of the data graph in the graph structure data are the relationships between specific objects in the simulation environment, and the amount of information of the high-level interfaces in the simulation environment is less than that of the low-level interfaces; a request execution unit 122, which is used to abstract the robot's own state and the robot's real operation in the real environment into its own state and simulated operation in the simulation environment; a verification unit 123, which is used to verify whether the simulation operation meets the expected goal by retrieving the attribute information and edge information of the specific objects in the simulation environment.

可以理解的是,模拟器模块120主要的作用是为数据生成模块130中的数据采样提供场景依据,为生成的任务规划提供验证,其主要由树结构的场景数据以及执行方法实现。It can be understood that the main function of the simulator module 120 is to provide scenario basis for data sampling in the data generation module 130 and to provide verification for the generated task plan, which is mainly implemented by tree-structured scenario data and execution methods.

具体地,模拟环境单元121自顶向下根据高层接口与低层接口以图结构数据的形式构建模拟环境,在本发明中,模拟环境被以图结构数据的形式构建,在这种图结构数据中图的节点为模拟环境中的具体物体,图的边为具体物体之间的关系,而机器人被抽象为状态的集合,机器人的每个操作被认为是对机器人状态的修改或对图结构数据的增删改查,随着接口逐步深入底层,图结构中节点信息逐渐变为更加详细。如图2所示,模拟器模块120中的模拟环境被设计为多层级的图数据结构。Specifically, the simulation environment unit 121 constructs a simulation environment in the form of graph-structured data from top to bottom according to the high-level interface and the low-level interface. In the present invention, the simulation environment is constructed in the form of graph-structured data. In this graph-structured data The nodes of the graph are specific objects in the simulation environment, and the edges of the graph are the relationships between specific objects. The robot is abstracted as a collection of states. Each operation of the robot is considered to be a modification of the robot state or a modification of the graph structure data. With additions, deletions, modifications and searches, as the interface gradually goes deeper into the bottom layer, the node information in the graph structure gradually becomes more detailed. As shown in Figure 2, the simulation environment in the simulator module 120 is designed as a multi-level graph data structure.

图2中左侧为高层接口,右侧为低层接口,所有场景下面有场景根节点,除根节点外场景分为两层,分别是地点层(图中场景根节点)和物品层(图中厨房),地点层的元素会存储房间内具体物体的相关信息(例如途中卧室、卫生间、厨房等)和一个单独的物品层(例如灶台、铁锅、垃圾桶等),在左侧高层接口中,由于不需要管房间具体的移动路径,房间内具体物体的相关信息(例如右侧低层接口中的“房间互通”)可以省略;而在左侧高层接口中,物品层的元素会存储单个具体物品相关属性及与其他物品的信息。In Figure 2, the left side is the high-level interface, and the right side is the low-level interface. There is a scene root node under all scenes. Except for the root node, the scene is divided into two layers, namely the location layer (the scene root node in the picture) and the item layer (the kitchen in the picture). ), the location layer elements will store information about specific objects in the room (such as bedrooms, bathrooms, kitchens, etc.) and a separate item layer (such as stoves, iron pots, trash cans, etc.), in the high-level interface on the left , since there is no need to care about the specific movement path of the room, the relevant information of specific objects in the room (such as "room interconnection" in the low-level interface on the right) can be omitted; while in the high-level interface on the left, the elements of the item layer will store a single specific Item-related attributes and information about other items.

因此,在越高层的接口中信息越少,因为高层接口不需要考虑低层接口如何实现,随着接口逐渐深入底层,图结构中节点信息逐渐变为更加详细,场景中通过在属性、关系之中补充额外的信息令模拟器模块120可以正常表示所需的功能。这样的设计在只使用高层接口时不必消耗额外算力去计算低层接口的逻辑实现,降低了高层接口模拟实现的复杂性和算力需求,便于验证后续任务规划效果。Therefore, there is less information in the higher-level interfaces, because the high-level interfaces do not need to consider how the low-level interfaces are implemented. As the interfaces gradually penetrate into the bottom layer, the node information in the graph structure gradually becomes more detailed. In the scene, through attributes and relationships, Supplementing additional information allows the simulator module 120 to properly represent the required functions. Such a design does not require additional computing power to calculate the logic implementation of the low-level interface when only using high-level interfaces, reduces the complexity and computing power requirements of high-level interface simulation implementation, and facilitates verification of subsequent task planning effects.

进一步地,而模拟器模块120的请求执行单元122主要表示机器人本身的状态与机器人在现实环境中现实操作会带来的影响,在本发明中在现实环境中机器人本身的状态与现实操作的影响被抽象为在模拟环境中自身状态或模拟操作的影响,例如机器人执行一个“导航到厨房”的行为,即为修改机器人的自身状态的所在位置为厨房,执行一个“打开垃圾桶”操作即为模拟环境中垃圾桶的属性可打开的为可关闭的,对于不同层级的接口,可供执行的行为有所不同,需要确定抽象等级。Furthermore, the request execution unit 122 of the simulator module 120 mainly represents the state of the robot itself and the impact of the actual operation of the robot in the real environment. In the present invention, the state of the robot itself and the impact of the actual operation in the real environment It is abstracted as the influence of its own state or simulated operations in the simulation environment. For example, when a robot performs a "navigation to the kitchen" behavior, it modifies the robot's own state and the location is the kitchen, and performs an "open trash can" operation. The attributes of the trash can in the simulation environment can be opened or closed. For interfaces at different levels, the behaviors that can be executed are different, and the abstraction level needs to be determined.

模拟器模块120的验证单元123主要用于通过在模拟环境中检索具体物体的属性信息与边信息,来评估机器人的模拟操作是否达到了预期目标。The verification unit 123 of the simulator module 120 is mainly used to evaluate whether the robot's simulation operation achieves the expected goal by retrieving attribute information and side information of specific objects in the simulation environment.

通过自顶向下构造模拟环境,以此避免了低层实现的复杂性带来的采样困难,同时通过高层的特性采样可以直接得到模拟环境中可能执行的基础任务,避免了需要人工大量标注的问题,同时由于场景构建简单,易于迁移到其他场景,减少了在不同场景落地的消耗。By constructing the simulation environment from top to bottom, we avoid sampling difficulties caused by the complexity of low-level implementation. At the same time, through high-level feature sampling, we can directly obtain the basic tasks that may be performed in the simulation environment, avoiding the problem of requiring a large number of manual annotations. , and at the same time, because the scene construction is simple and easy to migrate to other scenes, it reduces the consumption of landing in different scenes.

数据生成模块130,用于在模拟环境中确定任务目标,根据任务目标搜索对应的任务路径,根据任务路径生成初始文本,并对初始文本进行文本增强,得到增强文本。The data generation module 130 is used to determine the task goal in the simulation environment, search for the corresponding task path according to the task goal, generate the initial text according to the task path, and perform text enhancement on the initial text to obtain the enhanced text.

具体地,数据生成模块130包括:数据采样单元131,用于通过搜索模拟环境中具体物体的属性信息,采样得到任务目标;路径搜索单元132,用于通过根据任务目标搜索数据图,得到任务路径;数据增强单元133,用于根据任务路径利用预设模板生成初始文本,并通过预设文本增强工具对所述初始文本进行文本增强,得到所述增强文本。Specifically, the data generation module 130 includes: a data sampling unit 131, used to sample and obtain the task target by searching the attribute information of specific objects in the simulation environment; a path search unit 132, used to obtain the task path by searching the data graph according to the task target. ; Data enhancement unit 133, used to generate initial text using a preset template according to the task path, and perform text enhancement on the initial text through a preset text enhancement tool to obtain the enhanced text.

可以理解的是,数据生成模块130主要用于训练数据的获取、生成与增强,主要的工作是在给定的模拟环境下,给出一个可以执行的目标、执行目标前用户输入的任务路径与执行目标的步骤。It can be understood that the data generation module 130 is mainly used for the acquisition, generation and enhancement of training data. The main job is to provide an executable goal, the task path input by the user before executing the goal, and the task path in a given simulation environment. Steps to execute the goal.

具体地,数据生成模块130中的数据采样单元131通过模拟环境中具体物体的属性信息采样选取出形如“把{item1}放到{item2}里面”、“打开{item}”等操作的任务目标,例如:移动、铁锅、灶台。数据生成模块130中的路径搜索单元132根据任务目标搜索模拟器模块120中数据图,得到对应的任务路径,例如:搜索铁锅、拿起铁锅。数据生成模块130中的数据增强单元133通过预设模板的方式得到初始文本,例如:把铁锅拿到灶台上、将铁锅放到灶台上。再通过预设文本增强工具(转写、改写等)获得增强文本,例如:把锅拿到灶台上,给锅放回灶台。Specifically, the data sampling unit 131 in the data generation module 130 selects tasks in the form of "put {item1} into {item2}", "open {item}" and other operations by sampling the attribute information of specific objects in the simulation environment. Targets, such as: mobile, wok, stove. The path search unit 132 in the data generation module 130 searches the data graph in the simulator module 120 according to the task target and obtains the corresponding task path, for example: searching for an iron pot and picking up an iron pot. The data enhancement unit 133 in the data generation module 130 obtains the initial text through a preset template, for example: take the iron pot to the stove and put the iron pot on the stove. Then use preset text enhancement tools (transcription, rewriting, etc.) to obtain enhanced text, for example: take the pot to the stove and put the pot back on the stove.

本发明的方法主要是针对现有机器人任务规划场景下数据缺失、模拟环境构建困难等问题导致模型落地困难的现状,提出了一套机器人任务规划模型构建系统100,完成数据获取、数据增强、模型验证等过程,实现了降低模型落地和场景迁移的消耗的复杂度。相较于现有的自底向上模拟环境构建方式,本发明中使用了自顶向下的构建方式,对于高层的接口无需实现低层的逻辑,降低了系统整体的复杂程度,同时减少了在模拟器验证过程中的算力需求。由这种模拟器的特点决定,在系统中可以轻易获取场景内部的数据避免了人工标注带来的成本,同时通过文本增强手段保证了语言的多样性。The method of the present invention is mainly aimed at the current situation that problems such as lack of data and difficulty in constructing a simulation environment in existing robot mission planning scenarios lead to difficulties in model implementation. A set of robot mission planning model construction systems 100 are proposed to complete data acquisition, data enhancement, and model building. Processes such as verification reduce the complexity of model implementation and scene migration. Compared with the existing bottom-up simulation environment construction method, the present invention uses a top-down construction method. There is no need to implement low-level logic for high-level interfaces, which reduces the overall complexity of the system and reduces the time required for simulation. Computing power requirements during the device verification process. Determined by the characteristics of this simulator, the system can easily obtain the data inside the scene to avoid the cost of manual annotation, and at the same time ensure the diversity of languages through text enhancement.

本申请实施例提供的机器人任务规划模型构建系统100,通过自顶向下的模拟器设计以及对应的数据生成方法来实现在对于高层的场景,使用简单的数据结构,减少新场景所需投入的构建成本降低了模拟,同时减少在验证和生成过程中的算力需求。The robot mission planning model construction system 100 provided by the embodiment of the present application implements high-level scenarios through top-down simulator design and corresponding data generation methods, using simple data structures to reduce the investment required for new scenarios. Construction costs are reduced for simulations while reducing computational power requirements during verification and generation.

实施例2Example 2

如图3所示,为本申请实施例中的一种机器人任务规划模型构建方法的流程图,本申请实施例提供的机器人任务规划模型构建方法应用于如实施例1所述的机器人任务规划模型构建系统100,所述系统包括模型模块110、模拟器模块120与数据生成模块130,具体包括以下步骤:As shown in Figure 3, it is a flow chart of a robot mission planning model construction method in an embodiment of the present application. The robot mission planning model construction method provided by the embodiment of the present application is applied to the robot mission planning model as described in Embodiment 1. Construct the system 100, which includes a model module 110, a simulator module 120 and a data generation module 130, specifically including the following steps:

步骤S310,通过所述模型模块110获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,其中,所述任务序列包含高层接口与低层接口。Step S310: Obtain the initial statement input by the user through the model module 110, extract the initial statement using a large-scale pre-trained language model, and generate a task sequence, where the task sequence includes a high-level interface and a low-level interface.

在一种可选的实施方式中,所述通过所述模型模块110获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,包括:In an optional implementation, the initial statement input by the user is obtained through the model module 110, the initial statement is extracted using a large-scale pre-trained language model, and a task sequence is generated, including:

获取批量数据,并对所述批量数据进行预训练,生成所述大规模预训练语言模型,并确定接口种类;Obtain batch data, perform pre-training on the batch data, generate the large-scale pre-trained language model, and determine the interface type;

获取所述初始语句,并利用所述大规模预训练语言模型对所述初始语句进行正则化抽取,生成规划好的任务序列。The initial statement is obtained, and the large-scale pre-trained language model is used to perform regularized extraction on the initial statement to generate a planned task sequence.

具体步骤已在实施例1中进行说明,在此不再赘述。The specific steps have been described in Embodiment 1 and will not be repeated here.

步骤S320,通过所述模拟器模块120自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标。Step S320: The simulator module 120 constructs a simulation environment in the form of graph structure data from top to bottom according to the high-level interface and the low-level interface, and abstracts the actual operation of the robot in the real environment into the simulation environment. Simulation operations in and verify whether the simulation operations meet the expected goals.

在一种可选的实施方式中,所述自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标,包括:In an optional implementation, the top-down construction of a simulation environment in the form of graph-structured data is based on the high-level interface and the low-level interface, and the real operations of the robot in the real environment are abstracted into the Simulate operations in a simulated environment and verify that said simulated operations meet expected goals, including:

自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建所述模拟环境,其中,所述图结构数据中数据图的节点为所述模拟环境中的具体物体,所述图结构数据中数据图的边为所述模拟环境中各所述具体物体间的关系,所述模拟环境中的高层接口的信息量少于低层接口的信息量;The simulation environment is constructed in the form of graph structure data from top to bottom according to the high-level interface and the low-level interface, wherein the nodes of the data graph in the graph structure data are specific objects in the simulation environment, and the The edges of the data graph in the graph structure data are the relationships between the specific objects in the simulation environment, and the information amount of the high-level interface in the simulation environment is less than the information amount of the low-level interface;

将所述机器人的自身状态与所述机器人在现实环境中的现实操作,抽象为在所述模拟环境中的自身状态与模拟操作;Abstract the robot's own state and the robot's real operations in the real environment into its own state and simulated operations in the simulated environment;

通过在所述模拟环境中检索所述具体物体的属性信息与边信息,验证所述模拟操作是否满足所述预期目标。By retrieving the attribute information and side information of the specific object in the simulation environment, it is verified whether the simulation operation meets the expected goal.

具体步骤已在实施例1中进行说明,在此不再赘述。The specific steps have been described in Embodiment 1 and will not be repeated here.

步骤S330,通过所述数据生成模块130在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本。Step S330: Determine a task goal in the simulation environment through the data generation module 130, search for a corresponding task path according to the task goal, generate initial text according to the task path, and perform text enhancement on the initial text. Get enhanced text.

在一种可选地实施方式中,所述在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本,包括:In an optional implementation, the task goal is determined in the simulation environment, the corresponding task path is searched according to the task goal, the initial text is generated according to the task path, and the initial text is text-based. Enhance, get enhanced text, including:

通过搜索所述模拟环境中所述具体物体的属性信息,采样得到所述任务目标;By searching the attribute information of the specific object in the simulation environment, the task target is sampled;

通过根据所述任务目标搜索所述数据图,得到所述任务路径;Obtain the task path by searching the data graph according to the task goal;

根据所述任务路径利用预设模板生成所述初始文本,并通过预设文本增强工具对所述初始文本进行文本增强,得到所述增强文本。The initial text is generated using a preset template according to the task path, and the initial text is text enhanced using a preset text enhancement tool to obtain the enhanced text.

具体步骤已在实施例1中进行说明,在此不再赘述。The specific steps have been described in Embodiment 1 and will not be repeated here.

本申请实施例提供的机器人任务规划模型构建方法,应用于如实施例1所述的机器人任务规划模型构建系统100,所述系统包括模型模块110、模拟器模块120与数据生成模块130,通过所述模型模块110获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,其中,所述任务序列包含高层接口与低层接口;通过所述模拟器模块120自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标;通过所述数据生成模块130在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本。上述方法通过自顶向下的模拟器设计以及对应的数据生成方法来实现在对于高层的场景,使用简单的数据结构,减少新场景所需投入的构建成本降低了模拟,同时减少在验证和生成过程中的算力需求。The robot mission planning model construction method provided by the embodiment of the present application is applied to the robot mission planning model construction system 100 as described in Embodiment 1. The system includes a model module 110, a simulator module 120 and a data generation module 130. Through the The model module 110 obtains the initial statement input by the user, uses a large-scale pre-trained language model to extract the initial statement, and generates a task sequence, where the task sequence includes a high-level interface and a low-level interface; through the simulator module 120 From top to bottom, a simulation environment is constructed in the form of graph-structured data according to the high-level interface and the low-level interface, the real-life operations of the robot in the real environment are abstracted into simulated operations in the simulation environment, and the simulation is verified Whether the operation meets the expected goal; determine the task goal in the simulation environment through the data generation module 130, search for the corresponding task path according to the task goal, generate initial text according to the task path, and conduct the initial text Text enhancement, get enhanced text. The above method is implemented through top-down simulator design and corresponding data generation methods. For high-level scenarios, simple data structures are used to reduce the construction costs required for new scenarios, reduce simulation, and reduce the need for verification and generation. Computing power requirements during the process.

本公开实施例中还提供了一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现实施例2中所述的机器人任务规划模型构建方法的步骤,在此不再赘述。An embodiment of the present disclosure also provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the robot described in Embodiment 2 is implemented. The steps of the task planning model construction method will not be described again here.

本公开实施例中还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现实施例2中所述的机器人任务规划模型构建方法的步骤,在此不再赘述。Embodiments of the present disclosure also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the robot mission planning model construction described in Embodiment 2 is implemented. The steps of the method will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和结构图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,结构图和/或流程图中的每个方框、以及结构图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flow charts and structural diagrams in the accompanying drawings show the possible implementation architecture and functions of the devices, methods and computer program products according to multiple embodiments of the present invention. and operations. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more components for implementing the specified logical function(s). Executable instructions. It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two consecutive blocks may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block in the structure diagrams and/or flowchart illustrations, and combinations of blocks in the structure diagrams and/or flowchart illustrations, can be configured with specialized hardware-based systems that perform the specified functions or actions. to be implemented, or may be implemented using a combination of dedicated hardware and computer instructions.

另外,在本发明各个实施例中的各功能模块或单元可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或更多个模块集成形成一个独立的部分。In addition, each functional module or unit in various embodiments of the present invention can be integrated together to form an independent part, each module can exist alone, or two or more modules can be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是智能手机、个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which can be a smart phone, a personal computer, a server, a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be covered by the protection scope of the present invention.

Claims (10)

1.一种机器人任务规划模型构建系统,其特征在于,所述系统包括:1. A robot mission planning model construction system, characterized in that the system includes: 模型模块,用于获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,其中,所述任务序列包含高层接口与低层接口;The model module is used to obtain the initial statement input by the user, extract the initial statement using a large-scale pre-trained language model, and generate a task sequence, where the task sequence includes a high-level interface and a low-level interface; 模拟器模块,用于自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标;The simulator module is used to construct a simulation environment in the form of graph-structured data from top to bottom according to the high-level interface and the low-level interface, and abstract the real operations of the robot in the real environment into simulated operations in the simulation environment. , and verify whether the simulation operation meets the expected goals; 数据生成模块,用于在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本。A data generation module is used to determine a task goal in the simulation environment, search for a corresponding task path according to the task goal, generate initial text according to the task path, and perform text enhancement on the initial text to obtain enhanced text. 2.根据权利要求1所述的机器人任务规划模型构建系统,其特征在于,所述模型模块包括:2. The robot mission planning model construction system according to claim 1, characterized in that the model module includes: 模型主体单元,用于获取批量数据,并对所述批量数据进行预训练,生成所述大规模预训练语言模型,并确定接口种类;The model main unit is used to obtain batch data, pre-train the batch data, generate the large-scale pre-trained language model, and determine the interface type; 前后处理单元,用于获取所述初始语句,并利用所述大规模预训练语言模型对所述初始语句进行正则化抽取,生成规划好的任务序列。A pre- and post-processing unit is used to obtain the initial statement, and use the large-scale pre-trained language model to perform regularized extraction on the initial statement to generate a planned task sequence. 3.根据权利要求1所述的机器人任务规划模型构建系统,其特征在于,所述模拟器模块包括:3. The robot mission planning model construction system according to claim 1, characterized in that the simulator module includes: 模拟环境单元,用于自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建所述模拟环境,其中,所述图结构数据中数据图的节点为所述模拟环境中的具体物体,所述图结构数据中数据图的边为所述模拟环境中各所述具体物体间的关系,所述模拟环境中的高层接口的信息量少于低层接口的信息量;A simulation environment unit, configured to construct the simulation environment in the form of graph structure data from top to bottom according to the high-level interface and the low-level interface, wherein the nodes of the data graph in the graph structure data are in the simulation environment specific objects, the edges of the data graph in the graph structure data are the relationships between the specific objects in the simulation environment, and the information amount of the high-level interface in the simulation environment is less than the information amount of the low-level interface; 请求执行单元,用于将所述机器人的自身状态与所述机器人在现实环境中的现实操作,抽象为在所述模拟环境中的自身状态与模拟操作;A request execution unit configured to abstract the robot's own state and the robot's real operations in the real environment into its own state and simulated operations in the simulated environment; 验证单元,用于通过在所述模拟环境中检索所述具体物体的属性信息与边信息,验证所述模拟操作是否满足所述预期目标。A verification unit configured to verify whether the simulation operation meets the expected goal by retrieving the attribute information and side information of the specific object in the simulation environment. 4.根据权利要求3所述的机器人任务规划模型构建系统,其特征在于,所述数据生成模块包括:4. The robot mission planning model construction system according to claim 3, characterized in that the data generation module includes: 数据采样单元,用于通过搜索所述模拟环境中所述具体物体的属性信息,采样得到所述任务目标;A data sampling unit, configured to sample and obtain the task target by searching for attribute information of the specific object in the simulation environment; 路径搜索单元,用于通过根据所述任务目标搜索所述数据图,得到所述任务路径;A path search unit, configured to obtain the task path by searching the data graph according to the task target; 数据增强单元,用于根据所述任务路径利用预设模板生成所述初始文本,并通过预设文本增强工具对所述初始文本进行文本增强,得到所述增强文本。A data enhancement unit is configured to generate the initial text using a preset template according to the task path, and perform text enhancement on the initial text through a preset text enhancement tool to obtain the enhanced text. 5.一种机器人任务规划模型构建方法,其特征在于,应用于如权利要求1-4任一项所述的机器人任务规划模型构建系统,所述系统包括模型模块、模拟器模块与数据生成模块,所述方法包括:5. A robot mission planning model construction method, characterized in that it is applied to the robot mission planning model construction system according to any one of claims 1 to 4, the system includes a model module, a simulator module and a data generation module , the method includes: 通过所述模型模块获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,其中,所述任务序列包含高层接口与低层接口;Obtain the initial statement input by the user through the model module, extract the initial statement using a large-scale pre-trained language model, and generate a task sequence, where the task sequence includes a high-level interface and a low-level interface; 通过所述模拟器模块自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标;The simulator module constructs a simulation environment in the form of graph structure data from top to bottom according to the high-level interface and the low-level interface, and abstracts the real operations of the robot in the real environment into simulated operations in the simulation environment. , and verify whether the simulation operation meets the expected goals; 通过所述数据生成模块在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本。The data generation module determines a task goal in the simulation environment, searches for a corresponding task path according to the task goal, generates initial text according to the task path, and performs text enhancement on the initial text to obtain enhanced text. 6.根据权利要求5所述的机器人任务规划模型构建方法,其特征在于,所述通过所述模型模块获取用户输入的初始语句,利用大规模预训练语言模型对所述初始语句进行抽取,生成任务序列,包括:6. The robot mission planning model construction method according to claim 5, characterized in that the initial statement input by the user is obtained through the model module, and the initial statement is extracted using a large-scale pre-trained language model to generate Task sequence, including: 获取批量数据,并对所述批量数据进行预训练,生成所述大规模预训练语言模型,并确定接口种类;Obtain batch data, perform pre-training on the batch data, generate the large-scale pre-trained language model, and determine the interface type; 获取所述初始语句,并利用所述大规模预训练语言模型对所述初始语句进行正则化抽取,生成规划好的任务序列。The initial statement is obtained, and the large-scale pre-trained language model is used to perform regularized extraction on the initial statement to generate a planned task sequence. 7.根据权利要求5所述的机器人任务规划模型构建方法,其特征在于,所述自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建模拟环境,将机器人在现实环境中的现实操作抽象为在所述模拟环境中的模拟操作,并验证所述模拟操作是否满足预期目标,包括:7. The robot mission planning model construction method according to claim 5, characterized in that the top-down construction of the simulation environment in the form of graph structure data according to the high-level interface and the low-level interface, and the robot in reality Real-life operations in the environment are abstracted into simulated operations in the simulated environment, and verification is made whether the simulated operations meet the expected goals, including: 自顶向下根据所述高层接口与所述低层接口以图结构数据的形式构建所述模拟环境,其中,所述图结构数据中数据图的节点为所述模拟环境中的具体物体,所述图结构数据中数据图的边为所述模拟环境中各所述具体物体间的关系,所述模拟环境中的高层接口的信息量少于低层接口的信息量;The simulation environment is constructed in the form of graph structure data from top to bottom according to the high-level interface and the low-level interface, wherein the nodes of the data graph in the graph structure data are specific objects in the simulation environment, and the The edges of the data graph in the graph structure data are the relationships between the specific objects in the simulation environment, and the information amount of the high-level interface in the simulation environment is less than the information amount of the low-level interface; 将所述机器人的自身状态与所述机器人在现实环境中的现实操作,抽象为在所述模拟环境中的自身状态与模拟操作;Abstract the robot's own state and the robot's real operations in the real environment into its own state and simulated operations in the simulated environment; 通过在所述模拟环境中检索所述具体物体的属性信息与边信息,验证所述模拟操作是否满足所述预期目标。By retrieving the attribute information and side information of the specific object in the simulation environment, it is verified whether the simulation operation meets the expected goal. 8.根据权利要求7所述的机器人任务规划模型构建方法,其特征在于,所述在所述模拟环境中确定任务目标,根据所述任务目标搜索对应的任务路径,根据所述任务路径生成初始文本,并对所述初始文本进行文本增强,得到增强文本,包括:8. The method for constructing a robot mission planning model according to claim 7, characterized in that: determining a mission goal in the simulation environment, searching for a corresponding mission path according to the mission goal, and generating an initial initialization mission according to the task path. text, and perform text enhancement on the initial text to obtain enhanced text, including: 通过搜索所述模拟环境中所述具体物体的属性信息,采样得到所述任务目标;By searching the attribute information of the specific object in the simulation environment, the task target is sampled; 通过根据所述任务目标搜索所述数据图,得到所述任务路径;Obtain the task path by searching the data graph according to the task goal; 根据所述任务路径利用预设模板生成所述初始文本,并通过预设文本增强工具对所述初始文本进行文本增强,得到所述增强文本。The initial text is generated using a preset template according to the task path, and the initial text is text enhanced using a preset text enhancement tool to obtain the enhanced text. 9.一种计算机设备,其特征在于,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现权利要求5-8中任一项所述的机器人任务规划模型构建方法的步骤。9. A computer device, characterized in that it includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the robot task according to any one of claims 5-8. Steps in planning a model-building approach. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现权利要求5-8中任一项所述的机器人任务规划模型构建方法的步骤。10. 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 robot task of any one of claims 5-8 is implemented. Steps in planning a model-building approach.
CN202311818506.9A 2023-12-26 2023-12-26 Robot mission planning model construction system, method, equipment and storage medium Pending CN117744497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311818506.9A CN117744497A (en) 2023-12-26 2023-12-26 Robot mission planning model construction system, method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311818506.9A CN117744497A (en) 2023-12-26 2023-12-26 Robot mission planning model construction system, method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117744497A true CN117744497A (en) 2024-03-22

Family

ID=90260795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311818506.9A Pending CN117744497A (en) 2023-12-26 2023-12-26 Robot mission planning model construction system, method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117744497A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118796983A (en) * 2024-09-11 2024-10-18 阿里巴巴(中国)有限公司 Task processing method, control method of operating device, and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118796983A (en) * 2024-09-11 2024-10-18 阿里巴巴(中国)有限公司 Task processing method, control method of operating device, and electronic device

Similar Documents

Publication Publication Date Title
US11100423B2 (en) Artificial intelligence engine hosted on an online platform
CN110462644A (en) Systems and methods for cognitive engineering techniques for automation and control of systems
CN101615265A (en) A kind of intelligent decision simulating experimental system based on multi-Agent technology
CN111652453A (en) Intelligent workflow advisor for part design, simulation and manufacturing
Abdullah et al. Parametric design procedures: a new approach to generative-form in the conceptual design phase
Mandorli et al. Negative knowledge and a novel approach to support MCAD education
CN117744497A (en) Robot mission planning model construction system, method, equipment and storage medium
CN115756407A (en) Metaverse Service Development Method Based on Scenario-Behavior Fusion and Model-Driven
CN119088986A (en) AI-native digital twin scene construction method and related devices
Shoulson et al. Paste: A platform for adaptive storytelling with events
JP6360197B2 (en) System and method for recognition-based processing of knowledge
Ramachandran et al. Providing intelligent help across applications in dynamic user and environment contexts
CN113377962B (en) Intelligent process simulation method based on image recognition and natural language processing
Sosnin Question-answer models of decision-making tasks in automated designing
González-Calleros et al. A structured approach to support 3d user interface development
Diprose End user robot programming via visual languages
CN118609434B (en) A method for constructing a digital twin simulation and debugging teaching platform
Horváth New method for enhanced driving of entity generation in RFLP structured product model
Cao et al. HSTPNSim: An educational simulator for multi‐disciplinary modeling for hybrid system
CN112148285B (en) Interface design method and device, electronic equipment and storage medium
Cela et al. Why Does It Look like this? Introducing a Preliminary Framework for Explainable Graph Drawing (XGD)
Jia Human-Computer Interaction System Based
Zhao et al. Research on Design and Optimization of Human Computer Interaction Interface Based on Deep Learning Technology
Jang et al. Generating command modeling and design graphs with data augmentation for enhanced 3D modeling support
Senkov et al. Modeling the Operation of an Adaptive Computing System Based on FGPN for Case Risk Management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination