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
  • From: "Padisala, Shanthan Kumar" <padisala.1@xxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 27 Jul 2020 22:30:41 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=buckeyemail.osu.edu; dmarc=pass action=none header.from=buckeyemail.osu.edu; dkim=pass header.d=buckeyemail.osu.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YYX27MMtX0PJNQUIlX7DZ+Q5u12tPY7Cd6rkNOUrknI=; b=QirnBBROIU/h7l6Azlu4Rwm7m9EECojQ4mDfKm8y8eKAPf30Gxy6S9WcyjePwqkDTByCOqMjQTIQ3eK4GIyCEf1u2op9GOnoxPkclwG1dNsRKnAVW7ki2l3Ug0wmalDzYXo7427BkDGZD4+zheV/w/50nzmot8dhYd5v/4cnWvk9ccmDgsZSxTHI3zqj6TBINf9m5yBm5mXx+qZtzmqrAFA4MaUXMnyz1UPhiBHJyAUlUQybzl14CmGJeRVH6sqR3aI6I40bIYlRuaDBRzSe8zK+BrOWZqCirxCCODivjWs4LzBYWbZH53eTugWKdtT4ZNDZ25LBTSeVJDW5Bkq8uQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fnxPm/llHVERymyUVAeM7BNmhqP8gd//SDY7GYWwxVPagipsmgv+u4wWrJuog72Di61+Guq8lt9gqhNGG64Eg3gzZjCXMoWmoezII/W5zDpoBGPo9/5Wbve3CZ4DtHM+HUSEVdnNrePmZiDQpqQzEqrMYKIQeRnUhO6VjUIvixeelDt5cg/hS7b8Dhr/SbZz2LS3Ziu0iEoK7dS+pNAw0E9lkbXF6f3wIJhddfYNKDlxcLybm1MeaY+RBbq/Lfw0Xb6VYOVmlp/UyNt+HN15MBiHhUQkMd8EbdEp+vocH91Zvpr4SfQbb5r3n6CGiFWNFK6P49GPBdNQqpH4MRSTpA==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWY8k3nnAARalfqkWT8y2TDK7EBKka7O3AgADfXVqAADVljw==
  • Thread-topic: Battery and Power-train integration into SUMO

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
 

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


Back to the top