To configure vehicle scenarios, use the drive cycle, driver, and 3D simulation blocks.
Drive Cycle Source block — Generates a standard
or user-specified longitudinal drive cycle. By default, the
block includes the
FTP–75 drive cycle. To
install additional drive cycles from a support package, see
Support Package For Maneuver and Drive Cycle Data. The support package has drive cycles that include gear shift
schedules, for example
Driver blocks — Implement controllers that generate normalized steering, acceleration, and braking commands to track velocity or displacement.
3D visualization blocks — Integrate 3D visualization environment with Simulink® so that you can interrogate the world around the vehicle for virtually testing perception, control, and planning algorithms.
|Simulation 3D Vehicle||Implement vehicle in 3D environment|
|Simulation 3D Vehicle with Ground Following||Implement vehicle that follows ground in 3D environment|
|Simulation 3D Tractor||Implement tractor in 3D environment|
|Simulation 3D Trailer||Implement trailer in 3D environment|
|Simulation 3D Motorcycle||Implement motorcycle in 3D environment|
|Simulation 3D Dolly||Implement dolly in 3D environment|
|Vehicle Terrain Sensor||Vehicle and tire distances to objects|
|Simulation 3D Scene Configuration||Scene configuration for 3D simulation environment|
|Simulation 3D Actor Transform Get||Get actor translation, rotation, scale|
|Simulation 3D Actor Transform Set||Set actor translation, rotation, scale|
|Simulation 3D Camera Get||Camera image|
|Simulation 3D Message Get||Retrieve data from Unreal Engine visualization environment|
|Simulation 3D Message Set||Send data to Unreal Engine visualization environment|
|Curved Road||Curved road 3D environment|
|Double Lane Change||Double lane change 3D environment|
|Large Parking Lot||Large parking lot 3D environment|
|Open Surface||Open surface 3D environment|
|Parking Lot||Parking lot 3D environment|
|Straight Road||Straight road 3D environment|
|US City Block||US city block 3D environment|
|US Highway||US highway 3D environment|
|Virtual Mcity||Virtual Mcity 3D environment|
|Box Truck||Box truck vehicle dimensions|
|Hatchback||Hatchback vehicle dimensions|
|Muscle Car||Muscle car vehicle dimensions|
|Sedan||Sedan vehicle dimensions|
|Small Pickup Truck||Small pickup truck vehicle dimensions|
|Sport Utility Vehicle||Sport utility vehicle dimensions|
|Cab-Over Tractor||Cab-over tractor dimensions|
|Conventional Tractor||Conventional tractor dimensions|
|Two-Axle Trailer||Two-axle trailer dimensions|
|Three-Axle Trailer||Three-axle trailer dimensions|
|One-Axle Dolly||One-axle dolly dimensions|
|Two-Axle Dolly||Two-axle dolly dimensions|
|Three-Axle Dolly||Three-axle dolly dimensions|
|Motor Bike||Motor bike dimensions|
|Sports Bike||Sports bike dimensions|
|Interface to the Unreal Engine project|
|Open the Unreal Editor|
|Abstract class to use as a base class for user-defined Unreal Engine C++ or blueprint actors|
|C++ method that sets up actor in Unreal Engine 3D simulation|
|C++ method that steps actor in Unreal Engine 3D simulation|
|C++ method that releases actor in Unreal Engine 3D simulation|
|Constructs a message reader object in the Unreal Editor|
|Receives message from Simulink model using a message reader object|
|Deletes message reader object in the Unreal Editor|
|Constructs a message writer object in the Unreal Editor|
|Sends message to Simulink model using a message writer object|
|Deletes message writer object in the Unreal Editor|
Learn now to visualize vehicle performance in a 3D environment using the Unreal Engine from Epic Games®.
When simulating in the Unreal Engine environment, keep these software requirements, minimum hardware requirements, and limitations in mind.
Learn about the co-simulation framework between Simulink and the Unreal Engine and how block execution order affects 3D simulation.
Understand coordinate systems for representing vehicle dynamics.
To customize scenes and vehicles, use the Vehicle Dynamics Blockset™ Interface for Unreal Engine 4 Projects support package.
Use the Simulation 3D Message Get and Simulation 3D Message Set blocks to communicate with the Unreal® Editor.
Animate a custom bicycle actor.
Create a oval track with RoadRunner and use it in a Vehicle Dynamics Blockset simulation that co-simulates with Unreal.
Create custom vehicle mesh for the Simulation 3D Vehicle and Simulation 3D Vehicle with Ground Following blocks.
Place the Simulation 3D Camera GetSimulation 3D Camera block on static and custom actors.
Use the Simulation 3D Message Set and Simulation 3D Message Get blocks to communicate with the double-lane change scene.