Hi Xiaolin,
answers are inline below.

Am 06.07.20 um 21:59 schrieb Cai, Xiaolin (X.C.):
> Is there any way to have SUMO/Traci access the vehicle acceleration
> value that is going to be implemented in the next time step?

Currently not, you can only access the acceleration that was applied in
the last step. But you can of course modify the position at the begin of
the next step.

>
 I’m trying
> to build a co-simulation environment to have another software to check
> whether the acceleration will be ‘viable’ before the SUMO vehicle
> implements the acceleration value and modify it to a different value if
> it’s not viable. Where should I look in if I need to add it in the code?

Not all of our car following models are acceleration based, so probably
the best you could do is to implement a car following model yourself by
extending one of the existing with the additional check for your wished
maximum acceleration, see
https://sumo.dlr.de/docs/Developer/How_To/Car-Following_Model.html.
Dynamic modification would still be possible using traci and the generic
parameter interface.

For an easy example, have a look at
https://github.com/eclipse/sumo/blob/master/src/microsim/cfmodels/MSCFModel_KraussPS.cpp

Best regards,
Michael

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to