1. Download source file

https://github.com/Unity-Technologies/Robotics-Nav2-SLAM-Example/blob/main/readmes/dev_env_setup.md

$ git clone <https://github.com/Unity-Technologies/Robotics-Nav2-SLAM-Example.git>

Robotics-Nav2-SLAM-Example-main/Nav2SLAMExampleProject 를 Unity project로 열기

$ cd ~/colcon_ws/src
$ git clone <https://github.com/Unity-Technologies/ROS-TCP-Endpoint.git>
$ cd ROS-TCP-Endpoint
$ git checkout main-ros2

$ cd ~/colcon_ws
$ colcon build

2. Setting Up the Unity Project

https://github.com/Unity-Technologies/Robotics-Nav2-SLAM-Example/blob/main/readmes/unity_project.md

Open the Unity Project

Assuming you have already configured your dev environment, you can open the Nav2SLAMExampleProject either by adding the directory to your Unity Hub via the Add button, or opening it directly from an open Editor.

https://github.com/Unity-Technologies/Robotics-Nav2-SLAM-Example/raw/main/readmes/images/unity_hub_projects.png

On Linux, you may encounter a bug in the Hub where, if you have no Projects in your list already, Add will not work properly. If you see this, create a New, empty project first, then try and Add Nav2SLAMExampleProject again.


Open the SimpleWarehouseScene

Find the example scene, SimpleWarehouseScene, in the project browser, located in the bottom left of the Editor by default, and open it by double-clicking.

https://github.com/Unity-Technologies/Robotics-Nav2-SLAM-Example/raw/main/readmes/images/browser_to_scene.png

You should see something like this open in your Editor window: