On 7/20/14 7:44 PM, Titus Rakkesh wrote:
> I tried by removing qutoes and trying,
>
> traci.trafficlights.
> setCompleteRedYellowGreenDefinition('1307347941',existingTrafficSignal);
>
> But I get the same error as,
>
> Attempt to reference field of non-structure array.
I'm afraid I don't know anything about the matlab interface, but was
referencing the python interface. Hopefully someone will be able to give
useful advice...
- Tom
>
> 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);
>
>
>
>
> On Mon, Jul 21, 2014 at 3:57 AM, Thomas Lockhart
> <[email protected] <mailto:[email protected]>>
> wrote:
>
> On 7/20/14 11:39 AM, Titus Rakkesh wrote:
> > 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
> >
> Take "existingTrafficSignal" out of quotes in the call to
> setCompleteRedYellowGreenDefinition(). It needs to be passed as a
> variable (which you have already set in your call to
> getCompleteRedYellowGreenDefinition()), not as a string.
>
> hth
>
> - Tom
>
>
> ------------------------------------------------------------------------------
> 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]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
>
------------------------------------------------------------------------------
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