This is a SRTP project in ZJU. A research on remote control technology based on mixed reality.
You can drag the red ball. Then the UR5 robotic arm will follow your movement, with the green ball located at the UR5 head following the red ball precisely.
Unity Simulation
Hololens2 Deployment 1
Hololens2 Deployment 2
- Unity Hub and Unity Editor (2019.4 recommended).
- VMware Workstation the virtual machine.
- URsim, you could follow the official website for installation help.
- Visual Studio for deployment onto hololens2.
- Create a new 3D Core project.
- Import MRTK package to your project. You can download the Mixed Reality Feature Tool here, then discover and import features as told in learn.microsoft.com (you could just import the essential features).
- Import my into the Assets folder in your project.
- Open scene ur5control.
- Start your URsim virtual machine, open app 'URsim UR5', record the ip of your virtual machine ('关于' on the top right corner).
- Open file UR5Controller.cs, set the ip (line 93) to your URsim.
- Play the scene.
- Enter 'Build Settings' in Unity.
- Set 'Target Device' to hololens, 'Architecture' to ARM64 (x86 if you want to deploy it on hololens simulator).
- Enter 'Project Settings - Player', See 'Release Settings - Capabilities', check InternetClient, InternetClientServer and PrivateNetworkClientServer. (Or you will not be able to connect to your hololens device.)
- Build.
- Open the .sln project. If you have a hololens simulator, or your hololens is connected to your computer by USB, you can execute directly. Otherwise you'll need to publish an application package. Right click the solution, and release an application package.
- Install the package on your hololens device, then start the app. (Remember that your URsim and Hololens are under same network.)