This repository contains user interface, based on projected augmented reality, which complements AREditor, the main user interface of the ARCOR2 system. Video, showcasing this project is published here: https://youtu.be/wQrgCxiG_Vg?si=mBBA77-IEYMHNidJ
Created scripts:
-
GameManager.cs
-
KinectCalibrationData.cs
-
ProjectorCalibrationData.cs
-
TransformKinect.cs
-
TransformProjector.cs
-
get_camera_pose.py
-
project_graycode.py
Edited scripts (or taken over without editing):
-
Arcor2Exceptions.cs
-
Singleton.cs
-
WebsocketManager.cs
-
gen_graycode_imgs.py
-
calibrate.py
First of all, you need to calibrate the system. To help you with that, you can use this guide.
After calibration, it is necessary to build the project in Unity, so that the project can use the calibration results from previous step when creating the scene. Open the folder in Unity Hub as a new project and open it.
Before building, you need to load the scene, containing Kinect, projector and Canvas objects. You can do that by going to File -> Open Scene
and there, selecting the SampleScene.unity
, which is located in the Assets/Resources
folder.
Then, import TMP packages if Unity asks you to.
After this, you can build it by going to File -> Build Settings...
and there, make sure the Scene is selected. There, set your OS as a target platform and build the game.
Last step is to run the application, using the built executable. It should connect to the ARServer automatically.