60 std::string dir =
"data/test/";
61 std::string plot_name =
"map.png";
63 int half_marker_sz = 1;
67 bool unset_colorbox =
true;
70 double resolution = 1;
72 std::string color_robot =
"#002d7d";
73 std::string color_robot_alt =
"#196f3d";
75 std::string color_idf =
"#900C3F";
76 std::string color_voronoi =
"#196f3d";
77 std::string color_unknown =
"#aeb6bf";
78 std::string color_communication_links =
"#1f77b4";
80 bool GnuplotCommands(Gnuplot &gp);
81 void StreamMap(Gnuplot &gp,
MapType const &map);
82 void PlotMap(Gnuplot &gp,
bool begin =
true);
83 void PlotLine(Gnuplot &gp,
int marker_sz, std::string color,
85 void PlotPoints(Gnuplot &gp,
int point_type,
int marker_sz, std::string color,
89 Plotter(std::string
const &d,
int const &r_max,
double const &res) {
95 inline void SetDir(std::string
const &d) { dir = d; }
99 marker_sz =
static_cast<int>(2 * scale);
100 half_marker_sz =
static_cast<int>(1 * scale);
101 image_sz =
static_cast<int>(1024 * scale);
102 font_sz =
static_cast<int>(14 * scale);
105 void SetPlotName(std::string
const &name) { plot_name = name +
".png"; }
108 std::stringstream ss;
109 ss << std::setw(4) << std::setfill(
'0') << i;
110 plot_name = name + ss.str() +
".png";
122 void PlotMap(
MapType const &map);
127 std::vector<std::list<Point2>>
const &trajectories,
128 std::vector<int>
const &robot_status);
130 std::vector<std::list<Point2>>
const &trajectories,
131 std::vector<int>
const &robot_status,
132 double const &communication_range);
135 std::vector<std::list<Point2>>
const &voronoi,
136 std::vector<std::list<Point2>>
const &trajectories);
139 std::vector<std::list<Point2>>
const &trajectories);
144 std::vector<std::list<Point2>>
const &trajectories,