Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Traci importing a new traffic light program
  • From: "Roman, Charlotte" <C.D.Roman@xxxxxxxxxxxxx>
  • Date: Wed, 23 Oct 2019 14:28:17 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=warwick.ac.uk; dmarc=pass action=none header.from=warwick.ac.uk; dkim=pass header.d=warwick.ac.uk; 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=zeZVc6Nw4MGUDWpCriMmRCIAYpt1Y9d6lyekOaWkTAA=; b=eSBSh0N1n+njFiPzbYsykhAkYH5n3Y4KQ2oBpAyZAPvBOcYzvbjS9J+ass16SCRiDXH5lMOoNx44f21/WKmlpBKTQ7xV+vH+nY7gmhUQcqH4PvsdvxJH1P2kzVREYsHTBJnpEOwIjwcJUaNGV/WkHb4rXaeo10a7HKzBsYNCYr4QBhsY4+p7uO00FqsenTsuqX5XfgxLyQz3wjEPESEdOO6NruDe/973Ys40HPrItUE1UusPq5+15Z0eta4PYYx3veZh83XWQMNNRY3DMRCInrRlw8j7wRfsW32vujZO+vKWxeUEI/ZjzZ1BgQKw2MFiIClpLpozVY8kRk4kek3Oew==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R6OR1MovBpfL1YqcFdQNO1zgteGSBxO8cLQsyrvBZtorQFfEXX04L9siL5uA989IOjYhjIzgsl/go2CDQxuAHmCqLWZcKYGYDzPOTmNeZ0bQupBI6/3HNQfIMykjsqae78eP04pyZkZTeg7//F1INgWgyOjL7L1OXuW8L5t+Dlw6yfLsJg6T5y/Ok+RtMZzWkZhC/OL57uCUwT81C9Yck8ca0hqO/eSxJ4TszdRWEr3QKA9vNt/N+ICSJgXm7lXLCbg8IqLsG/KeTM7CK7QZ8xkPS36Vfa/URfFJqLeY8mEFIwK9X0sWD/kDztqComkcSy/LvkUsUvkDs144oUzQ0A==
  • 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: AQHVia4b0/C62UY6Ukedekv715HZ7w==
  • Thread-topic: Traci importing a new traffic light program

Hi all,

I want to know how to load an additional file with a traffic light program to change just one of the traffic lights using traci. I have a network with 4 traffic lights in a grid and I want to change just one of them to a different program. I can't change it in the net file because I initialise the traffic light program separate to this. 

I want to do something like this:

newprogram = 'myfiles/differenttlprogram.xml'

traci.trafficlight.setProgram(tl_1, newprogram)

but I'm not sure how to get the syntax right for importing the additional file. Thanks for your help!

Kind regards,

Charlotte

Back to the top