Dears,
     I am having a code segement as,

existingTrafficSignal =
traci.trafficlights.getCompleteRedYellowGreenDefinition('1307347941');

if no > 0
       %some logic here
    else

traci.trafficlights.setCompleteRedYellowGreenDefinition('1307347941','existingTrafficSignal');
end


But when running at "
traci.trafficlights.setCompleteRedYellowGreenDefinition('1307347941','existingTrafficSignal');"
error coming as,


Attempt to reference field of non-structure array.

Error in traci.trafficlights.setCompleteRedYellowGreenDefinition (line 15)
len = 1+4 + 1+4+length(tls.subID) + 1+4 + 1+4 + 1+4 + 1+4; % tls parameter

Error in UCSC_Modified_Traffic (line 50)

traci.trafficlights.setCompleteRedYellowGreenDefinition('1307347941',existingTrafficSignal);

Pls assist how we can sort this out.

Thanks,
Rakkesh
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to