Hello,
you need to start sumo with the --remote-port option in order for it to act
as a TraCI server:
i.e.
  sumoProcess = subprocess.Popen("%s -c %s --remote-port %s" % (sumoBinary,
sumoConfig, PORT),shell=True, stdout = sys.stdout)

regards,
Jakob

2015-11-05 0:18 GMT+01:00 Martin Li <[email protected]>:

> Hi,
>
> I have a question on TraCi dynamic traffic light, I have found a video on
> youtube teaching me how to use TraCI to control the traffic light base on
> the density of the road.
>
>
> https://www.youtube.com/watch?v=s6tfcSIBjsU&list=PLxwrwS1SkRx-C5CB3QLTFm2dqkZ7qtlWr&index=8
>
> but when I try to implement it into my map, all I get is static traffic
> light, I have no idea what went wrong, could you help me take a look?
>
> Thanks
> Martin
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
>
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to