Support Topics
 Support themes - UC-win/Road

Methods for measuring traffic volume

Information related to maintenance and support services

This document describes traffic volume measurement on UC-win/Road. It explains how to measure the number of vehicles by analyzing logs, and also introduces a method for obtaining this information using user variables specific to each scenario instead of analyzing logs. Additionally, regarding pedestrian traffic, it will explain how to use logs to measure flow density and flow rate.

Regarding user variables within a scene

User variables can be overwritten at any time through "events" associated with a specific use case. A total of 512 user variable arrays, ranging from 0 to 511, can be used within each use case.

To set user variables, open the "User Variables" tab from the "Event" editing screen and select a command. In addition to the default "No Operation," this command can also specify "Assign" or "Clear."


Figure 1: The "Script," "Time Edit," and "User Variables" tabs

・"Distribute": Assigns the specified value to the selected array.

※ In addition to the specified set of values, you can also add, multiply, and assign random numbers

"Clear": When this event is executed, all values in the array are set to "0".

Check user variables within the output log data.


Use user variables for counting

1. (Preparation) A test model is placed beneath the road surface at a location determined by GPS coordinates

2. (Preparation) Configure log output options

3. Opening scene

4. When the vehicle passes through model 1, it is determined to have collided with the model.

5. Collision end for judgment 3 (by completion)

6. Increment the user variable by 1

7. Repeat steps 4 through 6

8. Use the "Stop" function to end the event and confirm the log

The following details the settings.


>> 1. (Preparation) A test model is placed beneath the road surface at a location determined by GPS coordinates

Place the judgment models at the measurement locations. You can place multiple names to indicate the location, and display them as needed. If you don't want to display a model, you can place it underground.

The model used for judgment can be manipulated by selecting "control object."


Figure 2: Example of a judgment model placed on a stop line

A thin plate model can be placed to determine if the model size is less than the distance between vehicles. It supports placing existing models, and it's also possible to create models with dimensions that match the lane width using the architectural modeling function in UC-win/Road.


Figure 3: Additional architectural models Figure 4: Example of a model used for evaluation

>> 2. (Preparation) Output log option settings

・In the "Driving Simulation" menu, under "Options," in the log content options, select "Vehicle Driving." Specify the output items, recording interval, and if necessary, specify a radius centered on the camera position for objects moving around.


Figure 5: Configuring log output options

>> Scene setting

Additional scenes, creating new scenes


No

Incident

Edit

Migration

1

init

・"Start walking"
Starting point: Oshino Point
・Expanded feature "Log":
“Start Logs”
・User variable: var0
Allocation: "0"

・wait
・Time > 0 seconds
・End event

2

wait

・Nothing

・over
・Collision: Judgment using a model
Traffic models collide on a 2-dimensional plane
・End event

3

over

・Nothing

・count
・Collision: Judgment using a model
Traffic models collide on a 2-dimensional plane
・End event

4

count

・User variable: var0
Allocation: Add 1

・wait
・Duration > 0.2 seconds
・End event


Figure 6: Scene collision model settings

Because the user variable is output when the "type" in the output item is set to "uv" (self-vehicle), it needs to be set to either driving or walking. If driving is not required, set the "off-road" start position near the measurement point. If you want to "start walking" from that point in the scene, the user variable will be output to the file (without any walking actions, only observing the scene).


Figure 7: Example of user variable output in the log file

Figure 8: "Script" - "User Simulation" - "Start Walking"

Figure 9: Setting the scene

Simulated human flow

The pedestrian traffic measurement function can be used to analyze pedestrian flow. It is possible to measure the number of pedestrians, traffic density, and throughput on pedestrian network paths.

Regarding support topics related to pedestrian network planning, please refer to (Up&Coming issue 133). VR


● Flow density and flow measurement

The pedestrian flow density and flux can be obtained without using scene information by following these steps.


<Measurement Preparation>

1. Select "Driving Simulation" from the menu, then go to "Options" and find "Pedestrian Density" and "Pedestrian Traffic."

2. In the "Select Export Items" section, confirm that the pedestriansNumber, density, surface, and averageFlux files are selected for export.


<Preparing to measure flow density>

1. In the "Edit" menu, select "Database," then choose "New" and "Flow density measurement range."


Figure 10: Model panel "New" - "Flow density measurement range"

2. The measurement object is added to the model panel.

3. After selecting an object, click on it and place it in the desired location within the scene for measurement. The width and depth of the flow density measurement range can be adjusted by clicking.


Figure 11: Setting the flow density measurement range

<Preparation for Flow Measurement>

1. In the model panel, select "New" and then "Flow Rate Measurement Range."

2. The measurement object is added to the model panel.

3. After selecting an object, click on it and drag it to the desired location in the scene for measurement purposes.


<Execution of Measurements>

1. In the menu, select "Driving Simulation" - (Output Log) and click "Start" to begin outputting the log.

2. To start a traffic simulation, go to the "Home" menu and then select "Start Traffic Flow."

3. Select "End" for log output, disable flow density output, and save the results in the following files as CSV format.

Output file: [User data folder]\Log (default: C:\UCwinRoad Data 15.n\Log)

Output filename: LOG_yyyymmddhhmmss_.....csv


Output

Unit

Content

time

Seconds

Start time of the simulation

type

md: pedestrian density
mf: pedestrian traffic volume

pedestrians
Number

People

When the input type is "density (md)," the number of pedestrians within the plane is displayed
To measure the placement of flow density
When operating in flow (flow rate) mode, the number of pedestrians is measured using a measurement plane

density

People per square meter

Flow density at the type "md" (density)

surface

㎡

Pedestrian density measurement area

averageFlux

People per second

Type: Flow rate (measured in units of volume per unit time)
Number of performers (turnover rate)


Script plugins are included within the Advanced, Driving Sim, and Ultimate packages.

Log output plugins are included within Driving Sim and Ultimate.

Various plugins can be purchased separately.


Up&Coming Spring Issue 2022

FORUM8

LOADING