Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Rerouting in SUMO using TraCI
  • From: "Padisala, Shanthan Kumar" <padisala.1@xxxxxxxxxxxxxxxxxxx>
  • Date: Sat, 18 Jul 2020 17:38:24 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=buckeyemail.osu.edu; dmarc=pass action=none header.from=buckeyemail.osu.edu; dkim=pass header.d=buckeyemail.osu.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lr7Yp9LHGIHXPWjOcX3RQxpRSd+AeL8PIXIdlkizc6o=; b=IP+aohadumRO3QZ3moaRB3hixNT8gjQpI7b+3pC1f3M8FqDHEVzKA2oXtAdjj4Gh171+0G/5I7fsfc7SlRGT3NZ6OMHmzoxtZj0Sf0B7SfVnqi95Vgrb7YPP+9LAdDbjBh87SKNYufXhAR1XkSx3p9WSoqzET5dzlx7m6uhVRCo+oVmRJ28Ot6KEji8NUG7ror0c/0pwavkEL6mBSNOVF3M0U20r9SVZIn27UDHd03JpYVgfVTQSNOFkjksuovRGB8EaqNitjmWTJhfzL4e1+Pwm+sX/CM4g0nlecTarXy4XcGGJSxxmBD6/OJ7jeaBHZrQhizMh821n8CfAnd4pFg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QYEfGNBWyhxaqEUH8DHr8XP9WgHHiM2vJ7NPu6BW3wn36bwHyLpLKdp+dK1wO/hsu6FmYvX7dWcWu1OSib2GKlmIqH3m+KMWQrw+rIkqHKY72NGEqSduQ58zDYqtHqKL7bRyNiVjfFnGf3wNek5nVNP9oCSk3kToAa9f3exHwEdBMUNsDiiBPE6WV8wf1RR6d9OpJuHqw4Nv4IwGvdaowQHsRg/LYf6TNLK/xmJV7CZrMkzyqUB+WjWsmMl/8CzDoaWV2+c1C6pYbPqNWa3x6ZRuinR1oQud5g5X1haPbXYEV7z/0S9ip1UaoGYfe8gkiagavK6Y6FsumASPl2vCHg==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWXSBsqjBsX53iNUWkRL1NUFdzzQ==
  • Thread-topic: Rerouting in SUMO using TraCI

Hi,

I am trying to use rerouters to change dynamically my route (keeping the destination fixed). I have initialized my network with multiple vehicles with a specific route to each vehicle, that are added into the network at multiple intervals of time.  The next step is to reroute all the vehicles dynamically, using TraCI. For this, I can see two of the possible options listed on the documentation:
  1. Using rerouteTravelTime
    if traci.vehicle.getWaitingTime(VID[v]) > 600:
           traci.vehicle.rerouteTraveltime(VID[v],True)
    But, I dont know where I am going wrong, I am unable to reroute.

    where VID is a list of all my vehicles.
  2. Using device.rerouting. as listed on the webpage https://sumo.dlr.de/docs/Demand/Automatic_Routing.html 
  3. But, I do not understand how exactly I must use these commands. Also, how different are these two methods. I would really appreciate it if anyone comments on the exact syntax, the difference in two methods, and also any other suggestions to serve my main purpose. 
Thank you,
PSK


Back to the top