Function SimOneAPI::InitSimOneAPI
-
Defined in File SimOneServiceAPI.h
Function Documentation
-
bool
SimOneAPI
::
InitSimOneAPI
(
const
char
*
mainVehicleId
=
"0"
,
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.
此函数用于启动SimOne API,适用于自动驾驶算法的初始化
This function is used to start the SimOne API, suitable for initializing autonomous driving algorithms.
- 参数 :
-
-
hostVehicleId – [in]
主机车辆ID(范围从0到9)
Host vehicle ID (ranging from 0 to 9).
-
isFrameSync – [in]
是否同步帧
Whether to synchronize frames.
-
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.