Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Battery and Power-train integration into SUMO

Hi,


from python the calls look like

tests/complex/traci/vehicle/vehicle/runner.py:        traci.vehicle.getParameter(electricVeh, "device.battery.energyConsumed"),
tests/complex/traci/vehicle/vehicle/runner.py:        traci.vehicle.getParameter(electricVeh, "device.battery.energyCharged"),
tests/complex/traci/vehicle/vehicle/runner.py:        traci.vehicle.getParameter(electricVeh, "device.battery.actualBatteryCapacity"),
tests/complex/traci/vehicle/vehicle/runner.py:        traci.vehicle.getParameter(electricVeh, "device.battery.maximumBatteryCapacity"),
tests/complex/traci/vehicle/vehicle/runner.py:        traci.vehicle.getParameter(electricVeh, "device.battery.chargingStationId"),
tests/complex/traci/vehicle/vehicle/runner.py:        traci.vehicle.getParameter(electricVeh, "device.battery.vehicleMass"),


Greetings, Harald


Am 28.07.20 um 08:14 schrieb Melanie.Weber@xxxxxx:

Hi,

 

I do not know exactly what you want, but maybe you find the information here:

https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html#device_and_lanechangemodel_parameter_retrieval_0x7e

Here are the TraCi devices for battery

·  device.battery.energyConsumed

·  device.battery.energyCharged

·  device.battery.actualBatteryCapacity

·  device.battery.maximumBatteryCapacity

·  device.battery.chargingStationId

·  device.battery.vehicleMass

 

Kind Regards,

Melanie

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Padisala, Shanthan Kumar
Gesendet: Montag, 27. Juli 2020 21:14
An: Sumo project User discussions
Betreff: Re: [sumo-user] Battery and Power-train integration into SUMO

 

Hello,

 

Thank you for the resources. Looks like these have to be defined directly in the routes file. But is there any way to define these using TraCI commands, given a route file that does not contain these definitions?

 

PSK


From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Melanie.Weber@xxxxxx <Melanie.Weber@xxxxxx>
Sent: Monday, July 27, 2020 1:58 AM
To: sumo-user@xxxxxxxxxxx <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Battery and Power-train integration into SUMO

 

Hi,

 

see here for how to implement a new device:

https://sumo.dlr.de/docs/Developer/How_To/Device.html#msdevice_battery

 

here are some resources for battery:

https://sumo.dlr.de/docs/Models/Electric.html

https://sumo.dlr.de/docs/sumo.html#output

--battery-output <FILE>

Save the battery values of each vehicle

--battery-output.precision <INT>

Write battery values with the given precision (default 2); default: 2

 

Kind Regards,

Melanie

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Padisala, Shanthan Kumar
Gesendet: Montag, 27. Juli 2020 05:53
An: sumo-user@xxxxxxxxxxx
Betreff: [sumo-user] Battery and Power-train integration into SUMO

 

Hi everyone,

 

I am trying to integrate Battery Models into SUMO. Can I get some leads and resources on how to do this?

 

Thank you,

PSK


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top