The trivial solution would be to run a simulation one or more steps into
the future and use that as an estimate.
However, you can also use traci to retrieve the geometry of the turning
lanes and then compute the position along that length.
futureLanes =
traci.vehicle.getBestLanes(vehID)[traci.vehicle.getLaneIndex(vehID)][-1]
x,y,z = traci.simulation.convert3D(
   traci.lane.getEdgeID(laneID), int(laneID[-1]), offset))

Note, that you need to compute laneID and offset by advancing along
futureLanes until the intended distance is covered.

regards,
Jakob

Am Sa., 6. Apr. 2019 um 07:26 Uhr schrieb Bilgram <[email protected]>:

> We are a university group doing a project on modeling and verification of
> autonomous vehicles in intersection. To do this we need to calculate the
> future positions of a vehicle. This is easy when going straight as we only
> need to update the x or the y coordinate of the vehicle according to their
> speed. However, when turning the function is non-linear and therefore
> harder
> to calculate. We were wondering if a function for calculating the position
> of the vehicle exists that we can use?
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to