Thank you Jakob Sent from Mail for Windows 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) 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? - 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) - one of until, duration or both can be defined 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? _______________________________________________ sumo-user mailing list sumo-user@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________ sumo-user mailing list sumo-user@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________ sumo-user mailing list sumo-user@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
|