Code Monkey home page Code Monkey logo

qualisys-unity-sdk's Introduction

Qualisys Unity SDK

This repository houses Unity components for streaming data from Qualisys Track Manager (QTM) to Unity.

Download Link

Download the Asset package at releases

Example Usage

Character animation using QTM Real-Time Output

  1. In your Unity project, select Import Package > Custom Package... and import this package.
  2. Double click the file DemoSkeletonQtm to launch QTM.
  3. In QTM. Start streaming by pressing Ctrl + Shift + Space or select Play > Play with Real-Time Output
  4. In Unity, open the scene DemoSkeletonScene.
  5. Press Play.
  6. Connect to localhost using the right side menu. Note that you can also use the editor window to connect to QTM. It's located under Window > Qualisys > RTClient

Contents

Components

The scripts below can be attached to GameObjects for streaming data from QTM. They are built using the Qualisys Real-time Client SDK for .NET.

  • RTSkeleton.cs - Add this script to use qtm skeleton data to drive mecanim humanoid character in Unity.
  • RTMarker.cs - Add this script to a Game object to set the position of game object from a specific labeled marker name.
  • RTUnlabeledMarker.cs - Add this script to a Game object to set the position of game object from a specific unlabeled marker id.
  • 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.
  • RTObjectMarkers.cs - Add this script to Game objects of a 6DOF object body markers.
  • RTGazeStream.cs - Add this script to visualize gaze vectors as lines.
  • RTAnalog.cs - Example script to display how to get data from a specific analog channel (using name).
  • RTAnalogIMU.cs - Add this script and set analog channel names for IMU data (X, Y, Z, W).

Helpers

These are helper scripts used to communicate with QTM and add functionality to the 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 Qualisys Real-time client SDK for .Net.

qualisys-unity-sdk's People

Contributors

bornold avatar cappelnord avatar helmesjo avatar mbaytas avatar mlveggo avatar qjgn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.