Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Arbitrary departure time for vehicles controlled via TraCI

You are correct. Sorry, for the invalid statement.
Further possible reasons for insertion delay:
- the second vehicle is configured to depart with high speed. It will delay insertion until a safe gap to the leader exists.
- the first vehicle is slowed or stopped for some reasons so it blocks the space for insertion of the second
- the first vehicle is quite long so it blocks the space for insertion of the second
- the vType definition is not used due to misconfiguration (check in sumo-gui the vType parameters of the vehicle for the expected minGap value)
If neither of these reasons is applicable, send me your scenario and I will take a look.

regards,
Jakob





2018-02-21 18:33 GMT+01:00 Jiachen Yang <jiachen_yang@xxxxxxxxxxxx>:

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

2018-02-17 0:14 GMT+01:00 Jiachen Yang via sumo-user <sumo-user@lists.sourceforge.net>:
Hi SUMO developers and users,


I'm trying to set arbitrary departure times for multiple vehicles that I'm controlling via TraCI. For example:


traci.vehicle.add( vehID='car_1', depart=2, ... )

traci.vehicle.add( vehID='car_2', depart=2.5, ... )


where car_1 and car_2 are on the same edge and lane. I observe that car_1 is able to depart at the correct time, but car_2 is delayed by more than 2.5 seconds. My guess is that there is some minimum distance requirement, which prevents car_2 from being emitted too closely after car_1. However, setting "minGap=0" in the vType definition does not help. Does anyone have suggestions?


Thank you,

Jiachen


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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxxxxxxxxxxxt
https://lists.sourceforge.net/lists/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://dev.eclipse.org/mailman/listinfo/sumo-user

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.

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



Back to the top