eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.52k stars 1.42k forks source link

Update documentation with current device.battery parameters #15564

Open afreymann opened 3 days ago

afreymann commented 3 days ago

I am making a simulation scenario with different electric vehicles (EVs) driving an a map. Every EV has different attribut values. To set EV specific parameters I want to use the traci.vehicle.setParameter(...) and traci.vehicle.getParameter(...).

However, it is hard to find the current keys "device.battery. ..." which are the right one. There are different informations within the SUMO documentation.

Which parameters are the right one for the EV, which take effect to the EV during driving?

Thanks!

SUMO-version: 1.20

operating system: Ubuntu 20

m-kro commented 3 days ago

Some of the parameters have been renamed and the documentation lags a bit behind. We will shortly update the pages so that you can find the current parameter names everywhere. Generally the updated parameter names start with "device.battery". This page still features a lot of the old parameter names (without "device.battery" prefix).

namdre commented 3 days ago

Currently, traci permits more battery device paramters for retrieval than for modification, which accounts for the difference in the two traci documentation pages. Hence, I would advise to generate the required vehicle types with a script that outputs an XML file rather than trying to set the values via TraCI.