Function SimOneAPI::GetLaneMiddlePoint

Function Documentation

bool SimOneAPI :: GetLaneMiddlePoint ( const SSD :: SimPoint3D & inputPt , const SSD :: SimString & id , SSD :: SimPoint3D & targetPoint , SSD :: SimPoint3D & dir )

获取输入点投影到指定车道中心线上的点和切线方向

Get the point and tangent direction obtained by projecting the input point onto the centerline of the specified lane.

此函数用于获取输入点投影到指定车道中心线上的目标点和该点的切线方向

This function is used to get the target point where the input point is projected onto the specified lane’s middle line, and the tangent direction at that point.

参数 :
  • inputPt [in]

    输入的3D位置

    Input 3D location.

  • id [out]

    找到的车道ID,格式为roadId_sectionIndex_laneId

    Lane ID of the found lane, formatted as roadId_sectionIndex_laneId.

  • targetPoint [out]

    指定车道中心线上的目标点

    The target point that is on the specified lane’s middle line.

  • dir [out]

    车道中心线上目标点的切线方向

    The tangent direction at the target point on the lane’s middle line.

返回 :

当找到任何车道时返回true,否则返回false

Returns true when any lane is found, else returns false.