Function SimOneAPI::InitSimOneAPIExWithTimeOut¶
Defined in File SimOneServiceAPI.h
Function Documentation¶
-
bool SimOneAPI::InitSimOneAPIExWithTimeOut(char **mainVehicleIdList, int count, bool isFrameSync = false, const char *serverIP = "127.0.0.1", int port = 23789, int timeOutMS = -1, void (*startCase)() = 0, void (*endCase)() = 0, int registerNodeId = 0)¶
多车版本 - 初始化SimOne API 带超时
Initialize the SimOne API with timeout for the multi-vehicle version.
此函数用于多车版本的SimOne API初始化,并包含超时设置,适用于自动驾驶算法
This function is used for the initialization of the multi-vehicle version of the SimOne API with a timeout setting, suitable for autonomous driving algorithms.
- 参数:¶
- char **mainVehicleIdList¶
[in]
主车辆ID列表
List of main vehicle IDs.
- int count¶
[in]
主车辆ID的数量
Number of main vehicle IDs.
- bool isFrameSync = false¶
[in]
是否进行帧同步
Whether to perform frame synchronization.
- const char *serverIP = "127.0.0.1"¶
[in]
BridgeIO服务器IP地址
BridgeIO server IP address.
- int port = 23789¶
[in]
BridgeIO服务器端口号
BridgeIO server port number.
- int timeOutMS = -1¶
[in]
超时时间(毫秒)
Timeout duration in milliseconds.
- void (*startCase)() = 0¶
[in]
案例开始前的回调函数
Callback function called before the case starts.
- void (*endCase)() = 0¶
[in]
案例结束后的回调函数
Callback function called after the case ends.
- int registerNodeId = 0¶
[in]
注册节点ID(当前未使用)
Register node ID (currently not in use).
- 返回:¶
成功初始化返回true,否则返回false
Returns true if initialization is successful, false otherwise.