assuming a function that defines default values for it's parameters (i.e.
vehicle.setStop) you can simply leave out some parameters. If you wish to
set parameters that come after a left-out paramter, specify it by name. The
following call skips the 'lane' parameter so it will use the default of '0':
setStop(vehID, edgeID, pos, duration=42)

Am Do., 21. Okt. 2021 um 02:22 Uhr schrieb Ifezue Obiako <
[email protected]>:

> Jakob
>
> Thanks for the feedback. I also had another question. If I want to leave a
> TraCI function argument blank or pass it because I don't want to use that
> argument, how do I go about doing that in TraCI?
>
> Thank you
> Ifezue
>
> On Tue, Oct 19, 2021 at 2:32 AM Jakob Erdmann <[email protected]>
> wrote:
>
>> Hello,
>> - nextStopIndex is the index of the stop to be replaced (0 is the
>> upcoming stop, 1 is the stop after that, ...)
>> - lane index is 0 for the rightmost lane, 1 for the lane to the left of
>> it and so on (reversed in left-hand traffic)
>> - flag is a bitset encoded as integer (by adding the values). see
>> https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#stop_0x12
>> - one of until, duration or both can be defined
>> - after replaceStop, the bus will continue with the stop after the
>> replaced one. To skip stops (and thereby catch up) you can call replaceStop
>> with an empty string which simply deletes a stop from the schedule:
>> https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#replacestop_0x17
>>
>> regards,
>> Jakob
>>
>>
>> Am Di., 19. Okt. 2021 um 03:12 Uhr schrieb Ifezue Obiako <
>> [email protected]>:
>>
>>> Hello Everyone
>>>
>>> I am currently trying to figure out how I can model buses going around a
>>> looping route and change their route to go to a fuel station with TraCI
>>> when their fuel capacity gets to a certain level. I was looking at several
>>> different functions in the TraCI API that could help with this and one of
>>> the ones I took note of was replaceStop(). I noticed some of the arguments
>>> in the function, but some of them didn't make sense to me. For instance:
>>>
>>>    - What is the NextStopIndex? Is this the same as BusStop ID?
>>>    - What is the LandIndex is this the same as Lane ID or is this the
>>>    number at the end of the LaneID? For example: on edge -7855681#1_0, is 
>>> the
>>>    LaneIndex 0 in this case?
>>>    - How is the Flag argument defined? Is it only binary with 0 or 1?
>>>    What exactly do these values represent?
>>>    - Do both the arguments 'until' and 'duration' need to be specified
>>>    or does only one of the two need to be specified?
>>>
>>> I also have a predetermined looping bus route that is in a rou.xml file
>>> format. I was wondering once the bus replaces its current upcoming bus stop
>>> to the fueling station and performs the fueling activity, what will happen
>>> to the bus next? Will the bus move to the next bus stop that it was
>>> supposed to go to on its route? Or will it move ahead to the next bus stop
>>> in its schedule if it has fallen behind in its schedule?
>>>
>>> Thank you
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to