Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Proposals » Eclipse Sumo » Python in sumo
Python in sumo [message #1852453] Tue, 17 May 2022 04:35 Go to next message
Eclipse UserFriend
How can I integrate my python code to control traffic lights in SUMO?
Re: Python in sumo [message #1853591 is a reply to message #1852453] Sat, 09 July 2022 17:01 Go to previous messageGo to next message
Eclipse UserFriend
did you find your answer yet please? I need this answer too
Re: Python in sumo [message #1854815 is a reply to message #1852453] Mon, 12 September 2022 23:15 Go to previous message
Eclipse UserFriend
Yes, you can use the TraCI interface. It allows you to connect Python (and other languages) code to control different element during simulation time.
You can retrieve information and change traffic lights' states.

You can check SUMO docs:
- TraCI https://sumo.dlr.de/docs/TraCI.html
- TraCI -> Change_Traffic_Lights_State https://sumo.dlr.de/docs/TraCI/Change_Traffic_Lights_State.html
- Type in Google: Tutorial 6 cse traffic light traci

[Updated on: Tue, 13 September 2022 17:06] by Moderator

Report message to a moderator

Previous Topic:Inject real world traffic as trips
Next Topic:Simpla (Platoon)
Goto Forum:
  


Current Time: Mon Feb 10 16:41:14 GMT 2025

Powered by FUDForum. Page generated in 0.02434 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top