Created
November 25, 2020 08:17
-
-
Save JimmyPesto/2e881259c6d03b28250e8c4c4e25acd7 to your computer and use it in GitHub Desktop.
Bash script to process multiple files in a certain workdirectory the same way in a loop
This file contains 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
#!/usr/bin/env sh | |
echo "started converter with ${1} directory" | |
workdir=${1}; | |
#recursivly grab all files with pcd file format | |
for f in $(find ${workdir} -name '*.pcd'); | |
do | |
echo "processing file: ${f}" | |
out="${f%.*}.scaled.pcd" | |
echo "out: ${out}" | |
pcl_transform_point_cloud ${f} ${out} -scale 0.001,0.001,0.001 # mm -> m | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment