Function SimOneAPI::GetLaneSample
Defined in File SimOneHDMapAPI.h
Function Documentation
-
bool SimOneAPI::GetLaneSample(const SSD::SimString &id, HDMapStandalone::MLaneInfo &info)
获取车道信息(包含车道ID,左右边缘线,虚拟中心线)
Get lane information (including lane ID, left and right boundary lines, virtual centerline).
此函数用于获取特定车道的详细信息,包括车道ID、左右边缘线和虚拟中心线
This function is used to get detailed information of a specified lane, including the lane ID, left and right boundary lines, and the virtual centerline.
- 参数:
id -- [in]
输入的车道ID,格式为roadId_sectionIndex_laneId
Input lane ID, formatted as roadId_sectionIndex_laneId.
info -- [out]
指定车道的信息(HDMapStandalone::MLaneInfo)
Lane information (HDMapStandalone::MLaneInfo) of the specified lane.
- 返回:
如果地图中存在指定的车道则返回true,否则返回false
Returns true if the specified lane exists in the map, else returns false.