arounamounchili/linkforge
Tentang
The LLVM for Robot Descriptions. A programmable IR engine to compose, validate, and compile URDF/XACRO/SRDF models from Python or Blender.
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +6
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
LinkForge
The Programmable Robot Description Engine
Writing and maintaining robot descriptions in URDF or SRDF is fragile by design. Inertia values are guessed by hand, collision geometries drift from visual meshes, and physics bugs are discovered only after export (or worse, on physical hardware).
LinkForge treats your robot as source code, not a static document.
Define it programmatically, validate rigid-body physics before export, and compile safely to any standard target. Whether you are building a single prototype in Blender or generating thousands of variants in a headless RL training loop, LinkForge is the validation layer between your design intent and your simulation.
Why LinkForge?
| Feature | Legacy Exporters | LinkForge |
|---|---|---|
| Architecture | Monolithic / Tied to one CAD tool | Hexagonal / Multi-Host & Multi-Target |
| Validation | Post-Export (Fail in Sim) | Automated Linting (Fail in Editor / CI) |
| Physics | "Close Enough" Mesh Export | Scientific Inertia & Mass Integrity |
| Composition | Manual URDF merging | Safe Programmatic Assembly with Namespace Resolution |
| Control | Manual ros2_control XML |
Centralized Dashboard with auto-generation |
| Fidelity | One-way export | Round-Trip Precision (Import → Edit → Export) |
| ML Integration | GUI-dependent tooling | Headless linkforge-core for cluster / RL pipelines |
[!TIP] For a deep dive into our long-term technical strategy and the IR philosophy, see VISION.md.
Quick Start
Headless Core (CI / ML Pipelines / Scripting)
pip install linkforge-core
from linkforge.core import RobotBuilder, box, cylinder
# 1. Build a robot programmatically
builder = RobotBuilder("my_arm")
builder.link("base_link") \
.visual(box(0.5, 0.5, 0.1)) \
.collision() \
.mass(5.0) \
.root()
builder.link("arm_link", parent="base_link") \
.visual(cylinder(radius=0.05, length=0.4), xyz=(0, 0, 0.2)) \
.collision() \
.mass(1.0) \
.revolute(axis=(0, 0, 1), xyz=(0, 0, 0.05), limits=(-3.14, 3.14)) \
.commit()
# 2. Validate: catches disconnected links, kinematic loops, non-physical inertias
robot = builder.build(validate=True)
# 3. Compile to standard targets
urdf_xml = builder.export_urdf()
srdf_xml = builder.export_srdf()
Modular Assembly
Compose validated sub-assemblies from reusable robot components:
from linkforge.core import RobotBuilder, read_urdf
base_builder = RobotBuilder(robot=read_urdf("mobile_base.urdf"))
arm_builder = RobotBuilder(robot=read_urdf("manipulator.urdf"))
# Attach arm onto the base, auto-resolving naming conflicts
base_builder.attach(
arm_builder,
at_link="top_plate",
prefix="left_arm_",
xyz=(0, 0, 0.1),
)
# Add a MoveIt 2 planning group for the combined assembly
base_builder.semantic.group(
"arm_chain",
base_link="top_plate",
tip_link="left_arm_end_effector",
)
robot = base_builder.build(validate=True)
urdf_xml = base_builder.export_urdf()
srdf_xml = base_builder.export_srdf()
Blender Visual Designer (Full Platform)
Design robots visually in Blender - all physics validation and export pipelines are backed by the same linkforge-core engine. See the Installation section below to set it up.
Technical Specifications
| Feature | Support | Details |
|---|---|---|
| Links | ✅ Full | Visual/Collision Geometry, Materials, Automatic Physics |
| Joints | ✅ Full | All 6 types (Fixed, Revolute, Prismatic, etc.) + Mimic Joints |
| Sensors | ✅ Full | Camera, LiDAR, IMU, GPS, Contact, Force/Torque |
| Control | ✅ Full | ros2_control Dashboard & Gazebo Plugin Integration |
| Planning | ✅ Full | MoveIt 2 SRDF Panel (Virtual Joint, Planning Groups, End Effectors, Group States, Collision Matrix) |
| Validation | ✅ Pro | Kinematic linter catches topology errors, disconnected links, non-physical inertias |
| Fidelity | ✅ Pro | Round-Trip Precision for concrete URDF & SRDF (preserves geometry, limits, and vendor tags) |
| Formats | ✅ Full | URDF 1.0 (lossless round-trip), XACRO (evaluated & compiled), SRDF (MoveIt 2), Meshes (OBJ, STL, GLB) |
| Headless | ✅ Full | Zero-dependency linkforge-core runs in CI/CD, HPC clusters, RL training loops |
| Composition | ✅ Full | Modular assembly via attach() with automatic prefix-based namespace resolution |
| Physics | ✅ Full | Scientifically accurate inertia tensor calculation for primitives and arbitrary meshes |
Installation
Headless Python Core
Requirements: Python 3.11+
pip install linkforge-core
No Blender, no GUI dependencies. Full Composer API, parsers, generators, validators, and physics engine.
Blender Visual Designer
Requirements: Blender 4.2 or later
Method 1: Blender Extensions (Recommended)
- Open Blender → Edit › Preferences › Get Extensions
- Search for "LinkForge"
- Click Install
Method 2: Split-Platform ZIP (Current Stable)
- Download the
.zipfor your specific platform (e.g.,linkforge-blender-x.x.x-macos_arm64.zip) from Latest Releases. - Open Blender → Edit › Preferences › Extensions.
- Click the arrow icon (⌄) in the top right → Install from Disk.
- Select the downloaded
.zipfile and click Install. - Enable the extension in the list.
Method 3: Development Mode (For Contributors)
git clone https://github.com/arounamounchili/linkforge.git
cd linkforge
just install
just develop # Links workspace into Blender for live development
Using the Blender Visual Designer
Creating a Robot from Scratch
- Create Links: Select a mesh → Forge panel → Create Link. Configure mass, inertia, and collision geometry in the Physics section.
- Connect with Joints: Select child link → Forge panel → Create Joint. Set type, limits, axis, and dynamics.
- Add Sensors (Optional): Select a link → Perceive panel → Add Sensor.
- Configure Control (Optional): Go to Control panel → Enable Use ROS2 Control → configure command/state interfaces.
- Configure Planning (Optional): Go to Planning panel → define MoveIt 2 planning groups, end effectors, group states, and disabled collisions.
- Validate & Export: Validate & Export panel → click Validate Robot → choose URDF or XACRO (and optionally Include SRDF) → click Export.
Importing Existing URDF
- Open the LinkForge sidebar tab (N-panel in 3D Viewport).
- In the Forge panel, click Import URDF/XACRO.
- Select your file and edit the robot structure normally.
- Export back via the Validate & Export panel.
Documentation
- User Guide - Tutorials and getting started.
- API Reference - Technical reference for
linkforge-core. - Architecture Guide - System design, Hexagonal Core, and data flow.
- Example Robots - Sample URDF and XACRO files for testing imports.
- CHANGELOG - Version history.
Roadmap
Phase 1: Professional Foundation (Current)
- v1.0 - v1.2: Core URDF/XACRO export, Sensors,
ros2_control, and Hexagonal Architecture. - v1.3.0: Performance & Control (Depsgraph evaluation, ROS 2 Control enhancements).
- v1.4.0: Headless core decoupling, Composer API, Namespaced Merging, and MoveIt 2 SRDF generation.
- v1.5.x: Multi-Geometry Management (Multiple Visuals/Collisions per link, UILists, Primitive Controls & Realtime Viewport Sync).
- v1.6.0: SRDF Configuration Panel (Expose MoveIt 2 planning logic directly in Blender UI).
- v1.7.0: LinkForge CLI & GitHub Actions (Headless verification and export in CI pipelines).
Phase 2: Multi-Physics Interoperability (Upcoming v2.x)
- v2.0.0: The
.lfIntermediate Representation (IR) (Typed JSON/YAML schema, lossless URDF bidirectional migration, Blender support). - v2.x Target: Native MuJoCo / MJCF compilation (Kinematics, actuators, sites, and contact dynamics).
- v2.x Target: Native NVIDIA Isaac Sim / OpenUSD target (Zero-dependency ASCII USDA with
UsdPhysicsandPhysxSchema).
Contributing
We welcome contributions! LinkForge is a community-driven project.
- Review our Contributing Guide for development setup (
just install,just develop), testing, and linting. - Check our Architecture to understand the internals.
- Join the conversation on GitHub Discussions.
Citing LinkForge
If you use LinkForge in academic research, please cite it using the provided CITATION.cff file. You can find the citation format in the "Cite this repository" button on GitHub's sidebar.
License
LinkForge is an open-source project using:
linkforge-core: Apache License 2.0 - Permissive license for maximum flexibility in research, personal, and commercial projects.platforms/blender: GNU General Public License v3.0 - Standard for the Blender ecosystem, ensuring the add-on remains free and open-source.
For third-party component licenses, see THIRD-PARTY-NOTICES.md.
Our Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Jelajahi proyek terkait
Memuat…