kuriatsu / rviz_hdmap_editor

The ros package to build ADAS map (AISAN format) with Rviz
33 stars 8 forks source link

error #2

Open jiaqi-lian opened 1 year ago

jiaqi-lian commented 1 year ago

Hello, when I was running this project, I encountered a problem. Specifically, when I finished loading HDMap and confirming output, and selected "ok", when I selected lane or other buttons, the interface would automatically close and the following error would be reported. Could you tell me the solution

lane
[ INFO] [1692693549.444598085]: /home/aa/rosdemo_ws/src/rviz_hdmap_editor-master/data/map/vector_map/lane.csv

[ INFO] [1692693549.494177297]: 
toggle 
make whiteline
terminate called after throwing an instance of 'std::out_of_range'
  what():  map::at
Aborted (core dumped)
kuriatsu commented 1 year ago

Did the marker already appear in the 3D panel when the error occurred?

kuriatsu commented 1 year ago

Some CSV files may be missing. node.csv and point.csv is necessary.

jiaqi-lian commented 1 year ago

In fact, I display it in the default 3D panel, and I use the demo data you gave, as shown in the image, but when I select Node or Lane, RVIZ closes and reports an error

image

kuriatsu commented 1 year ago

Okay, I'm checking it. Please wait a minute.

kuriatsu commented 1 year ago

The program had not considered that there is no reaiload, crosswalk, etc. So I solved the bug. And the sample map has also a problem. Its indention code is CRLF, but c++ only support LF. So please do (you may need to install nkf by sudo apt install nkf)

nkf -Lu --overwrite data/map/vector_map/*.csv

Then, please try again. The coordinate of the points is very far from origin (-15811.335, -85688.332) Please move view point.

kuriatsu commented 1 year ago

Screenshot from 2023-08-23 17-30-30

jiaqi-lian commented 1 year ago

Thank you very much for your prompt response!!! it can already be successfully displayed!It is curious whether you will try to develop an HDmap editor in opendrive format, or add opendrive format support to this project

kuriatsu commented 1 year ago

It sounds like a good idea. But I don't have a plan now. I'm curious whether it is worth enabling Rviz to edit OpenDriveMap.

jiaqi-lian commented 1 year ago

Haha, do you think it's easy to display and edit OpenDriveMap on RVIZ, I'm new to HD maps, but I may need to complete a HD map building tool, including generating and editing and so on

kuriatsu commented 1 year ago

That's cool. I don't think so. OpenDriveMap is complicated and hard to deal with. AISAN format (what this repo is using) is simple but outdated. Both of them share the basic concepts, though. One problem is that Autoware is mainly using lanelet🤮

JinXJinLeX commented 11 months ago

I met the same problem, after doing "nkf -Lu --overwrite data/map/vector_map/*.csv" RVIZ didn't report error but there was nothing in it (already selected "node" and so on).

JinXJinLeX commented 11 months ago

pic

JinXJinLeX commented 11 months ago

2023-10-18 22-24-57 的屏幕截图 And terminator show this.

kuriatsu commented 10 months ago

You need to add interactive marker to the 3d view