#include <visp3/gui/vpPlot.h>
#include <visp3/robot/vpSimulatorCamera.h>
#include <visp3/visual_features/vpFeatureBuilder.h>
#include <visp3/vs/vpServo.h>
int main()
{
try {
for (unsigned int i = 0; i < 4; i++) {
}
wMo = wMc * cMo;
#ifdef VISP_HAVE_DISPLAY
vpPlot plotter(2, 250 * 2, 500, 100, 200,
"Real time curves plotter");
plotter.
setTitle(0,
"Visual features error");
plotter.
setTitle(1,
"Camera velocities");
#endif
unsigned int iter = 0;
while (1) {
for (unsigned int i = 0; i < 4; i++) {
}
#ifdef VISP_HAVE_DISPLAY
plotter.
plot(1, iter, v);
#endif
if ((task.
getError()).sumSquare() < 0.0001)
break;
iter++;
}
std::cout << "Convergence in " << iter << " iterations" << std::endl;
#ifdef VISP_HAVE_DISPLAY
#endif
std::cout << "Catch an exception: " << e << std::endl;
}
}