#include <visp/vpFeatureBuilder.h>
#include <visp/vpServo.h>
#include <visp/vpSimulatorCamera.h>
#include <visp/vpDisplayX.h>
#include <visp/vpDisplayOpenCV.h>
#include <visp/vpDisplayGDI.h>
#include <visp/vpProjectionDisplay.h>
#include <visp/vpServoDisplay.h>
#include <visp/vpWireFrameSimulator.h>
{
static std::vector<vpImagePoint> traj[4];
for (unsigned int i=0; i<4; i++) {
point[i].project(cMo);
traj[i].push_back(cog);
}
for (unsigned int i=0; i<4; i++) {
for (unsigned int j=1; j<traj[i].size(); j++) {
}
}
}
int main()
{
try {
std::vector<vpPoint> point(4) ;
point[0].setWorldCoordinates(-0.1,-0.1, 0);
point[1].setWorldCoordinates( 0.1,-0.1, 0);
point[2].setWorldCoordinates( 0.1, 0.1, 0);
point[3].setWorldCoordinates(-0.1, 0.1, 0);
for (unsigned int i = 0 ; i < 4 ; i++) {
point[i].track(cdMo);
point[i].track(cMo);
}
wMo = wMc * cMo;
#if defined VISP_HAVE_X11
vpDisplayX displayInt(Iint, 0, 0,
"Internal view");
vpDisplayX displayExt(Iext, 670, 0,
"External view");
#elif defined VISP_HAVE_GDI
#elif defined VISP_HAVE_OPENCV
#else
std::cout << "No image viewer is available..." << std::endl;
#endif
while(1) {
for (unsigned int i = 0 ; i < 4 ; i++) {
point[i].track(cMo);
}
display_trajectory(Iint, point, cMo, cam);
break;
}
}
std::cout << "Catch an exception: " << e << std::endl;
}
}