56 std::string dir =
"data/test/";
57 std::string plot_name =
"map.png";
59 int half_marker_sz = 1;
63 bool unset_colorbox =
true;
66 double resolution = 1;
68 std::string color_robot =
"#002d7d";
69 std::string color_robot_alt =
"#196f3d";
71 std::string color_idf =
"#900C3F";
72 std::string color_voronoi =
"#196f3d";
73 std::string color_unknown =
"#aeb6bf";
74 std::string color_communication_links =
"#1f77b4";
77 Plotter(std::string
const &d,
int const &r_max,
double const &res) {
83 inline void SetDir(std::string
const &d) { dir = d; }
85 inline void SetScale(
double const &sc) {
87 marker_sz =
static_cast<int>(2 * scale);
88 half_marker_sz =
static_cast<int>(1 * scale);
89 image_sz =
static_cast<int>(1024 * scale);
90 font_sz =
static_cast<int>(14 * scale);
93 void SetPlotName(std::string
const &name) { plot_name = name +
".png"; }
95 void SetPlotName(std::string
const &name,
int const &i) {
97 ss << std::setw(4) << std::setfill(
'0') << i;
98 plot_name = name + ss.str() +
".png";
110 bool GnuplotCommands(Gnuplot &gp);
111 void StreamMap(Gnuplot &gp,
MapType const &map);
112 void PlotMap(Gnuplot &gp,
bool begin =
true);
113 void PlotLine(Gnuplot &gp,
int marker_sz, std::string color,
115 void PlotPoints(Gnuplot &gp,
int point_type,
int marker_sz, std::string color,
118 void PlotMap(
MapType const &map);
123 std::vector<std::list<Point2>>
const &trajectories,
124 std::vector<int>
const &robot_status);
126 std::vector<std::list<Point2>>
const &trajectories,
127 std::vector<int>
const &robot_status,
128 double const &communication_range);
131 std::vector<std::list<Point2>>
const &voronoi,
132 std::vector<std::list<Point2>>
const &trajectories);
135 std::vector<std::list<Point2>>
const &trajectories);
140 std::vector<std::list<Point2>>
const &trajectories,