UC-win/Road has extensive traffic simulation capabilities. The following sections will introduce some advanced settings and control methods related to traffic flow.
The changes in traffic volume and speed for each lane
In UC-win/Road, traffic volume varies depending on the number of vehicles generated per hour by each road. It is possible to set traffic volume, speed, and traffic information (vehicle composition) not only for each road but also for each lane. Through these settings, we can reproduce realistic traffic conditions based on the actual characteristics of different roads, such as differences in congestion between lanes, the representation of bus lanes, or the prevalence of trucks in certain lanes on highways, as well as speed differences with passing lanes.
The "Traffic Flow Registration" interface can be opened by clicking on the "Edit" menu option, then selecting "Transportation," and finally choosing "Generate." This allows you to configure the settings.
 |
| Figure 1: Generation of traffic flow |
To select a target traffic flow, click "Edit" to open the "Traffic Flow Editor" interface. Then, click [+] to open a lane, where you can set the traffic volume, initial speed, and detailed information for each lane.
 |
 |
 |
| Figure 2: Point cloud reading settings screen |
Figure 3: Editing of traffic flow |
Figure 4: Initial speed of vehicles in the lane |
Designated direction of travel for specific vehicles
Normally, vehicles traveling on a UC-win/Road road will randomly choose which direction to go at intersections or lane split points, 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 in the scene to travel along designated routes, you can fix the routes by adding driving car groups.
For example, in a scene where an emergency vehicle approaching from behind overtakes cars 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: Specified direction |
First, create dedicated driving vehicle groups and operational profiles for specific vehicles. To do this, click on "Vehicle Groups" in the "Edit" menu under "Transportation" to open the "Edit Vehicle Group" interface. Create new driving vehicle groups (as shown in the image, representing emergency vehicles) by clicking the "New" button within the "Driving Vehicle Group" section, and add dedicated profiles by creating new ones or copying existing vehicle models within the "Operational Profiles" section. In the example shown, we added an operational profile named "Ambulance."
However, when selecting the "emergency vehicle" option for a driving vehicle group, if only the "ambulance" option is checked in the "operation settings," the "operation settings" for the "ambulance" within other driving vehicle groups will not be automatically selected. Additionally, you can choose an appropriate sound file for the ambulance.
 |
| Figure 6: Editing the vehicle driving parameters |
Next, assign the newly created operation profile to the car model. Open the editing interface for the car model you want to control, and then, under the "Car Settings" option, change the operation profile 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 duplicate the car model and differentiate between the randomly running models and the controlled model.
 |
| Figure 7: Car settings |
After completing the vehicle group setup, the next step is to specify the driving route. Click on a road intersection on the route using the left mouse button, and then right-click to open the "Edit Intersection" interface. In the "Driving Route" options, 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 other values to 0. In this way, by entering a weight value in only one column, vehicles associated with the selected profile can only move in a specific direction.
 |
| Figure 8: Editing a planar intersection |
|
Install traffic lights at intersections that allow for left turns (for vehicles driving on the left)
Vehicles passing through an intersection must obey the traffic signals, 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 editor so that they do not follow the signal indications.
Open the intersection editing screen from the road map. In the "Traffic Control" options of the editing interface, click on the entry point (green bar) at the bottom of the driving lane that allows left turns. After selecting the route, it will be displayed in green. Check the "Override" box in the "Selected Driving Route" section and switch it to "No Control," and vehicles traveling on that route will not obey traffic light signals. Additionally, if you select "Stop," it will always pause at the designated stop point; if you select "Yield," it will yield to other vehicles when they approach.
|
 |
| Figure 9: Allows left turns at any time |
|
 |
| Figure 10: Traffic control for intersections |
Control of turn signals
When turning left or right at an intersection, the flashing of the turn signals is automatically controlled by software. However, depending on the road structure, there are situations where it may be necessary to change the way the turn signals flash. For example, in the situation shown in the diagram with a crossroad, a car entering from below and traveling to the right is recognized as making a right turn, and the right turn signal will automatically activate. However, in this type of structure, since the vehicle is proceeding straight to the right from below, it does not require a turn signal.
If you want to change the operation of the flashing light from the initial settings, you can do so in the editing screen for intersections. In the "Driving Route" option of the editing interface, click on the entry point at the bottom of the route (the green arrow), and then change the direction of the entry and exit points in the "Direction" tab 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: The direction of the driving route |
Additionally, the flashing lights of specific vehicles can be controlled through scripting, and this setting can also be found in the "Model Control" option within the "Event Editor." Select the target model, and then in the "Toggle Lights" section on the right, specify the blinking pattern and control duration.
 |
| Figure 12: Model control |
In version 14.2, the driving range can be configured
Starting with version 14.2, it is now possible to allow vehicles to overtake on the wrong side of the road. Previously, a special road profile was required when driving on the wrong side of the road. However, in version 14.2, it is possible to drive on the wrong side of the road without requiring any special construction.
To allow vehicles to drive in the wrong direction, select "Allow vehicles to travel on the wrong side of the road" in the "File" menu, then "Project Options," and finally, the "Simulation" options.
 |
 |
| Figure 13: Overtaking from behind |
Figure 14: Setting options |
The traffic flow on UC-win/Road will continue to improve in the future; please look forward to it.