-
Notifications
You must be signed in to change notification settings - Fork 74
Bathymetry Data Conversion for Bathymetry Plugin
- The converter script was developed by Micahel Jakuba at WHOI and implemented to the dave project by Woensug Choi.
The Gazebo includes direct uploads of DEM data on the simulator (Gazebo tutorial for DEM link). However, it handles only grids and suggests downsampling to coarse resolutions. The pipeline of this converter constructs simplified triangular meshes that retain detail where it is needed. The pipeline also creates overlap and generates tiles with the special/arbitrary filenames required by the plugin. A major limitation of the bathymetry converter-plugin is the arbitrary file naming convention that has to be followed for the tiling to work.
- This process takes much time (approx. 2 hours)
git clone [email protected]:Field-Robotics-Lab/Bathymetry_Converter.git
- Installation based on Ubuntu 18.04 LTS
cd Bathymetry_Converter
wget -O bathymetry_source.tar.bz2 https://www.dropbox.com/s/x3acdnnpw3ej9b4/bathymetry_source.tar.bz2?dl=1
tar xvfj bathymetry_source.tar.bz2
cd ..
from dave project folder
cd Bathymetry_Converter/mkbathy_dependencies
tar xvfj meshlab_linux_portable.tar.bz2
cd ../../
sudo apt-get install gmt gmt-dcw gmt-gshhg apcalc sqlite3 checkinstall libudunits2-dev libgdal-dev libgeos-dev libproj-dev
-
Install proj version ≥ 6.0
-
Download latest proj release at 'https://github.com/OSGeo/PROJ/releases' or version 7.1.1
-
unzip and install from downloaded latest source file (here, flag -j4 means using 4 cores)
-
tar -xzf proj-$VERSION.tar.gz && cd proj-$VERSION
./configure && make -j4
sudo checkinstall -y -install
Don't worry if you find new proj version is not called using proj --version
. gdal installation below links directly with newly install proj libraries.
-
Install gdal
-
Download latest gdalrelease at 'https://github.com/OSGeo/gdal/releases' or version 3.1.3
-
unzip and install from downloaded latest source file (here, flag -j4 means using 4 cores)
-
tar -xzf gdal-$VERSION.tar.gz && cd gdal-$VERSION
./configure --enable-shared --with-python=python3 --with-proj=/usr/local
make -j4
sudo checkinstall -y -install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib" >> ~/.bashrc
sudo apt-get install ./gdal_3.1.3-1_amd64.deb
gdalinfo --version
-
Install pdal
-
Download latest PADAL release at 'https://github.com/PDAL/PDAL/releases' or version 2.2.0
-
unzip and install from downloaded latest source file (here, flag -j4 means using 4 cores)
- if stopped at log file opened with vi, type ':q' to quit
-
tar xvfj PDAL-$VERSION-src.tar.bz2 && cd PDAL-$VERSION-src
cmake . && sudo checkinstall -y -install
pdal --version
chmod +x mkbthy.sh
./mkbathy.sh
converted gazebo model files will be saved at Bathymetry_Converter/bathymetry to be called using the bathymetry plugin bathymetry plugin tutorial