Example of a real robot control, the Afma4 robot (cylindrical robot, with 4 degrees of freedom).
#include <visp3/core/vpCameraParameters.h>
#include <visp3/core/vpDebug.h>
#include <visp3/robot/vpRobotAfma4.h>
#include <iostream>
#ifdef VISP_HAVE_AFMA4
int main()
{
try {
std::cout << "a test for vpRobotAfma4 class..." << std::endl;
std::cout << afma4 << std::endl;
std::cout << "Catch an exception: " << e << std::endl;
}
return 0;
}
#else
int main()
{
std::cout << "The real Afma4 robot controller is not available." << std::endl;
return 0;
}
#endif