[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
|
Re: [sumo-user] Electric Vehicle Behaviour
|
HI Sven,
can you specify clearly what your requirements are?
- Currently (unfortunately?) the "break down" feature due to an
empty battery is tied to the stationfinder
device. This device lets a vehicle look automatically for
a close charging station and reroute to it.
Alternative: Query the actual battery capacity (see below)
regularly and set a long lasting stop for the vehicle using traci.vehicle.setStop
- Charging stations are modeled as a special kind of stop, so
you can control which vehicle should charge by defining stops
(and possibly modifying the vehicle route and stops using
TraCI).
- AFAIK however you cannot disable charging when you still have
to serve the stop because people board there (physically
overlapping bus stop and charging station). Nothing complicated
to implement for anybody a little familiar with the code
though...
Alternative: You can query the actual battery capacity at the
stop begin (traci.vehicle.getParameter(veh,
"device.battery.capacity")), store it in your script and set the
same value for every time step the stop lasts with
traci.vehicle.setParameter
Best regards,
Mirko
Am 28.07.2026 um 14:04 schrieb Sven via
sumo-user:
Dear
SUMO-Community,
I
have asked for help about my electric-bus simulation projekt
here before, and thanks to the help I recieved I have made lots
of progress.
I do
however have the feeling of running into some limitations. As my
goal is to extract realistic data about the charging behaviour
of e-buses, id like to be able to control when buses are
charging.
Currently
they charge whenever positioned at a charging station, go above
their battery capacity, and do not stop when running empty. All
of which is not ideal for my scenario.
I
have started to look into TraCl for addressing the issues, but i
am not quite sure if it is even possible.
Therefore i would be very grateful if someone could give me some
pointers where to look or what to expect.
Best regards
Sven
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user