Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Changing maximum speed limit of all the vehicles in a simulation at a given time.
  • From: "Padisala, Shanthan Kumar" <padisala.1@xxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 3 Jul 2020 15:00:17 +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=7c3nprjraD6WtIbTkVL5rD74SuFbA+Wh5yGa9wIbTQI=; b=g6JKl6SmkbVMcv8SeA1sz4Tfjlo2Gb4kInF9xfkzh/wjzfInIOMzLtGmyNdpV0jBrJ7tXaE2IEXhfe4IcoaHP8m5EID11MQPpJi6Qnqtf8ujAuxxbK3tWp0ASxYA0vGotuPld4aVZlXLDamVmz/6MRTP56W8HVRO6rNow0IratAObQcO8tnqohStUc96uhGZS+m8csfFU4Zb40MfK9pPuHWJffVNIu2aWOqkhj0IkUfPNdohA6ZHSjZHxdXYeTPG6X/TUXFYffG98YvKYxEceSZD1jWDm0kU2mlUBo3vbJDykzvM0wEzKyekh+BQiZsgulrQdOYmITAVS8hrqH4PdA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NkvbkquL5kl6MbLEx3BeTGvvlSjr4uaG7mLYFMmiXXakEAHrOfwrEnSZ0rRMkRPt8R/0cHxCkMPAVwiwsCqHmUIEsBwY2cYgyifptKHT5G7/H+4Z/I/MzlFMl2///hattDfjWVZsfgYFRWHDr2GZ3aL9P6m45PcXNxAPQ+seVXwPGMin1/3fjbu2gZjLx71PK61saT/36GR0sxx4qk5d0XJnfJ9apZVRZHPl1F3V0w2TOYBe8bWlA2u7vFIDdwp8yuOFDbX0aoaBWvOMgmtZY2yFoeLS+s1iEfYBzkM6tNKeKRH3E6SDmfvWCk7cjRugFgIAxr+t7hS14LPhGnUxwg==
  • 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: AQHWUPs6TXYEByTWdk2mYQghWP8hsKj1Yfw9gABKdgCAAEX2Dg==
  • Thread-topic: [sumo-user] Changing maximum speed limit of all the vehicles in a simulation at a given time.

Sure!

I first used VID = traci.vehicle.getIDList() to load all the vehicle IDs into list VID. Then I ran a for loop from 0 to len(VID) and used traci.vehicle.setMaxSpeed(VID[v],0.5*35) to alter the speeds of all the vehicles.

I hope it is clear.

Thanks
PSK

From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Traboulsi, Abdullah <at666@xxxxxxxx>
Sent: Friday, July 3, 2020 6:46 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Changing maximum speed limit of all the vehicles in a simulation at a given time.
 
Hi,

Could you please share your solution? How did you do that?

Thank you and regards

On Fri, Jul 3, 2020 at 2:20 AM Padisala, Shanthan Kumar <padisala.1@xxxxxxxxxxxxxxxxxxx> wrote:
Thanks, guys.

I was able to figure it out.


From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Padisala, Shanthan Kumar <padisala.1@xxxxxxxxxxxxxxxxxxx>
Sent: Friday, July 3, 2020 1:33 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: [sumo-user] Changing maximum speed limit of all the vehicles in a simulation at a given time.
 
Hello Everyone!

I am trying to change the maximum speed of all the vehicles that are currently at this instant in the SUMO simulation using TraCI. May I know how I can execute this?

Thanks and Regards,
PSK

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top