JOSM Edited map of OSM showing nothing in webots.
Hi,
I have edited a OSM map in JOSM but the problem is when i convert that osm to .wbt it is do not opens in the webots application.
I am using Webots 2019b which is the latest version.
Following are the lines which appear in command line while creating .wbt file.
Traceback (most recent call last):
File "/Volumes/Intenso/Webots Application/WebotsB/Webots.app/resources/osm_importer/importer.py", line 156, in
Thanks.
Sometimes, OSM data contains weird information. Normally a lanes:forward should contain only integers, but here, someone introduced a String containing "Street" instead :-) which is certainly a rare mistake.
I just created this patch to support dummy values for lanes:forward: https://github.com/omichel/webots/pull/759
Could you give a try? (Simply replacing WEBOTS_HOME/resources/osm_importer/webots_objects/road.py by this file)
@fabienrohrer Thanks alot for your help now I am getting the map in Webots. But In the command line I am getting these lines :
Invalid "turn:lanes:backward" tag for "" Invalid "turn:lanes:forward" tag for "" Invalid "turn:lanes:backward" tag for "" Invalid "turn:lanes:forward" tag for "" Invalid "turn:lanes:forward" tag for "" Invalid "turn:lanes:forward" tag for "" Invalid "turn:lanes:backward" tag for "" Invalid "turn:lanes:forward" tag for "" Invalid "turn:lanes:backward" tag for "" Invalid "turn:lanes:forward" tag for "" Invalid "turn:lanes:backward" tag for "" Invalid "turn:lanes:backward" tag for ""
Traceback (most recent call last):
File "/Volumes/Intenso/Webots Application/WebotsB/Webots.app/resources/osm_importer/importer.py", line 188, in
Can you kindly guide me through it.?
Thanks.
I just updated https://github.com/omichel/webots/pull/759 with a patch which should hopefully solve your issue. This time, it involves another file: area.py to be copied at the right location... Is it working better with it?
(The warning about "invalid "turn:lanes:backward" tag" could certainly be ignored. There are other weirdness in your OSM files about lane tags.)
@fabienrohrer Thankyou very much for your help. It worked.
Thank you. The patch will be released in the next Webots version.
It is indeed already released in the latest nightly build.