#include <visp3/gui/vpDisplayGDI.h>
#include <visp3/gui/vpDisplayOpenCV.h>
#include <visp3/gui/vpDisplayX.h>
#include <visp3/gui/vpProjectionDisplay.h>
#include <visp3/robot/vpSimulatorCamera.h>
#include <visp3/visual_features/vpFeatureBuilder.h>
#include <visp3/vs/vpServo.h>
#include <visp3/vs/vpServoDisplay.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;
point.push_back(
vpPoint(-0.1, -0.1, 0));
point.push_back(
vpPoint(0.1, -0.1, 0));
point.push_back(
vpPoint(0.1, 0.1, 0));
point.push_back(
vpPoint(-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
#if defined(VISP_HAVE_DISPLAY)
for (unsigned int i = 0; i < 4; i++)
externalview.
insert(point[i]);
#endif
while (1) {
for (unsigned int i = 0; i < 4; i++) {
point[i].track(cMo);
}
display_trajectory(Iint, point, cMo, cam);
#if defined(VISP_HAVE_DISPLAY)
#endif
break;
}
std::cout << "Catch an exception: " << e << std::endl;
}
}