跳转至

驾驶员接管(DIL)/ Driver Takeover (DIL)

说明 / Overview

驾驶员在环(Driver-in-Loop)模式下,读取驾驶员实际操作量、查询当前控制模式和路径点的接口。
Interfaces for Driver-in-Loop (DIL) mode: reading actual driver inputs, querying the current control mode, and retrieving waypoints.

SimOnePNCAPI.SoGetDriverControl(mainVehicleId, driverControlData)

获取SimOneDriver控制信号

Get control signals from SimOneDriver.

参数:

名称 类型 描述 默认
mainVehicleId str

车辆ID
Vehicle ID

必需
driverControlData SimOne_Data_Control

驾驶控制信息
Driver control data

必需

返回:

类型 描述
bool

执行结果:成功或失败
Success or failure

SimOnePNCAPI.SoGetControlMode(mainVehicleId, controlModeData)

获取车辆控制模式

Retrieve the current vehicle control mode.

参数:

名称 类型 描述 默认
mainVehicleId str

车辆ID
Vehicle ID

必需
controlModeData SimOne_Data_Control_Mode

当前控制模式
Current control mode

必需

返回:

类型 描述
bool

执行结果:成功或失败
Success or failure

SimOnePNCAPI.SoGetWayPoints(mainVehicleId, wayPointsData)

获取案例主车路径点

Retrieve the waypoints of the main vehicle from scenario editing.

参数:

名称 类型 描述 默认
mainVehicleId str

车辆ID
Vehicle ID

必需
wayPointsData SimOne_Data_WayPoints

路径点数据
Waypoints data

必需

返回:

类型 描述
bool

执行结果:成功或失败
Success or failure