Function SimOneAPI::GetGroundTruth¶
Defined in File SimOneSensorAPI.h
Function Documentation¶
-
bool SimOneAPI::GetGroundTruth(const char *mainVehicleId, SimOne_Data_Obstacle *pObstacle)¶
得到仿真场景中的物体的真值
Get Ground Truth Data of Objects(Obstacles) from simulation scene.
此函数用于获取仿真场景中物体的真值
This function is used to get the obstacle ground truth in scenario.
- 参数:¶
- const char *mainVehicleId¶
[in]
主车的ID
Id of the main vehicle
- SimOne_Data_Obstacle *pObstacle¶
[out]
物体真值消息
Obstacle data
- 返回:¶
如果成功获取感知物数据,则返回true,否则返回false
Returns true if the obstacle data is successfully retrieved, false otherwise