Function SimOneAPI::GetV2XInfo
-
Defined in File SimOneV2XAPI.h
Function Documentation
-
bool
SimOneAPI
::
GetV2XInfo
(
const
char
*
mainVehicleId
,
const
char
*
sensorId
,
int
infoType
,
SimOne_Data_V2XNFS
*
pDetections
)
-
获得对应车辆编号V2X中的UPER编码之后的v2x消息.
Retrieve V2X Message After UPER Encoding for the Corresponding Vehicle Identifier in V2X.
此函数用于通过V2X中对应车辆编号获取V2X中的UPER编码之后的v2x消息 This function is used to get the UPER ASN message by the corresponding vehicle identifier in V2X
- 参数 :
-
-
mainVehicleId – [in]
主车的ID
Id of the main vehicle
-
sensorId – [in]
OBU传感器ID
OBU sensor Id
-
infoType – [in] OBU消息类型 enum ESimOne_V2X_MessageFrame_PR type of the obu message witch matches with enum ESimOne_V2X_MessageFrame_PR
-
pDetections – [out] V2XASN信息 V2XASN data
-
- 返回 :
-
如果成功获取到V2XASN信息,则返回true,否则返回false
Returns true if the V2XASN data is successfully retrieved, false otherwise