SimOnePNCAPI module

SimOnePNCAPI.SoAPISetScenarioEventCB(cb)

场景事件回调.

Register the callback func applying for setting scenario event

cb

scenario event callback function

bool

Success or not

SimOnePNCAPI.SoGetControlMode(mainVehicleId, controlModeData)

获取车辆控制模式.

Get vehicle control mode

mainVehicleId

Id of the main vehicle

controlModeData

Vehicle control mode

bool

Success or not

SimOnePNCAPI.SoGetDriverControl(mainVehicleId, driverControlData)

获取SimOneDriver控制信号.

Get SimOneDriver drive control

mainVehicleId

Id of the main vehicle

driverControlData

vehicle control data from SimOneDriver

bool

Success or not

SimOnePNCAPI.SoGetDriverStatus(mainVehicleId, driverStatusData)

获取SimOneDriver运行状态.

Get SimOneDriver status

mainVehicleId

Id of the main vehicle

driverStatusData

SimOneDriver status data

bool

Success or not

SimOnePNCAPI.SoGetVehicleState(mainVehicleId, data)

获取通过RegisterSimOneVehicleState注册的主车状态信息.

Get states of main vehicle dynamics which are registered by RegisterSimOneVehicleState

mainVehicleId

Id of the main vehicle

data

states of main vehicle dynamics

bool

Success or not

SimOnePNCAPI.SoGetWayPoints(mainVehicleId, wayPointsData)

获取案例主车路径点.

Get MainVehile WayPoints

mainVehicleId

Id of the main vehicle

wayPointsData

MainVehicle WayPoints data

bool

Success or not

SimOnePNCAPI.SoRegisterVehicleState(mainVehicleId, data, size)

注册SimOne_Data_Gps包含的状态以外的主车状态信息.

Register states of main vehicle dynamics

mainVehicleId

Id of the main vehicle

data

array of state names

size

state number in data

bool

Success or not

SimOnePNCAPI.SoSetDrive(mainVehicleId, driveControl)

主车控制.

Set vehicle drive control

mainVehicleId

Id of the main vehicle

driveControl

vehicle control data

bool

Success or not

SimOnePNCAPI.SoSetDriveMode(mainVehicleId, driverMode)

设置主车控制模式.

Set vehicle drive control mode for vehicle dynamics.

mainVehicleId

Id of the main vehicle

driverMode

ESimOne_Drive_Mode_API for control signal from API, ESimOne_Drive_Mode_Driver for control signal from SimOneDriver.

None

SimOnePNCAPI.SoSetDriveTrajectory(mainVehicleId, controlTrajectory)

主车控制.

Set vehicle drive control by planning trajectory

mainVehicleId

Id of the main vehicle

controlTrajectory

vehicle planning trajectory

bool

Success or not

SimOnePNCAPI.SoSetDriverName(mainVehicleId, driverName)

设置主车控制器的名字.

Set vehicle driver’s name

mainVehicleId

Id of the main vehicle

driverName

vehicle driver name, max length is 8

None

SimOnePNCAPI.SoSetPose(mainVehicleId, poseControl)

设置主车位置.

Set main vehicle pose

mainVehicleId

Id of the main vehicle

poseControl

Pose to set(input)

bool

Success or not

SimOnePNCAPI.SoSetSignalLights(mainVehicleId, pSignalLight)

设置车辆信号灯状态.

Set signal lights

mainVehicleId

Id of the main vehicle

pSignalLight

SimOne_Data_Turn_Signal data (output)

bool

Success or not

SimOnePNCAPI.SoSetVehicleEvent(mainVehicleId, vehicleEventInfo)

设置主车预警消息.

Set vehicle event information

mainVehicleId

Id of the main vehicle

vehicleEventInfo

vehicle event information data

bool

Success or not