Method and system for automatic generation of robot skill primitive library based on large language model
CN122311404BActive Publication Date: 2026-08-28NAT UNIV OF DEFENSE TECH
Patent Information
- Application Number
- CN202610786985.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-03
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2046-06-03
AI Technical Summary
Technical Problem
[0004]然而,人工设计与维护的机器人技能原语库存在三大核心瓶颈:一是专业壁垒高,将机器人的多维度能力抽象为逻辑自洽、功能完整的原语库,需要深厚的机器人领域与软件工程领域复合专业知识,极易出现原语设计不完整、接口定义不一致的问题;二是开发成本高,将每个技能原语实现为文档完善、运行可靠的标准化API(Application ProgrammingInterface)函数,需要投入大量的研发时间与人力成本,且开发过程容错率低、极易出错;三是质量一致性差,人工设计的技能原语质量高度依赖研发人员的专业能力,原语质量的波动会直接传导至最终生成的机器人代码,严重影响代码的安全性与可靠性,成为制约本领域技术发展的核心瓶颈
Benefits of technology
[0046]根据本申请提供的具体实施例,本申请具有了以下技术效果:本申请提供了基于大语言模型的机器人技能原语库自动化生成方法及系统,通过采用双层级函数提取策略的提取处理、全局语义描述生成与同名函数消歧、嵌入领域约束的感知式代码重构以及自适应迭代的代码评估与优化闭环,实现了全流程自动化的机器人技能原语库构建;采用预设的思维链(Chain-of-Thought,CoT)提示词引导大语言模型实现,并通过自适应迭代的代码评估与优化,持续提升了技能原语的代码生成质量;机器人技能原语库的自动化生成任务中的每个阶段封装为独立的LangGraph节点,形成自动的模块化工作流,不仅降低了机器人技能原语库的自动化生成的任务复杂度,还有效缓解了大语言模型在长程推理中错误累积的问题,极大地激发了大语言模型在机器人技能原语库的自动化生成任务中的潜力,本申请全自动化、高可靠地生成了机器人技能原语库。
✦ Generated by Eureka AI based on patent content.
Smart Images

Figure CN122311404B_ABST
Abstract
The application discloses a robot skill primitive library automatic generation method and system based on a large language model, and relates to the fields of artificial intelligence and robot software engineering. The method comprises the following steps: adopting a double-level function extraction strategy to extract modular functions and process scripts in a robot code library from a robot task-level python file; based on the extracted robot function code, adopting a preset thinking chain prompt word to guide a large language model to generate global semantic description and to distinguish functions with the same name; based on the function metadata of the robot task level after the same name function is distinguished, adopting a preset thinking chain prompt word to guide the configured large language model to perform perception type code reconstruction with embedded field constraints; based on the reconstructed code, adopting a preset thinking chain prompt word to guide the configured large language model to perform adaptive iterative code evaluation and optimization closed loop to obtain a robot skill primitive library. The application can automatically and reliably generate a robot skill primitive library.
Need to check novelty before this filing date? Find Prior Art
Citation Information
Patent Citations
Robot control method and system based on large language model
CN119871428A
Code file rewriting method and device based on large language model
CN120687139A