Hello Robbin, You are correct. The compound identifiert 0x0F is always followed by an int denoting the number of components. I've updated the wiki in section Atomar_Types to hopefully make this more clear. best regards, Jakob
2015-02-26 18:54 GMT+01:00 Robbin Blokpoel <[email protected]>: > Hello, > > I'm trying to understand the reply I receive from TRACI when I request > vehicle leader and distance (0x68). However, with the interpretation of the > answer I miss something I cannot explain with the wiki: > > > 104,0,0,0,2,50,55,15,0,0,0,2,12,0,0,0,2,50,53,11,64,54,-21,-125,-21,13,74,-24, > > Interpretation: > 104 = vehicle leader (0x68) > 0,0,0,2 = String length 2 > 50,55 = Vehicle ID = "27" > 15 = compound variable 0xF > 0,0,0,2, = ??? > 12 = String > 0,0,0,2 = String length = 2 > 50,53 = Leading Vehicle ID = "25" > 11 = double > 64,54,-21,-125,-21,13,74,-24 = a double variable containing the distance > > I assume the second 0,0,0,2 means that there are 2 objects in this > compound object. But the wiki page just says that the answer consists of a > String and Double. Is my assumption correct and does it hold for all > compound objects, except the ones described specifically on the compound > object section? (like 2D position) > > Regards, > Robbin Blokpoel MSc. > Traffic Engineering Researcher > T. +31 33 454 1731 | E. [email protected]<mailto: > [email protected]> > > Imtech Traffic & Infra > Basicweg 16 3821 BR Amersfoort | Postbus 2542 3800 GB Amersfoort > T. +31 (0)33 454 17 31 | M. +31 (0)6 2940 9806 | W. > http://www.peektraffic.nl<http://www.peektraffic.nl/> > [Description: Description: Imtech Traffic & Infra] > Former Peek Traffic > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
