Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Traci importing a new traffic light program
  • From: "Roman, Charlotte" <C.D.Roman@xxxxxxxxxxxxx>
  • Date: Wed, 23 Oct 2019 14:55:55 +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=uXSahnZ/7IJfq1ks8Lj4akLfIQbYxdFxSdJ78IT8da8=; b=KKRH2GGqTVMZG1RtpA1hz+W4GEOqEDtPBqPCZUty9nSTDNGV412FxO1g8ETjUmmVtctCkfliVhgeGxqyLPfNAlAN3KvDXJBjZULP82eB36NIla1zWoHKJ/tRbJFbreLzK4BVb86rVe51Fdw/ntP1ymtnnOLToFQ5XV0NPuetMvCkBdyRoegxPoH+AVYSFyQYuBAfruvbI2jLVETSe89LrTGrJmbdMRZ+TzO620611LhWwnwiA+YzSI7OeVw+1TjthIBlG27LFIqC3Pz8XYsznt07hoIxD0NiDatdOOVoJlcoph0CmpqDfuPjua9BAyUPMu4v6cUrqYMaCqm602ROng==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lszp/22zRWokXXRyjU7HrOZDXxDVqLYaq0r5lEk8gvnLTFzw70QhENKTJDxickfnUbjpuVRaYlqXrQy8a2eptOa3Y/cQNwyHfWugw6SdKPO0aEHoLHakKiUVj+G1iBBTd7wJiU4CQpZlb4SOa0nTyG5ElaK2aMhoK4JrJVQKLKl87enNS/LKfKtHLNZ2oF1CASkqXX2Nqe1MLDqwwRykBjvC1c/2f4UAw+54aC9Ao0vuvERD26mH3JJs8crWenxxRu4EWlv2L+/BUefpXZQAB0ckHVy9UeKGC08trJu4YXho01OnrnNsCRlp8DaPwWkiIgz1n8ulmW9pcMyzhml0Cg==
  • 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/C62UY6Ukedekv715HZ76doTeuAgAAAw4CAAAGg8w==
  • Thread-topic: [sumo-user] Traci importing a new traffic light program

I have written a program like that and saved it as a file, I'm just not sure how to call the program using traci.

Kind regards,


Charlotte



From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Wednesday, October 23, 2019 3:49 PM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Traci importing a new traffic light program
 

Am Mi., 23. Okt. 2019 um 16:46 Uhr schrieb priyank soni <priyanksonigeca7@xxxxxxxxx>:
Write this piece of code in your script. 
Or read relevant values from external. xml 
file and feed here. 

On Wed 23 Oct, 2019, 7:58 PM Roman, Charlotte, <C.D.Roman@xxxxxxxxxxxxx> wrote:
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
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top