UC-win/Road has extensive traffic simulation capabilities. The following sections will introduce some advanced settings and control methods related to traffic flow.
Changes in traffic volume and speed for each lane
In UC-win/Road, traffic volume varies depending on the number of vehicles passing a road per hour. It is not limited to each road; it can also be configured for each lane, allowing for settings of traffic volume, speed, and traffic profiles (vehicle composition). Through these settings, we can realistically simulate various traffic conditions, such as differences in congestion between lanes, the performance of bus lanes, or the driving characteristics of highways with a high proportion of trucks, including the speed difference compared to the passing lane.
The "Traffic Flow Registration" interface can be opened by clicking on the "Edit" tab, then the "Transportation" tab, and finally the "Generate" button.
 |
| Figure 1: Generation of traffic flow |
Select the target traffic flow, click "Edit," and open the "Traffic Flow Editor" interface. Then, click [+] to open a lane, where you can set the traffic volume, initial speed, and configuration file for each lane.
 |
 |
 |
| Figure 2: Screen for setting up cloud-based data reading (Point y) |
Figure 3: Editing traffic flow |
Figure 4: Initial speed of vehicles in the lane |
The direction of travel for designated specific vehicles
Normally, vehicles traveling on a UC-win/Road road will randomly choose which direction to travel at intersections or lane dividers, and even with repeated simulations, the same vehicle will not always travel in the same direction. If you want autonomous vehicles to follow a specific route, or if you want vehicles appearing in the scene to travel along designated routes, you can fix the routes by adding driving groups.
For example, in a scenario where an emergency vehicle approaching from behind overtakes a car and then turns left at the next intersection, you can set this event so that the vehicles are forced to move in that direction.
 |
| Figure 5: Designated direction |
First, create dedicated driving vehicle groups and operational profiles for specific vehicles. To do this, click on "Vehicle Groups" in the "Edit" tab under "Transportation" to open the "Edit Vehicle Groups" interface. Create new driving vehicle groups (as shown in the image, for emergency vehicles) by clicking the "New" button in the "Driving Vehicle Group" section, and add dedicated profiles by creating new ones or copying existing vehicle models in the "Operational Profile" section. In the example shown, we added an operational profile named "Ambulance."
Additionally, when the "emergency vehicle" option is selected for the driving vehicle group, only the "ambulance" setting within the "running configuration" undergoes a check; the "running configurations" for "ambulances" in other driving vehicle groups do not enter the checking state. Also, please select an appropriate "ambulance" sound profile.
 |
| Figure 6: Editing the vehicle group for driving |
Next, assign the newly created operation configuration file to the car model. Open the editing interface for the car model you want to control, and then on the "Car Settings" tab, change the operation configuration setting to the newly created one (in this case, the ambulance). If you want to run multiple identical models and only control one of them, you can copy the car model and differentiate between the randomly running models and the controlled model.
 |
| Figure 7: Car settings |
After setting up the vehicle groups, the next step is to specify the driving route. Click on an intersection along the route with the left mouse button, then right-click to open the "Edit Planar Intersection" interface. In the "Driving Route" tab, you can specify the direction of travel for each vehicle group. When an "emergency vehicle" needs to turn left, click on the arrow indicating the entry route in the image, check the box next to the "emergency vehicle" group in the table on the right, and then enter only the weight value for the left-turn direction, setting the others to 0. In this way, by entering weight values in only one column, vehicles configured with a checked profile can only move in a specific direction.
 |
| Figure 8: Editing a planar intersection |
|
Settings for intersections where left turns are permitted at any time
Vehicles passing through an intersection must obey the traffic lights, but in reality, even when a light is red, it may sometimes be possible to turn left. This can be achieved by setting specific routes within the intersection editing interface so that they do not follow the traffic signals.
Open the intersection editing screen from the road plan. In the "Traffic Control" tab of the editing interface, click on the entry point (green bar) at the bottom of the driving route that allows left turns. After selecting the route, it will be displayed in green. In the "Selected Driving Route" section, check the box for "Override" and switch to "No Control," which means vehicles traveling on that route will not obey traffic lights. Additionally, if you select "Stop," it will always pause at the designated stop point; if you select "Yield," it will always yield to other vehicles.
|
 |
| Figure 9: Allows for left turns at any time |
|
 |
| Figure 10: Traffic control for planar intersections |
Control of turn signals
When turning left or right at an intersection, the turn signal flashing is automatically controlled by software. However, depending on the road configuration, there may be situations where it is necessary to adjust the turn signal flashing. For example, in the situation shown in the diagram of a four-way intersection, cars entering from below and proceeding straight to the right are recognized as making a right turn, and the right turn signal automatically activates. However, in this type of configuration, since the vehicle is traveling straight from below to the right, it is correct not to use the turn signal.
If you want to change the flashing light operation from the initial settings, you can do so in the editing screen for intersections. In the "Route" tab of the editing interface, click on the "Enter Station" button (green arrow) at the bottom of the route modification section, and then change the direction of the entry point in the "Direction" label on the right side. In this case, the default setting for a route that proceeds to the right is "right," so you need to change it to "straight." This way, vehicles traveling from below towards the right will not need to use their turn signals.
 |
| Figure 11: Driving route direction |
Additionally, the flashing lights of specific vehicles can be controlled through scripts, and this setting can also be configured in the "Model Control" tab of the "Event Editor." Select the target model, and then in the "Toggle Lights" tab on the right side, specify the blinking pattern and control duration.
 |
| Figure 12: Model control |
Driveable range settings in Ver. 14.2
Starting with version 14.2, it is now possible to allow vehicles to travel outside of the designated lanes. Previously, when driving in the opposite direction, a special road profile was required. However, in version 14.2, it is possible to drive in the opposite direction without requiring any special construction.
To allow vehicles to travel in the wrong direction, select "Allow vehicles to drive on the wrong side of the road" in the "File" menu, then "Project Options," and finally the "Simulation" tab.
 |
 |
| Figure 13: Out of range |
Figure 14: Project options |
The traffic flow on UC-win/Road will continue to improve in the future; please look forward to it.