Hi guys,
Yes, turned out I followed the same thing.
However, apart from traci.vehicle.getParameter('V_main','device.battery.energyConsumed')
I also found another command - traci.vehicle.getElectricityConsumption('V_main') which gave me a close result to the first one, but not exactly the same. So, I am wondering why this difference is seen.
I have another query. So, when I noticed that the fuel consumed when the battery 'device' is used. Similarly when it is not used the electricity consumed is zero. This means adding battery is making the vehicle a Battery Electric Vehicle. I am just wondering
if there is any way to make the vehicle a Hybrid Electric Vehicle, which uses both battery and fuel?
PSK
From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Harald Schaefer <fechsaer@xxxxxxxxx>
Sent: Tuesday, July 28, 2020 3:32 AM
To: sumo-user@xxxxxxxxxxx <sumo-user@xxxxxxxxxxx>
Subject: 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
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
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?
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
|