<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Greaten on Medium]]></title>
        <description><![CDATA[Stories by Greaten on Medium]]></description>
        <link>https://medium.com/@666greaten?source=rss-5deb317518b0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0uV_KWyr4zAAaD0miVprQw.png</url>
            <title>Stories by Greaten on Medium</title>
            <link>https://medium.com/@666greaten?source=rss-5deb317518b0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:35:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@666greaten/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[️✨ Bringing Procedural AI2-THOR Scenes to Robotics Simulators]]></title>
            <link>https://medium.com/@666greaten/%EF%B8%8F-bringing-procedural-ai2-thor-scenes-to-robotics-simulators-871d6f1ba51c?source=rss-5deb317518b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/871d6f1ba51c</guid>
            <dc:creator><![CDATA[Greaten]]></dc:creator>
            <pubDate>Mon, 09 Jun 2025 23:35:10 GMT</pubDate>
            <atom:updated>2025-06-10T02:48:26.372Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. 🌍 The Need for Procedural Diversity in Robotics Simulators</h3><p>Modern robotics thrives on simulated environments to validate perception, planning, and control algorithms. However, crafting diverse, rich 3D indoor scenes manually is time-consuming and unscalable. Enter <strong>ProcTHOR</strong>, a procedural scene generator designed for embodied AI research in Unity. It creates thousands of layout-consistent home environments effortlessly. The challenge? ProcTHOR is deeply embedded in the AI2-THOR Unity ecosystem, making direct integration with robotics simulators like <strong>Gazebo</strong> or <strong>Isaac Sim</strong> cumbersome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w_AOpRFgV-m8oZy5yG-Eig.png" /><figcaption>ProcTHOR</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DlkgH9G8-uD2TPbPwwMb4Q.png" /><figcaption>ProcThor House in Isaac Sim</figcaption></figure><h3>2. 🚧 The Challenge: Extracting ProcTHOR Scenes from Unity</h3><p>Most robotics simulators rely on open 3D formats like <strong>GLB</strong>, <strong>SDF</strong>, or <strong>USD</strong>. ProcTHOR scenes, however, are Unity-specific, stored as procedural data or Unity scenes — formats not easily portable. So, how do we bridge this gap and bring these virtual homes into robotics-friendly ecosystems?</p><h3>3. 🌉 The Solution: Exporting GLB with procthor_glb_exporter</h3><p>To address this, I developed <strong>procthor_glb_exporter</strong>, a Unity-based pipeline that converts ProcTHOR-generated scenes into <strong>GLB</strong> files, compatible with most 3D software, simulators, and rendering engines. This unlocks workflows like:</p><ul><li>Exporting ProcTHOR houses as GLB models via Unity.</li><li>Visualizing or refining scenes in <strong>Blender</strong> before deployment.</li><li>Importing into <strong>Isaac Sim</strong> for photorealistic robotics testing.</li><li>Converting GLB to <strong>SDF</strong> for <strong>Gazebo</strong> simulations.</li></ul><p>Here’s how to set it up.</p><h3>4. 🛠️ Setting Up the Export Pipeline</h3><p>This one-time setup enables exporting unlimited ProcTHOR scenes.</p><p><strong>✅ Step 1: Clone AI2-THOR</strong><br>Clone the <a href="https://github.com/allenai/ai2thor">AI2-THOR repository</a> and open it in <strong>Unity 2021</strong>. Stick to this version, as newer ones may break AI2-THOR or its dependencies.</p><p><strong>✅ Step 2: Add the Export Script</strong><br>Copy the <a href="https://github.com/GreatenAnoymous/procthor_glb_exporter/blob/main/exporter.cs">export script</a> from the <a href="https://github.com/your-repo/procthor_glb_exporter">procthor_glb_exporter repository</a> into your Unity project’s Assets/Editor/ folder. This script adds a custom Unity menu item for GLB export.<br>💡 <em>Why Unity scripting?</em> Unity lacks native GLB export. The script leverages a <strong>GLTF export plugin</strong> to automate the process.</p><p><strong>✅ Step 3: Install the Unity-GLTF Package</strong><br>To support GLTF/GLB assets:</p><ul><li>Open Unity’s <strong>Package Manager</strong> (Window &gt; Package Manager).</li><li>Search for <strong>Unity-GLTF</strong> and click <strong>Install</strong>.</li><li>If unavailable, manually import it from the <a href="https://github.com/KhronosGroup/UnityGLTF">official UnityGLTF GitHub</a>.</li></ul><p><strong>✅ Step 4: Import ProcTHOR JSON Scenes</strong><br>Define simulation environments using ProcTHOR’s Python API:</p><ul><li><strong>Generate Scenes Manually</strong><br>Use ProcTHOR’s Python API to create scenes programmatically. Each scene is saved as a .json file detailing room layouts, object placements, materials, and textures. Store these in: Assets/Resources/rooms/</li><li><strong>Use Prebuilt Scenes (Recommended for Quick Setup)</strong><br>Download pre-generated JSON files from the <a href="https://procthor.allenai.org/">ProcTHOR-10K dataset</a>. These are ready-to-use and compatible with Unity’s loader. Place them in Assets/Resources/rooms/.</li></ul><p><strong>✅ Step 5: Load and Initialize the Procedural Scene</strong><br>In Unity, open the <strong>Procedural</strong> scene from AI2-THOR. Enter <strong>Play</strong> mode, type initp in the debug console, and watch your JSON-defined layout come to life.</p><h3>5. 📤 Exporting to GLB</h3><p>Once the scene loads correctly:</p><ol><li>Access the custom menu added by the exporter.</li><li>Select <strong>Export to GLB</strong>.</li><li>Find the .glb file in the script’s output folder (or specify your own path).</li></ol><p>Your scene is now ready for robotics simulators!</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dahi65yNc2Cc&amp;type=text%2Fhtml&amp;schema=youtube&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fahi65yNc2Cc%3Ffeature%3Doembed" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac5faa838221d68ae0419cd410320853/href">https://medium.com/media/ac5faa838221d68ae0419cd410320853/href</a></iframe><h3>6. 🤖 Using GLB in Robotics Simulators</h3><p>With your .glb file in hand, you can:</p><p><strong>🧊 Isaac Sim</strong></p><ul><li>Import the GLB directly in Isaac Sim</li><li>Add collision and physics properties in Isaac Sim.</li><li>Place your robot in the scene and start testing.</li><li>You can also use the <a href="https://github.com/GreatenAnoymous/procthor_glb_exporter/blob/main/load_glb_in_isaac.py">Python scrip</a>t to load the GLB scene with colliders automatically created based on the mesh.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F68JSZ0iM4Ak%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D68JSZ0iM4Ak&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F68JSZ0iM4Ak%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad59bcbe8d7f28c753fc5e7b8f098035/href">https://medium.com/media/ad59bcbe8d7f28c753fc5e7b8f098035/href</a></iframe><p><strong>🤖 Gazebo</strong></p><ul><li>Open Blender, load the GLB file</li><li>Use the <a href="https://github.com/GreatenAnoymous/procthor_glb_exporter/blob/main/export_gazebo.py">script</a> I have created to export the scene into Gazebo world files (Note that the script still has some issues as Gazebo seems to be unable to support a lot of materials)</li><li>Launch with <strong>ROS 2</strong> to test your robot in the generated home.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNN7bgnQpSRA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNN7bgnQpSRA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNN7bgnQpSRA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d3bfde869964c9451e4ee419fe9e053/href">https://medium.com/media/3d3bfde869964c9451e4ee419fe9e053/href</a></iframe><h3>7. 🌟 Why This Matters</h3><p>This pipeline unlocks thousands of diverse indoor scenes for robotics, previously confined to Unity. By exporting to <strong>GLB</strong>, we decouple scene generation from simulation, empowering researchers to scale testing without manual modeling.</p><h3>8. 🔮 Future Work</h3><ul><li>🛠️ Improve the visual for Gazebo/Isaac Sim</li></ul><h3>🔗 Resources</h3><ul><li>🔧 <a href="https://github.com/GreatenAnoymous/procthor_glb_exporter">procthor_glb_exporter GitHub</a></li><li>📦 <a href="https://github.com/allenai/ai2thor">AI2-THOR</a></li><li>📚 <a href="https://procthor.allenai.org/">ProcTHOR Overview</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=871d6f1ba51c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>