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

RealisticEngineModel #6967

Open kledom opened 4 years ago

kledom commented 4 years ago

I've come to see that a RealisticEngineModel (src/microsim/engine/RealisticEngineModel.cpp) was recently integrated into sumo. I think the origin of this was the plexe-veins projected, were the engine was used to simulate platooning behaviors. If I'm not mistaken the model is tightly integrated with the Cruise Control Car Following Model. This feels somehow wrong, because in my opinion the engine model is also useful for many other purposes. For example, I'll like to use reinforcement learning to train an optimal gear switching policy.

Is it possible to use the EngineModel with different CarFollowingModels? Are the plans for exposing the engine state (e.g. current gear) via TraciApi?

namdre commented 4 years ago

The current state of the code reflects the bare minimum to get Plexe working with the standard release of SUMO. Our intention is to make the engine models available for other carFollowModels eventually. Right now this isn't possible. Once that is accomplished, traci access via vehicle.getParameter("engine.rmp") or similar would be easy to add.