Dear SUMO developers, I write to report a problem I am experimenting with the class moveToXY from traci._vehicle <http://www.sumo.dlr.de/pydoc/traci._vehicle.html> under SUMO 0.27.1. The problem is that sometimes the vehicle is moved to the wrong lane (or even road) when the arguments (xyposition, angle) should result in a different situation. To illustrate this, I attach an explanatory figure, and describe the situation here:
- I use the traci command *traci.vehicle.moveToXY(hostID, EdgeIDPosition[0], 0, Positionxy[0], Positionxy[1], curAngle, keepRoute=0)*, where: - *hostID* is the ID of the desired vehicle. - *EdgeIDPosition[0]* is the ID of the identified edge using the class traci.simulation.convertRoad and lat/lon coordinates. - *Positionxy* is a 2D vector with the calculated XY position from the lat/lot coordinates. - *curAngle* is the desired vehicle's angle. - I then compare the angle of section of the edge in which the vehicle has been moved at with the vehicle's angle, and if they are similar in a range of +/- 45 degrees I consider a fair map-matching and change the vehicle's colour to green; otherwise I change the colour to red. Thus, as you can see from the attached figure, sometimes (I'd say, many times) the map-matching just does not work, and the vehicle is moved to the wrong lane. One easy way to check the faulty map-matching is by looking at the provided GPS position (marked with a POI) and the vehicle's orientation (given by the desired vehicle's angle I provide), this latter opposed to the direction of the lane at which the vehicle is wrongly map-matched. So, I hope you can help me out in solving this problem (in case I am doing something wrong, which I really doubt), or in fixing this bug in the next SUMO version. Many thanks for your valuable help. Best regards, Rodrigo. -- Rodrigo Hernán Ordóñez-Hurtado, PhD Research Fellow University College Dublin
------------------------------------------------------------------------------
_______________________________________________ sumo-devel mailing list sumo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-devel