⌚ Time to complete: X minutes

Planned outcomes

After completing this guide, you will have a robot model imported to Unity Scene and ready to be used with Unity x ROS framework.

Prerequisites

This guide is written for Unity 2020.2 (or any newer version). Before you proceed, make sure that you have:

Steps

<aside> ℹ️ First, we will prepare the install the URDF Importer package from Unity..

</aside>

  1. Open your Unity Project (or create a new one).
  2. In the top menu, go to Window → Package Manager to open Package Manager window.

<aside> ℹ️ Next, we will import the ***URDF*** file with our robot’s model into Unity.

</aside>

  1. Locate the URDF file for the robot you want to import.

    <aside> ℹ️ Some ROS robot support packages come with XACRO files instead of URDF. If this is your case, don’t fret - URDF can be easily generated from XACRO file.

    </aside>

  2. Copy your URDF file (together with any models required for it) into your Unity Project’s Assets folder.

  3. Open the Unity Scene where you want to import this robot.

  4. In the Project tab, right-click the added URDF file and select Import Robot from Selected URDF file:

    Untitled

  5. An import window will open. Select the desired import settings and click Import URDF:

    Untitled

    <aside> ⚠️ WORK IN PROGRESS: This section should detail how to handle packages import with URDF importer - it cannot detect them automatically.

    </aside>

<aside> ⚠️ THIS ARTICLE IS WORK IN PROGRESS

</aside>

Useful links