Closed JeanValjean17 closed 4 years ago
Hi Jean,
If you delete the following lines:
using System.Collections.Concurrent;
using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
from hololens-client/Assets/Scripts/GuidanceControl.cs
and comment out the parts of this file that use these imports, does it fix the the problem?
Hi Roger,
Thanks for replying :)
I did it and the Menu Item appeared, but then when I build the Visual Studio Solution new errors appear:
If I don't comment the lines related to using System.Collections.Concurrent;
then it will complain about them too...
Also, these Instruction and Gabriel Classes shown in the error are in this folder:
...\gabriel-instruction-master\hololens-client\UWP\Assembly-CSharp\Scripts
Do they need to be included somehow to the visual studio project, or how does it work? I took a look inside them and they are using Google.Protobuf
No problem!
Could you try building this version of the Hololens Client? This is a snapshot of the code before I modified Gabriel to transmit data using Protocol Buffers and WebSockets. If you get this working first, I can help you modify it to use my latest code.
Note that you will have to add HoloToolkit to the Unity project after you clone this version of the repository.
That version builds perfectly on the computer that the client was first developed on. But I cloud not get it working on a fresh installation of Windows. There are some dependencies that are missing (such as the text to speech module). If you are willing to work through these, the client would probably build. But I unfortunately don't have the bandwidth to help you with these dependency issues.
Note also that we only have holograms to go along with Gabriel-Sandwich. The client might work with our other instruction-based Gabriel applications. But it won't show any holograms. The sandwich application requires this specific toy set. But you are certainly welcome to modify the client or the sandwich server yourself.
The version you linked seems to be the same that has the Protocol Buffers, should I check a specific commit?
Sorry, I meant to link to this https://github.com/cmusatyalab/gabriel-instruction/tree/old-hololens/hololens-client
Thanks, I tried this one and I was able to build and run it on the device with no problems. What would be needed to make it work with the Protocol Buffers?
Oh, regarding the holograms, for now, I only intend to work with the Gabriel-Sandwich for which we already have that kit you specified :)
Open the solution that you build from Unity with Visual Studio Community 2015. You will make modifications to files in Visual Studio that will prevent the project from building in Unity. But you can just build everything with Visual Studio going forward.
Update the contents of GuidanceControl.cs, Const.cs, and project.json. Then delete all text in the files MyLogger.cs and TokenController.cs. But don't delete these files. Just keep them on disk with no content in them. If you run into errors, I might have missed some necessary changes from this list.
Would you mind sharing the additional steps that you took to get the version that I linked to build? I have not gotten that working myself but would like to be able to.
Do you mean to update them with the contents of the master branch, right?
For the building, I didn't take any additional steps I just followed the normal steps and it built correctly.
That's correct.
That's interesting. Unity gave me errors when I tried on a different computer. Glad it worked for you though!
It worked now, tried with the server as well and works properly. Thanks for your help Roger!
No problem! Glad to hear you got it working.
Hello,
When I'm following the steps for building the hololens client, adding the HololensToolkit package doesn't add the HoloToolkit menu item.
Also, when I open the Unity Project of the Hololens clients these errors appear in the Unity console:
Even though I solve these errors in the Visual Studio project they keep appearing in the Unity Console. Is this related to the HoloToolkit menu item not appearing in the project?
I'm using Unity HoloLens 5.4.0f3-HTP and VS 2015 as described in the readme.
Regards,
Jean