]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/blob - src/gen_for_gnuplot.cc
81752174d4cb59dff1f7f89dfbfe87d8d83beed8
[hubacji1/bcar.git] / src / gen_for_gnuplot.cc
1 /*
2  * SPDX-FileCopyrightText: 2021 Jiri Vlasak <jiri.vlasak.2@cvut.cz>
3  *
4  * SPDX-License-Identifier: GPL-3.0-only
5  */
6
7 #include <iostream>
8 #include <vector>
9 #include "pslot.hh"
10
11 int main()
12 {
13         using namespace std;
14         cout << fixed;
15         cerr << fixed;
16
17         bcar::BicycleCar c;
18         bcar::BicycleCar::GenPlotOpts o;
19         o.ALL = false;
20         o.FRONT = true;
21         o.REAR = true;
22         o.MIRRORS = true;
23         c.sp(0.5);
24         c.set_max_steer();
25         for (unsigned int i = 0; i < 10; i++) {
26                 c.gen_gnuplot_to(cout, o);
27                 c.next();
28         }
29         return 0;
30 }