Skip to main content

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

You must be using an older sumo version because this is working with version 1.2.0. In older versions, only the tls within a limited range were returned.

regards,
Jakob

Am Fr., 10. Mai 2019 um 10:15 Uhr schrieb Sheshadri Kalkunte Ramachandra <sheshadrik@xxxxxxxxxx>:
Namaste,

Here are the links which refers to the files which are used to reproduce the issue.

Route contains about 5 vehicles, map is about 70MB.
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sumo-small-net.xml

sumo-rou.xml

testconfig.sumocfg

Python Script to reproduce the behavior (Sumo_traffic_tls)
https://www.dropbox.com/s/nidy3tn0oo4r13m/Sumo_traffic_tls.py?dl=0


------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please run the python code, to reproduce the behavior. (file is also attached herewith)

When we ran the getNextTLS() api, we weren't able to get the traffic signals.


From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: 10 May 2019 02:58
To: Sumo project User discussions
Subject: Re: [sumo-user] Inquiry : Retrieve all traffic lights between source and destination for a given vehicle
 
Please provide a *minimal* example input (network and traci script) that demonstrates missing tls in getNextTLS.

Am Do., 9. Mai 2019 um 13:55 Uhr schrieb Sheshadri Kalkunte Ramachandra <sheshadrik@xxxxxxxxxx>:
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

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
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
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top