eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.5k stars 1.41k forks source link

traci.simulation.convert2D issues #5780

Closed sapirbm closed 5 years ago

sapirbm commented 5 years ago

hey, i have a couple of issues with convert2D.

  1. at the very end of edges, sometimes the last 0.2meter is converted to the same x,y coordinates. (i am working with high demand for position precision), the net have been converted from opendrive using "--opposites.guess.fix-lengths true" together with a lot of other flags, could that be in charge of the mismatch?

image in the image you can see the lane position (left value) and the same x,y output (mid & right values)

  1. when i try to convert between road and x.y conventions, there is a mismatch between the results of convert2D(edge, lane_pos, lane_index) and vehicle.getPosition(). mostly in favor of getPosition.

thanks a lot, Sapir.

behrisch commented 5 years ago

Can you share your network?

sapirbm commented 5 years ago

tmp_hptvi9r.zip

my example above was received at the end of edge 22.0.00_1 before a left turn

netconvert from opendrive with flags: --output.original-names true --opendrive.advance-stopline 0 --default.junctions.radius 0 --junctions.small-radius 0 --opendrive.internal-shapes true --junctions.limit-turn-speed 0 --default.speed 50.0 --opposites.guess true --opposites.guess.fix-lengths true --precision 8 --no-warnings true