Hi,
So I guess I figured out how to do that using TraCI. But now I have encountered a new problem-
I basically used the below-listed commands. When I used the command traci.vehicletype.setEmissionClass('Type_main','Energy/unknown')
to switch on the battery in the system, I am getting almost similar values from these both results. But when I have not used the above command to switch on the battery, i.e., when the battery is in switch off mode the first result is always zero (which
is expected), but the second result is still giving out certain value.
print(traci.vehicle.getElectricityConsumption('V_main'))
print(traci.vehicle.getParameter('V_main','device.battery.energyConsumed'))
I found this to be interesting and I am now curious to figure out the exact difference between both. I would appreciate it if anyone comments on this.
Regards,
PSK
From: Padisala, Shanthan Kumar <padisala.1@xxxxxxxxxxxxxxxxxxx>
Sent: Monday, July 27, 2020 3:14 PM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: 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
|