Hello,
currently there is no simple interface for obtaining specific internal edges

1) If you can tolerate a simulation without internal edges you can just run
netconvert and sumo with the option --no-internal-links. The (logical)
length of normal edges is then adjusted to make the traveled distances come
out correct.

2) Using the traci command (driving) distance request you can get the
length of a route including internal edges. (
http://sumo-sim.org/wiki/TraCI/Simulation_Value_Retrieval#Command_0x83:_Distance_Request).
This should allow you to get the length of the internal edge between any
two given edges by setting start to the end of the first edge and end to
the start of the second edge.

3) If you need the IDs of internal edges you could parse the used edges for
each vehicle from the --netstate-dump output. However, vehicles should
drive extra slow to avoid skipping an edge. Then you may read the length of
these edges from the .net.xml.

(I realize that this approach is quite awkward and have opened some
tickets: http://sumo-sim.org/trac.wsgi/ticket/1322,
http://sumo-sim.org/trac.wsgi/ticket/1324.)

regards,
Jakob



2014-06-02 9:39 GMT+02:00 Christoph Rist <[email protected]>:

> Hi,
> i want to set the position of a vehicle along its route through TraCI.
>
> I have read all the edges of the route and the lengths of their lanes. The
> problem is, that sumo does not consider the internal lanes of a junction as
> part of a vehicle's route. So if I have a given driving distance from the
> start, I cannot set the vehicle seamlessly to that position.
> Is there an option to take the length of the internal edges into account?
> E.g. by obtaining the internal edges of a route?
>
> Regards,
> Christoph
>
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to