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|
|Simulation 3D Vehicle with Ground Following||Implement vehicle that follows ground in 3D environment|
|Simulation 3D Motorcycle||Implement motorcycle in 3D environment|
|Simulation 3D Tractor||Implement tractor in 3D environment|
|Simulation 3D Trailer||Implement trailer in 3D environment|
|Simulation 3D Dolly||Implement dolly in 3D environment|
|Simulation 3D Terrain Sensor||Implement multipoint terrain sensor in 3D environment|
|Vehicle Terrain Sensor||Vehicle and tire distances to objects|
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 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|
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|
|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|
Unreal Engine Projects
|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|
- 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 Double-Lane Change Scene Data
Use the Simulation 3D Message Set block to communicate with the double-lane change scene.
- Create and Use an Oval Track
Create a 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.