 |
Visual Servoing Platform
version 3.2.0
|
44 #include <visp3/core/vpConfig.h>
45 #include <visp3/core/vpTime.h>
46 #include <visp3/gui/vpPlot.h>
51 for(
int i = 0; i < n; ++i)
52 for(
int j = 0; j < m; ++j)
53 M[i][j] = (2.*rand())/RAND_MAX -1;
60 for(
int i = 0; i < n; ++i)
61 M[i] = (2.*rand())/RAND_MAX -1;
65 #ifdef VISP_HAVE_DISPLAY
70 QPlot(
int graphNum,
int total, std::vector<std::string> legend)
72 P =
new vpPlot(graphNum, 700, 700, 100, 200,
"Resolution time");
74 for(
int i = 0; i < graphNum; ++i)
83 P->
setLegend(i, 0,
"without " + legend[2*i+1]);
88 void plot(
int g,
int c,
int i,
double t)
104 class VISP_EXPORT QPPlot
107 QPPlot(
int,
int , std::vector<std::string> ) {}
108 void plot(
int ,
int ,
int ,
double ) {}
QPlot(int graphNum, int total, std::vector< std::string > legend)
VISP_EXPORT int wait(double t0, double t)
void plot(const unsigned int graphNum, const unsigned int curveNum, const double x, const double y)
void setUnitY(const unsigned int graphNum, const std::string &unity)
vpImage< unsigned char > I
void initRange(const unsigned int graphNum, double xmin, double xmax, double ymin, double ymax)
Implementation of column vector and the associated operations.
Implementation of a matrix and operations on matrices.
VISP_EXPORT double measureTimeMs()
void setTitle(const unsigned int graphNum, const std::string &title)
void plot(int g, int c, int i, double t)
void setGraphThickness(const unsigned int graphNum, const unsigned int thickness)
static const vpColor blue
void initGraph(unsigned int graphNum, unsigned int curveNbr)
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
void setLegend(const unsigned int graphNum, const unsigned int curveNum, const std::string &legend)
void setColor(const unsigned int graphNum, const unsigned int curveNum, vpColor color)
This class enables real time drawing of 2D or 3D graphics. An instance of the class open a window whi...