Function SimOneAPI::GetVehicleState
-
Defined in File SimOnePNCAPI.h
Function Documentation
-
bool
SimOneAPI
::
GetVehicleState
(
const
char
*
mainVehicleId
,
SimOne_Data_Vehicle_Extra
*
pVehExtraState
)
-
获取通过RegisterSimOneVehicleState注册的主车状态信息
Get states of main vehicle dynamics which are registered by RegisterSimOneVehicleState.
此函数用于获取通过RegisterSimOneVehicleState注册的主车的动态状态信息
This function is used to get the dynamics states of the main vehicle which are registered through RegisterSimOneVehicleState.
- 参数 :
-
-
mainVehicleId – [in]
主车的ID
Id of the main vehicle.
-
pVehExtraState – [out]
主车动态状态信息
States of main vehicle dynamics.
-
- 返回 :
-
如果成功获取状态信息,则返回true,否则返回false
Returns true if the states are successfully retrieved, false otherwise.