Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Charging data using TraCI subscriptions

see https://sumo.dlr.de/docs/FAQ.html#how_do_i_upgrade_sumo
https://sumo.dlr.de/docs/FAQ.html#how_do_i_import_traci_or_sumolib_in_my_own_python_script

Am Mi., 12. Aug. 2020 um 19:20 Uhr schrieb Padisala, Shanthan Kumar <padisala.1@xxxxxxxxxxxxxxxxxxx>:
Dear Jakob,

I just checked that the SUMO_HOME environment variable was not set up on my system. I went ahead and created that. However, I am still getting the same error message. It would be great if you could give me some resources on updating to the latest build without uninstalling SUMO from my system. I am using Windows 10 OS.

Thank you,
PSK


From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Wednesday, August 12, 2020 11:25 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Charging data using TraCI subscriptions
 
Your traci script is not using the latest development version. Most likely your value of SUMO_HOME points to an older SUMO version.

Am Mi., 12. Aug. 2020 um 16:48 Uhr schrieb Padisala, Shanthan Kumar <padisala.1@xxxxxxxxxxxxxxxxxxx>:
Dear Jakob,

I have attached the error message that is displayed when I tried to use subscribeParameterWithKey.

Thanks and regards,
PSK

From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Monday, August 10, 2020 8:21 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Charging data using TraCI subscriptions
 
It would be helpful if you could report the symptoms of your problem (i.e error messages).

Am Fr., 7. Aug. 2020 um 02:55 Uhr schrieb Padisala, Shanthan Kumar <padisala.1@xxxxxxxxxxxxxxxxxxx>:
Dear Jackob,

I am using the latest build. However, I am unable to use this command. May I know where I might be going wrong?

PSK

From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Thursday, August 6, 2020 9:37 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Charging data using TraCI subscriptions
 
In the latest development version you can call

traci.vehicle.subscribeParameterWithKey(vehID, 'device.battery.actualBatteryCapacity')

regards,
Jakob

Am Do., 6. Aug. 2020 um 05:57 Uhr schrieb Padisala, Shanthan Kumar <padisala.1@xxxxxxxxxxxxxxxxxxx>:
*** Clarification to my previous question ***

I am currently using the command - traci.vehicle.getParameter('Vehicle', 'device.battery.actualBatteryCapacity')  to get the information on the battery capacity at the current time step. However, I would like to use TraCI subscriptions for the same task. 

I understand that using TraCI subscriptions I can get data of the vehicle like  speed using the commands - traci.vehicle.subscribe('Vehicle', (tc.VAR_ROAD_ID)) and traci.vehicle.getSubscriptionResults('Vehicle'). So now basically I would like to use the same logic to get data from a device- battery.

Thank you,
PSK

From: Padisala, Shanthan Kumar
Sent: Wednesday, August 5, 2020 6:53 PM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Charging data using TraCI subscriptions
 
Dear Jakob,

Greetings!

I am trying to use subscriptions to get the charging data (energy input or any other relevant data) of an electric vehicle when it is being charged at the charging station. But I am unable to figure out the TraCI subscription commands that are used to do this. Could you kindly help me out with 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
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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