Function SimOneAPI::GetDistanceToLaneBoundary
-
Defined in File SimOneHDMapAPI.h
Function Documentation
-
bool
SimOneAPI
::
GetDistanceToLaneBoundary
(
const
SSD
::
SimPoint3D
&
pos
,
SSD
::
SimString
&
id
,
double
&
distToLeft
,
double
&
distToRight
,
double
&
distToLeft2D
,
double
&
distToRight2D
)
-
获取离最近车道左右边缘线的距离
Get the distance to the nearest lane’s left and right boundary lines.
此函数用于获取输入位置到最近车道左右边界线的距离信息,包括3D空间和2D空间(忽略高度)中的距离
This function is used to get the distance information from the input location to the nearest lane’s left and right boundaries in both 3D and 2D space (ignoring height).
- 参数 :
-
-
pos – [in]
输入的3D位置
Input 3D location.
-
id – [out]
找到的车道ID,格式为roadId_sectionIndex_laneId
Lane ID of the found lane, formatted as roadId_sectionIndex_laneId.
-
distToLeft, distToRight – [out]
3D空间中到边界的距离
The distance to boundaries in 3D space.
-
distToLeft2D, distToRight2D – [out]
2D空间中到边界的距离(忽略高度)
The distance to boundaries in 2D space (ignoring height).
-
- 返回 :
-
当找到最近的车道时返回true,否则返回false
Returns true if the nearest lane is found, else returns false.