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–75drive 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.
Drivers and Maneuvers
3D Environment Vehicles
|Simulation 3D Vehicle||Implement vehicle in 3D environment (Since R2019b)|
|Simulation 3D Vehicle with Ground Following||Implement vehicle that follows ground in 3D environment (Since R2019b)|
|Simulation 3D Three Wheeled Vehicle||Implement three-wheeled vehicle in 3D environment (Since R2023b)|
|Simulation 3D Motorcycle||Implement motorcycle in 3D environment (Since R2021b)|
|Simulation 3D Tractor||Implement tractor in 3D environment (Since R2020b)|
|Simulation 3D Trailer||Implement trailer in 3D environment (Since R2020b)|
|Simulation 3D Dolly||Implement dolly in 3D environment (Since R2021b)|
|Simulation 3D Physics Vehicle||Implement controllable 6DOF vehicle 3D environment (Since R2022b)|
3D Environment Sensors
3D Environment Configuration
|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 Message Get||Retrieve data from Unreal Engine visualization environment (Since R2019b)|
|Simulation 3D Message Set||Send data to Unreal Engine visualization environment (Since R2019b)|
Scenes and Vehicle Dimensions
|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|
|Formula Student Vehicle||Formula student vehicle dimensions|
|Conventional Tractor||Conventional tractor dimensions|
|One-Axle Trailer||One-axle trailer 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|
|Tuk tuk||Tuk tuk vehicle dimensions|
Unreal Engine Projects
|Copy support package files and plugins to specified folders (Since R2022b)|
|Interface to the Unreal Engine project (Since R2019b)|
|Access additional scenes from the server (Since R2022b)|
|Download maps from the server (Since R2022b)|
|List of maps available for download from the server (Since R2022b)|
|Delete local maps downloaded from the server (Since R2022b)|
|List of locally available maps (Since R2022b)|
|Open the Unreal Editor (Since R2019b)|
|Abstract class to use as a base class for user-defined Unreal Engine C++ or blueprint actors (Since R2020b)|
|C++ method that sets up actor in Unreal Engine 3D simulation (Since R2020b)|
|C++ method that steps actor in Unreal Engine 3D simulation (Since R2020b)|
|C++ method that releases actor in Unreal Engine 3D simulation (Since R2020b)|
|Constructs a message reader object in the Unreal Editor (Since R2020b)|
|Receives message from Simulink model using a message reader object (Since R2020b)|
|Deletes message reader object in the Unreal Editor (Since R2020b)|
|Constructs a message writer object in the Unreal Editor (Since R2020b)|
|Sends message to Simulink model using a message writer object (Since R2020b)|
|Deletes message writer object in the Unreal Editor (Since R2020b)|
- 3D Simulation for Vehicle Dynamics Blockset
Learn now to visualize vehicle performance in a 3D environment using the Unreal Engine from Epic Games®.
- Unreal Engine Simulation Environment Requirements and Limitations
When simulating in the Unreal Engine environment, keep these software requirements, minimum hardware requirements, and limitations in mind.
- How 3D Simulation for Vehicle Dynamics Blockset Works
Learn about the co-simulation framework between Simulink and the Unreal Engine and how block execution order affects 3D simulation.
- Coordinate Systems in Vehicle Dynamics Blockset
Understand coordinate systems for representing vehicle dynamics.
- Send and Receive Double-Lane Change Scene Data
Use the Simulation 3D Message Set and Simulation 3D Message Get blocks to communicate with the double-lane change scene.
- Create and Use an Oval Track
Create an oval track with RoadRunner and use it in a Vehicle Dynamics Blockset™ simulation that co-simulates with Unreal®.
- Customize 3D Scenes for Vehicle Dynamics Simulations
To customize scenes and vehicles, use the Vehicle Dynamics Blockset Interface for Unreal Engine 4 Projects support package.
- Get Started Communicating with the Unreal Engine Visualization Environment
Use the Simulation 3D Message Get and Simulation 3D Message Set blocks to communicate with the Unreal Editor.
- Animate Custom Actors in the Unreal Editor
Animate a custom bicycle actor.
- Build Light in Unreal Editor
Build and use lighting in the Unreal Editor.
- Create Empty Project in Unreal Engine
Create empty project to use in custom scenes.
- Place Cameras on Actors in the Unreal Editor
Place the Simulation 3D Camera GetSimulation 3D Camera GetSimulation 3D Camera block on static and custom actors.
- Prepare Custom Vehicle Mesh for the Unreal Editor
Create custom vehicle mesh for the Simulation 3D Vehicle and Simulation 3D Vehicle with Ground Following blocks.