Rank: 1726 based on 71 downloads (last 30 days) and 3 files submitted
photo

Glen Lichtwark

E-mail
Lat/Long
-27.0, 153.0

Personal Profile:

 

Watch this Author's files

 

Files Posted by Glen Lichtwark View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 Oct 2011 Screenshot Muscle fascicle tracking - Ultrasound Implementation of an optical flow algorithm to track muscle length changes imaged with ultrasound. Author: Glen Lichtwark ultrasound, muscle, image processing, gui 33 5
  • 5.0
5.0 | 2 ratings
24 Feb 2011 Screenshot Optitrack SDK interface demo Demonstration file on how to interface directly with Natural Points USB cameras (TrackIR or FLEX) Author: Glen Lichtwark instrument driver, trackir, optitrack 12 2
22 Jan 2010 Tracking Tools (Optitrack) Demo on how to use the Tracking Tools API from Matlab to interface with Optitrack cameras. Author: Glen Lichtwark instrument driver, measurement, optitrack, tracking 26 7
  • 4.66667
4.7 | 3 ratings
Comments and Ratings by Glen Lichtwark View all
Updated File Comments Rating
30 Oct 2011 Muscle fascicle tracking - Ultrasound Implementation of an optical flow algorithm to track muscle length changes imaged with ultrasound. Author: Glen Lichtwark

Dan, you'll have to be more specific. Can you get the video file to open at all? If not, then this is probably due to an incompatibility of the video compression. Try installing DivX as described. If you are getting an error message then I'll need to know what the message is. Please ensure you are also using Matlab 2009 onwards.

07 Jul 2010 Affine optic flow Estimates the parameters of an affine (first-order) optic flow model from two images. Author: David Young

Comments and Ratings on Glen Lichtwark's Files View all
Updated File Comment by Comments Rating
22 Oct 2014 Tracking Tools (Optitrack) Demo on how to use the Tracking Tools API from Matlab to interface with Optitrack cameras. Author: Glen Lichtwark Akhil Jain

Hi Glen. I was trying to use your code with MATLAB 7.11.1 and TT 2.5.3 32 bit. Whenever I run this code on MATLAB my cameras get automatically switched off and get an output of ans = 0. Can you please help me out with this ? Thank you.

06 Oct 2014 Tracking Tools (Optitrack) Demo on how to use the Tracking Tools API from Matlab to interface with Optitrack cameras. Author: Glen Lichtwark Or Hirshfeld

Great code
It's Helped me a lot

Now I want to move to newer versions
so I wish to create interface between Simulink to Motive I already succeed to interface between Matlab and Motive through NatNet, I reviewed the sample available with NatNet SDK to do so but I'm having trouble to migrate it to Simulink, I tried using Matlab function block unsuccessfully, it's have problem to use the dll command.

the error i got from Simulink is : Undefined function or variable 'NatNetML.NatNetClientML'.

I want to thanks Glen Lichtwark sample that helped me writing interface to matlab http://www.mathworks.com/matlabcentral/fileexchange/26449-tracking-tools--optitrack-

the code i tried is the follwing:

function [x,y,z,yaw,pitch,roll] = Location_Orinteation_Motive_64bit(RigidBody_ID) %#codegen
coder.extrinsic('–sync:on','quaternion','fullfile','NET.addAssembly','addpath')
dllPath = fullfile('c:','NatNetSDK2.5','lib','x64','NatNetML.dll');
assemblyInfo = NET.addAssembly(dllPath);
addpath('E:\Motive')
dllPath = fullfile('c:','NatNetSDK2.5','lib','x64','NatNetML.dll');
assemblyInfo = NET.addAssembly(dllPath);
theClient = NatNetML.NatNetClientML(0); % Input = iConnectionType: 0 = Multicast, 1 = Unicast
% Connect to an OptiTrack server (e.g. Motive)
HostIP = char('127.0.0.1');
theClient.Initialize(HostIP, HostIP); % Flg = returnCode: 0 = Success
% data
frameOfData = theClient.GetLastFrameOfData()
rigidBodyData = frameOfData.RigidBodies(RigidBody_ID)
x=rigidBodyData.x
y=rigidBodyData.y
z=rigidBodyData.y
% angle
q = quaternion( rigidBodyData.qx, rigidBodyData.qy, rigidBodyData.qz, rigidBodyData.qw ); % extrnal file quaternion.m
qRot = quaternion( 0, 0, 0, 1); % rotate pitch 180 to avoid 180/-180 flip for nicer graphing
q = mtimes(q, qRot);
angles = EulerAngles(q,'zyx');
yaw = angles(2) * 180.0 / pi;
pitch = -angles(1) * 180.0 / pi; % must invert due to 180 flip above
roll = -angles(3) * 180.0 / pi; % must invert due to 180 flip above

thanks
Or Hirshfeld

http://il.linkedin.com/pub/or-hirshfeld/4b/79/577/

14 Jul 2014 Tracking Tools (Optitrack) Demo on how to use the Tracking Tools API from Matlab to interface with Optitrack cameras. Author: Glen Lichtwark avi

I'm getting:
Caught unexpected "char*" Exception message is:
Index out of range

what should i do about it? i tried every thing

11 Apr 2013 Tracking Tools (Optitrack) Demo on how to use the Tracking Tools API from Matlab to interface with Optitrack cameras. Author: Glen Lichtwark Glen Lichtwark

Jose9, are you using a 32-bit or 64-bit version of Matlab? The 64-bit version will not work, however perhaps if you install the new version of Motive with your Tracking Tools license, then this may work. I will test this in the coming months.

23 Nov 2012 Tracking Tools (Optitrack) Demo on how to use the Tracking Tools API from Matlab to interface with Optitrack cameras. Author: Glen Lichtwark jose9

Hi Glen, I'm interested in your work, i have just purchased TT 2.5.0, and i used your matlab code with any succeed, and do you have any idea about the solution of this.

Thank very much

Contact us