Function SimOneAPI::InitEvaluationService

Function Documentation

bool SimOneAPI :: 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.

此函数用于初始化自动驾驶算法的评价服务。默认情况下,评价数据和GPS数据会发送到评价服务(类别:判定、主车)

This function initializes the evaluation service for autonomous driving algorithms. By default, judge data and GPS data are sent to the evaluation service (categories: judge, main vehicle).

参数 :
  • mainVehicleId [in]

    主车的ID

    ID of the main vehicle.

  • serviceIP [in]

    评价服务的IP地址

    IP address of the evaluation service.

  • port [in]

    评价服务的端口号

    Port number of the evaluation service.

  • withMainVehicle [in]

    是否将主车数据发送到评价服务器

    Whether to send MainVehicle data to the evaluation server.

  • withObstacleNeeded [in]

    是否将障碍物数据发送到评价服务器

    Whether to send Obstacle data to the evaluation server.

返回 :

成功初始化返回true,否则返回false

Returns true if the initialization is successful, false otherwise.