Function SimOneAPI::GetRoadST
Defined in File SimOneHDMapAPI.h
Function Documentation
-
bool SimOneAPI::GetRoadST(const SSD::SimString &id, const SSD::SimPoint3D &pos, double &s, double &t, double &z)
获取相对于道路参考线的ST坐标
Get the ST coordinates relative to the road reference line.
此函数用于获取输入点相对于车道所属道路的参考线的[s, t]坐标值对,以及在局部ENU坐标系中的高度值z
This function is used to obtain the [s, t] coordinate pair of the input point relative to the reference line of the road that owns the lane, along with the height value z in the local ENU coordinate system.
- 参数:
id -- [in]
输入的车道ID,格式为roadId_sectionIndex_laneId
Input lane ID, formatted as roadId_sectionIndex_laneId.
pos -- [in]
输入的3D位置
Input 3D location.
s, t, z -- [out]
[s, t]表示输入点在s-t坐标系统中的值对,z表示输入点在局部ENU坐标系中的高度值
[s, t] represents the input point's value pair in the s-t coordinate system, and z represents the input point's height value in the local ENU coordinate system.
- 返回:
如果地图中存在指定的车道则返回true,否则返回false
Returns true if the specified lane exists in the map, else returns false.