Coverage Control Library
Loading...
Searching...
No Matches
Plotter Class Reference

Class to plot the map. More...

#include <plotter.h>

Public Member Functions

 Plotter (std::string const &d, int const &r_max, double const &res)
 
void SetDir (std::string const &d)
 
void SetScale (double const &sc)
 
void SetPlotName (std::string const &name)
 
void SetPlotName (std::string const &name, int const &i)
 
bool GnuplotCommands (Gnuplot &gp)
 
void StreamMap (Gnuplot &gp, MapType const &map)
 
void PlotMap (Gnuplot &gp, bool begin=true)
 
void PlotLine (Gnuplot &gp, int marker_sz, std::string color, bool begin=false)
 
void PlotPoints (Gnuplot &gp, int point_type, int marker_sz, std::string color, bool begin=false)
 
void PlotMap (MapType const &map)
 
void PlotMap (MapType const &map, PointVector const &positions)
 
void PlotMap (MapType const &map, PointVector const &positions, std::vector< std::list< Point2 > > const &trajectories, std::vector< int > const &robot_status)
 
void PlotMap (MapType const &map, PointVector const &positions, std::vector< std::list< Point2 > > const &trajectories, std::vector< int > const &robot_status, double const &communication_range)
 
void PlotMap (MapType const &map, PointVector const &positions, std::vector< std::list< Point2 > > const &voronoi, std::vector< std::list< Point2 > > const &trajectories)
 
void PlotMap (MapType const &map, PointVector const &positions, Voronoi const &voronoi, std::vector< std::list< Point2 > > const &trajectories)
 
void PlotMap (MapType const &map, PointVector const &positions, PointVector const &goals, Voronoi const &voronoi)
 
void PlotMap (MapType const &map, PointVector const &positions, std::vector< std::list< Point2 > > const &trajectories, PointVector const &frontiers)
 

Detailed Description

Class to plot the map.

Definition at line 55 of file plotter.h.

Constructor & Destructor Documentation

◆ Plotter()

Plotter ( std::string const & d,
int const & r_max,
double const & res )
inline

Definition at line 77 of file plotter.h.

Member Function Documentation

◆ GnuplotCommands()

bool GnuplotCommands ( Gnuplot & gp)

Definition at line 34 of file plotter.cpp.

◆ PlotLine()

void PlotLine ( Gnuplot & gp,
int marker_sz,
std::string color,
bool begin = false )

Definition at line 75 of file plotter.cpp.

◆ PlotMap() [1/9]

void PlotMap ( Gnuplot & gp,
bool begin = true )

Definition at line 66 of file plotter.cpp.

◆ PlotMap() [2/9]

void PlotMap ( MapType const & map)

Definition at line 95 of file plotter.cpp.

◆ PlotMap() [3/9]

void PlotMap ( MapType const & map,
PointVector const & positions )

Definition at line 106 of file plotter.cpp.

◆ PlotMap() [4/9]

void PlotMap ( MapType const & map,
PointVector const & positions,
PointVector const & goals,
Voronoi const & voronoi )

Definition at line 297 of file plotter.cpp.

◆ PlotMap() [5/9]

void PlotMap ( MapType const & map,
PointVector const & positions,
std::vector< std::list< Point2 > > const & trajectories,
PointVector const & frontiers )

Definition at line 345 of file plotter.cpp.

◆ PlotMap() [6/9]

void PlotMap ( MapType const & map,
PointVector const & positions,
std::vector< std::list< Point2 > > const & trajectories,
std::vector< int > const & robot_status )

Definition at line 124 of file plotter.cpp.

◆ PlotMap() [7/9]

void PlotMap ( MapType const & map,
PointVector const & positions,
std::vector< std::list< Point2 > > const & trajectories,
std::vector< int > const & robot_status,
double const & communication_range )

Definition at line 164 of file plotter.cpp.

◆ PlotMap() [8/9]

void PlotMap ( MapType const & map,
PointVector const & positions,
std::vector< std::list< Point2 > > const & voronoi,
std::vector< std::list< Point2 > > const & trajectories )

Definition at line 216 of file plotter.cpp.

◆ PlotMap() [9/9]

void PlotMap ( MapType const & map,
PointVector const & positions,
Voronoi const & voronoi,
std::vector< std::list< Point2 > > const & trajectories )

Definition at line 255 of file plotter.cpp.

◆ PlotPoints()

void PlotPoints ( Gnuplot & gp,
int point_type,
int marker_sz,
std::string color,
bool begin = false )

Definition at line 85 of file plotter.cpp.

◆ SetDir()

void SetDir ( std::string const & d)
inline

Definition at line 83 of file plotter.h.

◆ SetPlotName() [1/2]

void SetPlotName ( std::string const & name)
inline

Definition at line 93 of file plotter.h.

◆ SetPlotName() [2/2]

void SetPlotName ( std::string const & name,
int const & i )
inline

Definition at line 95 of file plotter.h.

◆ SetScale()

void SetScale ( double const & sc)
inline

Definition at line 85 of file plotter.h.

◆ StreamMap()

void StreamMap ( Gnuplot & gp,
MapType const & map )

Definition at line 56 of file plotter.cpp.