[
Date Prev][
Date Next][
Thread Prev][Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Using TraCI for parking information
|
Hi Rohan,
there is no such TraCI command, that's why it does not work. I think you wanted to write something like:
if int(traci.vehicle.getParameter(vehID, "parking.rerouteCount") > 0:
See the documentation.
I think we don't record the search time atm.
Best regards,
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Using TraCI for parking information
Datum: 2025-02-07T07:50:19+0100
Von: "Rohan Verma via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
Dear community,
I am using TraCI to obtain the rerouting status of the vehicle using the following: if traci.parking.rerouteCount(veh_id) > 0:.
This gives an error that module 'traci' has no attribute 'parking'
Kindly suggest what is the correct way to use this.
Also, I want to obtain the search time for the vehicle (the time when the vehicle fails to get parking till it finds alternative parking) during the simulation. Is this the correct way to do it? Is there another way this can be done?
Any help is appreciated.
Thanks and regards,
Rohan