You can define routes that consist of a single edge (either with xml input or via traci.route.add. This allows you to insert vehicles on that edge. If you predefine the routes in xml you can also add a stop to the route and then use traci.vehicle.add(.... departPos="stop") to optimize the initial vehicle position.
Am Mo., 5. Juni 2023 um 23:24 Uhr schrieb Sharifullah Asady < [email protected]>: > Hi Jakob, > > > Is there any method to pre load taxis in the parkingareas? I am using the > traci.vehicle.add(...), and this either requires a route or randomly insert > on an edge. Is it possible to insert the taxi directly in the parkingarea > or on a specific edge? > > > Many thanks for your response. > > > Best, > > Sharif > ------------------------------ > *From:* sumo-user <[email protected]> on behalf of Jakob > Erdmann <[email protected]> > *Sent:* Saturday, June 3, 2023 1:34:29 PM > *To:* Sumo project User discussions > *Subject:* Re: [sumo-user] Taxistands > > - solution 1: traci.vehicle.getStopParameter(vehID, 0, 'started') (you > can check whether the vehicle is currenlty stopped with vehicle.getStops > - solution 2: track the time at which vehicles entered the taxistand with > traci.simulation.getParkingStartingVehiclesIDList (then record the time and > vehicleID yourself for later reference). > > Am Sa., 3. Juni 2023 um 00:04 Uhr schrieb Sharifullah Asady < > [email protected]>: > >> Hi Jakob, >> >> Many thanks, this works perfectly as I wanted. Is there any possibility >> to get taxi parking time? >> >> I am modelling taxis, that are dispatched from taxistands (in my case, >> parking areas are defined as taxistands). Now, I need to dispatch the taxi >> that has arrived earlier to taxistand or has spent more time parking. I >> tried to check if the traci.parkingarea.getVehicleIDs(stopID) could give me >> parked taxis according to their parking time but unfortuntely that is not >> the case. >> >> Many thanks and have a great weekend. >> >> Best, >> Sharif >> ------------------------------ >> *From:* sumo-user <[email protected]> on behalf of Jakob >> Erdmann <[email protected]> >> *Sent:* Tuesday, May 30, 2023 4:57:30 PM >> *To:* Sumo project User discussions >> *Subject:* Re: [sumo-user] Taxistands >> >> The latest development version (starting with v1_17_0-575) contains >> experimental support for taxi stands. >> See https://sumo.dlr.de/docs/Simulation/Taxi.html#idle_behavior >> You can obtain a test case at >> https://sumo.dlr.de/extractTest.php?path=sumo/devices/taxi/idling/taxistand/10persons >> >> regards, >> Jakob >> >> Am Fr., 26. Mai 2023 um 12:09 Uhr schrieb Sharifullah Asady < >> [email protected]>: >> >>> Hello Dear, >>> >>> >>> I want to simulate taxis using SUMO. As we know that taxis have specific >>> taxistands to park and wait for customer requests and also after dropping >>> the customer they must return back to their taxistand. So, there is any >>> possibility to have taxistands. >>> >>> >>> Maybe it is possible to use ParkingAreas as taxistands but then how >>> guide taxis to go to the parkingareas after they drop the customer and also >>> currently, we have to define a duration or time that the vehicle should >>> stay in the parking area but for taxis we don't know the time as it is >>> dependent on requests arrival. >>> >>> >>> Many thanks for the suggestions and feedback. >>> >>> >>> best regards, >>> >>> Sharif >>> _______________________________________________ >>> 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
