Function SimOneAPI::SetGroundTruthUpdateCB
Defined in File SimOneSensorAPI.h
Function Documentation
-
bool SimOneAPI::SetGroundTruthUpdateCB(void (*cb)(const char *mainVehicleId, SimOne_Data_Obstacle *pObstacle))
注册仿真场景中物体真值的更新回调
Register callback function of applying for objects' ground truth.
此函数用于注册获取仿真场景中感知物体真值信息的回调函数
This function is used to register a callback function for getting objects' ground truth data.
- 参数:
cb -- [in]
获取仿真场景中物体真值的更新回调,函数签名为:
void callback(const char* mainVehicleId, SimOne_Data_Obstacle *pObstacle)
mainVehicleId: 主车的ID / Id of the main vehicle
pObstacle: 物体真值消息 / Obstacle data
- 返回:
如果注册回调函数成功,则返回true,否则返回false
Returns true if the callback registration is successful, false otherwise.