US City Block
US city block 3D environment
Description
The US City Block scene is a 3D environment of a US city block that contains 15 intersections and 30 traffic lights. The scene is rendered using RoadRunner.
Setup
To simulate a driving maneuver in this scene:
Add a Simulation 3D Scene Configuration block to your Simulink® model.
In this block, set the Scene source parameter to
Default Scenes
.Set the enabled Scene name parameter to
US city block
.
Layout
The scene uses the world coordinate system to locate objects.
Overall | Active Area |
---|---|
|
|
Scene Dimensions
This table provides the scene area corner locations in the world coordinate system. Dimensions are in m.
Locations | X (m) | Y (m) | Z (m) |
---|---|---|---|
Scene — Top left |
|
|
|
Scene — Bottom right |
|
|
|
Active area — Bottom left | -240.77 |
|
|
Recommended Starting Location
This table provides the recommended starting location for the vehicle in the world coordinate system. Dimensions are in m and deg.
Recommended Starting Location | |||||
---|---|---|---|---|---|
X (m) | Y (m) | Z (m) | Roll (deg) | Pitch (deg) | Yaw (deg) |
|
|
|
|
|
|
Intersections
The US City Block scene has 15 intersections, as indicated in this diagram.
This table provides the intersection locations in the world coordinate system. Dimensions are in m.
Intersection | Center Location | ||
---|---|---|---|
X (m) | Y (m) | Z (m) | |
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
Lane Dimensions
The scene contains three types of roads.
This figure and table provides the road type 1 lane dimensions, in m.
Variable | Dimension (m) |
---|---|
lw1 | 0.65 |
lw2 | 3.85 |
lw3 | 3.85 |
lw4 | 0.65 |
ml | 1.5 |
s | 4.5 |
mw | 0.125 |
W | 9 |
This figure and table provides the road type 2 lane dimensions, in m.
Variable | Dimension (m) |
---|---|
lw1 | 0.73 |
lw2 | 3.77 |
lw3 | 3.77 |
lw4 | 4.5 |
lw5 | 0.73 |
ml | 1.5 |
s | 4.5 |
mw | 0.125 |
W | 13.5 |
This figure and table provides the road type 3 lane dimensions, in m.
Variable | Dimension (m) |
---|---|
lw1 | 0.65 |
lw2 | 3.85 |
lw3 | 3.85 |
lw4 | 3.15 |
ml | 1.5 |
s | 4.5 |
mw | 0.125 |
W | 11.5 |
World Coordinate System
The 3D visualization environment uses a world coordinate system with axes that are fixed in the inertial reference frame.
Axis | Description |
---|---|
X | Forward direction of the vehicle Roll — Right-handed rotation about X-axis |
Y | Extends to the right of the vehicle, parallel to the ground plane Pitch — Right-handed rotation about Y-axis |
Z | Extends upwards Yaw — Left-handed rotation about Z-axis |
Objects
Barrier
This table provides the object names and locations in the world coordinate system. Dimensions are in m.
Unreal Engine® Editor Name | Location | ||||||
---|---|---|---|---|---|---|---|
X | Y | Z | Roll | Pitch | Yaw | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
| 159.73 |
|
|
|
| 0 | |
| 197.05 |
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
| 0 | |
|
|
|
|
|
|
| |
|
| -147.40 |
|
|
| 0 | |
|
|
|
|
|
| 0 | |
|
|
|
|
|
| 0 | |
| 119.29 |
|
|
|
| 0 | |
| 197.05 |
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
| 156.30 |
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
PropNode2550
| -24.53 | 150.15 | 0.01
| 0 | 0 | 0 | |
PropNode2548
| -29.31 | 150.15 | 0.06 | 0 | 0 | 0 | |
PropNode2567
| 197.05
| -1.90 | 0.01
| 0 | 0 |
| |
PropNode2557
|
173.10
| 150.15 | 0.12 | 0 | 0 | 0 | |
PropNode2553
|
83.12
| 150.15 | 0.03
| 0 | 0 | 0 | |
PropNode2597
| -122.75
| -147.37 |
0.04
| 0 | 0 | 0 | |
PropNode2555
|
78.37
| 150.15 | 0.01 | 0 | 0 | 0 | |
PropNode2591
| -99.03
| -147.40 | 0.04 | 0 | 0 | 0 | |
PropNode2560
| 197.05
| 119.24 | 0.12 | 0 | 0 |
| |
PropNode2573
|
197.05 | -106.00
| 0.01 | 0 | 0 |
| |
PropNode2547
|
-110.71
|
150.15
| 0.01 | 0 | 0 | ||
PropNode2533
|
-240.00 |
103.96
| 0.04 | 0 | 0 |
| |
PropNode2534
| -240.00
|
108.62 | 0.01 | 0 | 0 |
| |
PropNode2579
|
73.95
| -147.40
| 0.01 | 0 | 0 | ||
PropNode2564
|
197.05 | -6.67
| 0.07 | 0 | 0 |
| |
PropNode2589
|
-32.70 | -147.40
| 0.04 | 0 | 0 | ||
PropNode2520
|
-32.70 | -109.92
| 0.01 | 0 | 0 |
| |
PropNode2562
| 197.05 |
110.62
| 0.01 | 0 | 0 |
| |
PropNode2532
| -240.00 | 100.81
| 0.04 | 0 | 0 |
| |
PropNode2563 | 197.05 | 105.79 | 0.07
| 0 | 0 |
| |
PropNode2522
| -240.00 | 101.32
| 0.03 | 0 | 0 |
| |
PropNode2545
| -102.57 | 150.15
|
0.03
| 0 | 0 | 0 | |
PropNode2541
| -177.93 | 150.15 | 0.04 | 0 | 0 | 0 | |
PropNode2587
| -11.39
| 147. 40
| 0.12 | 0 | 0 | 0 | |
PropNode2558
| 164.52 | 150.15 | 0.12
| 0 | 0 | 0 | |
PropNode2546
| -114.50 | 150.15
| 0.01
| 0 | 0 | 0 | |
PropNode2565
| -197.05 | 8.89
| 0.11 | 0 | 0 |
| |
PropNode2572
| 197.05 | -109.93 | 0.01 | 0 | 0 |
| |
PropNode2521 | -240.00 | -106.09
| 0.01
| 0 | 0 |
| |
PropNode2536
| -240.00
| 117.19
|
0.13
| 0 | 0 |
| |
PropNode2528 | -240.00 | -6.67 | 0.07 | 0 | 0 |
| |
PropNode2583 | 62.05 | -147.40
| 0.04 | 0 | 0 | 0 | |
PropNode2544
| -105.91 | 150.15 | 0.10 | 0 | 0 | 0 | |
PropNode2794 | 159.70 | -147.40 | 0.11 | 0 | 0 | 0 | |
PropNode2585
| -20.74 | -147.40 | 0.01 | 0 | 0 | 0 | |
PropNode2576
| 173.09
| -147.40 | 0.12 | 0 | 0 | 0 | |
PropNode2535
| -240.00
| 112.41 | 0.01
| 0 | 0 |
| |
PropNode2551
| -20.68 | 150.15 | 0.01 | 0 | 0 | 0 | |
PropNode2578
| 70.13 | -147.40 | 0.01 | 0 | 0 | 0 | |
PropNode2596
| -119.32 | -147.41 | 0.13 | 0 | 0 | 0 | |
PropNode2580
| 78.73 | -147.40 | 0.11 | 0 | 0 | 0 | |
PropNode2542
| -174.47 | -150.15
| 0.04
| 0 | 0 | 0 |
Traffic Lights
The US City Block scene contains 30 traffic lights, two at each of the 15 intersections. Each intersection has a traffic light group. If you have the Customize 3D Scenes for Vehicle Dynamics Simulations for customizing scenes, you can control the timing of the traffic lights.
This table provides the traffic light names and locations in the world coordinate
system. Dimensions are in m. Only one of the traffic lights in the group can be green at a
time. The traffic lights are green for 10 s and yellow for 3 s. At the start of the
simulation, the first traffic lights in the group are green (for example,
SM_TrafficLights1_3
and SM_TrafficLights2_3
). The
second lights in the group are red (for example, SM_TrafficLights1_4
and SM_TrafficLights2_4
).
Intersection | Unreal Engine Editor Name | Location | ||||||
---|---|---|---|---|---|---|---|---|
Traffic Light Group | Traffic Light | X | Y | Z | Roll | Pitch | Yaw | |
1 |
|
| -196.55 | -100.65 | 0 |
|
|
|
| -210.20 | -113.40 | 0 |
|
|
| ||
2 |
|
| -106.35 | 98.35 | 0 |
|
|
|
| -120.40 | -113.50 | 0 |
|
|
| ||
3 |
|
| -13.10 | -116.20 | 0.2 |
|
|
|
| -30.60 | -113.80 | 0 |
|
|
| ||
4 |
|
| 71.40 | -100.30 | 0 |
|
|
|
| 64.80 | -113.0 | 0 |
|
|
| ||
5 |
|
| 171.50 | -115.70 | 0 |
|
|
|
| 157.40 | -113.50 | 0 |
|
|
| ||
6 |
|
| -177.30 | 5.70 | 0 |
|
|
|
| -189.60 | 7.40 | 0 |
|
|
| ||
7 |
|
| -105.20 | 5.50 | 0 |
|
|
|
| -117.80 | 7.70 | 0.2 |
|
|
| ||
8 |
|
| -13.10 | -7.60 | 0.1 |
|
|
|
| -10.90 | 5.60 | 0 |
|
|
| ||
9 |
|
| 85.90 | 7.60 | 0.2 |
|
|
|
| 70.90 | 9.20 | 0 |
|
|
| ||
10 |
|
| 172.10 | -7.70 | 0 |
|
|
|
| 173.70 | 7.50 | 0 |
|
|
| ||
11 |
|
| -189.80 | 118.45 | 0 |
|
|
|
| -191.05 | 104.55 | 0 |
|
|
| ||
12 |
|
| -117.60 | 117.60 | 0 |
|
|
|
| -120.50 | 105.40 | 0 |
|
|
| ||
13 |
|
| -12.80 | 102.50 | 0 |
|
|
|
| -30.50 | 105.30 | 0 |
|
|
| ||
14 |
|
| 70.90 | 118.70 | 0 |
|
|
|
| 69.30 | 105.30 | 0 |
|
|
| ||
15 |
|
| 171.40 | 105.20 | 0 |
|
|
|
| 158.40 | 107.20 | 0 |
|
|
|
Tips
If you have the Vehicle Dynamics Blockset™ Interface for Unreal Engine Projects support package, then you can modify this scene. In the Unreal Engine project file that comes with the support package, this scene is named
USCityBlock
.For more details on customizing scenes, see Customize 3D Scenes for Vehicle Dynamics Simulations.
Version History
Introduced in R2018bR2022b: Scene rendered using RoadRunner
Starting from R2022b, the US City Block scene in the Unreal Engine 3D environment is rendered using RoadRunner. As a result, the locations of scene objects, including cones and parked vehicles, are moved from their pre-R2022b locations.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)