WoodOxen / tactics2d

Tactics2D: A Reinforcement Learning Environment Library with Generative Scenarios for Driving Decision-making
https://tactics2d.readthedocs.io/en/latest/
GNU General Public License v3.0
150 stars 19 forks source link

Bug: Road display incomplete and Object Deviation #100

Closed immmmmia closed 4 months ago

immmmmia commented 4 months ago

Hello, I encountered an issue while running the map parser. To be more specific, the output picture displayed a few mistakes after I ran test_xodr_parser() in ~/tactics2d/test/test_map_parser.py to parse my own xodr file. The output is as follows and the errors have been circled. 111 The issue that have arisen can possibly be classified into two main groups: 1. the offset of some parking spaces; 2.the incomplete display of road. I have found that the first circumstance is caused by the function load_objection(). https://github.com/WoodOxen/tactics2d/blob/792ecd0f862588c817e1557a169314d9813caa42/tactics2d/map/parser/parse_xodr.py#L362-L364 indicates that the parser only considers the case that the road’s geometry type is line, resulting in the deviation.

Merealtea commented 4 months ago

It seems like the wrong parsing process of refline and incorrect usage of object heading, we have already fixed it. Thank you for your comments!