Code covered by the BSD License  

Highlights from
Optical flow based robot obstacle avoidance with Matlab

image thumbnail
from Optical flow based robot obstacle avoidance with Matlab by Alexander Grau
Navigate a virtual robot in a virtual environment to avoid obstacles by using optical flow field.

vrcloseaction
%% ---------------------------------------------------------------------------
%% called when closing the VR view 
%% --------------------------------------------------------------------------- 

function vrcloseaction
  disp('bye VR');
  global glob
  glob.active = 0;
  rmfield(glob, 'world')
  rmfield(glob, 'fig')
  
    

Contact us at files@mathworks.com