|
|
12 |
| Application development examples using Delphi |
|
|
The simulator introduced here allows you to experience a near-future infrastructure-based cooperative driving assistance system. This system utilizes the latest information and communication technology (ICT) based on existing roads, creating an integrated system of people, roads, and vehicles. By using this information, you can experience how driving conditions change. This is an example developed in collaboration with Toyota Motor Corporation.
|
|
Simulator and system overview |
|
The overall overview of this system is shown in the diagram below. The man-machine interface corresponds to the interface section in [Figure 01], and it separates data reception and transmission functions for the interface.
(1) Experience simulator with 3 screens
Enhancement of the ability to represent driving conditions around intersections
(2) "Infrastructure-coordinated advanced driver-assistance system" demonstration features
The system, currently under development with the aim of mass production in the near future, is presented here to convey a sense of innovation and forward-thinking
Traffic signal oversight prevention support (for vehicles and pedestrians)
Proximity vehicle detection systems (vehicle-to-vehicle), etc.
(3) Preparation of the driving environment
Realistic depiction of urban environments (from the area around Nagoya Station to Toyota City)
Various accidents occurred
Weaving the narrative
(4) Vehicle motion models
High-precision CarSim implementation
(5) A simulator with a motion platform offering 6 degrees of freedom |
 |
| ■ Photo 01: Experience simulator, 3 screens |
|
Furthermore, you can experience the following features of the infrastructure-coordinated advanced driver-assistance system:
- Pedestrian detection prevention
- Emergency vehicle information provision
- Right turn collision prevention system
- Rear-end collision prevention information provision
- Preventing missed signals
- Left turn collision prevention
- Preventing overlooked temporary suspensions
- Preventing pedestrians from being overlooked when turning right
|
Simulator scenario features |
|
When creating this simulator, one of the key features of UC-win/Road that was considered is the "scenario function." In the UC-win/Road experience simulator, you can set up various movements as models within a constantly changing driving scene. For example, you can freely configure scenes for different stories, and easily create the events you want to represent in the simulator.
- The traffic light will definitely change to red
- A car suddenly pulled out from the side
- Traffic congestion will occur
- Humans begin walking
|
The relationship and flow between the scenario and events are shown in Figure 03 below.
 |
| ■ Figure 03: Relationship between scenarios and events |
One of the features of this system is its integration with CarSim. CarSim is software that calculates the physical behavior of vehicles and is used by automobile manufacturers, automotive parts manufacturers, tire manufacturers, universities, and research institutions. To transmit driving behavior to the simulator, development was carried out using CarSim as a vehicle dynamics model for the self-driving vehicle [Figure 04].
 |
| ■ Figure 04: Screen showing the connection between CarSim and the simulator |
To replace the vehicle dynamics calculations in the UC-win/Road SDK with your own, you can use the "VehicleDynamicsSample" included in the SDK's samples. The "procedureDoPhysics(const dTimeInSeconds : Double)" method within the "VehicleDynamicsPhysicsModel.pas" file of this sample serves as the vehicle dynamics calculation module; by modifying this section, you can implement your desired vehicle dynamics calculations.
Data integration with CarSim
| UC-win/Road → CarSim |
CarSim → UC-win/Road |
| Vehicle Information |
| Vehicle position |
| Vehicle body status (roll, pitch, yaw) |
| Tire position information (for all tires) |
| Tire contact patch location |
| Tire contact surface road inclination |
| Tire contact surface friction coefficient |
| Driving information |
| Handle steering angle |
| Accelerator |
| Brakes |
|
| Vehicle Information |
| Vehicle position |
| Vehicle body status (roll, pitch, yaw) |
| Speed information |
| Acceleration information |
| Corner acceleration information |
| Speed information |
| Angular velocity information |
| Driving condition information |
| Engine speed |
| Gear condition |
| Steering wheel torque |
| Handle steering angle |
|
|
Integration with simulator hardware |
|
This simulator utilizes a driving simulator with a 6-axis motion system from Subaru Custom Works. The hardware of this simulator is connected to the following interfaces, as detailed below.
Input and output data between UC-win/Road and the simulator
| Interface |
Data |
| RS-232C |
Handle information and control |
| 6-axis motion control |
| Analog (CONTEC) |
Accelerator pedal |
| Brake pedal |
| Speedometer |
| Tachometer |
| Digital (CONTEC) |
5 assignment buttons |
| Seat belt use |
| Seat belt control |
The system uses analog and digital information, utilizing CONTEC's analog and digital boards. Header files for use with Delphi are included in the SDK for CONTEC's boards, which are used to control the system.
|
Traffic information updates |
|
In UC-win/Road, steering information uses values from -1 to 1 (left to right), while the accelerator and brake use values from 0 to 1. To set these values using the SDK, you can access the ApplicationServices and use the functions SetSteering, SetThrottle, and SetBrake.
if Supports(ApplicationServices, IF8ApplicationServices,winRoadApplication)
then
begin
// Steering set
winRoadApplication.mainForm.driver.SetSteering( Max(-1, Min(1,p_Param.CarState.Stear)
) );
// Accelerator settings
winRoadApplication.mainForm.driver.SetThrottle( Max(0,Min(1,Throttle)
) );
// Brake assembly
winRoadApplication.mainForm.driver.SetBrake( Max(0,Min(1,Brake) ) );
end; |
If the system is not in a state where driving can begin, the value of "driver" will be nil. Be careful because attempting to set a value in that case will result in an error.
|
Development of railway simulators |
|
In this section, we will describe an applied development case using UC-win/Road with Delphi, focusing on the construction of a railway simulator. We will particularly introduce driver's seat simulators designed for training train operators, and their integration with train operation simulators.
|
Development of driving simulator systems |
|
The driving simulator is designed for training train operators. Based on information from the actual car's driver's seat, users can move within a VR space to practice operating a train.
■ Specifications Review
In this case, the system receives information from the driver's seat system (an external PC) and uses that information to move in real-time within a VR space. The development involved agreements on the following items:
・How to instruct the driver's seat position
・Methods of data communication
・Methods for updating camera position |
 |
