swri-robotics / mapviz

Modular ROS visualization tool for 2D data.
BSD 3-Clause "New" or "Revised" License
395 stars 152 forks source link

multires_image wont display more than one level #814

Open avaziri opened 9 months ago

avaziri commented 9 months ago

My config files are attached. This example is of an architectural drawing pdf that was converted into images.

A few assumptions just to make sure I understand the file structure and config correctly following from this discussion:

I tried many variations on all of the above and the best I could get was to get either a single image from layer0 to display or with a different config four images from layer0 to display. I am happy to generate different images if any of my above assumptions were wrong.

See the attached configs

example_map_viz_config.mvc.txt example_tiles_and_multires_configs.zip

DangitBen commented 2 months ago

For what it's worth, I don't think the image paths in your zip file are all correct. How did you go about creating them?

Your image file names almost look like they are assuming that the numbers are bits or flag? (all 0s or 1s):

tiles/layer0/tile00000x00000.jpg
tiles/layer0/tile00000x00001.jpg
...
tiles/layer0/tile01111x01111.jpg

But based on your .geo file, mapviz is expecting something more like row_numXcolumn_num:

tiles/layer0/tile00000x00000.jpg
tiles/layer0/tile00001x00000.jpg
tiles/layer0/tile00002x00000.jpg
...
tiles/layer0/tile00015x00015.jpg