-
Notifications
You must be signed in to change notification settings - Fork 179
🐛 Gazebo Harmonic doesn't load external DEM/TIF files (e.g., NOAA/GEBCO bathymetry) #589
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
Comments
@jennuine Pls check on it |
Hi @smtbhd32 it's been awhile so I'll do my best to remember. If you are using bathymetry data, this data is below sea level so most likely the DEM is being loaded in Gazebo but the visual is outside of the viewport of the camera. Take a look at our example from GEBCO of Monterey Bay (model and world). If you download the model and look at the If you have Gazebo installed from source, you can use our gz-rendering example (which is outside of the full simulation stack) to try loading your DEM and modifying the position in these sections here. Then when you have the correct position figured out you can update the If this doesn't work for you, I can't promise I'll be able to look at this anytime soon but if you provide a link to the model you're trying to load either I or maybe someone in the community can take a look. As for the documentation, we welcome PRs and would be happy to review it 😄 |
Thanks @jennuine ! 😄 I got it working by editing the I also noticed you had already mentioned this in the documentation at Gazebo DEM Tutorial:
While reading it earlier, I didn't realize how important the Additionally, I got to know about the elevation details of my bathymetry DEM using the command I have one more question: after loading the bathymetry model, I noticed that I am getting spikes or strange artifacts in the terrain. Could you please suggest some steps or best practices to avoid this? 🙏 Also, do I need to use any additional tags in the SDF like I'm attaching screenshots showing the issue I'm facing along with the Thanks again for your help and for pointing me in the right direction — this feature saved me a lot of work (otherwise I was about to start writing a full converter from |
Most likely the DEM model has holes or
Gazebo Harmonic uses FYI, The links you've pointed to and the |
Thanks @jennuine ! I tried filling the NODATA values using gdal_fillnodata.py input.tif output_filled.tif But the spikes are still there. I think it may be due to cliffs in the data, as we can see similar formations in the images. It seems like the area has actual cliffs in the bathymetry data itself. I’ll go ahead and close the issue now. Thanks a lot for your help! |
🐛 Gazebo Harmonic doesn't load external DEM/TIF files (e.g., NOAA/GEBCO bathymetry)
Environment
Description
Expected behavior:
Gazebo should be able to load any valid
.tif
/GeoTIFF file as a<heightmap>
surface, even if the data comes from external sources like NOAA or GEBCO (bathymetry datasets).Actual behavior:
Gazebo only successfully loads the example
.tif
files provided in tutorials (likevolcano.tif
).When trying to load a DEM from NOAA or GEBCO (which use EPSG:4326 WGS84 projection), no errors are shown in console, but the heightmap simply does not appear in the simulation.
Steps to reproduce
.tif
(EPSG:4326)..tif
file as<heightmap>
.gz sim your_world.sdf
.Output
volcano.tif
):float32
gebco.tif
):int16
✅ Driver matches (GTiff), but other properties differ (CRS, pixel size, data type).
Additional Notes
The text was updated successfully, but these errors were encountered: