% check Internet connection and if url is existing
urljava=java.net.URL(url);
openStream(urljava);
openStream(urljava);
catch
error('[itaOptitrack] No Internet connection. Missing NatNet SDK cannot be downloaded.')
% url is not existing or computer is not connected to Internet
error(['[itaOptitrack] No Internet connection or, ',url,' does not exist. Missing NatNet SDK cannot be downloaded. Please update URL (l.297) and version (l. 313/317/321).'])
end
% create directory
mkdir(Optitrack_obj.dllPath)
fprintf('[itaOptitrack] Cannot find NatNet SDK on computer. Downloading.');