ForzaETH / race_stack

The autonomous racing stack for the ForzaETH team at PBL
MIT License
95 stars 22 forks source link

map editor #19

Open DDKAPQ opened 1 week ago

DDKAPQ commented 1 week ago

Hi when I do SLAM with mapping.launch and rviz looks pretty well so In the next window that pops up after pressing y, the inverted screen for the center line was not created properly, so I thought the border of the map was not clear, so I tried to work with png directly through the map editor, However, the appearance of the saved png file was also saved as an inverted map, different from the appearance of the map in rviz. It looks like GIMP work will be difficult with this file. Is the result correct?

niciBume commented 1 week ago

Hi, can you show the map image?

DDKAPQ commented 1 week ago

This is what the png file looks like when saving the map using roslaunch stack_master mapping.launch map_name:= racecar_version:= after the actual track and slam.

and also when I doing roslaunch map_editor map_editor.launch map_name:=PLACE_DATE_VN map_editor_mapping:=True This is not saved as a pgm file for direct map editing, but as a png file.

IMG_9678

b1

niciBume commented 1 week ago

I see. Using black tubes is difficult for the LiDAR as it does not reflect as much (see: https://arxiv.org/pdf/2309.10504).

Hence when mapping you need to drive multiple times to get a good map. Probably the SLAM did not get a nice occupancy grid, that's why the part with the white wall is visible in the png but it has problems with the black only sections.

Different things you can do:

DDKAPQ commented 1 week ago

Thank you. I will try it again as you said.

And I thought that when saving using the map editor method, it would be saved as pgm and modified through GIMP. But are modifications made with that black and white png here as well?

I had a question about the same png as above being saved in map editor launch.

niciBume commented 1 week ago

Should all be saved as png. Check out some additional info in the readme: https://github.com/ForzaETH/race_stack/tree/main/f110_utils/nodes/map_editor