Skip to content

iautodidact/Qualisys-Unity-SDK

 
 

Repository files navigation

Qualisys Unity SDK

This is a repository with Unity scripts that lets Qualisys users stream marker, 6dof and user bones to Unity from Qualisys Track Manager. A complete custom package that can be imported into Unity is available here.

Example on how to use

  1. Start QTM and start streaming real-time (either real-time from camera system or from measurement file).
  2. Create new project.
  3. Import Package -> Custom Package...
  4. Show the QTM Streaming window using the menu option Window->Qualisys->RTClient.
  5. Create an empty GameObject and the RTMarkerStream.cs script to it.
  6. Press "play" mode
  7. The QTM servers available on the network will be automatically discovered and displayed in the Server settings in the QTM Streaming window.
  8. Press Connect and then Unity will receive markers and display them.

For character animation, instead of 5:

  1. Go to Window -> Asset Store -> 3D Models -> Characters and download and import Character
  2. Add character to the scene
  3. Drag and drop RTCharacterStream.cs to the character in the Hierarchy. Then continue as above at 6.

Files in this package

Streaming

These are scripts that can be added to game objects for handling of streaming data from Qualisys Track Manager using the RTClientSDK.Net.

  • RTMarkerStream.cs - Add this script to a Game object to visualize marker positions (using spheres) streamed from Qualisys Track Manager.
  • RTBones.cs - Add this script to a Game object to visualize user defined bones (using line gizmos).
  • RTObject.cs - Add this script to a Game object to get 6DOF object positions and rotations streamed from Qualisys Track Manager.
  • RTCharacterStream.cs - Add this script to a Unity character to animate the character from marker streamed from Qualisys Track Manager.

Helpers

Scripts in this folder are Unity helper scripts used to commuicate with Qualisys Track Manager and handle Unity user interface.

  • RTClient.cs - Main script that handles the communication between Qualisys Track Manager and Unity.
  • RTGUI.cs - This script is responsible for handling the Window->Qualisys->RTClient option that shows the QTM Streaming window where the user can select which Qualisys Track Manager to connect to.
  • RTGUIInGame.cs - This script can be used to show a QTM connection user interface when in Game mode.

RTClientSDK.Net

The Unity SDK includes a packaged version of the Real-time client SDK for .Net.

Character Animation

Files for real-time animation of a character.

Links

About

Unity package for the C# (.NET) implementation of the real-time protocol for Qualisys Track Manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%