Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] problem with charging station value retrieval with libsumo

Hi,

 

you need the latest release (v1.21) to use this function. It was only introduced in June this year. Please keep in mind that the online documentation refers to the current development state. The documentation of the releases is included in the release download.

 

Best regards,

Mirko

 

 

 

 

-----Original-Nachricht-----

Betreff: [sumo-user] problem with charging station value retrieval with libsumo

Datum: 2024-10-10T16:10:35+0200

Von: "Rehab Shahin via sumo-user" <sumo-user@xxxxxxxxxxx>

An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>

 

 

 

Hi,
 
I'm writing a python script where I use libsumo to retrieve some attributes of a charging station.
unfortunately, when I try to retrieve the value of the charging power of a charging station using:
 
libsumo.chargingstation.getChargingPower(cs_id)
 
it runs into the following error:
data.charging_power = libsumo.chargingstation.getChargingPower(cs_id)
AttributeError: type object 'chargingstation' has no attribute 'getChargingPower'
 
Is there an alternative way to retrieve/change the value during simulation?
 
Thanks,
Rehab
 
 
Rehab Shahin
Research Engineer ‑ Transport Modelling and Simulation
rehab.shahin@xxxxxxxxxx
+44(0) 20 3514 1170  |  +1 (929) 265‑5193
LinkedIn
Twitter
YouTube
Hadean Awarded King's Award for Enterprise
Recipient of this year's
King's Awards for Enterprise
Innovation

This e-mail is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have received it by mistake please let us know and delete it from your system. E-mails are not secure and cannot be guaranteed to be error-free as they can be intercepted, amended, lost or destroyed, or contain viruses. 
Hadean Supercomputing Ltd, is registered in England with number 09808169 and has its registered office 9 Appold St, London EC2A 2AP, UK

 



Back to the top