Support Topics
 Support themes UC-win/Road

Traffic volume measurement methods

Information related to maintenance and support services

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

Regarding user variables within a scene

User variables can be overwritten at any time through "events" within a usage scenario. A user variable array of 512 elements, ranging from 0 to 511, can be used in each scene.

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," the command can also specify "Assign" or "Clear."


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

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

※ In addition to the specified set of values, it is also possible to add, multiply, and set random numbers

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

Check the user variables within the output log data.


Use user-defined variables for counting

1. (Preparation) A test model is placed under the road surface at the designated location to determine its suitability

2. (Preparation) Export options for the installation log

3. Opening scene

4. When the vehicle passes Model 1, it is determined that a collision with the model has occurred.

5. Determine when collision event 3 has ended (through completion)

6. Increment the user variable by 1

7. Repeat steps 4 through 6

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

The following details the installation process.


>> 1. (Preparation) A test model is placed under the road surface at the designated location to determine its suitability

・The position where the model is placed will be determined based on the measurement location. Multiple names can be assigned to indicate the location, and if you don't want the model to be visible, it can be placed underground.

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


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

A thin plate model can be placed to determine if the model size is smaller than the distance between vehicles. It supports placing existing models, and it's also possible to create models 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) Configure export log options

・Function menu "Driving Analog" - (Log Output) "Options": In the log content options, select "Driving Vehicle." Choose the output items, record output interval, and if necessary, specify a radius centered on the camera position for outputting surrounding moving objects.


Figure 5: Installation log export options

>> Scene setting

Additional scenes, creating new scenes


No

Incident

Editing

Transition

1

init

・"Start walking"
Starting point: Off-road course
・Expanded feature "Log":
「Start Logs」
・User variable: var0
Allocation: "0"

・wait
・Time > 0 seconds
・Bonding incident

2

wait

・None

・over
・Collision: Judgment using models
Traffic models collide on the 2D plane
・Bonding incident

3

over

・None

・count
・Collision: Judgment using models
Traffic models collide on the 2D plane
・Bonding incident

4

count

・User variable: var0
Allocation: Add 1

・wait
・Duration > 0.2 seconds
・Bonding incident


Figure 6: Scene collision model settings

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


Figure 7 shows an example of output for user variables used 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 with log output. It is possible to measure the number of pedestrians, traffic density, and throughput on a pedestrian network path.

Regarding support topics related to pedestrian network infrastructure, please refer to (Up&Coming issue 133) for information on VR.


● Flow density and flow measurement

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


<Survey Preparation>

1. Select the "Driving Simulation" menu, then in the "Options" section (under "Output Log"), choose "Pedestrian Density" and "Pedestrian Traffic."

2. In the "Export Project" section, confirm the export of files for pedestriansNumber, density, surface, and averageFlux.


<Preliminary survey flow density>

1. In the "Edit" function menu, select "Database," then choose "New" and "Fluid Density Measurement Range."


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

2. Survey data objects are 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. You can change the width and depth of the flow density measurement range by clicking.


Figure 11: Setting the measurement range for flow density

<Preparation for Flow Measurement>

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

2. Survey data objects are added to the model panel.

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


<Execution Survey>

1. In the function menu, select "Driving Analog" and then "(Output Log)" to start exporting the log data.

2. In the "Home" function menu, within the "Start Traffic Flow" section, you can initiate the traffic simulation.

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

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

・Export file name: LOG_yyyymmddhhmmss_.....csv


Exports

Unit

Contents

time

Seconds

Start simulation time

type

md: pedestrian density
mf: pedestrian traffic volume

pedestrians
Number

People

When the material density is at its maximum (md), the number of pedestrians within the plane
Measure and record the flow density of objects placed for testing
When operating in flow mode (mf), the number of pedestrians passing through the measurement area is displayed

density

People per square meter

Flow density at the type-in md (density) state

surface

㎡

Pedestrian density measurement area

averageFlux

People per second

Type: Flow rate per unit time
Number of passengers (turnover rate)


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

The log export plugin is included within Driving Sim and Ultimate.

Various add-on programs can be purchased separately.


Up&Coming Spring Issue 2022

FORUM8

loading