function [scenario, egoVehicle] = AEB_PedestrianChild_Nearside_50width_overrun()
% 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:19:48

% 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 actors
euroNCAPPedestrianTarget = actor(scenario, ...
    'ClassID', 4, ...
    'Length', 0.24, ...
    'Width', 0.298, ...
    'Height', 1.154, ...
    'Position', [32 -4 0], ...
    'RCSPattern', [-8 -8;-8 -8], ...
    'Mesh', driving.scenario.pedestrianMesh, ...
    'Name', 'Euro NCAP Pedestrian Target');
waypoints = [32 -4 0;
    32 -3 0;
    32 4 0];
speed = [0;1.39;1.39];
trajectory(euroNCAPPedestrianTarget, waypoints, speed);

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

vehicle(scenario, ...
    'ClassID', 1, ...
    'Length', 4.4, ...
    'Position', [27.4 -2.8 0], ...
    'Mesh', driving.scenario.carMesh, ...
    'Name', 'Small Obstruction Vehicle');

vehicle(scenario, ...
    'ClassID', 1, ...
    'Position', [21.8 -2.8 0], ...
    'Mesh', driving.scenario.carMesh, ...
    'Name', 'Large Obstruction Vehicle');

