| Support Topics | ||||
|
||||
| Foreword |
| The UC-win/Road SDK is a software development kit for creating plugins that run on UC-win/Road, providing libraries and APIs. It can be used by universities, automotive companies, and other users for research and development, customization of functions, and more. In this section, we will introduce common questions and applications related to the SDK in a Q&A format, based on frequently asked questions from users. |
| Version differences |
Plugins developed using the SDK are displaying errors and exhibiting unrecognized behavior. What could be the cause of this?
The error described above occurs because the versions of the UC-win/Road core and the UC-win/Road SDK are inconsistent. The versions of both products must be exactly the same; even slight differences will prevent normal operation. For example, if the UC-win/Road core is version 7.1.0 and the SDK is version 7.1.1, an error will occur. When this error occurs, please verify the versions of both products. |
| Regarding Delphi versions |
| Currently, does the UC-win/Road SDK only support Delphi 2010? The UC-win/Road SDK is developed using Embarcadero's Delphi, and the corresponding version of Delphi varies depending on the SDK version. Specifically, Version 8 is dedicated to Delphi XE2, while versions prior to Version 7 are dedicated to Delphi 2010. It is not possible to create or run plugins if the Delphi version does not match, so please be sure to confirm the required version. If you have Delphi XE2 or XE3, you can also use older versions of Delphi simultaneously. For details, please contact Embarcadero Corporation. |
| Regarding assistance |
| Does the UC-win/Road SDK have Chinese documentation? After installing the UC-win/Road SDK, a help file named "UC-winRoad_SDK_x.xx.xx.chm" is saved in the installation folder; currently, only an English version of the help file is available. |
| Instructions for using the LOG function |
| Is it possible to save detailed data about the vehicle's behavior during driving simulations? Yes, the UC-win/Road SDK includes a LOG output function called LogServer. Accessing the LogServer allows you to obtain information not only from the vehicle itself but also from surrounding traffic flow and vehicles generated by the system, as well as data on characteristic individuals. When using LogServer for log output, the process is as follows (Figure 2). First, functions created by the plugin (callback functions) are registered in advance with UC-win/Road. In this state, a simulation is run, and calculations are performed on the environment, traffic flow, and characteristic individuals, followed by rendering of the three-dimensional space. Then, for each model that becomes the object of analysis, the corresponding callback function is called. As shown in Table 1, each object model has access to various data, which can be output as CSV format files or transmitted to other applications.
In addition, the sample examples included with the UC-win/Road SDK utilize the LogServer function for cloud services. Please refer to these examples and use them in your development.
|
||||||||||||||||
| Methods for controlling the direction, acceleration, and braking of your vehicle |
| Can UC-win/Road vehicle control be implemented using detected values from an external controller for steering, throttle, and braking? Yes, it is possible. Within the SDK, for driving simulation purposes to control the vehicle, the user interface provides IF8MainDriver. IF8MainDriver can obtain various information about the current road being driven on, such as its route, position, and lane markings. In addition, functions are provided that allow users to write custom values to control steering, throttle, and braking (see Table 2). Example source code is provided below for reference. Furthermore, these controls are implemented through registration of TransientWorldMoveProc() type callback functions within plgTransientWorldMove, or by using Delphi's standard timer function (TTimer).
|
||||||||||||
| Methods for displaying strings on the main screen |
| Is it possible to display arbitrary text on the main screen of UC-win/Road? Yes. Within the UC-win/Road SDK, there are functions called PaintHUD that are prepared for various rendering operations using OpenGL on the main screen's display. By calling the text display library function within the SDK, further text display is possible. The following describes the relevant code. Furthermore, regarding the handling of PaintHUD, please refer to the SpeedMeterPlugin in the SDK's sample plugins.
|
| Concluding remarks |
| This support documentation covers common questions and various functions of the SDK. We are also considering providing information in different formats in the future. In addition, detailed explanations are omitted here, but the sample codes for multiple products offer a wide range of functionalities; please refer to them as needed. The following books published by our company also contain various examples of development using the SDK, so please refer to them as well. ![]() |
|
|
| (Featured in the Autumn issue of Up&Coming '12) |
![]() |