This paper introduces URDF2Ontology, a neurosymbolic framework designed to bridge the gap between a robot's raw physical description and the high-level semantic knowledge required for intelligent task planning.
TL;DR
URDF2Ontology automatically transforms raw robot kinematic files (URDF) into structured, grounded OWL ontologies using Large Language Models (LLMs). By employing a novel "graph-purging" mechanism and a dual-track architecture, it enables robots to "understand" their own physical capabilities without the need for labor-intensive manual domain authoring.
What Problem Does This Paper Address?
In robotics, the Unified Robot Description Format (URDF) is the industry standard for defining kinematics—the math of how links and joints move. However, URDFs are "semantically thin." They contain names like link_01 or r_arm_flex_link but lack the formal context to tell a high-level planner that the robot has a "7-DOF arm" or a "parallel-jaw gripper."
While LLMs are excellent at reasoning, they struggle with raw URDF files. A complex robot description can contain hundreds of links, leading to "context window saturation" (the LLM loses track of the big picture) and "topological hallucinations" (the LLM makes up connections that don't exist). Existing automated tools are often rigid, forcing users to use specific, proprietary schemas.
Methods
The authors propose a multi-pass, taxonomy-agnostic pipeline that breaks the problem down into manageable chunks:
- Iterative Sequential Graph Purging: Instead of processing the whole robot at once, the system runs an "Outer Loop" with four passes: Sensors, End-Effectors, Locomotion, and Body Parts. Once a component (like a camera) is identified and grounded in the ontology, its corresponding links are "purged" (removed) from the graph. This progressively simplifies the search space for the LLM.
- Dual-Track Grounding:
- Tree Track: Uses bottom-up assembly for branching structures (e.g., grouping two fingers and a tool frame into a single "TwoFingerGripper").
- Chain Track: Uses top-down decomposition for serial limbs (e.g., identifying an "Arm" and then segmenting it into "UpperArm," "Forearm," and "Wrist").
- Neurosymbolic Guardrails: To ensure reliability, the framework uses Majority Voting (running multiple queries and taking the consensus), Context-Aware Batching (only showing the LLM local subgraphs), and Iterative Hierarchical Classification (narrowing down the taxonomy one level at a time).
Datasets
The framework was evaluated using a benchmark of five diverse robotic platforms sourced from public repositories:
- Solo: A quadruped (testing abbreviated naming conventions).
- RB-Vogui+: A composite mobile manipulator (testing architectural heterogeneity).
- PR2: A complex mobile manipulator (the primary running example).
- iCub: A dense humanoid with 150+ links (the "stress test").
- Ingenuity: The Mars helicopter (testing aerial topologies).
The target was a custom-designed OWL ontology representing standard hardware categories.
Key Insights and Ideas
- Purging as Context Management: The most significant "aha moment" is that graph purging isn't just a cleanup step—it's a requirement for LLM reasoning. By removing identified parts, the system prevents the LLM from getting distracted by "token clutter."
- Morphology-Aware Reasoning: The authors realized that branching assemblies (sensors/grippers) and serial chains (arms) require fundamentally different reasoning directions (bottom-up vs. top-down).
- Taxonomy Agnosticism: The system doesn't care which ontology you use (KnowRob, SOMA, etc.). It dynamically aligns the URDF structure to the provided TBox (schema) axioms.
Key Results
The framework demonstrated a significant reduction in manual authoring overhead while maintaining high accuracy:
- Complexity Handling: On the iCub (the most complex model), the framework successfully isolated 30 sensor frames and aggregated 10 micro-kinematic finger chains into cohesive "DexterousHand" assemblies.
- Semantic Resolution: It successfully mapped cryptic identifiers (e.g.,
HL_KFE) to human-interpretable concepts (e.g.,hind_left_lower_foot). - Structural Integrity: The "Abstraction Verification" step ensured that purging components didn't leave "orphan" links, maintaining the topological validity of the resulting knowledge base.
Limitations and Future Work
- Identifier Dependence: The system still relies heavily on semantic cues in link names. If a URDF uses purely numerical names (e.g.,
link_001), the LLM's performance drops. - Locomotion Granularity: Currently, the locomotion pass (Pass 3) uses the Tree Track, which can over-aggregate legged systems, missing fine-grained anatomical parts like "Thigh" or "Shank."
- Dynamic Feedback: The current pipeline lacks a real-time "logical reasoner" (like HermiT) to catch and correct LLM assertions that violate ontology axioms during generation.
Future work aims to integrate automated OWL reasoner validation directly into the loop and incorporate extra data sources, such as Gazebo plugin parsers, to extract richer properties like sensor parameters.
Summary updated