Function SimOneAPI::GetNearMostLane
-
Defined in File SimOneHDMapAPI.h
Function Documentation
-
bool
SimOneAPI
::
GetNearMostLane
(
const
SSD
::
SimPoint3D
&
pos
,
SSD
::
SimString
&
id
,
double
&
s
,
double
&
t
,
double
&
s_toCenterLine
,
double
&
t_toCenterLine
)
-
获取最接近输入点的车道,所属车道优先
Get the lane closest to the input point, prioritizing the lane to which it belongs.
此函数用于获取与输入点最接近或几何上重叠的车道。当有多个车道的几何形状与输入点重叠时,将选择最近的一个
This function is used to get the lane that is nearest to or geometrically overlapping the input point. When the geometry of more than one lane overlaps the input point, the nearest one will be selected.
- 参数 :
-
-
pos – [in]
输入的3D位置
Input 3D location.
-
id – [out]
找到的车道ID,格式为roadId_sectionIndex_laneId
Lane ID of the found lane, formatted as roadId_sectionIndex_laneId.
-
s, t – [out]
在s-t坐标系统中相对于找到的车道的输入点的值对
The input point’s value pair in the s-t coordinate system, relative to the found lane.
-
s_toCenterLine, t_toCenterLine – [out]
相对于找到的车道所属道路中心线的s-t坐标系统中的输入点的值对。准确度较低,如需高精度值请使用API GetRoadST
The input point’s value pair in the s-t coordinate system, relative to the center line of the road to which the found lane belongs. Values are approximately accurate; for higher accuracy, use the API GetRoadST.
-
- 返回 :
-
找到任何车道时返回true,否则返回false
Returns true when any lane is found, else returns false.