summaryrefslogtreecommitdiff
path: root/tests/trajectory-planner/circular-arcs/util/save_arc_data.sh
blob: af0d699c16b70bd1cf7b8c6c1d9303d0724434cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash - 
set -o nounset                              # Treat unset variables as an error

if [ -a $1 ] 
then
    awk '/tangent angle/ {print $4}' $1 > tangent_data.txt
fi

if [ -a $1 ] 
then
    awk '/circ[12] angle/ {print $4}' $1 > angle_data.txt
fi

if [ -a $1 ] 
then
    awk '/circ[12] spiral/ {print $4}' $1 > spiral_data.txt
fi

if [ -a $1 ] 
then
    awk '/circ[12] spiral/ {print $4}' $1 > spiral_data.txt
fi