Vehicle Scenarios

Drive cycles, driver models, test maneuvers, and 3D simulation in Unreal Engine® visualization environment

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 JC08 and CUEDC.

  • 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.

Blocks

expand all

Drive Cycle SourceStandard or specified longitudinal drive cycle
Lateral DriverLateral path-tracking controller
Longitudinal DriverLongitudinal speed-tracking controller
Predictive DriverPredictive driver controller to track longitudinal speed and lateral path
Simulation 3D Scene ConfigurationScene configuration for 3D simulation environment
Simulation 3D VehicleImplement vehicle in 3D environment
Simulation 3D Vehicle with Ground FollowingImplement vehicle that follows ground in 3D environment
Simulation 3D TractorImplement tractor in 3D environment
Simulation 3D TrailerImplement trailer in 3D environment
Vehicle Terrain SensorVehicle and tire distances to objects
Simulation 3D Actor Transform GetGet actor translation, rotation, scale
Simulation 3D Actor Transform SetSet actor translation, rotation, scale
Simulation 3D Camera GetCamera image
Simulation 3D Message GetRetrieve data from Unreal Engine visualization environment
Simulation 3D Message SetSend data to Unreal Engine visualization environment

Scenes and Vehicle Dimensions

expand all

Curved RoadCurved road 3D environment
Double Lane ChangeDouble lane change 3D environment
Open SurfaceOpen surface 3D environment
Large Parking LotLarge parking lot 3D environment
Parking LotParking lot 3D environment
Straight RoadStraight road 3D environment
US City BlockUS city block 3D environment
US HighwayUS highway 3D environment
Virtual McityVirtual Mcity 3D environment
Box TruckBox truck vehicle dimensions
HatchbackHatchback vehicle dimensions
Muscle CarMuscle car vehicle dimensions
SedanSedan vehicle dimensions
Small Pickup TruckSmall pickup truck vehicle dimensions
Sport Utility VehicleSport utility vehicle dimensions
Cab-Over TractorCab-over tractor dimensions
Conventional TractorConventional tractor dimensions
Two-Axle TrailerTwo-axle trailer dimensions
Three-Axle TrailerThree-axle trailer dimensions

Functions

expand all

sim3d.EditorInterface to the Unreal Engine project
openOpen the Unreal Editor
ASim3dActorAbstract class to use as a base class for user-defined Unreal Engine C++ or blueprint actors
Sim3dSetupC++ method that sets up actor in Unreal Engine 3D simulation
Sim3dStepC++ method that steps actor in Unreal Engine 3D simulation
Sim3dReleaseC++ method that releases actor in Unreal Engine 3D simulation
StartSimulation3DMessageReaderConstructs a message reader object in the Unreal Editor
ReadSimulation3DMessageReceives message from Simulink model using a message reader object
StopSimulation3DMessageReaderDeletes message reader object in the Unreal Editor
StartSimulation3DMessageWriterConstructs a message writer object in the Unreal Editor
WriteSimulation3DMessageSends message to Simulink model using a message writer object
StopSimulation3DMessageWriterDeletes message writer object in the Unreal Editor

Topics

Simulation Basics

3D Simulation for Vehicle Dynamics Blockset

Learn now to visualize vehicle performance in a 3D environment using the Unreal Engine from Epic Games®.

3D Visualization Engine Requirements and Limitations

When simulating in the 3D environment using the Unreal Engine, keep these software requirements, minimum hardware recommendations, 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.

Scene Customization

Customize 3D Scenes for Vehicle Dynamics Simulations

To customize scenes, 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.

Place Cameras on Actors in the Unreal Editor

Place the Simulation 3D Camera Get block on static and custom actors.

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.

Featured Examples