Template Function lanelet::geometry::maxCurveSpeed

Function Documentation

template<typename LaneletT>
Velocity lanelet::geometry::maxCurveSpeed(const LaneletT &lanelet, const BasicPoint2d &position, const Acceleration &maxLateralAcceleration = 2.0 * units::MPS2())

calculates the maximum velocity without exceding a maximum lateral acceleration.

Parameters:
  • lanelet – lanelet to calculate this from

  • position – position in 2d next to the lanelet

  • maxLateralAcceleration – the maximum desired acceleration

Returns:

the maximum velocity. Can be Inf if the lanelet has no curvature locally.