Hello, I am building a traffic light controller which needs to sense the network every simulation step to know some information about lanes (like mean speed) and also needs to act on the traffic lights to change its state. My problem is when I do these things using separate threads for each lane and traffic light, I get the following error:
*Error: Answered with error to command 0: Wrong position in requestMessage after dispatching command. Expected command length was 5120 but 6 Bytes were read.* My guess is that the different threads are writing to the tcp connection and the message gets confused in the sumo server side. If that is the problem, what would be the right approach in this case? Best, André Luis Ogando Paraense PhD student - Computer Engineering ------------------------------ ------------------------------------------ Laboratory of Computer Engineering and Industrial Automation (LCA) Department of Computer Engineering and Industrial Automation (DCA) School of Electrical and Computer Engineering (FEEC) University of Campinas (UNICAMP) P.O. Box 6101 ZIP 13083-970 Campinas - SP Brazil ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
