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 <[email protected]>
Sent: Monday, July 27, 2020 3:14 PM
To: Sumo project User discussions <[email protected]>
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: [email protected] <[email protected]> on behalf 
of [email protected] <[email protected]>
Sent: Monday, July 27, 2020 1:58 AM
To: [email protected] <[email protected]>
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<https://urldefense.com/v3/__https://sumo.dlr.de/docs/Developer/How_To/Device.html*msdevice_battery__;Iw!!KGKeukY!ly72qKYZYYndx8wZZ1NYCVb4Re2SZt2uPMwP8HAr42JOu75rq7ncIhtskgwCRQ494czgzhfxOO8$>



here are some resources for battery:

https://sumo.dlr.de/docs/Models/Electric.html<https://urldefense.com/v3/__https://sumo.dlr.de/docs/Models/Electric.html__;!!KGKeukY!ly72qKYZYYndx8wZZ1NYCVb4Re2SZt2uPMwP8HAr42JOu75rq7ncIhtskgwCRQ494czgNG7rmTU$>

https://sumo.dlr.de/docs/sumo.html#output<https://urldefense.com/v3/__https://sumo.dlr.de/docs/sumo.html*output__;Iw!!KGKeukY!ly72qKYZYYndx8wZZ1NYCVb4Re2SZt2uPMwP8HAr42JOu75rq7ncIhtskgwCRQ494czgUFdUh7I$>

--battery-output 
<FILE><https://urldefense.com/v3/__https://sumo.dlr.de/docs/Basics/Notation.html*referenced_data_types__;Iw!!KGKeukY!ly72qKYZYYndx8wZZ1NYCVb4Re2SZt2uPMwP8HAr42JOu75rq7ncIhtskgwCRQ494czgLl9axBQ$>

Save the battery values of each vehicle

--battery-output.precision 
<INT><https://urldefense.com/v3/__https://sumo.dlr.de/docs/Basics/Notation.html*referenced_data_types__;Iw!!KGKeukY!ly72qKYZYYndx8wZZ1NYCVb4Re2SZt2uPMwP8HAr42JOu75rq7ncIhtskgwCRQ494czgLl9axBQ$>

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



Kind Regards,

Melanie



Von: [email protected] [mailto:[email protected]] Im 
Auftrag von Padisala, Shanthan Kumar
Gesendet: Montag, 27. Juli 2020 05:53
An: [email protected]
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
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to