Function SimOneAPI::GetRadarDetections

Function Documentation

bool SimOneAPI::GetRadarDetections(const char *mainVehicleId, const char *sensorId, SimOne_Data_RadarDetection *pDetections)

得到毫米波雷达目标信息

Obtaining Millimeter-Wave Radar Target Information

此函数用于获取仿真场景中毫米波雷达感知物信息

This function is used to get the obstacle data detected by millimeter-wave radar.

参数:
const char *mainVehicleId

[in]

主车的ID

Id of the main vehicle

const char *sensorId

[in]

毫米波雷达传感器ID

Sensor Index

SimOne_Data_RadarDetection *pDetections

[out]

毫米波雷达感知消息

Radar detections

返回:

如果成功获取感知物数据,则返回true,否则返回false

Returns true if the obstacle data is successfully retrieved, false otherwise