Hi,
I’ve been having a few problems with Traci lately. I have a few questions:
1)
Parking capacity
I’m trying to access the capacity of parking spaces in TraCI. I’ve downloaded the latest development version from SUMO at the following link:
http://sumo.dlr.de/daily/sumo-msvc12x64-git.zip
I used the following code to try to access the capacity of a parking area with id
"ParkingArea1/20to1/19":
traci.simulation.getParameter("ParkingArea1/20to1/19", "parkingArea.capacity")
But I get the following error:
traci.exceptions.TraCIException: Parameter 'parkingArea.capacity' is not supported.
Am I doing the parameter call wrongly? Or generally, do I need to download the source code for the latest development version of SUMO and build it to get access to the latest features? (Rather than link download above)
2)
Generic Parameter calls
I’ve tried to access generic parameters of entities in SUMO, via the
getParameter command, but I’ve only been getting empty string responses. For example, I’ve tried to access the speed of a vehicle using the following command:
traci.vehicle.getParameter("vehicle_id_1", "speed")
But the response is an empty string – I’ve tried to retrieve other parameters such as position and I get the same response.
Is there something wrong with the above command?
Many thanks,
Xavier