-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot.sh
executable file
·27 lines (25 loc) · 943 Bytes
/
plot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# source tools/rosws/install/setup.bash
if [ $# -ne 0 ];then
idx=$1
if expr "$idx" : "[0-9]*$" >&/dev/null; then
offset_idx=$(($idx+2))
i=0
for file in `ls -rt ./tools/param_tuner/logs/ | tail -n ${offset_idx}`
do
echo $file $i ${offset_idx}
if [ $i -eq 0 ]; then
echo ./tools/param_tuner/logs/$file
read -p "Press [Enter] key to resume."
# python3 trajectory_plot.py ./tools/param_tuner/logs/$file &
`ros2 run plotjuggler plotjuggler -d ./tools/param_tuner/logs/$file -l ./tools/param_tuner/profile.xml`
break
fi
i=$(($i+1))
done
else
echo "not number"
fi
else
python3 trajectory_plot.py ./tools/param_tuner/logs/latest.csv &
ros2 run plotjuggler plotjuggler -d ./tools/param_tuner/logs/latest.csv -l ./tools/param_tuner/profile.xml
fi