eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.58k stars 1.44k forks source link

Use traci.vehicle.setchargingStationStop to find that the vehicle only stops until it does not charge #15815

Open koharris opened 1 day ago

koharris commented 1 day ago

I found that when using traci.vehicle.setchargingStationStop, the vehicle stopped charging at the specified point, but it did not charge. Since my charging station is connected to a parkingArea, it does not automatically stop to the parking space when parking at the charging station, as shown below, I do not know whether it is the cause of this problem.

屏幕截图 2024-11-29 164905

SUMO-version:1.21

operating system:win 11

koharris commented 1 day ago

In fact, I'm using traci. Vehicle. SetChargingStationStop (VEHICLE_ID nearest_station, duration = STOP_DURATION, flags = 1) when the flags to set to 1, Vehicles can be recharged now, but it still will not stop to parkingArea subordinates space, whether you need combined with traci. Vehicle. SetParkingAreaStop function used in order to realize my idea? 屏幕截图 2024-11-29 175926

m-kro commented 1 day ago

Yes that's more or less the problem (stop on road of off the road and the corresponding default settings). We'll think about changing the settings in this regard.

koharris commented 22 hours ago

There are also related questions about the charging power of the vehicle. In the setting of the vType of my vehicle, I set it

param key="device.battery.maximumChargeRate" value="80000" param key="device.stationfinder.maxChargePower" value="80000"

I also set power="80000.00 "in the charging station parameter in add.xml, but in the gui interface I get the image below, currently charging [Wh]=21.11, maximum charge rate [W]=22.22, so what I want to know is whether there is a problem, and what is the priority of these parameters in use? 屏幕截图 2024-11-29 201740