Function SimOneAPI::GetLaneSampleByLocation
-
Defined in File SimOneHDMapAPI.h
Function Documentation
-
bool
SimOneAPI
::
GetLaneSampleByLocation
(
const
SSD
::
SimPoint3D
&
pos
,
HDMapStandalone
::
MLaneInfo
&
info
)
-
获取当前车辆位置所在车道的信息(包括车道ID、左右边缘线、虚拟中心线)
Get lane information (including lane ID, left and right boundary lines, virtual centerline) for the current vehicle position.
此函数用于根据输入的3D位置获取该位置所在车道的详细信息,包括车道ID、左右边缘线和虚拟中心线
This function is used to get detailed information of the lane at a given 3D location, including lane ID, left and right boundary lines, and the virtual centerline.
- 参数 :
-
-
pos – [in]
输入的3D位置
Input 3D location.
-
info – [out]
指定位置所在车道的信息(HDMapStandalone::MLaneInfo)
Lane information (HDMapStandalone::MLaneInfo) of the lane at the specified location.
-
- 返回 :
-
如果在地图中找到指定位置的车道,则返回true,否则返回false
Returns true if the lane at the specified location exists in the map, else returns false.