% helperSLHighwayLaneChangeCleanUp script clears all workspace variables
% created during execution of this example.

% This is a helper script for example purposes and may be removed or
% modified in the future.

% Copyright 2019-2020 The MathWorks, Inc.

clear actor_Profiles;
clear assessment;
clear BusActorProfile; 
clear BusActors1Actors; 
clear BusActorsEgo; 
clear BusLaneBoundaries1; 
clear BusLaneBoundaries1LaneBoundaries; 
clear BusLanes; 
clear BusLaneSensor; 
clear BusLaneSensorBoundaries; 
clear BusLanesLaneBoundaries; 
clear BusMIO; 
clear BusMIOs;
clear BusPlannerBehavior; 
clear BusPlannerData;
clear BusRefPointOnPath; 
clear BusStateSamples; 
clear BusTerminalStatesSamples; 
clear BusVision; 
clear BusVisionDetections; 
clear BusVisionDetectionsMeasurementParameters; 
clear BusVisionDetectionsObjectAttributes; 
clear BusWeights; 
clear Cf; 
clear Cr; 
clear defaultSpacing;
clear globalPlanPoints; 
clear initialEgoVelocity; 
clear initialEgoX; 
clear initialEgoY; 
clear initialEgoYaw; 
clear Iz; 
clear lf; 
clear lr; 
clear m; 
clear maxAc; 
clear maxSteer; 
clear minAc;
clear minSteer; 
clear predictionHorizon;
clear scenario;
clear simStopTime;
clear tau;
clear Ts;
clear minDistThreshold;
clear initialEgoLaneID;
clear initialDeviation;
clear laneType;
clear laneWidth;
clear planningHorizon;

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