hatem-darweesh / assuremappingtools

Desktop based tool for viewing, editing and saving road network maps for autonomous vehicle platforms such as Autoware.
GNU General Public License v3.0
210 stars 74 forks source link

failed to find elevation tag for node and no visualization in RVIZ #19

Closed JonasLos closed 4 years ago

JonasLos commented 4 years ago

Howdy,

first of all thank you for this great tool - making the maps themselves is a breeze compared to any other tool I have used thus far.

I am running the latest autoware version available on github.

I do have a problem which is probably user error - when i run the lanelet2_validation node on the created lanelet2 map i get the following error: "failed to find elevation tag for node xxxx:" i used the function "fix height" on all items but this did not resolve anything. Not sure what I am doing wrong with that.

I tried to just upload the map to autoware but it will not show up in RVIZ whatsoever. Probably linked to the issue above but no sure. I also tried to use all options for the projection (no projection, MGRS and UTM) with no luck.

Additional question: what does Lane Action mean and what does R L F stand for?

Thank you!

hatem-darweesh commented 4 years ago

Hello,

Thank you for using ASSURE tools, and thanks for the feedback. I will check this, but I need some help from you. 1- the .osm file 2- how do you validate is with lanelet2_validation 3- what Autoware version are you using.

About your second question: the actions is used by OpenPlanner's global planner to optimize for the shortest route. R -> going right, L-> going left, F -> Moving forward. for example, in an intersection, if you assign very high cost to with R. then the global planner will try to avoid using this lane unless it is the only way to the goal position.

Regards,

JonasLos commented 4 years ago
  1. Two files are attached below - obioulsyWrong.txt is very simplified because I was trying different things. I attached the .osm as text file as github won't let me upload .osm. I realize that there are no lon/lat or elevation data attached on this one. On previous ones (that had other errors besides) all was filled out which i attached as OtherErrors.txt. It gave me the same error but also other errors because I messed up the lanes.

OtherErrors.txt obviouslyWrong.txt

2.I tried to validate by running:

rosrun lanelet2_validation lanelet2_validate _map_file:=/pathtofile

3.according to my src/common git describe --tags it is 1.14.0-alpha which i actually got from when autoware.ai was still on gitlab.

Thank you for answering that! Makes a lot of sense.

My visualization issue may also be an issue with my projection. I am located in Texas, USA if that helps you debug this issue.

hatem-darweesh commented 4 years ago

I checked with the .osm viewer. the map origins is at (0,0,0). I tried with assure but it didn't show up. I have some questions: 1- how this map is originally created ? 2- if you are using point cloud as base to create road network map, then you need GPS origin to export to lanelet2 .osm map.

before even we go to the validation check, we should be able to view the map in assure & JSOM tools

JonasLos commented 4 years ago

I see, I tried two different ways:

  1. Upload .pcd (created with NDT_Mapping in autoware) to Assure, then create lane, lines etc.
  2. Use TierIV mapping tool, upload .pcd then create lane. Tried to take that .osm but cannot upload to assure because the reference grid was invalid for what I was doing.

As far as origin goes, this is not just the first value in the pointcloud? I looked up some stuff for pcl and they have an origin calculator so i figured i need to do that probably. Here is the latest map I had that didn't give me height issue but i was messing around with the lane_direction tag.

I attached below the .osm in plain text

`<?xml version="1.0"?>

`

hatem-darweesh commented 4 years ago

you see these are wrong (latitude, longitude) values. I guess you need to consider the GPS origin when creating the point cloud map, then the pipeline will work. if you use the .pcd in assure maps, you can create .kml map and use it with Autoware. (but in this case you will use only OpenPlanner). or export .csv files from TierIV mapping tools and avoid using lanelet2.

JonasLos commented 4 years ago

Yes i see. I will try some different things and probably get new data as well. Thank you a lot for your kind help! Instead of using my own data I will probably try the sample dataset first!

JonasLos commented 4 years ago

this up to the first line of my .pcd file i used: # .PCD v0.7 - Point Cloud Data file format VERSION 0.7 FIELDS x y z intensity SIZE 4 4 4 4 TYPE F F F F COUNT 1 1 1 1 WIDTH 3181304 HEIGHT 1 VIEWPOINT 0 0 0 1 0 0 0 POINTS 3181304 DATA ascii 57.905525 -103.08224 -16.56731 63

hatem-darweesh commented 4 years ago

Sorry , I never used the NDT mapping. or checked the details of .pcd file. my best guess it is auxiliary data in the process of creating the map and later in the process of creating the vector map.

JonasLos commented 4 years ago

No worries! Thanks again for your help. If i get a workaround I'll let you know