Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #2

Open
jiaqi-lian opened this issue Aug 22, 2023 · 14 comments
Open

error #2

jiaqi-lian opened this issue Aug 22, 2023 · 14 comments

Comments

@jiaqi-lian
Copy link

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
Copy link
Owner

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

@kuriatsu
Copy link
Owner

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

@jiaqi-lian
Copy link
Author

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
Copy link
Owner

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

@kuriatsu
Copy link
Owner

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
Copy link
Owner

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

@jiaqi-lian
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link

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
Copy link

pic

@JinXJinLeX
Copy link

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

@kuriatsu
Copy link
Owner

kuriatsu commented Oct 21, 2023

You need to add interactive marker to the 3d view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants