%%exampleHelperUrbanCleanUp This files clers the workspace variables.
% Copyright 2019 The MathWorks, Inc.
clear ACCSafeDistance;
clear axes2EgoHandle;
clear carPolygon;
clear currentEgoState;
clear currentStateInFrenet;
clear desiredTimeBound;
clear distanceToLeadVehicle;
clear egoCenter;
clear egoInitPose;
clear egoInitVelocity;
clear egoInitYaw;
clear egoMap;
clear egoPolygon;
clear globalPlanPoints;
clear goalPoint;
clear hAxes1;
clear hAxes2;
clear isGoalReached;
clear laneBoundaries;
clear laneWidth;
clear leadVehicle;
clear leadVehicleVelocity;
clear localPlanner;
clear timeResolution;
clear previousReplanTime;
clear otherVehicles;
clear positionA;
clear positionB;
clear positionC;
clear positionD;
clear replanPeriod;
clear simStep;
clear stateValidator;
clear staticOccupancyMap;
clear otherVehicleHandle;
clear trajectory ;
clear vehicleLength;
clear replanInterval;

% If ans was created by the model, clean it too
if exist('ans','var') && ischar(ans) %#ok<NOANS>
    clear ans
end