def METHOD_NAME(self, time, net, traci, sumolib, xOffset, yOffset):
    """Update the vehicle position in SUMO."""
    # get position
    self.currentPosition = self.get_position(xOffset, yOffset)
    # get pitch angle
    self.angle = self.get_angle()
    # compute current speed and convert it to m/s
    speed = math.sqrt(math.pow(self.currentPosition[0] - self.previousPosition[0], 2) +
                      math.pow(self.currentPosition[1] - self.previousPosition[1], 2))
    self.previousPosition = self.currentPosition
    speed = speed / 0.2
    # if vehicle is not present in the network add it
    if self.name not in traci.vehicle.getIDList():
        try:
            traci.vehicle.add(vehID=self.name, routeID=traci.route.getIDList()[0])
            traci.vehicle.setColor(self.name, (0, 255, 0))
        except Exception:
            pass
    try:
        traci.vehicle.setSpeed(self.name, speed)
    except Exception:
        pass
    try:
        traci.vehicle.moveToXY(vehID=self.name, edgeID='', lane=0, x=self.currentPosition[0], y=self.currentPosition[1],
                               angle=180 * self.angle / math.pi, keepRoute=0)
    except Exception:
        pass
    self.previousPosition = self.currentPosition