The output of randomTrips is (as the name suggest) quite random and thus generally not realistic. The behavior you describe is a bit unclear though. If you only add a single stop per vehicle then the vehicle should drive to its original destination and disappear after finishing the stop. Check the --vehroute-output to see how many stops a vehicle actually made and how it's final route looks.
If you want more complex plans (i.e. stop and then go back to the origin, you need more complex tooling. Take a look at SAGA (https://sumo.dlr.de/docs/Contributed/index.html) and activitygen: https://sumo.dlr.de/docs/Demand/Activity-based_Demand_Generation.html Or if you are inclined to programming in python, here is an idea for how randomTrips could accomodate your use case in a general fashion (pull requests are welcome) https://github.com/eclipse-sumo/sumo/issues/14817 https://github.com/eclipse-sumo/sumo/issues/14818 regards, Jakob Am Sa., 4. Mai 2024 um 09:50 Uhr schrieb Francesco PETRAROLI via sumo-user < sumo-user@eclipse.org>: > Goodmorning, > I would like to ask a question regarding parking maneuvers. Actually > vehicles in my map go to the parking areas and stop correctly. I set the > parking areas manually with netedit module and then I added the stop > duration by using addStops2Routes.py, routes created with randomtrips.py in > which I also gave .dst.xml and .src.xml files. In destination i gave the > edges next to all the parking areas of my net file. After that I used > generateParkingAreaRerouter.py in order to find a nearby parking area if > the original selection was full. > My problem is this: when a vehicle terminates its stop time then it moves > to search for a new parking spot, that is not realistic and it is not what > I would like to do. How can I set a new route or something for each vehicle > in order to go away, for example to edges in the .src.xml file? I was > talking about new routes, but there are probably other options to > implement, I do not know. > Thank you > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user