Skip to content

Instantly share code, notes, and snippets.

@PierrickKoch
Created February 17, 2016 09:40
Show Gist options
  • Select an option

  • Save PierrickKoch/df2cebc354db4f599a7a to your computer and use it in GitHub Desktop.

Select an option

Save PierrickKoch/df2cebc354db4f599a7a to your computer and use it in GitHub Desktop.
#! /bin/bash
dir=$1
cd $dir/velodyne-dump
for f in velodyneShot.pos.*; do
i=${f##*.} # get the %04i indice
~/velodyne-tools/build/convert velodyneShot.$i $f cloud.$(printf %05i $((10#$i))).pcd
done
mkdir $dir-pcd
mv cloud.*.pcd $dir-pcd/
tar czf $dir-pcd.tgz $dir-pcd
scp $dir-pcd.tgz samus:/net/cetus/data1/robots/mana/
cd $dir-pcd
~/work/atlaas/python/process.py
gdal_fastmerge atlaas.*x*.tif out2.tif
gdal_translate -b 4 -outsize 50% 50% out2.tif out2b4.tif
~/work/atlaas/tools/cmapclim.py out2b4.tif -1 5
xdg-open out2b4.tif.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment