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 gpl_slot(bcar::ParkingSlot& s, std::string fn)
72 if (fn.compare("") == 0) {
83 gen_pl_script(std::vector<M>& ms, std::string with_slot)
88 f << "#!/usr/bin/gnuplot" << endl;
89 f << "set size ratio -1" << endl;
92 f << " '" << m.fn << "'" << " w l,";
94 if (with_slot.compare("") != 0) {
95 f << " '" << with_slot << "' w l";
98 f << "pause -1" << endl;
109 bcar::ParkingSlot s(bcar::Point(0, 0), 0, 2.5, 6);
120 for (unsigned int i = 0; i < STEPS; i++) {
125 gen_pl_script(V, sn);