Function SimOneAPI::GetNearLanes

Function Documentation

bool SimOneAPI::GetNearLanes(const SSD::SimPoint3D &pos, const double &distance, SSD::SimStringVector &nearLanes)

获取临近车道列表

Get the list of nearby lanes.

此函数用于获取指定范围内与输入点临近的车道列表

This function is used to get a list of lanes that are close to the input point within a specified range.

参数:
  • pos -- [in]

    输入的3D位置

    Input 3D location.

  • distance -- [in]

    指定范围的距离

    Input range distance.

  • nearLanes -- [out]

    找到的车道ID列表,每个ID格式为roadId_sectionIndex_laneId

    Lane IDs of the found lanes, each ID formatted as roadId_sectionIndex_laneId.

返回:

当找到一个或多个车道时返回true,否则返回false

Returns true when one or more lanes are found, else returns false.