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.57k stars 1.43k forks source link

lanechange model problem #11787

Closed Viloa13 closed 2 years ago

Viloa13 commented 2 years ago

Hi,

I'd like to be able to control the lane change in the sumo by turning the corner. Can Sumo add a Vehicle dynamics model? Or how does the sumo reflect the change in wheel corners when changing lanes? Does it need to be implemented in conjunction with other simulation software such as MATLAB and Simulink?

hope u can help!

thank u for ur patience.

SUMO-version: 1.13.0

operating system: Windows

namdre commented 2 years ago

SUMO does not include a driving dynamics simulation (i.e. with steering angle, slippage etc.) You can achieve full remote control over dynamics via TraCI at different granularites (traci.vehicle.changeSublane, traci.vehicle.moveToXY) .

Can you describe your use case in more detail?

Viloa13 commented 2 years ago

SUMO does not include a driving dynamics simulation (i.e. with steering angle, slippage etc.) You can achieve full remote control over dynamics via TraCI at different granularites (traci.vehicle.changeSublane, traci.vehicle.moveToXY) .

Can you describe your use case in more detail?

My use case mainly used DRL algorithms to control vehicle lane changes in SUMO. I have now achieved lane changes via TraCI, but I saw that in SUMO lane changes are instantaneous and are done sideways from lane to lane. I wonder if sumo can change lanes by controlling the corner of the vehicle. If sumo can't, can I combine SUMO and Vehicle dynamics in another simulation software such as Simulink to control lane changes?

namdre commented 2 years ago

only the fast default model has instant lane changing. There are two alternative modes you can activate for gradual lane changing: https://sumo.dlr.de/docs/Simulation/SublaneModel.html

Viloa13 commented 2 years ago

only the fast default model has instant lane changing. There are two alternative modes you can activate for gradual lane changing: https://sumo.dlr.de/docs/Simulation/SublaneModel.html

Ok, I've set up SublaneModel. The last question, is this gradual lane change just a visual effect? If not, what controls were used to change lanes? Is it possible to calculate the deflection angle between the front and center lines when changing lanes?

namdre commented 2 years ago

it's not just a visual effect, the vehicle occupies space on both lanes during the lanechange at the change itself lasts longer to finish. The angle is computed based on old a new vehicle positions rather than on a steering wheel model. You can use fcd-output to log the angle.