Revision c7de5860

View differences:

client/python/tools/plot_relative_gazetargets.sh
1 1
FILE=/tmp/l
2 2
#1449653129.190272 -8.841537 0.023177 1449651904.760381 -19.532999 0.000000 -19.532999 0.000000 0.000000 -0.000000 0.007721 -8.910353 -8.911380 #DUMP
3
offset=`cat /tmp/l|head -1|cut -d " " -f 1`
3 4
gnuplot -persist <<- EOF
4
        plot "${FILE}" using 1:2 w l t "pan_now", \
5
	 "${FILE}" using 1:3 w l t "tilt_now",\
6
	 "${FILE}" using 4:5 t "target rel pan",\
7
	 "${FILE}" using 4:6 t "target rel tilt",\
8
	 "${FILE}" using 1:7 w l t "target pan",\
9
	 "${FILE}" using 1:8 w l t "target tilt",\
10
	 "${FILE}" using 1:9 w l t "lowlevel target neck pan",\
11
	 "${FILE}" using 1:10 w l t "lowlevel target neck tilt",\
12
         "${FILE}" using 1:11 w l t "lowlevel target eyes tilt",\
13
         "${FILE}" using 1:12 w l t "lowlevel target eye l pan",\
14
         "${FILE}" using 1:13 w l t "lowlevel target eye r pan"
5
        plot "${FILE}" using (\$1-${offset}):2 w l t "pan_now", \
6
	 "${FILE}" using (\$1-${offset}):3 w l t "tilt_now",\
7
	 "${FILE}" using (\$4-${offset}):5 t "target rel pan",\
8
	 "${FILE}" using (\$4-${offset}):6 t "target rel tilt",\
9
	 "${FILE}" using (\$1-${offset}):7 w l t "target pan",\
10
	 "${FILE}" using (\$1-${offset}):8 w l t "target tilt",\
11
	 "${FILE}" using (\$1-${offset}):9 w l t "lowlevel target neck pan",\
12
	 "${FILE}" using (\$1-${offset}):10 w l t "lowlevel target neck tilt",\
13
         "${FILE}" using (\$1-${offset}):11 w l t "lowlevel target eyes tilt",\
14
         "${FILE}" using (\$1-${offset}):12 w l t "lowlevel target eye l pan",\
15
         "${FILE}" using (\$1-${offset}):13 w l t "lowlevel target eye r pan"
15 16
	pause -1
16 17
EOF
17 18

  

Also available in: Unified diff