Dear SUMO community.
I want to apologize for not describing my problem more clearly. Let me try
it again.
I have a routes file with vehicle definitions like the following:
<vehicle depart="triggered" id="23to221.0">
<route edges="22to13.48 13to12"/>
</vehicle>
If I do:
traci.vehicle.add('23to221.0',traci.vehicle.DEPART_TRIGGERED)
Then the following error shows up:
Error: Answered with error to command 0xc4: The vehicle 23to221.0 to add
already exists.
How can I tell TraCI not to add a new vehicle, but to trigger the departure
of a vehicle defined in the routes file as shown above?
Thanks in advance!
2015-12-21 12:24 GMT-05:00 Michael Behrisch <[email protected]>
:
> Hi,
> you can either use:
> traci.vehicle.add('veh0', 'route0', traci.vehicle.DEPART_TRIGGERED) or
> traci.vehicle.addFull('veh0', 'route0', depart='triggered')
>
> Best regards,
> Michael
>
> Am 17.12.2015 um 22:43 schrieb Andres Felipe Acosta Gil:
> > Dear SUMO community.
> >
> > Is there any way to trigger a vehicle's departure time through TraCI?, I
> > mean, if I have a routes file with:
> >
> > <vehicle depart="triggered" id="veh0" route="route0" type="Car" />
> >
> > Then, is there a TraCI command like traci.vehicle.triggerDepart('veh0')?
> >
> > Best Regards.
> >
>
>
--
Andres Felipe Acosta Gil, MSc student - Software developer
Universidad Nacional de Colombia - MedellĂn
Facultad de Minas
Tel: +57 (4) 4255295
Institutional e-mail: [email protected]
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user