1.Install Visual Studio 2022 and in Visual Studio Installer add:
.NET desktop development,
Desktop development with C++,
Universal Windows Platform development,
Game development with Unity
-
Install Unity Hub on windows machine.
-
Go to installs tab and in "Install Editor" choose 2020.3.xx version (basically latest 2020 version of unity).
-
During the "Install Editor" steps in the platform section make sure the check for "Universal Windows Platform" and "Windows" for build support
-
In the "Projects" tab of Unity Hub click "Open" and choose "Unity3D\Ski_Assembly_Demo".
-
The project should open automatically after step 6. If not, just click on it in the hub.
-
Make sure, that in the hierarchy "TestingScene" is shown. If not, in the "Project" section of the editor go to Assets->Scenes and double click on the "RobotPreviewScene"
-
Click on the "ROSCommunicationController" element in the hierarchy and change "Ros Bridge Server Url" to ws://{IP_OF_ROS_MACHINE_TO_BE_USED}:9090
-
In Prefabs/QRCode make sure to set correct offset, for your QRCode-Robot setup
-
Go to File->Build settings. UWP should already be chosen. If not, cleck on it and press "Switch Platform"
-
Press on "Add Open Scenes" and make sure only "Scenes/RobotPreviewScene" is chosen
-
For the settings, they should be the following:
Architecture: ARM64
Build Type: D3D Project
Target SDK Version: Latest installed
Minimum Platform Version: 10.0.10240.0
Everything else should be left as is.
-
Click build and choose folder for the built project to be saved to. I recommend it be a separate folder to project folder. After build is finished, the folder with the built project should open automatically.
-
Open .sln file with Visual Studio 2022 and open the tab Project->Publish->Create App Package:
In the opened windows choose sideloading
Certificate should already be there, but if not, follow the steps from the link in the bottom of the window
For the version choose ONLY ARM64 and switch from debug to release
Click create and wait for the package to be build.
-
Go to your Hololens 2 device portal by typing your device IP in the browser.
-
in the Views-> Apps section under "Deploy apps" choose the .appx file generated by Visual studio and click install.
-
You should now be able to open the app on Hololens. Open it after launching ROS Bridge on ROS PC.