Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Inquiry : Retrieve all traffic lights between source and destination for a given vehicle

Namaste,

I have the following requirement.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Requirement:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Given vehicleId, I want to know the following things
Input: vehicleId
Output: List [ (traffic-signal1, lane, state-of-signal), (traffic-signal2, lane, state-of-signal), ..................(traffic-signal-n, lane, state-of-signal) ]
Current api: getNextTLS(self, vehicleId)


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Problem:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The output of the above api getNextTLS() is not returning the complete list of traffic signals between the source and destination of the vehicle.
Many traffic signals are skipped in the returned list.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Question:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
How to retrieve the complete ordered list of traffic signals for a given vehicle following a particular route?
How to know which lane the vehicle will go on the specified edge in the current route it is following?
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please advise on the above problem.


Regards,
Sheshadri K R

+91-9845213149


Back to the top