Commit 4c5a7254 authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

added optitrackdata class to plot saved optitrack data

parent ba0392ae
......@@ -399,7 +399,7 @@ classdef itaOptitrack < handle
end
% get tracker frame rate
byteArray = Optitrack_obj.theClient.SendMessageAndWait('FrameRate'); % request current system’s tracking frame rate
byteArray = Optitrack_obj.theClient.SendMessageAndWait('FrameRate'); % request current systems tracking frame rate
byteArray = uint8(byteArray); % decode frame rate
Optitrack_obj.frameRate = typecast(byteArray,'single');
fprintf('[itaOptitrack] Tracker frame rate: %d Hz\n', Optitrack_obj.frameRate)
......@@ -1197,5 +1197,9 @@ classdef itaOptitrack < handle
end
methods(Static)
output = plot(this,varargin);
end
end
classdef itaOptitrackData
%ITAOPTITRACKDATA Class to plot saved optitrack data
% This is just a wrapper to enable optitrack plotting of saved data
%
% Usage:
% tmp = load('savedData.mat')
% data = itaOptitrackData(tmp.LogData,tmp.LogInfo);
% data.plot
%
%
% Author: Jan-Gerrit Richter, jri@akustik.rwth-aachen.de
% Version: 2017-11-23
%
% <ITA-Toolbox>
% This file is part of the ITA-Toolbox. Some rights reserved.
% You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder.
% </ITA-Toolbox>
%
properties
data = struct();
info = struct();
numRigidBodies = 0;
end
methods
function this = itaOptitrackData(globData,globInfo)
this.data = globData;
this.info = globInfo;
this.numRigidBodies = length(this.data);
end
function varargout = plot(this, varargin)
varargout = itaOptitrack.plot(this,varargin{:});
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment