%% Specify Box Truck Vehicle Dimensions
% When simulating a path planner in the 3D environment, the path planner must use a vehicle whose dimensions are consistent with the one used in the environment. To make these dimensions consistent, you can use a vehicleDimensions object.
% Specify the dimensions of a Box Truck vehicle in a vehicleDimensions object. Units are in meters. For an example that uses this object in a path planner, see Visualize Automated Parking Valet Using 3D Simulation.

centerToFront = 3.35;
centerToRear  = 2.19;
frontOverhang = 1.25;
rearOverhang  = 2.41;
vehicleWidth  = 2.72;
vehicleHeight = 4.01;
vehicleLength = centerToFront + centerToRear + frontOverhang + rearOverhang;

boxTruckDims = vehicleDimensions(vehicleLength,vehicleWidth,vehicleHeight, ...
    'FrontOverhang',frontOverhang,'RearOverhang',rearOverhang)

% Copyright 2019 The MathWorks, Inc.