Hello, - getControlledLanes will give you the mapping from all the incoming lanes of the intersection that are controlled by the traffic light. Since a lane may have connections to multiple outgoing edges this information may not be sufficient in all cases (i.e. when there is a dedicated signal for left turns without a dedicated turning lane). - getControlledLinks should give you all the information you need including the internal lane IDs (see http://sumo.dlr.de/wiki/TraCI/Traffic_Lights_Value_Retrieval#Structure_of_compound_object_controlled_links). Note, that each signal index may control multiple connections although by default, netconvert generates a 1-to-1 mapping.
I notice that we don't even have a test for this function from the C++ TraCI client so you have most likely discovered a bug. I'll let you know when this is fixed. regards, Jakob 2017-03-08 17:35 GMT+01:00 Erik Newton <[email protected]>: > Hi Sumo, > I am trying to interface an external 3D rendering application to SUMO and > extract traffic light information, using the C++ TraCI API. > > In order for an end user to configure a connection between a SUMO light > state and a light object in our 3D scene it would be useful to obtain at > initialisation the list of internal connections for each traffic light > controlled junction. > > E.g. The intLanes property of the junction from the net file. > > I have tried using getControlledLanes and this returns the list of > incLanes, which I think are the external approach lanes to the junction. > > I tried (as a guess) using getControlledLinks, but this fails inside > checkReadSafe. > > Some my question is will getControlledLinks return the list of strings from > the incLanes property? > If NO, is there any other API call which would? > If YES, then any idea why it might not be working? > > Kind regards, > Erik > > > -- > Erik Newton > Model Integration Engineer > rFpro > > e: [email protected] > w: http://www.rfpro.com > > This e-mail and any files transmitted with it are private and confidential. > If you have received this email in error please notify the sender > immediately and delete this e-mail from your system. The recipient should > check this email and any attachments for the presence of viruses. rFactor > Pro accepts no liability for any damage caused by any virus transmitted by > this email. rFactor Pro is the trading name of Kangaloosh Limited, > registered in England No. 06427019. > ------------------------------------------------------------ > ------------------ > Announcing the Oxford Dictionaries API! The API offers world-renowned > dictionary content that is easy and intuitive to access. Sign up for an > account today to start using our lexical data to power your apps and > projects. Get started today and enter our developer competition. > http://sdm.link/oxford > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
