Function SimOneAPI::GetLaneST
-
Defined in File SimOneHDMapAPI.h
Function Documentation
-
bool
SimOneAPI
::
GetLaneST
(
const
SSD
::
SimString
&
id
,
const
SSD
::
SimPoint3D
&
pos
,
double
&
s
,
double
&
t
)
-
获取相对于车道虚拟中心线的ST坐标
Get the ST coordinates relative to the lane’s virtual centerline.
此函数用于获取输入点相对于指定车道中心线的[s, t]坐标值对
This function is used to obtain the [s, t] coordinate pair of the input point relative to the centerline of the specified lane.
- 参数 :
-
-
id – [in]
输入的车道ID,格式为roadId_sectionIndex_laneId
Input lane ID, formatted as roadId_sectionIndex_laneId.
-
pos – [in]
输入的3D位置
Input 3D location.
-
s, t – [out]
输入点在s-t坐标系统中相对于指定车道的值对
The input point’s value pair in the s-t coordinate system, relative to the specified lane.
-
- 返回 :
-
如果地图中存在指定的车道则返回true,否则返回false
Returns true if the specified lane exists in the map, else returns false.