传感器配置 / Sensor Configuration¶
说明 / Overview
获取当前主车所挂载的传感器配置信息(类型、位置、参数等)。
Interface for retrieving the sensor configuration mounted on the ego vehicle (type, position, parameters, etc.).
SimOneSensorAPI.SoGetSensorConfigurations(mainVehicleId, sensorConfigurations)
¶
获取所有传感器的配置信息: Id/类型/频率/位置/朝向
Get sensor(s) config infor
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mainVehicleId
|
string
|
车辆ID |
required |
sensorConfigurations
|
SimOne_Data_SensorConfigurations
|
所有传感器配置信息 |
required |
Returns:
| Type | Description |
|---|---|
bool
|
executive outcome: success/faile |