判定事件 Judgment¶
SetJudgeEventCB¶
bool SetJudgeEventCB(void(*cb)(const char *mainVehicleId, SimOne_Data_JudgeEvent *judgeEventDetailInfo))
场景判定事件回调
Callback for scenario judgment events.
参数:
| 名称 | 类型 | 说明 |
|---|---|---|
cb |
void(*)(const char *mainVehicleId, SimOne_Data_JudgeEvent *judgeEventDetailInfo) |
场景判定事件的回调函数 Callback function for scenario judgment events. |
返回值:
| 类型 | 说明 |
|---|---|
bool |
成功注册返回true,否则返回false Returns true if the registration is successful, false otherwise. |
AddJudgeEvent¶
bool AddJudgeEvent(const char *mainVehicleId, const char *data, bool terminate=false)
发送场景判定事件
Broadcast scenario judgment event information for report generation.
参数:
| 名称 | 类型 | 说明 |
|---|---|---|
mainVehicleId |
const char * |
主车的ID ID of the main vehicle. |
data |
const char * |
场景的判定事件信息 Judge event information of the scenario. |
terminate |
bool |
是否终止场景,默认为false Whether to terminate the scenario, default is false. |
返回值:
| 类型 | 说明 |
|---|---|
bool |
成功发送返回true,否则返回false Returns true if successfully broadcast, false otherwise. |