Created
June 15, 2016 14:16
-
-
Save PierrickKoch/52cd6ecbe0ffa82e96fd57c8487c26bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
converter=~/velodyne-tools/build/convert | |
workspace=$(pwd) | |
for folder in m*; do | |
cd $workspace | |
mkdir ${folder}-pcd | |
cd $folder | |
for file in velodyneShot.pos.*; do | |
inc=${file#velodyneShot.pos.} | |
$converter velodyneShot.$inc velodyneShot.pos.$inc ../${folder}-pcd/shot.0${inc}.pcd | |
done | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set folder_inc 1 | |
incr folder_inc | |
mkdir /tmp/scan-${folder_inc} | |
velodyne::SetSaveParams /tmp/scan-${folder_inc}/velodyneShot 0 | |
for {set i 0} {$i < 30} {incr i} { | |
velodyne::OneShot -180.0 180.0 | |
velodyne::Save | |
sleep 0.1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment