How genesis-embodied-ai/genesis works
High-Level Architecture Overview
a) Application Layer
• Examples and Tutorials
• User Interface Components
• API Endpoints
b) Core Engine Layer
• Physics Solvers
• Entity Management
• Material Systems
• Scene Management
c) Backend Layer
• Compute Backends (CPU, GPU, Metal)
• Rendering Systems
• File I/O and Asset Management
Key Components
a) Physics Solver Components (genesis/engine/solvers/)
• Rigid Body Solver
• MPM Solver
• SPH Solver
• FEM Solver
• PBD Solver
• Tool Solver
Their interactions and data flow.
b) Entity System (genesis/engine/entities/)
• Base Entity
• Avatar Entity
• Rigid Entity
• Particle Entity
• Tool Entity
Inheritance relationships.
c) Material System (genesis/engine/materials/)
• FEM Materials
• MPM Materials
• PBD Materials
• SPH Materials
Material hierarchies and properties.
d) Visualization System (genesis/vis/)
• Rasterizer
• Raytracer
• Viewer Components
Rendering pipeline flow.
Specific Implementation Details
a) Coupling between different solvers:
• Coupler.py component
• Demonstrate interaction between rigid bodies and deformable objects
• Fluid-solid coupling paths
b) Differentiation system:
• Grad/ directory components
• Automatic differentiation paths
• Differentiable components
c) Asset Management:
• URDF/MJCF loading pipeline
• Mesh processing flow
• Material property handling
External Integrations
Connections to:
• Taichi backend
• LuisaCompute/LuisaRender
• PyRender
• External robot description formats
Performance Optimization Paths
Highlight:
• Parallel computation routes
• GPU acceleration paths
• Memory management systems
• Caching mechanisms