Hello. I'm running the code below to simulate 20 pedestrians walking through an area to get position (x,y) and orientation of them every single second.
*traci.simulationStep()* *lstPeopleId = traci.person.getIDList()* *for personId in lstPeopleId: x, y = traci.person.getPosition(personId); orientation = traci.person.getAngle(personId);* By this code I can get the pedestrian's orientation by second. But this sometimes cause some abrupt changes like registers below: persion_id x y orientation 0 435.30083973233764 28.778440513709526 340.732854123435 0 434.9044230752246 29.91251304314043 340.732854123435 0 433.30698726445524 30.829373981185864 278.84539711377386 0 432.2102822515545 31.000042772818837 278.84539711377386 0 431.0849865206952 31.175160840445347 278.84539711377386 0 429.9118580892561 31.375776134785145 287.3291744181008 0 428.7735535106756 31.730954472452076 287.3291744181008 0 427.76594537224315 32.086611053320354 295.5750648630049 0 426.63152790040834 32.62952593276457 295.5750648630049 We can see that at some second pedestrian orientation was 340° and in the next second 278º, changing to 287° two seconds later and changing again to 295°. So the question is: Is it possible to get a more accurate pedestrian orientation change? []'s
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
