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
Isu Wick is currently offline Isu WickFriend
Messages: 1
Registered: May 2022
Junior Member
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
Eric Ban is currently offline Eric BanFriend
Messages: 1
Registered: July 2022
Junior Member
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
Laura Saldarriaga Higuita is currently offline Laura Saldarriaga HiguitaFriend
Messages: 2
Registered: September 2022
Junior Member
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
- TraCI -> Change_Traffic_Lights_State
- Type in Google: Tutorial 6 cse traffic light traci

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

Report message to a moderator

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

Current Time: Sun Mar 03 18:48:07 GMT 2024

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

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

Back to the top