Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Inclination and KraussPS

Hello,
at the moment, the only way to use slope is by building a consistent elevation model for the whole network. 
Adding an attribute to override elevation is not yet implemented but it is something we do want to do (https://github.com/eclipse-sumo/sumo/issues/12160)
If you set carFollowModel="KraussPS", the elevation will be included. You do not need to set maxAccelProfile. If you do, you also need to set `speedTable` to the same number of values as each value in maxAccelProfile is matched to the same index in speedTable (with interpolation in between points). see https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#details_on_using_speedtable

regards,
Jakob

Am So., 1. Nov. 2026 um 14:32 Uhr schrieb Pedro Oliveira via sumo-user <sumo-user@xxxxxxxxxxx>:
Good afternoon,

I am developing a simulation that includes some uphill sections:
https://maps.app.goo.gl/DDAHqMm8kkDGXGc97
https://maps.app.goo.gl/rjDotYuDkfra29qx8 (the latter is on an approach to a traffic light, which limits the acceleration of trucks).
As I understand it, in SUMO, the gradient (slope) of an edge is determined by the elevation of its nodes. I would like to know if there is an alternative way to define the edge gradient, as adjusting node elevations affects other roads where the gradient is irrelevant.
Additionally, if I set the Car-Following Model to `kraussPS` in the `vType` definition, is the effect of the gradient automatically included in the simulation, or is further information—such as `maxAccelProfile`—required?
In this regard, I would like to clarify how these data points are structured:
`maxAccelProfile="0 2.6, 27.78 2.0"`
`maxAccelProfile="0 2.6, 22.22 0.6"`
It appears that the value on the left represents speed, while the value on the right represents acceleration. Is it also necessary to define anything in the `speedTable`?

Sds,

Pedro Oliveira
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top