Function SimOneAPI::GetTrafficLight

Function Documentation

bool SimOneAPI::GetTrafficLight(const char *mainVehicleId, int opendriveLightId, SimOne_Data_TrafficLight *pTrafficLight)

得到仿真场景中的交通灯的真值

  • function: GetTrafficLight

  • brief: Get ground truth data of traffic lights from the simulation scene.

参数
  • mainVehicleId[in] Id of the main vehicle

  • opendriveLightId[in] traffic light Id from opendrive

  • pTrafficLights[out] light data: countdown, trafficlight status, … etc

返回

Success or not