跳转至

评价数据写入 Record


AddEvaluationRecord

bool AddEvaluationRecord(const char *mainVehicleId, const char *jsonString)

添加评价算法所需的各类信息(JSON格式)
Add various types of information required for the evaluation algorithm (in JSON format).

参数:

名称 类型 说明
mainVehicleId const char * 主车的ID
ID of the main vehicle.
jsonString const char * 评价记录的JSON格式字符串,可通过JSON dump生成。例如:{"category": "signal", "timestamp": 1648363819335, "ACC": "on", "ACCSpeed": 20}
JSON format string for the evaluation record, which can be generated by a JSON dump. For example: {"category": "signal", "timestamp": 1648363819335, "ACC": "on", "ACCSpeed": 20}.

返回值:

类型 说明
bool 成功添加返回true,否则返回false
Returns true if successfully added, false otherwise.

SaveEvaluationRecord

bool SaveEvaluationRecord()

保存评价算法所需的各类信息(JSON格式)
Save various types of information required for the evaluation algorithm (in JSON format).

返回值:

类型 说明
bool 成功保存返回true,否则返回false
Returns true if the information is successfully saved, false otherwise.