Function SimOneAPI::GetUltrasonicRadar
Defined in File SimOneSensorAPI.h
Function Documentation
-
bool SimOneAPI::GetUltrasonicRadar(const char *mainVehicleId, const char *sensorId, SimOne_Data_UltrasonicRadar *pUltrasonic)
获得一个超声波雷达信息
Retrieve Individual Ultrasonic Radar Information
此函数用于获取仿真场景中超声波雷达感知物信息
This function is used to get the obstacle data detected by ultrasonic radar.
- 参数:
mainVehicleId -- [in]
主车的ID
Id of the main vehicle
sensorId -- [in]
超声波雷达传感器ID
Sensor Index
pUltrasonic -- [out]
超声波雷达感知消息
Radar detections
- 返回:
如果成功获取感知物数据,则返回true,否则返回false
Returns true if the obstacle data is successfully retrieved, false otherwise