Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Error while running SUMO using Python

Do you refer to your previous question about displaying the current charge in the GUI or do you want to read it using TraCI? Please follow the link I gave you if it is about the GUI, otherwise call traci.vehicle.getParameter(vehID, "chargeLevel").

 

Best regards

Mirko

 

 

 

 

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

Betreff: Re: [sumo-user] Error while running SUMO using Python

Datum: 2024-08-08T14:02:01+0200

Von: "Parth Loya" <loya.parth@xxxxxxxxx>

An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>

 

 

 

I want to find the current charge of the battery of an electric vehicle during simulation run. Can you tell me how to do that? 

On Thu, Aug 8, 2024 at 12:56 PM Mirko Barthauer <m.barthauer@xxxxxxxxxxx> wrote:

Hi,

 

did you check that the sumocfg runs without errors when loaded directly in sumo? If it does, then you miss at least a traci.close() call (see example in documentation).

 

 Best regards

Mirko

 

 

 

 

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

Betreff: [sumo-user] Error while running SUMO using Python

Datum: 2024-08-08T07:35:28+0200

Von: "Parth Loya via sumo-user" <sumo-user@xxxxxxxxxxx>

An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>

 

 

 

Hi,
I am trying to run SUMO using python code. I am getting the following error - 
Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).
 
I am attaching my python script. Most of it is inspired from following github repository - https://github.com/ecetinturk/mqtt-ev-charging
 
Can you suggest why I am getting this error?
 
--
Regards,
Parth Loya
 

 


 
--
Regards,
Parth Loya

 



Back to the top