|
■ Figure 05: Driver's seat perspective |
UC-win/Road has a function that displays the space in real time using VR. The information required for VR display consists of two elements: the "position" and "orientation" of the camera. When the object being simulated moves, it is necessary to add processing to calculate these two pieces of information. For example, with automobiles, the drive simulator function included in UC-win/Road calculates the position and orientation in real time based on input information from a game controller (steering and accelerator/brake amounts), allowing for movement. While vehicle dynamics are incorporated, a mechanism for calculating the movement of trains (railway vehicle dynamics) is not included. Therefore, with UC-win/Road, we have decided to receive the distance and speed from the starting point of the line as information.
For information sharing, a TCP/IP network is used to connect the computers. This issue was resolved by determining the communication protocol and format. In UC-win/Road, it's possible to calculate 3-dimensional coordinates and the orientation of the road line based on the distance from the starting point. By updating this information each time it is received over the network, movement processing can be implemented. However, if the reception cycle is not constant, the movement will not be smooth. Therefore, speed information is used to calculate positions at fixed intervals, and position interpolation is performed.
 |
| ■ Note 01: Factors that determine vehicle dynamics include not only information from the driver's seat, but also road gradient and friction, vehicle weight, and road conditions. |
■ Key Development Points
Regarding simulators for piloting, the dynamics of the object being piloted are crucial. UC-win/Road allows for integration based on the results of dynamic simulations.
To play video in real-time, it is necessary to synchronize the timing of receiving data and the timing of rendering. Even if the rendering cycle is correct, if the data cycle is disrupted, the video will experience dropped frames. For example, in a system with a rendering frame rate of 60fps and a data cycle of 10Hz, 6 frames will display the same image because the camera position does not change during that time, resulting in an apparent frame rate of only 10fps. To resolve this issue, we calculate the camera position for each frame based on the elapsed time since receiving the data, allowing us to maintain smooth motion.
 |
| ■ Figure 06: Vehicle approaching from the opposite direction |
|
Integration with train operation simulators (VR representation) |
|
A train operation simulator simulates the movement of trains, track switching operations, and signal changes based on train schedules and vehicle specifications. In this case, in addition to the vehicle position information used in the driving simulator mentioned earlier, it is necessary to link information related to the railway environment, such as signals, switches, other trains, and level crossing gates.
■ Specifications Review
First, let's consider the specifications. In addition to the functions of the driving simulator, it is necessary to control the behavior of the 3D models. Therefore, the challenges related to development are as follows:
・How to operate multiple trains
・How to animate 3D models (level crossings, points, signal lights)
・How should the position of the driver's seat be described?
・Data communication methods
 |
| ■ Figure 07: Conceptual illustration of integration with a railway operation simulator |
■ How to update VR display
The camera movement processing can be handled in the same way as in a driving simulator, but when animating train models, the following points need to be considered.
・The train models consist of multiple cars coupled together
Curves have cant (the cross-sectional slope) on the tracks
・Ensure that the train model does not obstruct the view of the camera
To animate train models, you need to set the coordinates and angles for each individual train model. The process is as follows: If there are multiple cars, calculate the origin point of the next car and then repeat the steps from step 2. This allows you to create representations of trains like the ones in the photo.
Step 1: Calculate and set the origin point of the train model
Step 2: Calculate and set the orientation (yaw) of the train model
Step 3: Calculate and set the roll angle of the train model
 |
 |
| ■ Figure 07: During train passage, the vehicle tilts according to the cant |
■ Figure 08 shows that it is possible to confirm the passing of multiple vehicles |
As mentioned earlier, UC-win/Road allows you to specify the position and orientation of 3D models. However, it also supports setting movements for each part and controlling them in response to keyboard input or internal events. We have added functionality to allow external control of these features and expanded the specifications accordingly. This enables external control of operations such as track switching, point changes, and signal modifications.
■ Key Development Points
For railways, there are operation plans called diagrams, and it is important to express not only the performance of trains but also various events, the environment, etc., using VR technology. Therefore, it is considered crucial to show the movement of the train from various perspectives, including the driver's seat.
 |
| ■ Figure 10: Simulated video from station cameras |
Announcement of paid seminars
| Programming introductory seminar for engineers CPD certification |
| • Date and time |
April 4, 2013 (Thursday), 9:30 AM to 5:00 PM |
| • Course fees |
For 1 person: ¥18,000 (excluding tax) |
| • This venue |
FORUM8 Tokyo headquarters, GT Tower seminar room
※TV conferencing systemThe event will be held simultaneously in Tokyo, Osaka, Nagoya, Fukuoka, and Sendai |
|
|
| (Featured in the Spring issue of Up&Coming '13) |
 |
|







>> Product comprehensive catalog

>> Premium membership services
>> Financial support
| Recently released products |
|
|
|