服务初始化 Service Init¶
InitEvaluationService¶
bool InitEvaluationService(const char *mainVehicleId, const char *serviceIP="127.0.0.1", int port=8078, bool withMainVehicle=true, bool withObstacleNeeded=true)
初始化评价服务
Initialize service for evaluation of autonomous driving algorithms.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
mainVehicleId |
const char * |
主车的ID ID of the main vehicle. |
serviceIP |
const char * |
评价服务的IP地址 IP address of the evaluation service. |
port |
int |
评价服务的端口号 Port number of the evaluation service. |
withMainVehicle |
bool |
是否将主车数据发送到评价服务器 Whether to send MainVehicle data to the evaluation server. |
withObstacleNeeded |
bool |
是否将障碍物数据发送到评价服务器 Whether to send Obstacle data to the evaluation server. |
Returns:
| 类型 | 说明 |
|---|---|
bool |
成功初始化返回true,否则返回false Returns true if the initialization is successful, false otherwise. |
InitEvaluationServiceWithLocalData¶
bool InitEvaluationServiceWithLocalData(const char *mainVehicleId, bool withMainVehicle=true, bool withObstacleNeeded=true)
初始化评价服务,本地存储数据
Initialize evaluation service with local data storage.
Parameters:
| 名称 | 类型 | 说明 |
|---|---|---|
mainVehicleId |
const char * |
主车的ID ID of the main vehicle. |
withMainVehicle |
bool |
是否默认将主车数据发送到评价服务器 Whether to send MainVehicle data to the evaluation server by default. |
withObstacleNeeded |
bool |
是否将障碍物数据发送到评价服务器 Whether to send Obstacle data to the evaluation server. |
Returns:
| 类型 | 说明 |
|---|---|
bool |
成功初始化返回true,否则返回false Returns true if the initialization is successful, false otherwise. |