跳转至

交通灯 & 环境 Traffic & Env


GetTrafficLight

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

得到仿真场景中的交通灯的真值.
Retrieve Ground Truth for Traffic Light Signals in the Simulation Scene

参数:

名称 类型 说明
mainVehicleId const char * 主车的ID
Id of the main vehicle
opendriveLightId int 交通灯在opendrive中的ID SensorConfigurations data
pTrafficLight SimOne_Data_TrafficLight *

返回值:

类型 说明
bool 如果成功获取到交通灯数据,则返回true,否则返回false
Returns true if the traffic light data is successfully retrieved, false otherwise

GetEnvironment

bool GetEnvironment(SimOne_Data_Environment *pEnvironment)

获取当前环境相关信息(天气、光照、地面等).
Retrieve Current Environment-related Information (Weather, Lighting, Ground, etc)

参数:

名称 类型 说明
pEnvironment SimOne_Data_Environment * 仿真环境信息 simulation environment data

返回值:

类型 说明
bool 如果成功获取仿真场景环境信息,则返回true,否则返回false
Returns true if the simulation environment data is successfully retrieved, false otherwise

SetEnvironment

bool SetEnvironment(SimOne_Data_Environment *pEnvironment)

设置当前环境相关信息(天气、光照、地面等).
Set Current Environment-related Information (Weather, Lighting, Ground, etc.)

参数:

名称 类型 说明
pEnvironment SimOne_Data_Environment * 仿真环境信息 simulation environment data

返回值:

类型 说明
bool 如果成功设置仿真场景环境信息,则返回true,否则返回false
Returns true if the simulation environment data is successfully set, false otherwise