-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking with dtrack/vrpn in Unity #152
Comments
OSVR uses VRPN natively. It also has the ability to use external VRPN servers as data sources. See https://osvr.github.io/whitepapers/vrpn_in_osvr/ for more info on using an external device and https://www.youtube.com/watch?v=TtLn6XpEisw for using OSVR with Unity. |
I'm guessing by the fact that you opened an issue on VRPN that this didn't solve your problem. There is a small example of a sample config file using ART DTrack, via a separately-running VRPN server , located here: https://github.com/OSVR/OSVR-Core/blob/master/apps/external-devices/osvr_server_config.externalvrpn.ART_DTrack_Flystick.json Don't be put off by the mention of the flystick - you can access just the tracker if desired, the goal of that config was to show how you'd set up the flystick if you happened to have one of them too. The "/me/head": "/DTrackDevice/tracker/0", and so on, so you can give names like this to the various tracked objects from DTrack and access them through OSVR pose interfaces in Unity. You then just run a VRPN server in the background, on port 3884, with the vrpn.cfg file edited to uncomment the DTrack driver, as well as running the OSVR server. Does that help? |
Thank you both for your quick reply! I will try out OSVR in the following three days and see if it works in my situation. Unity seems to have some Beef with DLLs, I will see if OSVR can settle this dispute. |
No problem. Sensics maintains both OSVR and VRPN, so in practice I'd probably respond to the ticket in either place :-P I'd think you should be able to downgrade the VRPNNet project to .NET 3.5, but the OSVR plugin for Unity is a lot more featureful and well integrated (the equivalent to VRPN.Net is Managed-OSVR - the Unity plugin is a layer of integration on top of that dealing with the joys of left-handed coordinate systems, different units, etc. as well as game object integration) and probably the easier route. |
So I've tried the following things with OSVR now without any positive results:
Also the Documentation states, that I need to be running an OSVR-Server if I expect any functionality. Now, the Infrared trackers I want to use are configured with a program called "Personal Space Tracker (PST)", which already acts as a VRPN-Server sending data like [devicename]@localhost. |
So the OSVR Unity requires a compiled version of OSVR-Core and Managed-OSVR. the recommended way of using it is just by getting a prebuilt The PST server will conflict with the OSVR server, which right now uses the VRPN port - if you can configure the PST server to run on a non-default port, then you point OSVR at the PST server. |
Hey there! I have the Problem that I send the data from DTrack over the VRPN Server to the OSVR Server but there is nothing to see in the Tracking Viewer. The Servers are set up correctly. I'm using the Flystick sample-data from DTrack as the Output. In the end I want to import it into Unreal Engine 4.13 which should not be hard to do because of the plugin. Why does my OSVR does not get the data from the VRPN Server? Does it interpret the data the wrong way? Thanks for your help! |
@scYllA913 I think you need to specify which paths you are looking for via command line args when launching TrackerViewer. By default, TrackerViewer looks for /me/head, /me/hands/left, and /me/hands/left. If you have data coming in on other paths, you won't see it in TrackerViewer by default. See: https://github.com/OSVR/OSVR-Tracker-Viewer |
Since I'm currently working on something like the same thing. Did you bring it to work @HendrikLober ? |
No, I gave it up after several weeks of trying. I would've needed it for my bachelors degree back then, but I chose a different topic. Also I can't recall the things I tried, so I wont be able to help you much. |
Hm... okay @HendrikLober, thanks anyway. Maybe someone else can help me with this. |
Hey there folks!
I want to read data from an infrared tracker in Unity. For this I have the option to use the dtrack- and the vrpn protokol.
The vrpn.net project does not work, because the dll is build for .NET 4.0, whereas Unity requires 3.5. Building the c++ vrpn project as dll yields a library, which I can't even open in the dependency walker.
So my question is:
Can I connect to Hardware via the dtrack or vrpn protocol by using OSVR in Unity? Does it have a native implementation for this?
Thank you for your time.
The text was updated successfully, but these errors were encountered: