Function SimOneAPI::GetForwardLaneSample¶
Defined in File SimOneHDMapAPI.h
Function Documentation¶
-
bool SimOneAPI::GetForwardLaneSample(const SSD::SimPoint3D &inputPt, const SSD::SimString &id, const double &forward, SSD::SimVector<HDMapStandalone::MLaneInfo> &laneInfoList)¶
获取前方一定距离内的所有车道信息(包括车道ID、左右边缘线、虚拟中心线)
Get all lane information (including lane ID, left and right boundary lines, virtual centerline) within a certain distance ahead.
此函数用于获取当前位置前方特定距离内的车道样本信息,包括车道ID、左右边缘线和虚拟中心线
This function is used to get lane sample information within a certain distance ahead of the current position, including lane ID, left and right boundary lines, and the virtual centerline.
- 参数:¶
- const SSD::SimPoint3D &inputPt¶
[in]
当前的3D位置
Input current 3D position, pos is a 3D point.
- const SSD::SimString &id¶
[in]
找到的车道ID,格式为roadId_sectionIndex_laneId
Lane ID of the found lane, formatted as roadId_sectionIndex_laneId.
- const double &forward¶
[in]
输入点前方的距离
The forward distance from the input point.
- SSD::SimVector<HDMapStandalone::MLaneInfo> &laneInfoList¶
[out]
指定前向范围内的车道信息(HDMapStandalone::MLaneInfo)
Lane information (HDMapStandalone::MLaneInfo) for the specified forward range.
- 返回:¶
如果地图中存在指定的车道,则返回true,否则返回false
Returns true if the specified lane exists in the map, else returns false.