parameters: (self, xOffset, yOffset)
docstring: Update the position of all the vehicles controlled by Webots in SUMO.
docstring_summary: Update the position of all the vehicles controlled by Webots in SUMO.
docstring_tokens: Update the position of all the vehicles controlled by Webots in SUMO .
function: def update_webots_vehicles(self, xOffset, yOffset):
          """Update the position of all the vehicles controlled by Webots in SUMO."""
          for i in range(0, self.webotsVehicleNumber):
              if self.webotsVehicles[i].is_on_road(xOffset, yOffset, self.maxWebotsVehicleDistanceToLane, self.net):
                  self.webotsVehicles[i].update_position(self.getTime(), self.net, self.traci, self.sumolib, xOffset, yOffset)
              else:
                  # the controlled vehicle is not on any road
                  # => we remove it from sumo network
                  if self.webotsVehicles[i].name in self.traci.vehicle.getIDList():
                      self.traci.vehicle.remove(self.webotsVehicles[i].name)
function_tokens: def update_webots_vehicles ( self , xOffset , yOffset ) : for i in range ( 0 , self . webotsVehicleNumber ) : if self . webotsVehicles [ i ] . is_on_road ( xOffset , yOffset , self . maxWebotsVehicleDistanceToLane , self . net ) : self . webotsVehicles [ i ] . update_position ( self . getTime ( ) , self . net , self . traci , self . sumolib , xOffset , yOffset ) else : # the controlled vehicle is not on any road # => we remove it from sumo network if self . webotsVehicles [ i ] . name in self . traci . vehicle . getIDList ( ) : self . traci . vehicle . remove ( self . webotsVehicles [ i ] . name )