Visual servoing experiment on 4 points with a display.
#include <visp/vpConfig.h>
#include <visp/vpDebug.h>
#ifdef VISP_HAVE_GTK
#include <visp/vpImage.h>
#include <visp/vpCameraParameters.h>
#include <visp/vpTime.h>
#include <visp/vpImage.h>
#include <visp/vpImageConvert.h>
#include <visp/vpDisplayGTK.h>
#include <visp/vpMath.h>
#include <visp/vpHomogeneousMatrix.h>
#include <visp/vpPose.h>
#include <visp/vpFeaturePoint.h>
#include <visp/vpServo.h>
#include <visp/vpServoDisplay.h>
#include <visp/vpRobotCamera.h>
#include <visp/vpFeatureBuilder.h>
#include <visp/vpIoTools.h>
int main()
{
try {
unsigned int height = 360 ;
unsigned int width = 480 ;
disp.
init(I,100,100,
"Simulation display");
for (int i = 0 ; i < 4 ; i++)
point[i].project(cMo_d) ;
for (int i = 0 ; i < 4 ; i++)
for (int i = 0 ; i < 4 ; i++)
point[i].project(cMo) ;
for (int i = 0 ; i < 4 ; i++)
for (int i = 0 ; i < 4 ; i++)
int k = 0;
while(k++ < 200){
for (int i = 0 ; i < 4 ; i++)
{
}
}
return 0;
}
std::cout << "Catch an exception: " << e << std::endl;
return 1;
}
}
#else
int
main()
{
vpTRACE(
"You should install GTK") ;
}
#endif