};
void
-gpl_slot(bcar::ParkingSlot& s, std::string fn)
+gpl_slot(bcar::ParkingSlot& s, std::string fn = "")
{
if (fn.compare("") == 0) {
return;
f.open("plot.pl");
f << "#!/usr/bin/gnuplot" << endl;
f << "set size ratio -1" << endl;
- f << "plot";
+ if (with_slot.compare("") != 0) {
+ f << "plot '" << with_slot << "' w l,";
+ } else {
+ f << "plot";
+ }
for (auto& m: ms) {
f << " '" << m.fn << "'" << " w l,";
}
- if (with_slot.compare("") != 0) {
- f << " '" << with_slot << "' w l";
- }
f << endl;
f << "pause -1" << endl;
f.close();
gpl_slot(s, sn);
s.fe(bcar::BicycleCar());
+ s.compute_entries();
INIT_V
P(RF_POINT)
P(RR_POINT)
for (auto& m: V) {
- m.c = s._ispaths.front().front();
- m.c.sp(m.c.sp() * -1.0);
+ m.c = s._entries.front();
m.c.st(m.c.st() * -1.0);
}
for (unsigned int i = 0; i < STEPS; i++) {