#include <visp3/core/vpConfig.h>
#ifdef VISP_HAVE_MODULE_AR
#include <visp3/ar/vpAROgre.h>
#endif
#include <visp3/robot/vpSimulatorCamera.h>
#include <visp3/visual_features/vpFeatureBuilder.h>
#include <visp3/vs/vpServo.h>
int main()
{
try {
#if defined(VISP_HAVE_OGRE)
ogre.setCameraParameters(cam);
ogre.addResource("./");
ogre.init(background, false, true);
std::vector<std::string> name(4);
for (unsigned int i = 0; i < 4; i++) {
std::ostringstream s;
s << "Sphere" << i;
name[i] = s.str();
ogre.load(name[i], "Sphere.mesh");
ogre.setScale(name[i], 0.02f, 0.02f,
0.02f);
ogre.setPosition(name[i],
vpTranslationVector(point[i].get_oX(), point[i].get_oY(), point[i].get_oZ()));
}
Ogre::Light *light = ogre.getSceneManager()->createLight();
light->setDiffuseColour(1, 1, 1);
light->setSpecularColour(1, 1, 1);
light->setPosition((Ogre::Real)cdMo[0][3], (Ogre::Real)cdMo[1][3], (Ogre::Real)(-cdMo[2][3]));
light->setType(Ogre::Light::LT_POINT);
#endif
for (int i = 0; i < 4; i++) {
}
wMo = wMc * cMo;
for (unsigned int iter = 0; iter < 150; iter++) {
for (int i = 0; i < 4; i++) {
}
#if defined(VISP_HAVE_OGRE)
ogre.display(background, cMo);
#endif
}
std::cout << "Catch an exception: " << e << std::endl;
} catch (...) {
std::cout << "Catch an exception " << std::endl;
}
}