 LanePosition = require './lane-position'
 Curve = require '../geom/curve'
 _ = require 'underscore'
+settings = require '../settings'
 
 # 车辆的轨迹轨迹类 用于判断车辆的各种判断
 # 传入的参数 车辆 车道 车辆所在位置

      nextLane = @car.popNextLane()
#      @_startChangingLanes nextLane, 0
      if @turnNumber isnt 1
        @_startChangingLanes nextLane, 0
      else
        @_startChangingLanes nextLane.road.lanes[@current.lane.laneIndex], 0
    tempRelativePosition = @temp.position / @temp.lane?.length

    intersection.controlSignals.state[sideId][@turnNumber]

  getDistanceToIntersection: ->
    distance = @current.lane.length - @car.length / 2 - @current.position - settings.stopLineGap
    if not @isChangingLanes then max distance, 0 else Infinity

  timeToMakeTurn: (plannedStep = 0) ->
