Skip to content

Neuro-Mechatronics-Interfaces/VICON-MATLAB-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MATLAB Wrapper for VICON DataStreamSDK

Wrapper for VICON DataStreamSDK v1.12 for network online streams via VICON.

Installation

Use contents of ViconDataStreamSDK_1.12.0.145507h__x64.exe to install the SDK on target computer. Ultimately, code in this repository makes use of the DotNET support for ViconDataStreamSDK, as the C API was confusing for MATLAB to parse.

Setup

  1. Connect via orange ethernet cable, using static IP address 192.168.10.50 with gateway 192.168.10.1. The 192.168.10.1 will go in place of localhost when you are running this library not on the VICON Nexus computer.
  2. Use main.m to make sure you can connect and count/enumerate the available devices.
  3. Check config.yaml and make sure that the configurations are correct. The key one to check is LSL_Folder, which should be wherever you have installed MATLAB LSL on your local computer. It should point to the folder containing lsl_loadlib.m.

Streaming to LSL

Use the script stream_trident_to_lsl.m to stream the IMUs to LSL. Use the script stream_trident_and_markers_to_lsl.m to stream the IMUs + calibrated subject marker set to LSL.

Calibrating a Subject/Marker-Set

If you are going to try streaming a new marker configuration for the first time, follow these steps:

  1. Calibrate cameras.
  2. Place markers.
  3. Create a new subject for your session. Don't do anything to the subject.
  4. Go to the "Subject" tab on the right. Capture a session. You will now be in "Offline" mode. You must click through and create Segments for any segment you want to create. If you don't know what that means, probably don't do this.
  5. After creating segments/associating markers to them, you may wish to change the default naming schema, which is "Segment" for the "N-th" marker (1-indexed) per Segment. You can update the names, but note that these are now the default names that the DataStream labeling template will be spitting out. To get the updated marker names to save as well as any other properties of the new markers, you should now right click your subject and Click "Save as Labeling Template and Attach..." then name it as you want. Now, your labeling template is attached to the current marker set and should have the correct names etc.

Attaching an existing Labeling Set

Probably don't do this either- it will be faster just to re-fit the model at the beginning due to minor idiosyncracies/inconsistencies in the individual marker rigid relations which will cause the VICON streams to become angry (i.e. the model won't know how to scale its likelihoods properly for the individual markers or however VICON does things "under the hood").

About

Wrapper for VICON DataStreamSDK v1.12 for network online streams via VICON.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published