function [scenario, egoVehicle] = AEB_CCRb_2_initialGap_12m_stop_inf()
% createDrivingScenario Returns the drivingScenario defined in the Designer

% Generated by MATLAB(R) 9.9 (R2020b) and Automated Driving Toolbox 3.2 (R2020b).
% Generated on: 23-Dec-2020 11:20:30

% Construct a drivingScenario object.
scenario = drivingScenario;

% Add all road segments
roadCenters = [0 0 0;
    1000 0 0];
roadWidth = 10;
road(scenario, roadCenters, roadWidth, 'Name', 'Road');

% Add the ego vehicle
egoVehicle = vehicle(scenario, ...
    'ClassID', 1, ...
    'Position', [20 0 0], ...
    'Mesh', driving.scenario.carMesh, ...
    'Name', 'Vehicle Under Test');
waypoints = [20 0 0;
    150 0 0];
speed = 13.89;
trajectory(egoVehicle, waypoints, speed);

% Add the non-ego actors
globalVehicleTarget = vehicle(scenario, ...
    'ClassID', 1, ...
    'Position', [36.7 0 0], ...
    'Mesh', driving.scenario.carMesh, ...
    'Name', 'Global Vehicle Target');
waypoints = [36.7 0 0;
    70 0 0;
    118.23 0 0];
speed = [13.89;13.89;0];
trajectory(globalVehicleTarget, waypoints, speed);

