For that you would have to check whether the vehicle is on the edge behind
the junction using traci.vehicle.getRoadID() (after retrieving the sequence
of edges and junctions via sumolib.) To know whether the vehicles is
completely past (including the back of the vehicle) you also need to use
traci.vehicle.getLanePosition().
regards,
Jakob

PS: this type of questions should be posted to [email protected]
rather than to sumo-devel

2015-05-21 22:19 GMT+02:00 Nirupama Ravi <[email protected]>:

> Hi Jakob,
>
> Thank you for your response!
> I am looking for a command in Traci server. Please let me know.
>
> Thanking you,
>
> Nirupama
>
> On Thu, May 21, 2015 at 10:08 AM, Nirupama Ravi <[email protected]>
> wrote:
>
>> Hi Jakob,
>>
>> Thank you so much!
>> I assume that there is an API also to know if the vehicle has exited the
>> junction.
>>
>> I appreciate your help.
>>
>> Regards,
>> Nirupama
>>
>> On Mon, May 18, 2015 at 5:22 AM, Jakob Erdmann <
>> [email protected]> wrote:
>>
>>> use traci.route.getEdges() to get list of edges. Then use sumolib
>>> http://sumo.dlr.de/wiki/Tools/Sumolib to get the junction:
>>> net.getEdge(EDGEID).getToNode()
>>>
>>> regards,
>>> Jakob
>>>
>>> 2015-05-16 23:14 GMT+02:00 Nirupama Ravi <[email protected]>:
>>>
>>>> Hi,
>>>>
>>>> I am wondering if there is a command to detect junctions in a given
>>>> route.
>>>>
>>>> For example, if a vehicle id is specified and it's route id is provided,
>>>> how can I get all junctions in the route?
>>>>
>>>> Thanks,
>>>> Nirupama.
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> sumo-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/sumo-devel
>>>>
>>>
>>>
>>
>>
>> --
>>
>> Nirupama.
>>
>
>
>
> --
>
> Nirupama.
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
sumo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Reply via email to