Function SimOneAPI::SetJudgeEventCB

Function Documentation

bool SimOneAPI::SetJudgeEventCB(void (*cb)(const char *mainVehicleId, SimOne_Data_JudgeEvent *judgeEventDetailInfo))

场景判定事件回调

Callback for scenario judgment events.

此函数用于注册场景判定事件的回调函数,用于获取场景中的判定事件详细信息。

This function is used to register a callback function for scenario judgment events, which provides detailed information about judgment events in the scenario.

参数:

cb -- [in]

回调函数指针,函数签名为:

void callback(const char* mainVehicleId, SimOne_Data_JudgeEvent* judgeEventDetailInfo)

  • mainVehicleId: 主车的ID / ID of the main vehicle

  • judgeEventDetailInfo: 场景判定事件的详细信息 / Detailed information of the judgment event

返回:

成功注册返回true,否则返回false

Returns true if the registration is successful, false otherwise.