2 * SPDX-FileCopyrightText: 2021 Jiri Vlasak <jiri.vlasak.2@cvut.cz>
4 * SPDX-License-Identifier: GPL-3.0-only
16 #define INIT_V vector<M> V;
17 #define P(W) V.push_back(M(#W)); V.back().o.W = true;
24 bcar::BicycleCar::GenPlotOpts o;
28 this->c.gen_gnuplot_to(this->f, this->o);
36 M(std::string fn) : fn(fn)
38 this->f.open(this->fn);
40 this->c.set_max_steer();
43 M(M const& m) : fn(m.fn), c(m.c), o(m.o)
45 this->f.open(this->fn);
52 friend void swap(M& f, M& t)
70 gen_pl_script(std::vector<M>& ms)
75 f << "#!/usr/bin/gnuplot" << endl;
76 f << "set size ratio -1" << endl;
79 f << " '" << m.fn << "'" << " w l,";
82 f << "pause -1" << endl;
100 for (unsigned int i = 0; i < STEPS; i++) {