Hi, I'm using libsumo on python. I'm trying to read the program of a traffic light by doing:
logic = libsumo.trafficlight.getCompleteRedYellowGreenDefinition(tl) The value in "logic" is a SwigPyObject: <Swig Object of type 'std::vector< libsumo::TraCILogic,std::allocator< libsumo::TraCILogic > > *' at 0x0000022F15270270> But this doesn't seem to have any of the methods in libsumo.trafficlight.Logic (i.e. currentPhaseIndex, phases...). It only has: acquire, append, disown, next, own. How can I access the Logic structure? Similarly for libsumo.trafficlight.Phase. Thanks, Didac [Immense Simulations Limited]<https://htmlsig.com/t/000001D1FAJA> [https://s3.amazonaws.com/htmlsig-assets/spacer.gif] [Twitter]<https://htmlsig.com/t/000001DMCGQH>[Facebook]<https://htmlsig.com/t/000001DRXRE6>[LinkedIn]<https://htmlsig.com/t/000001CVTDTW> [https://s3.amazonaws.com/htmlsig-assets/spacer.gif] [https://s3.amazonaws.com/htmlsig-assets/spacer.gif] [https://s3.amazonaws.com/htmlsig-assets/spacer.gif] Didac Busquets / Co-Founder and Chief Scientist didac.busqu...@immense.ai<mailto:didac.busqu...@immense.ai> / +44 (0) 7919 076 981 [https://s3.amazonaws.com/htmlsig-assets/spacer.gif] Immense Simulations Limited Studio J2, Witan Studios, 279 Witan Gate, Central Milton Keynes, MK9 1EJ w3w: ourselves.depend.backpack<:%20https:/map.what3words.com/ourselves.depend.backpack> www.immense.ai<https://www.immense.ai/> [https://s3.amazonaws.com/htmlsig-assets/spacer.gif] This e-mail including any attachments is intended for the addressee only. It is private, confidential and may be covered by legal professional privilege. If you have received this message in error please notify us immediately and remove it from your system. Immense Simulations Limited is a Company registered in England and Wales No. 09782647. Registered offices: International House, 24 Holborn Viaduct, City Of London, London, England, EC1A 2BN.
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user