跳转至

评价数据写入 / Evaluation Data Writing

说明 / Overview

向评价系统写入自定义评价记录并持久化保存的接口。
Interfaces for writing custom evaluation records to the evaluation system and persisting the results.

SimOneEvaluationAPI.SoAddEvaluationRecord(mainVehicleId, jsonString)

添加评价算法所需的各类信息(JSON格式)

Add evaluation records for the Evaluation algorithm in JSON format.

该记录可由json dump生成,包含属性类别、时间戳等信息,例如:{"category": "signal", "timestamp": 1648363819335, "ACC": "on", "ACCSpeed": 20}

The record, which can be generated by json dump, includes property category, timestamp, and other information, e.g., {"category": "signal", "timestamp": 1648363819335, "ACC": "on", "ACCSpeed": 20}.

参数:

名称 类型 描述 默认
mainVehicleId str

主车的ID

Id of the main vehicle.

必需
jsonString str

以JSON格式表示的记录字符串

Record string in JSON format.

必需

返回:

类型 描述
bool

执行结果:成功或失败

Execution outcome: success or failure.

SimOneEvaluationAPI.SoSaveEvaluationRecord()

保存评价算法所需的各类信息(JSON格式)

Save the evaluation records for the Evaluation algorithm in JSON format.

此函数用于保存之前添加的评价算法记录,格式为JSON

This function is used to save the previously added evaluation records in JSON format.

返回:

类型 描述
bool

执行结果:成功或失败

Execution outcome: success or failure.