Function SimOneAPI::InitSimOneAPIExWithTimeOut

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.

参数 :
  • mainVehicleIdList [in]

    主车辆ID列表

    List of main vehicle IDs.

  • count [in]

    主车辆ID的数量

    Number of main vehicle IDs.

  • isFrameSync [in]

    是否进行帧同步

    Whether to perform frame synchronization.

  • serverIP [in]

    BridgeIO服务器IP地址

    BridgeIO server IP address.

  • port [in]

    BridgeIO服务器端口号

    BridgeIO server port number.

  • timeOutMS [in]

    超时时间(毫秒)

    Timeout duration in milliseconds.

  • startCase [in]

    案例开始前的回调函数

    Callback function called before the case starts.

  • endCase [in]

    案例结束后的回调函数

    Callback function called after the case ends.

  • registerNodeId [in]

    注册节点ID(当前未使用)

    Register node ID (currently not in use).

返回 :

成功初始化返回true,否则返回false

Returns true if initialization is successful, false otherwise.