SimOneServiceAPI module
- SimOneServiceAPI.SoAPIGetCaseInfo(data)
获取案例详情.
Get case information
- data
caseName,caseId,taskId,sessionId
- bool
Success or not
- SimOneServiceAPI.SoAPIGetVersion()
获取当前库的版本号.
Get the version number of the current library
None
- c_char_p
version number
- SimOneServiceAPI.SoAPINextFrame(frame)
进行下一帧.
Go to the next frame
- frame
current frame value
- bool
None
- SimOneServiceAPI.SoAPISetFrameCB(startcb, stopcb)
仿真场景中每帧的回调,每帧开始和结束时调用回调函数.
Register the callback func which being called at the beginning and end of each frame
- startcb
callback func which being called at the beginning of the frame
- stopcb
callback func which being called at the end of the frame
- bool
Success or not
- SimOneServiceAPI.SoAPISetMainVehicleStatusUpdateCB(cb)
获取主车状态信息回调.
Register the callback func applying for status info of the mainvehicle
- cb
callback func applying for status info of the mainvehicle
- bool
Success or not
- SimOneServiceAPI.SoAPIWait()
获取当前帧值.
Get the current frame value
None
- bool
frame value
- SimOneServiceAPI.SoGetCaseRunStatus()
获取案例运行情况(运行中,停止).
Get case running status
None
- bool
Stop,Running
- SimOneServiceAPI.SoGetHDMapData(hdMap)
获取高精度地图标识.
Get the hdmap data which is designated by configuring on SimOne web app
- hdMap
SimOne_Data_Map data
- bool
Success or not
- SimOneServiceAPI.SoGetMainVehicleList(data)
获取主车信息列表,只需要获取一次.
Get the main vehicle information list
- data
mainvehicle id/num/type data(output)
- bool
Success or not
- SimOneServiceAPI.SoGetMainVehicleStatus(mainVehicleId, data)
获取主车状态信息.
Get the status information of the mainvehicle
- mainVehicleId
Id of the main vehicle
- data
status data which applied for
- bool
Success or not
- SimOneServiceAPI.SoInitSimOneAPI(mainVehicleId='0', isFrameSync=0, serverIP='127.0.0.1', port=23789, startcase=0, stopcase=0, registerNodeId=0)
初始化SimOne API.
Initialize SimOneAPI for autonomous driving algorithm
- mainVehicleId
host vehicle ID(from 0 to 9)
- isFrameSync
synchronize frame or not
- serverIP
BridgeIO server ip
- port
BridgeIO server port
- startcase
callback func which being called before case start
- stopcase
callback func which being called after case end
- registerNodeId
not in use
None
- SimOneServiceAPI.SoSetLogOut(logLevel, *args)
日志设置接口.
Set log interface
- logLevel
warning,error,info flag:true/false
- args
output format
- bool
Success or not
- SimOneServiceAPI.SoTerminateSimOneAPI()
退出API node.
Stop SimOne API node
None
- bool
Success or not