Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Phase time extension with TraCI.
  • From: <Maria.Armellini@xxxxxx>
  • Date: Wed, 22 Jul 2020 13:50:27 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:M+YA4RZGgN3Yo4ljiyourXX/LSx+4OfEezUN459isYplN5qZr8mzbnLW6fgltlLVR4KTs6sC17OI9fyxEjJQqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5zIRmsogjcssYajIphJ60s1hbHv3xEdvhMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTDQhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlSEKPCM7/m7KkMx9lKJVrgy8qRxjzYDaY4+VO/h/fqzBctwXXnBOUtpTVyFbHo+wc4kCAuwcNuhYtYn9oF4OoAO5CAerHuzv0D5IiWXs0aAmyeQhFB/J3AgkH9IPtnTUrc74O7oWUeCv1qXH0CvMYupQ1Dzg54fGbgovruuQXbJsb8XR008vGhvEg1iOt4HpIzyY2OsQvmab4ORtVv+ihm8jpgxvozWi2NkhhpTUio8WyV3I6CV0zZorKNClTEN2Y96qHIZeuiybMYZ9X80sQ2ZtuCkgy70Gv4a2czUOyJQ93RLQduKIfo6V6RzgTOacOSp0iG5/dL6ihBu//lKsxvDyW8S3ylpGsDdJnsHRun0PyRDf8NaLRuZn8ku82zuC1hrf5vxCLEspj6TUMYQhzaQ1lpcLtETDGTL5l1vuga+Nc0Uk5vCo6+P6YrX6vpOcN5F7igX5Mqk2lMKxB+o2PAcOUWab/uqy17rt81fnTLlXgfM5k7fUvIrbJcQduq65GRVa3pw+5Ba7FTeqyskXkmcfIFJEfhKIkZTpNknTLPzkF/uznlehnThxy/zbMLDsAY/BImbenLv5eLZy8U9cyA49zdBF4JJUD6kMLvXpVU/rtdzXFAU1PhCuw+biFtp90oceWWOJAq+YK67drFuI5vg1L+aReoAZoCz9JOQ95/7ykX85nkcQfbK03ZsSb3C0B+lmI16Hbnr2mdoOD3sFvg4/TOzyk12NTyRfZ3GoX6IztXkHD9fyFprGQcWwm7Gb9CqwGpxOfW0ADUqDRyTGbYKBDqMpYTiTK4lIiDkJUbygTY4J2RW08gP3nek0ZtHI8zEV4MqwnON+4PfewEk/
  • Ironport-sdr: jlbvblWYO0hRf01MWhK9h95uvva7Ld1/u3PpqUAD7cz4vmOMrWBEtmwteWCEpwNRThRy5t0Vpp j/IS8VAPTJCw==
  • 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: AQHWWtWWDHHpftqml0iMUWj3xnagU6kTpp1g
  • Thread-topic: [sumo-user] Phase time extension with TraCI.

Hi,

 

here you can find information about traffic light control via TraCi:

https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#controlling_traffic_lights_via_traci

 

“Using the function setPhaseDuration, the remaining duration for the current phase can be modified. Note, that this does not take effect when encountering the same phase again in the next phase cycle.”

If you want to change the phase duration for all cycles you could maybe define another traffic light program and then change them with the command setProgram.

 

Best Regards,

Giuliana

 

From: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] On Behalf Of Aristide BAMAZI
Sent: Mittwoch, 15. Juli 2020 20:26
To: Sumo project User discussions
Subject: [sumo-user] Phase time extension with TraCI.

 

# Question :

Want to know if it is possible to set a new duration to phase when running the simulation with TraCI. 

# What I have tried

I have  tried the method traci.trafficlight.setPhaseDuration(tls, duration). but it seems not to perform what I want.

 

Best Regards.


Back to the top