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 is used to obtain detailed information about judgment events in the scenario.

参数 :
  • cb [in]

    场景判定事件的回调函数

    Callback function for scenario judgment events.

  • mainVehicleId [out]

    主车的ID

    ID of the main vehicle.

  • judgeEventDetailInfo [out]

    场景判定事件的详细信息

    Detailed information of the judgment event in the scenario.

返回 :

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

Returns true if the registration is successful, false otherwise.