Hi Jacob,
From line 1202 in _vehicle.py, the add() method multiplies the input by 1000, so it seems that it receives input in seconds. If I use depart=1000, I observe that the car enters at 1000s in simulation time.
Thank you,
Jiachen
From: Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>
Sent: Monday, February 19, 2018 11:22 PM
To: Jiachen Yang; Sumo project User discussions
Subject: Re: [sumo-user] Arbitrary departure time for vehicles controlled via TraCI
Hello,
method traci.vehicle.add expects time in milliseconds.
regards,
Jakob
Confidentiality Notice: This transmission (including any attachments) may contain confidential information belonging to the sender and is intended only for the use of the party or entity to which it is addressed. If you are not the intended recipient, you are
hereby notified that any disclosure, copying, distribution, retention or the taking of action in reliance on the contents of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender and
erase all information and attachments.
|