Function SimOneAPI::GetLaneType
Defined in File SimOneHDMapAPI.h
Function Documentation
-
bool SimOneAPI::GetLaneType(const SSD::SimString &id, HDMapStandalone::MLaneType &laneType)
获取车道类型
Get lane type.
此函数用于获取指定车道ID的车道类型
This function is used to get the type of a lane specified by its ID.
- 参数:
id -- [in]
输入的车道ID,格式为roadId_sectionIndex_laneId
Input lane ID, formatted as roadId_sectionIndex_laneId.
laneType -- [out]
指定车道的类型
Lane type of the specified lane.
- 返回:
如果地图中存在指定的车道则返回true,否则返回false
Returns true if the specified lane exists in the map, else returns false.