[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] the simaple question
|
- From: Michael Behrisch <oss@xxxxxxxxxxx>
- Date: Fri, 21 Jun 2019 14:13:32 +0200
- Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= mQGiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D /iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ 4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3HbQiTWljaGFlbCBC ZWhyaXNjaCA8b3NzQGJlaHJpc2NoLmRlPohjBBMRAgAjBQJS0sHSAhsjBwsJCAcDAgEGFQgC CQoLBBYCAwECHgECF4AACgkQPBD+ltFwpimlmQCdGgnYuHxoye4vFntyHRcE0Ij0318AoN3s szGyKcKdUmPpgXLhFcNfRGe4uQENBFLSvucQBACRAt3OW7eL8N3OJp2bZz/rRldtxjcViEcd +wpQcL9Ag0b6W7e4cbSc9oSU9MAdOvxR0UxualeRGz37W/VEC8cFZb3kFtRdl66gGygKb7gl 2S27495XEYqE7BBF1HfQDjL9sh5GfuIzORkqhCHSUTdkRuzRPxNQcEYFSrASEi9jQwADBQP9 FeuTC1SJHrX9tP3p4xrEa07XkCq+UzwNhDdezoQfT1CUbOv+LT66yLTXAaiHXelgaPMQO1Oo 76U2z0C1LudkAcDdwJbMuZ0RfDoRjsgfhfvM6kqiP4m0s2NR3Y3O+HKXjwtPbXuDwaYIAIvp aj8b59n7fQyfL6BZsO0QZc0i/t+ISQQYEQIACQUCUtK+5wIbDAAKCRA8EP6W0XCmKY1lAKCc 3miJueOXuvZJWV7qGBQxxyR83gCgxhGPL9OrP22rxNJSo1w5OOUxHsM=
- 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>
- Openpgp: preference=signencrypt
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0
Hi,
1. The traffic light commands work regardless of an E2 detector.
2. Your sketch is hardly readable but your textual description sounds
correct.
Best regards,
Michael
PS: Please do not double post.
Am 19.06.19 um 16:55 schrieb Jane Cheung:
> 1. Does it means that I must define the E2 in additional files and
> built it in the .sumocfg file? If I*DO NOT* define the E2 file, the
> TRACI commands
> ********************************************************
> raci.trafficlight.getRedYellowGreenState
> traci.trafficlight.getControlledLinks
> ********************************************************
> could *NOT* be called by TRACI.
>
>
> 2. It means it has just finished the movement in the last stepLength,
> and the next step movement has not been implemented? like the time *t2** *?
> ------------- t1---------------*t2*-----------------t3---------------
> ________ __________ ___________ ________
>
> ------------- <StepLength>< StepLength>-------------
>
> Thanks !
>
>
> On Wed, Jun 19, 2019 at 6:45 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx
> <mailto:namdre.sumo@xxxxxxxxx>> wrote:
>
> 1 & 2: you can piece this together from calls to
>
> traci.trafficlight.getRedYellowGreenState
> traci.trafficlight.getControlledLinks
>
> traci calls are handled before vehicles start to move in the current
> step. This means the returned state (vehicle positions etc will be
> from the previous step (t - stepLength).
>
> Am Mi., 19. Juni 2019 um 03:37 Uhr schrieb Jane Cheung
> <cheung180515@xxxxxxxxx <mailto:cheung180515@xxxxxxxxx>>:
>
> As I understand, I could
> use HaltingNumber=traci.lanearea.getLastStepHaltingNumber( detID )
> to get the vehicle halting number when the traffic light that
> controlled lane with E2 detector(detID) is red.
> The "halting" is the meaning of "stopped.
> Is that right?
>
> Other questions, 1) During the simulation, if the simulation
> time T is known, how could I know which lanes controlled by
> different traffic lights is red phase?
> 2) During the simulation, if the
> land is known, how could I know the time of red phase for one
> specified lane if I use the adaptive traffic control model?
>
>
> Additionally, there are some simple questions that I hope could
> get your help:
> What is the meaning of the "Last Step"? Does it means that if
> the time that the TRACI is called is "t", the last step is
> "t-1"(if each step is 1 second)?
>
>
> Thanks for your help and patience!
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx <mailto: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 <mailto: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
>
Attachment:
signature.asc
Description: OpenPGP digital signature