Hatchback
Hatchback vehicle dimensions
Description
Hatchbackis one of the vehicles that you can use within the 3D simulation environment. This environment is rendered using the Unreal Engine®from Epic Games®. The diagram provides the dimensions of this vehicle. The height dimensions are with respect to the vertical ground plane. The length and width dimensions are with respect to the origin of the vehicle in the vehicle coordinate system. The origin is on the ground, at the geometric center of the vehicle. For more detailed views of these diagrams, see theDimensionssection.
To add this type of vehicle to the 3D simulation environment:
Add aSimulation 3D Vehicle with Ground Followingblock to your Simulink®model.
In the block, set theTypeparameter to
Hatchback
.
Dimensions
Sensor Mounting Locations
In the 3D simulation sensor blocks, use theMounting locationparameter to mount sensors at predefined locations on the vehicle. The table shows theX,Y, andZpositions of the mounting locations relative to the vehicle origin. These locations are in the vehicle coordinate system, where:
TheX-axis points forward from the vehicle.
TheY-axis points to the left of the vehicle, as viewed when facing forward.
TheZ-axis points up from the ground.
Hatchback — Sensor Locations Relative to Vehicle Origin
Mounting Location | X (m) | Y (m) | Z (m) |
---|---|---|---|
Front bumper |
1.93 | 0 | 0.51 |
Rear bumper |
–1.93 | 0 | 0.51 |
|
0.43 | –0.84 | 1.01 |
|
0.43 | 0.84 | 1.01 |
|
0.32 | 0 | 1.27 |
|
1.44 | 0 | 1.01 |
|
0 | 0 | 1.57 |
Specify Hatchback Vehicle Dimensions
When simulating a path planner in the 3D environment, the path planner must use a vehicle whose dimensions are consistent with one used in the 3D environment. To make these dimensions consistent, you can use avehicleDimensions
object.
Specify the dimensions of a Hatchback vehicle in avehicleDimensions
object. Units are in meters. For an example that uses this object in a path planner, seeVisualize Automated Parking Valet Using Unreal Engine Simulation.
centerToFront = 1.104; centerToRear = 1.343; frontOverhang = 0.828; rearOverhang = 0.589; vehicleWidth = 1.653; vehicleHeight = 1.513; vehicleLength = centerToFront + centerToRear + frontOverhang + rearOverhang; hatchbackDims = vehicleDimensions(vehicleLength,vehicleWidth,vehicleHeight,...'FrontOverhang',frontOverhang,'RearOverhang',rearOverhang)
hatchbackDims = vehicleDimensions with properties: Length: 3.8640 Width: 1.6530 Height: 1.5130 Wheelbase: 2.4470 RearOverhang: 0.5890 FrontOverhang: 0.8280 WorldUnits: 'meters'