GithubHelp home page GithubHelp logo

Comments (21)

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024 1

@Jaeyoung-Lim ughhhh! Sorry, my bad! I didn't source my other devel directory face palm.
It works now, I get a red line going through the grid. I assume thats because of my original dem,
Thank you for the efforts!

from grid_map_geo.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on August 20, 2024 1

@Ahmad-Drak Happy to hear that it worked out!

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024 1

just for reference, it was showing a line only since my original tif file was in wgs84. hence the pixel size was in degrees not meters. Therefore it was showing as 3mmx3mm 'line' in rviz.

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

The 'not aligining' is not an error it seems. A false flag is passed here

map->Load(file_path, false, color_path);

However in rviz all i see is an empty grid, nothing else

from grid_map_geo.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on August 20, 2024

@Ahmad-Drak Have you tried providing your own tif file in

<param name="tif_path" value="$(find grid_map_geo)/resources/sertig.tif"/>
?

Unfortunately there is no tif file included in this repository yet due to license constraints

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

i added my own tif file
<param name="tif_path" value="$(find grid_map_geo)/resources/DTM-100mm.tif"/>

from grid_map_geo.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on August 20, 2024

@Ahmad-Drak Ah, I see the problem now

You need to provide an empty path for

<param name="color_path" value="$(find grid_map_geo)/resources/sertig_color.tif"/>

I will fix this in a following PR

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

@Jaeyoung-Lim i did as you suggest, same result

<param name="tif_path" value="$(find grid_map_geo)/resources/DTM-100mm.tif"/>
 <param name="color_path" value=""/>

from grid_map_geo.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on August 20, 2024

@Ahmad-Drak Have you checked if your rviz is properly configured to visualize the terrain? It should look like below

image

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

@Jaeyoung-Lim it looks just like yours, without the last 3 options

Screenshot from 2022-08-08 12-52-22

When checking the topic /elevation_map, there is nothing published there

from grid_map_geo.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on August 20, 2024

@Ahmad-Drak Actually if you look at the Color Transformer, they are not the same. Can you try changing them as displayed in the screenshot I sent you?

Otherwise if you can send the elevation map over I can have a look on what could have gone wrong

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

@Jaeyoung-Lim even when chosing Color transformer as Intensity Layer its still same result.
You can get the tif file here -removed-

from grid_map_geo.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on August 20, 2024

@Ahmad-Drak For the DEM you have produced, I am experiencing the same.

Looking into the tif file you shared, is it correct that your model has such a small resolution?

It is a 3mmX3mm dem as far as I can see from the tif definitions

Width: 3139 Height: 3361 Resolution: 1.43701e-06

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

@Jaeyoung-Lim yes, thats correct. Its a very high resolution dem

from grid_map_geo.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on August 20, 2024

@Ahmad-Drak I think this is outside the test case I was aware of, but looking into what is going on, could you maybe explain why the tif file needs to be so high resolution and small?

it seems like due to the distance transform it has been doing

AddLayerDistanceTransform("distance_surface");
it is simply taking too long to compute the distance surface.

For your use case I have removed this in #7

After this change I can visualize your DEM, but it seems to have discontinunous values making it appear as a line in the visualization. Also the DEM seems to be extremely small with the high resolution.

image

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

@Jaeyoung-Lim Thank you for the quick fix. However still doesnt show up on my end. I pulled the changes and build again. The results is same as before. The Color Layer entry in rviz only has 'color' option, not elevation like yours.
I think this is because the /elevation_map topic is still not publishing..

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

@Jaeyoung-Lim interestingly, this does not show up in the terminal

std::cout << "Done reading DEM" << std::endl;

from grid_map_geo.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on August 20, 2024

@Ahmad-Drak How long did you wait for the dem to be read?

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

@Jaeyoung-Lim the node is still running. Its been at least 8 minutes.

from grid_map_geo.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on August 20, 2024

@Ahmad-Drak The only thing I can think of is the performance of the system

For me it takes a few seconds(3-4) to read your dem

from grid_map_geo.

Ahmad-Drak avatar Ahmad-Drak commented on August 20, 2024

@Jaeyoung-Lim thats unlikely, Im using a Ryzen 9 5950x.
I will try to debug more somehow

from grid_map_geo.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.