-
Notifications
You must be signed in to change notification settings - Fork 2
/
animate.gnuplot
21 lines (16 loc) · 1.28 KB
/
animate.gnuplot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
index = index + 1
set output prefix.'video/'.index.'.gif'
plot prefix.'map.txt' using 2:3 title 'Landmarks' with points ls 1, \
prefix.'log/mcmc_slam/map.'.index.'.txt' using 2:3 title 'Estimated Landmarks' with points ls 2, \
prefix.'log/mcmc_slam/trajectory.'.index.'.txt' using 2:3 title 'Estimated State' with lines ls 5, \
prefix.'trajectory.txt' every ::::index using 2:3 title 'Actual State' with lines ls 7
#plot prefix.'landmarks.txt' using 1:2 title 'Landmarks' with points ls 1, \
# prefix.'landmarks.estimated.'.index.'.txt' using 1:2 title 'Estimated Landmarks' with points ls 2, \
# prefix.'state.expected.txt' every ::::index using 1:2 title 'Measured State' with lines ls 3, \
# prefix.'state.expected.txt' every ::index::index using 1:2:(5.0*cos($3)):(5.0*sin($3)) notitle with vectors ls 4, \
# prefix.'state.estimated.'.index.'.txt' using 1:2 title 'Estimated State' with lines ls 5, \
# prefix.'state.estimated.'.index.'.txt' every ::index::index using 1:2:(5.0*cos($3)):(5.0*sin($3)) notitle with vectors ls 6, \
# prefix.'state.txt' every ::::index using 1:2 title 'Actual State' with lines ls 7, \
# prefix.'state.txt' every ::index::index using 1:2:(5.0*cos($3)):(5.0*sin($3)) notitle with vectors ls 8
unset output
if (index < steps) reread