function spd = getSpd(folder_path,file_name)
   basepath = pwd;
   file_path = fullfile(basepath,folder_path, file_name);
   mvt = 3;fps = 100;
   optictrack = csvread([file_path],7,1);
   idx = find(optictrack(:,2)==0);
   optictrack(idx,2:8) = nan(size(idx,1),7);
   optictrack = fillmissing(optictrack,'linear');
   t = optictrack(:,1);
   x = optictrack(:,6);
   y = optictrack(:,7);
   vel = sqrt((x(2:end) - x(1:end-1)).^2 + (y(2:end) - y(1:end-1)).^2)*fps;
   vel = smoothdata(vel,'movmean',fps*mvt);

   spd.posX = x;
   spd.posY = y;
   spd.data = vel;
   spd.time = t(1:length(vel));
end
