Function SimOneAPI::GetLaneWidth
Defined in File SimOneHDMapAPI.h
Function Documentation
-
bool SimOneAPI::GetLaneWidth(const SSD::SimString &id, const SSD::SimPoint3D &pos, double &width)
获取车道宽度
Get lane width.
此函数用于获取指定点的双切线方向上的车道宽度
This function is used to get the lane's width in the bitangent direction of a specified point.
- 参数:
id -- [in]
输入的车道ID,格式为roadId_sectionIndex_laneId
Input lane ID, formatted as roadId_sectionIndex_laneId.
pos -- [in]
输入的3D位置
Input 3D location.
width -- [out]
指定车道的宽度
Lane width of the specified lane.
- 返回:
如果地图中存在指定的车道则返回true,否则返回false
Returns true if the specified lane exists in the map, else returns false.