Function SimOneAPI::InitSimOneAPIEx
-
Defined in File SimOneServiceAPI.h
Function Documentation
-
bool
SimOneAPI
::
InitSimOneAPIEx
(
char
*
*
mainVehicleIdList
,
int
count
,
bool
isFrameSync
=
false
,
const
char
*
serverIP
=
"127.0.0.1"
,
int
port
=
23789
,
void
(
*
startCase
)
(
)
=
0
,
void
(
*
endCase
)
(
)
=
0
,
int
registerNodeId
=
0
)
-
多车版本-初始化SimOne API
Initialize the SimOne API for the multi-vehicle version.
此函数用于多车版本的SimOne API初始化,适合自动驾驶算法
This function is used for the initialization of the multi-vehicle version of the SimOne API, 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.
-
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.