plotSim3d
Description
The plotSim3d
function creates a high-fidelity 3-D plot for
the driving scenario in an Unreal Engine® viewer. It also synchronizes the driving scenario to the 3-D plot which enables
you to advance and visualize the complete scenario at every time-step.
You can control the mapping between the cuboid driving scenario actors and their
corresponding high-fidelity 3-D display types in the Unreal Engine viewer. To control the mapping, you must specify the
AssetType
argument for each vehicle
and other actor
object in the driving scenario. If you
do not specify the AssetType
argument, then the
plotSim3d
function uses the default asset path mapping between the
driving scenario actors and their corresponding 3-D display assets based on Class
ID
as illustrated in this table:
Driving Scenario Class ID | Driving Scenario Actor Type | 3-D Display Asset |
---|---|---|
1 | Car | Sedan |
2 | Box Truck | BoxTruck |
3 | Bicycle | Bicyclist |
4 | Pedestrian | MalePedestrian |
5 | Barrier | Barrier |
All other class IDs | All other custom dynamic actors | Cuboid |
plotSim3d(
creates a high-fidelity
3-D plot in Unreal Engine viewer with orthonormal or bird's-eye-view perspective, as seen from
immediately above the driving scenario, scenario
)scenario
.
plotSim3d(
creates a high-fidelity 3-D plot in Unreal Engine viewer from the perspective of the actor whose ID is specified by the
name-value argument, scenario
,ActorInFocus=actorID
)ActorInFocus=actorID
. The 3-D plot has an
ego-centric projective perspective, where the view is positioned immediately behind the
actor.
Examples
Input Arguments
Version History
Introduced in R2024a